cancel
Showing results for 
Search instead for 
Did you mean: 

Table for BP in Contract

Former Member
0 Kudos

HI Guys

Could you please explain how to get BP number (sold-to-party) from contract header table. we are doing some development in ABAP, as i would like to know the logic for this to get right BP from it.

full points would be awarded for quick solution

thank you

shankar

Accepted Solutions (1)

Accepted Solutions (1)

former_member182350
Active Contributor
0 Kudos

Hi Shankar,

All the partner details of contract will be stored in DB table CRMD_PARTNER, you can use following query to find out sold to party:

SELECT partner_no

fFROM crmd_partner

INTO ls_bpguid

WHERE guid = <contractheader_guid> AND

partner_fct = '00000001'.

By using BP guid get BP number from BUT000 or use FM :BAPI_BUPA_GET_NUMBERS

hope this will help.

Regards,

Arjun

Pl do reward points

Answers (1)

Answers (1)

Former Member
0 Kudos

use the function module BAPI_BUSPROCESSND_GETDETAILMUL

CALL FUNCTION 'BAPI_BUSPROCESSND_GETDETAILMUL'

TABLES

guid = lt_msg_guid

partner = lt_partner

return = lt_return.

lt_msg_guid is the list of guid ,

lt_partner is list of partner

-


the table of lt_partner is TABLE OF bapibus20001_partner_dis,

in the lt_partner , choose partner function with the id

'00000001'