cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Sales Org Unit address (Telephone & Fax number)

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193352
Active Contributor
0 Kudos

Hello Santhosh,

Use Table HRP1028

Pass your Sales Org Unit field OBJID and get the address details.

I hope this helps

Thanks

Vishal

Former Member
0 Kudos

Thank you.

I have used the table.

sumit_mittal2
Active Contributor
0 Kudos

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