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 using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
2,519

Hi,

Error when saving the Sales order wth configuration data using 'BAPI_SALESORDER_CREATEFROMDAT2'

Internal error: 000010, 000010, NOT_ALL_INPUT_DATA_PROCESSED.

Thanks & Regards,

8 REPLIES 8
Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
1,304

Hi Hema,

Please create one sales order using VA01.

Then pass all the values to BAPI, which are have you entered in VA01.

Regards,

Arivazhagan S

Read only

0 Likes
1,304

I have passed all the values, still the same error is appearing

Read only

0 Likes
1,304

Please share your code.

-Venkat

Read only

Former Member
0 Likes
1,304

      ord_cfg_ref-POSEX = itemno. 

      ord_cfg_ref-CONFIG_ID   =    configid .

      ord_cfg_ref-ROOT_ID = rootid.

      append ord_cfg_ref.

     

       ord_itm-ITM_NUMBER = itemno. 

       ord_itm-MATERIAL = matdetails-MATERIAL.

       ORD_ITM-PO_ITM_NO  =    ord_cfg_ref-POSEX.

       ord_itm-ITEM_CATEG = 'TAN'.

       ord_itm-TARGET_QTY = matdetails-totquan.

       append ord_itm.

     

       ord_itm_x-ITM_NUMBER = itemno. 

      ord_itm_x-UPDATEFLAG = 'I'.

      ord_itm_x-MATERIAL = 'X'.

      ord_itm_X-PO_ITM_NO = 'X'.

      ord_itm_x-item_categ = 'X'.

      ord_itm_x-target_qty = 'X'.

      append ord_itm_x.

     

      ORDER_CFGS_INST-CONFIG_ID = configid. 

      ORDER_CFGS_INST-INST_ID =  instid.

      ORDER_CFGS_INST-OBJ_TYPE =  'MARA'.

      ORDER_CFGS_INST-CLASS_TYPE = '300'.

     ORDER_CFGS_INST-OBJ_KEY =  material. 

      ORDER_CFGS_INST-QUANTITY = QUAN.

      ORDER_CFGS_INST-QUANTITY_UNIT = VRKME.

      append ORDER_CFGS_INST.

     

      ORDER_CFGS_VALUE-CONFIG_ID = configid. 

      ORDER_CFGS_VALUE-INST_ID = instid.

       ORDER_CFGS_VALUE-CHARC = charval. 

       ORDER_CFGS_VALUE-VALUE = 'S'.

       append ORDER_CFGS_VALUE.

Read only

0 Likes
1,304

Where are you passing your order header details(Oder type and sales area) and partner details(Partner type and sold to party)?

-Venkat

Read only

0 Likes
1,304

I have only pasted the configure data code. I am already handling that

Read only

0 Likes
1,304

Hema you are passing po item number but no PO?

Nabheet

Read only

0 Likes
1,304

Check with below changes ..

      ORDER_CFGS_INST-CLASS_TYPE = '001'.  '300'.

     ORDER_CFGS_INST-OBJ_KEY =  'MATERIAL' . material.

also check material number must be leading with zero's .

Regard's

Smruti