Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: how to dispaly businesspartner number in webui from ztable

$
0
0

hi i am not getting any error messages.as per my requirement when i give account number i haveto show businesspartner number in webui scree,for this i did code part bt when i get bp number as per standared funtionality it have to show bp name and in parties involved assingment block it will showing soldtoname and partner id and name and address ,for this reason what i have todo?

GET_SOLDTO_NAME.

*CALL METHOD SUPER->GET_SOLDTO_NAME

*  EXPORTING

*    ATTRIBUTE_PATH =

**    iterator       =

*  RECEIVING

*    VALUE          =

*    .

  data lr_current type ref to if_bol_bo_property_access.

 

  lr_current ?=  me->get_partner_entity( ir_iterator = iterator

                                         iv_pft      = '0001' ).

  value = cl_crm_uiu_bt_partner=>get_partner2( lr_current ).

 

****************************************

*retrive the businesspartner number in webui when account no is given and press enter.

DATA: LR_ENTITY TYPE REF TO CL_CRM_BOL_ENTITY,

      LV_ACCOUNT TYPE STRING,

      PARTNER TYPE STRING.

 

CHECK GR_OWNER IS BOUND.

*GET THE CUREENT ENTITY OF OTHER CONTEXT NODE

CHECK GR_OWNER->BTADMINH IS BOUND.

LR_ENTITY ?= GR_OWNER->BTADMINH->COLLECTION_WRAPPER->GET_CURRENT( ).

CALL METHOD LR_ENTITY->get_property_as_string

      EXPORTING

        iv_attr_name      = 'ZZFLD00000I'

**       iv_use_iso_format = ABAP_FALSE

     RECEIVING

       rv_result         = LV_ACCOUNT.

 

  IF LV_ACCOUNT IS NOT INITIAL.

      SELECT SINGLE PARTNER FROM  zbut0000j3l1fr INTO PARTNER WHERE zztfldc5lbfr = LV_ACCOUNT.

        IF PARTNER IS NOT INITIAL.

          shift partner LEFT DELETING LEADING '0'.

          VALUE = PARTNER.

        ENDIF.

   ENDIF.

   CLEAR :LV_ACCOUNT,PARTNER.

CHECK LR_ENTITY IS BOUND.

*******************************retrive the businesspartner number in webui when account no is given and press enter

endmethod.


Viewing all articles
Browse latest Browse all 7775

Trending Articles