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 on using BAPI_SALESORDER_CREATEFROMDAT2 with VC

Former Member
0 Likes
645

Hi,

I had created a program of using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order with variant configuration.

If the case only contain the material with correct VC setting, it is okay. However i would like to test some case about breaking the consistence of VC. And I found that the BAPI could show me there are some inconsistence or incomplete in SO. But the information is too little for me. I would like to get more information to tell the user what inconsistence they had made. Now the result is shown as below:

S
SALES_HEADER_IN has been processed successfully
S
SALES_ITEM_IN has been processed successfully
A
Internal error: 20, 000020, CFG_IS_INCONSISTENT_OR_INCOMPLETE,
E
Error in SALES_ITEM_IN 000000
W
The sales document is not yet complete: Edit data

It is not easy for me to show what problem of inconsistence, any way could help me show the detail to user?

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

Difficult to create sale order with VC using this BAPI. instead use BDC. for getting material characterstics use following FM

  • First get material class number

BAPI_OBJCL_GETCLASSES

  • Get all the characterstics from material class number

call function 'CARD_CLASS_READ'

hope u will able to create sale order.

anya

1 REPLY 1
Read only

Former Member
0 Likes
453

Difficult to create sale order with VC using this BAPI. instead use BDC. for getting material characterstics use following FM

  • First get material class number

BAPI_OBJCL_GETCLASSES

  • Get all the characterstics from material class number

call function 'CARD_CLASS_READ'

hope u will able to create sale order.

anya