2008 Dec 19 7:42 AM
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
2008 Dec 19 7:50 AM
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
2009 Jan 06 3:36 AM