cancel
Showing results for 
Search instead for 
Did you mean: 

saels order creation using BAPI_SALESORDER_CREATEFROMDAT2 ATP failed

Former Member
0 Kudos

Hi experts,

we are using BAPI_SALESORDER_CREATEFROMDAT2 to create SO.  Sometimes item ATP check failed even there is plenty available stock. Then I need to do ATP check in VA02 for the failed item, with no error. But we cannot reproduce this problem.  Do you have similar issue before? Pls suggest.

The code list below:

    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
     EXPORTING
       order_header_in     = ls_bapisdhd1
*     order_header_inx    = lS_bapisdhd1x
     IMPORTING
       salesdocument       = l_vbeln
     TABLES
       return              = lt_return
       order_items_in      = lt_bapisditm
*     ORDER_ITEMS_INX     =
       order_partners      = lt_bapiparnr
       order_schedules_in  = lt_bapischdl
*     ORDER_SCHEDULES_INX =
       order_conditions_in = lt_bapicond
*     ORDER_CONDITIONS_INX          =  lT_bapicondx
       order_text          = lt_bapisdtext.

Accepted Solutions (0)

Answers (1)

Answers (1)

tuan_manh
Participant
0 Kudos

Dear Richard,

Can you post the error messages?

BR,

Tuấn