Application Development and Automation 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: 
Read only

Sales Order Creation from BAPI Error

Former Member
0 Likes
1,139

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
Read only

Former Member
0 Likes
773

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
Read only

Former Member
0 Likes
774

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

Read only

0 Likes
773

Thanks for your help. I solved the Problem.

Regards

Pradeep Goli

Read only

Former Member
0 Likes
773

Hi,

I hope the below link will help you.

Thanks,

Khushboo.