on 08-24-2011 7:33 PM
I have a situation where I want to have different header and item level ship-to accounts on a sales order. When I use the BAPI_SALESORDER_CREATEFROMDAT2 to create the order by passing the Ship-to for header and Item in order_partners table, the header ship-to is not updated.
This works fine if the header and item level ship-to are same.
Any ideas.
> This works fine if the header and item level ship-to are same.
I believe that's how it's supposed to work. If you have different Ship-to's for every line item, why would you expect Ship-to to be populated at the header level? And which Ship-to would it be? As a programmer, I'm not even sure how would I program for such scenario... Just grab a random/first Ship-to and put it at the header? Doesn't make any sense...
Try adding an entry with 0 line item, as already suggested. Otherwise I'm not sure how it's expected to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
put a breakpoint at the BAPI and check your PARTNERS table
e.g. in the case, i am using iterms partner for line 10 & 20 that is different to the header table (000000)
PARTN_ROLE PARTN_NUMB ITM_NUMBER TITLE NAME
1 AG |EDICUS |000000 | | <
2 WE |DODGE |000000 | | <
3 WE |EDICUS |000010 | | <
4 WE |RWCUS |000020 | | <
if your table is not like this , it won't work
otherwise, post the relevant code and we can check
kind regards
Paul Quinn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check the item category configuration in VOV7 in business data section: for the checkbox business item.
Is it checked? pls check it and try again.
Regards
RS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.