on 07-01-2009 12:25 PM
Hi
I have looked at previous threads and still not getting this right. When I click the submit button I need it to all go to the BAPI at the same time.
I'm using BAPI SalesorderCreatefromdat2, I need to use at least three input ports.
I have done the following.
-dragged the bapi on the page
-selected the ports required, flipped a port of required
-the for ports I have created 1 form (Order Headr I n Port), 2 tables (Order Itmes In port, Order Partners Port).
-the have connected the form and tables to the bapi, so have three different lines.
-For each one the eventname is *SubmitAll
-Then there is one button,on the action tab I selected custom action,the name is SUBMITALL, Apply To is Self
Is the above correct??
Please let me know, thanks in advance
Hi,
For each form and table create a button and set its action as system action 'Submit' not custom action. Set the events between form and table as ' *submit '. When you press anyone of the three submit button all entries will be passed to the bapi at the same time. If you like to show only one submit button, You can set others visibility as false.
I'm using BAPI SalesorderCreatefromdat1 and it is working fine for me. If you find any other problem, let me know.
Regards
Basheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Basheer
Thank you for your reply.
I have changed the buttons to Action Type "System Action", the field System Action to "Submit Form", the Apply To is "Self"
I however get the error "Please enter sold to party or ship to party"
Can you please help me. I have changed my BAPI to use SalesorderCreatefromdat1 like yours.
I'm using the following input ports and fields
-Order Header in form, using fields DISTR_CHAN, DIVISON, DOC_TYPE, SALES_ORG
-Order Partners Table in table, using fields PARTN_NUM and PARTN_ROLE
-Order Itmes Table in Table, using fields MATERIAL and TARGET_QTY.
Is this correct? Thank you for the response.
Hi
Thanks a LOT. I was using SP for partner function, the order type is one we created so it was fine with that. It works now.
However I have come across these problems, the sales order is created with 0, i'm using field Target_Qty. Which field should I use.
Also when I use materials that have characters and spaces in the material it complains it is not mantained for thst sales org. But it is because I can create a sales order manually. Any ideas?
Thanks in advance
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.