Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Why the SO partners address canu2019t update?

Former Member
0 Kudos
111

Dear All,

I used CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

...

IMPORTING

...

TABLES

return = bapi_return

.... ...

order_partners = bapi_partners

PARTNERADDRESSES = LT_PARTNERADDRESSES.

To created SO and partners address,SO can create but the Partners address canu2019t created,is empty.

Below is my get partner address code.

LS_PARTNERADDRESSES-ADDR_NO = L_ADRNR.

LS_PARTNERADDRESSES-TITLE = ADRC-TITLE.

LS_PARTNERADDRESSES-NAME = ADRC-NAME1.

LS_PARTNERADDRESSES-NAME_2 = ADRC-NAME2.

LS_PARTNERADDRESSES-CITY = ADRC-CITY1.

LS_PARTNERADDRESSES-STR_SUPPL1 = ADRC-STR_SUPPL2.

LS_PARTNERADDRESSES-STR_SUPPL2 = ADRC-STR_SUPPL3.

LS_PARTNERADDRESSES-COUNTRY = ADRC-COUNTRY.

LS_PARTNERADDRESSES-LOCATION = ADRC-LOCATION.

LS_PARTNERADDRESSES-LANGU = ADRC-LANGU.

LS_PARTNERADDRESSES-TEL1_NUMBR = ADRC-TEL_NUMBER.

LS_PARTNERADDRESSES-E_MAIL = ADR6-SMTP_ADDR.

APPEND LS_PARTNERADDRESSES TO LT_PARTNERADDRESSES.

Please help me!

Thanks

Sun

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos
45

Look for information at online documentation

If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).

Furthermore, a link must be defined between the document partner and the address, using an address link; the field ADDR_LINK is available for this in the partner table, and the field ADDR_NO in the address table.

and at OSS [Note 195768 - SD function modules and CAM addresses|https://service.sap.com/sap/support/notes/195768] (historical)

Regards

Former Member
0 Kudos
45

done

thanks