Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sales Order Creation from BAPI Error

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

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question