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

problem in using BAPI

Former Member
0 Likes
1,327

Hi,

I have used BAPI_SALESORDER_CREATEFROMDAT2 and working successfully.. but for some material no., it generates error message :

'Internal error: 10, 000010, CFG_IS_INCONSISTENT_OR_INCOMPLETE',

how to solve this? If this is on the functional side? where can we check?

5 REPLIES 5
Read only

Former Member
0 Likes
1,150

Before consulting Functional guy:

Create sales order manually with that order ,if you get same error,then it would be problem material master configuration with respect sales order.

Then contact Functional guy.

if you are not getting same error while creating sales order manually ,then problem might be at your code

Thanks

Seshu

Read only

Former Member
0 Likes
1,150

Hi,

Thanks for your reply..

i check my codes, it becomes an error when i set po_itm_no as '000010'

here is my code:

gt_items-itm_number = '000010'.

<b>gt_items-po_itm_no = '000010'.</b>

gt_items-matl_group = 'Z0000'.

gt_items-item_categ = 'ZIT1'.

gt_items-material = lv_material.

gt_items-target_qty = gv_quantity.

gt_items-currency = 'MYR'.

APPEND gt_items.

CLEAR gt_items.

gt_itemsx-itm_number = '000010'.

gt_itemsx-po_itm_no = 'X'.

APPEND gt_itemsx.

ok, this code works perfect with other materials including their cfg values as well... but 3 of them failed when

gt_items-po_itm_no = '000010'. So, when i changed gt_items-po_itm_no = ' '.

the order_items_in has no errors anymore but the characteristics could not be linked. so is this a functional issue or not? but when i create using the material manually, it works. please help anyone? is there some other codes need to be added for certain materials?

thanks

Read only

0 Likes
1,150

hi,

i think its the problem of leading zeroes and padding.

just see how many zeros or spaces are needed to be padded.

reward points if helpful

Read only

0 Likes
1,150

but why other materials is ok? pls explain more? n which table that i can use to see these values?

thanks

Read only

0 Likes
1,150

I am having the exact same problem. It errors out for random characteristics. Did you get a solution for this issue?