on 11-16-2010 2:41 PM
Hi All,
I have a requirement to display teleagent's sales org unit address details in smartform.
Using sales org unit ID, how can I get the address details?
I have tried FM "BAPI_ADDRESSORG_GETDETAIL" but no use. I dint find any other FM.
Kindly help me in providing FM or any other solution.
Thank you in advance.
Best Regards,
Santhosh.
Hello Santhosh,
Use Table HRP1028
Pass your Sales Org Unit field OBJID and get the address details.
I hope this helps
Thanks
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
Try this way..
data lv_phoneno type string.
IF lr_buil_entity IS BOUND.
CLEAR lr_entity.
TRY.
lr_entity = lr_buil_entity->get_related_entity(
iv_relation_name = 'BuilStandardAddressRel' ). "#EC NOTEXT
CATCH cx_crm_genil_model_error.
ENDTRY.
IF lr_entity is BOUND.
lv_phoneno = lr_entity->get_property_as_string( 'TEL_NOTEL' ).
ls_customer_details-title_let = lv_phoneno.
endif.
ENDIF.
in case you don't get correct, check for the proper bol relation..
Cheers
Sumit Mittal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.