2008 May 20 3:58 AM
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 dataIt is not easy for me to show what problem of inconsistence, any way could help me show the detail to user?
Thanks!
2008 May 20 5:13 AM
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
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
2008 May 20 5:13 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |