on 03-30-2015 11:33 AM
I have created a webdypro component to create a sales order..I am using a bapi for this..
the selection screen for WD contails the following:
For Header DATA:
1. Order Type
2.
For ITEM Data:
1. Item, Mat.no, Target Quantity, Ner VAlue, Plant
When i give the data for the Header field and add an item details and click on create, Sales order is getting createed perfectly,
BUT IF I add more than 1 line items.. NO SALES ORDER IS GETTING CREATED..............
if i loop the items data.. pointer is not getting inside the loop and it just comes out of loop..
Plz help.....
Hi
Check this link ABAP - Simple program to create sales order using BAPI - Code Gallery - SCN Wiki.
It will be helpful.
thanks
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay & harsha,
It is working fine for i.e sales roder is getting created with i add only one line item but when i add more than one line item it not creating..
cardinality is 0 to n.
Also, please send me the sample code how to process the multiple line items.
Thanks,
LUCIFER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lucifer,
Please check the cardinality of the line items node, it must be 1.N, as there must be at least 1 line item, associated with a header data. Even though after correcting cardinality if you are creating with multiple line items sales order is not getting created, please the parameter return(bapiret2), from the FM, which gives you the information why sales order was not created.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check the cardinality for the ITEM context?
Check the loop condition whether you are passing Sales order number in the where field as well as you are capturing the sales order number value in Item field also..
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.