09-08-2008 10:26 AM
Hi Friends,
I am using BAPI_SALESORDER_CREATEFROMDAT1 to create the Sales Order. But I am getting an error when I am executing the FM. I am filling the following Information and passing on the information to the BAPI FM. Details:
IMPORT PARAMETERS:
ORDER_HEADER_IN:
DOC_TYPE: OR
SALES_ORG: BP01
DISTR_CHAN: 01
DIVISION: 01
REQ_DATE_H: 29.08.2008
PURCH_DATE: 29.08.2008
INCOTERMS1: FH
INCOTERMS2: PALO ALTO
PMNTTRMS: 0001
SHIP_COND: 01
CURRENCY: USD
TABLES:
ORDER_ITEMS_IN:
ITM_NUMBER: 10
MATERIAL: XXXX-6
PLANT: BP01
REQ_QTY: 20
SALES_UNIT: EA
ITEM_CATEG: AGN
SHORT_TEXT: TEST MATERIAL
ORDER_PARTNERS:
PARTN_ROLE: SH
PY
BP
SP
PART_NUMB: 1000
1000
1000
1000
By using the above information, when I am executing the FM I am getting error
EXPORT PARAMETERS
RETURN:
TYPE: E
ID AM
NUMBER 216
MESSAGE Incomplete address; enter country
But when I am creating it from the VA01 Transaction, I am able to create Sales Order Successfully.
Friends, please help me in this regard.
Yours
Pradeep Goli
Edited by: Pradeep Goli on Sep 8, 2008 2:56 PM
09-08-2008 10:30 AM
Hi Pradeep,
The BAPI is expecting you to fill COUNTRY field of the BAPIPARTNR structure... i.e.
you should be filling the TABLES parameter ORDER_PARTNERS-COUNTRY.
Regards,
Kiran
09-08-2008 10:30 AM
Hi Pradeep,
The BAPI is expecting you to fill COUNTRY field of the BAPIPARTNR structure... i.e.
you should be filling the TABLES parameter ORDER_PARTNERS-COUNTRY.
Regards,
Kiran
09-08-2008 11:56 AM
09-08-2008 10:31 AM