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: 

Sales Order Creation from BAPI Error

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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 Kudos

Thanks for your help. I solved the Problem.

Regards

Pradeep Goli

Former Member
0 Kudos

Hi,

I hope the below link will help you.

Thanks,

Khushboo.