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 BAPI

Former Member
0 Likes
1,183

Hi Experts,

I am trying to create sales order using BAPI_SALESORDER_CREATEFROMDAT2. I get a error in my return parameter saying that "EAN 047888199679 does not match material 3000912 and unit of measure ******"

What does this exactly mean?

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
991

Hello nani ,

Are you passing the International Article Number (EAN/UPC) anywhere in your code??

If not BAPI is determining that in the logic and throwing an error message saying that the material no 3000912 and the EAN combination does not match to the unit of measure .

Please check your data that you are passing to the BAPI . You can also check the Function Module "ISIA_RLOEPM_SALES_ORDER_CREATE for what are the data that needs to pass into the BAPI.

Hope this helps.

Thanks,

Greetson

Edited by: Greetson Shunmugasundaram on Jun 28, 2011 1:12 AM

Read only

0 Likes
991

Hi Greetson,

Thanks for the reply.

I am not passing any International Article Number (EAN/UPC) in my code.

If not BAPI is determining that in the logic and throwing an error message saying 
that the material no 3000912 and the EAN combination does not match to the unit of
measure. Please check your data that you are passing to the BAPI . You can also 
check the Function Module "ISIA_RLOEPM_SALES_ORDER_CREATE" for what are the 
data that needs to pass into the BAPI.

All my BAPI tables which I am passing to BAPI has the required data in it. How can it internally determines the EAN error?

How ever, I have one quick question when I am passing sales unit to my BAPI item table.

What is the field do I need to consider while creating Sales Order either TARGET_QU or SALES_UNIT for my UOM?

Please Advice.

Thanks.

Read only

0 Likes
991

Hi,

Use SALES_UNIT for passing UOM.

Also make sure that you are passing all the mandatory params for the table "order_items_in" listed below.

*---Item Data
itm_number
material
purch_no_c
purch_date
sales_unit (Use conversion exit CONVERSION_EXIT_CUNIT_INPUT if required)

*---Schedule Data ( order_schedules_in )
itm_number
req_qty

*--- Partner Data (order_partners)
partn_role
partn_numb (Both shipto & sold to party numbers)

Note: Donot forget to fill order_items_inx & order_schedules_inx.

This should work for you. Good luck.

Thanks,

Prathap

Read only

Former Member
0 Likes
991

check your material 3000912 is exist or not

Read only

0 Likes
991

Yes. My material exists.

Read only

Former Member
0 Likes
991

Hi Experts,

>

> I am trying to create sales order using BAPI_SALESORDER_CREATEFROMDAT2. I get a error in my return parameter saying that "EAN 047888199679 does not match material 3000912 and unit of measure ******"

>

> What does this exactly mean?

>

> Thanks.

Hi Nani,

Check if the same EAN is present in your Material Master screens - MM43/ MM03.

Try to put a watch point at EAN11 and check when the value is changed.

Regards,

Ajay