05-31-2011 5:45 AM
Hi,
I am using BAPI_SALESORDER_CREATEFROMDAT2 for creation of sales order. I am passing quantity value into Schedule lines of req_qty ( required quantity ) field. Some times, At run time it takes the req_qty value as zero. can any body tell me how to solve the problem.
05-31-2011 7:33 AM
Hi Praveen,
Keep a break-point at BAPI and check if the values are set properly.Also check if you are keeping "X" in the ORDER_SCHEDULES_INX varibale of Req_qty.
Regards,
Pon
05-31-2011 3:23 PM
@Pon: You don't need to specify the ORDER_SCHEDULES_INX table in CREATE mode...
@Poster: Post (a small portion of) your code. If it only fails 'sometimes', have you checked that the items in question are relevant for a schedule line?
06-06-2011 7:47 AM
Hi,
i have tried by placing break point. It is working fine. I am unable to find out the exact case where quantity value is getting zero during run time. Kindly help me to find out this .
06-06-2011 7:58 AM
in BAPI_SALESORDER_CREATEFROMDAT2
IN SCHEDULES_IN TABLE YOU HAVE TO SPECIFY THE QUANTITY
IN SCHEDULES_IN enter the following fields :
itm_number : (eg: 10)
req_qty : (eg : 100.000)
This will work coz i was also facing the same problem.
if u specify req_qty in item table in target_qty feild it wond display qty in VA02.
hope this will help you.
06-06-2011 2:30 PM
HI,
I am passing that information. But it is taking req_qty of schedule lines as zero in some casesi.e. run time.
Thanks&Regards,
praveen.