on 10-19-2005 12:38 PM
Hi All,
I am tryin to run the Bapi 'BAPI_SALESORDER_CREATEFROMDAT1'. When i try to execute this directly from the R3 side through transaction se37 its working properly. While exceuting i'm setting only the mandatory fields for this bapi. But when i tried to do this through webdynpro its giving me error. Sale document type which is one among the input parameters, I'm setting this to value OR. But when i do this through webdynpro it returns message "sales document OR not defined". i checked the mapping as well as setting of values and couldn't find any errors. Any suggestions.
Hi Vasundhara & Venkat,
Thanks for your reply,
See when i'm executing the bapi from webdynpro side its getting executed but its not giving the same set of values as output as it is giving from the R3 side for same input. I'll give the codesample that i'm using to pass value from webdynpro.
Bapi_Salesorder_Createfromdat1_Input inp = new Bapi_Salesorder_Createfromdat1_Input();
wdContext.nodeBapi_Salesorder_Createfromdat1_Input().bind(inp);
Bapisdhead bp = new Bapisdhead();
bp.setSales_Org("S100");
bp.setDistr_Chan("DS");
bp.setDivision("D1");
bp.setDoc_Type("OR");
inp.setOrder_Header_In(bp);
Bapiitemin itm = new Bapiitemin();
itm.setMaterial("BL8");
itm.setReq_Qty("12");
inp.addOrder_Items_In(itm);
Bapipartnr bpart = new Bapipartnr();
bpart.setPartn_Numb("2330");
bpart.setPartn_Role("SP");
inp.addOrder_Partners(bpart);
After this when i execute the rfc its giving me the message
"Sales document type OR is not defined"
But when i gave the same input from the R3 side it gave the output and a sales order got created .
hope you guys understood the scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you elaborate what error you are getting?
Have you mapped UI elements with corresponding attributes,is JCO connections are established.Have you mapped input and output parameters.
Regards,
RK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check whether you are passing the same combination of values of Sales Organisation,Distribution Channel,Division..... as you are passing in the transaction SE37.
One more option to check is when you are passing a variable from Web Dynpro for example - Item No we should be passing it with the length equal to the Item No variable length defined in ABAP.
Regards
Vasundhara.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.