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 creating Sales Order

Former Member
0 Likes
745

Hi ....

In our project we are facing some problem while creating Sales order with multiple line items by using FM u201CSD_SALESDOCUMENT_CREATEu201D. Order is creating with incompletion log. The issue is second line item order quantity is coming as blank.

Any pointers will greatly appreciated.

Thank you.

Regards,

Lokeswari.

Hi ....

In our project we are facing some problem while creating Sales order with multiple line items by using FM u201CSD_SALESDOCUMENT_CREATEu201D. Order is creating with incompletion log. The issue is second line item order quantity is coming as blank.

Any pointers will greatly appreciated.

Thank you.

Regards,

Lokeswari.

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
707

Hi,

Why can't you use BAPI for this?

bapi salesordercreatefromdat1

bapi salesordercreatefromdat2

We have lot of sample codes in SCN.

Thanks,

Vinod.

Read only

Former Member
0 Likes
707

Well, a zero quantity on an item should result in incompletion. Are you populating the quantity field in the sales_item_in, and putting an 'X' in that column in the sales_item_inx structure/table?.

This is one of the "old style" order creation tools where you must indicate the columns that are to be updated in the 'X' structures/tables, if I remember correctly.

I have to agree with Vinod...It's hard to imagine why anyone would choose this FM when the BAPIs are available for use with LSMW, etc.

Read only

0 Likes
707

Hi...

Thanks for your reply.

I tried by populating "X" in Quantity field but facing the same issue. it is picking quantity fro the first line item. remaining lineitem quantities are coming as blank.

there is no Bapi for creating both normal sales order as well as returns order i.e. why i went for this FM.

Any pointers.

Regards,

Lokeswari.

Read only

Former Member
0 Likes
707

Hi All...

Thanks for your replies.

Problem is solved.

i am passing Requested qty in Schedule_in. Along with this we need to pass SCHED_LINE number also like 000, 001,002 etc. if we use multiple line items.

Regards,

Lokeswari.