This website is not affiliated with, sponsored by, or approved by SAP AG.

Different Partners @ item

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Different Partners @ item

Postby sapfans99 » Fri Nov 14, 2014 9:25 am

Has anyone used 'SD_SALESDOCUMENT_CREATE' to create a document wherein
a) One can specify beforehand which item categories an item (or subitem) should take, and
b) The item has different partners than the header?

I have the config in place for item category determination, and VA41 does bring in the right item
category, but when I try creating the document using the above FM, the item category does not
get determined correctly.

I tried overriding using item_categ field in the item (and itemx) structures, but it still didn't work.

For the partners at the item level, I've tried to provide 'partn_role' and 'itm_number' and 'partn_numb'
for the items where I wish to override the Ship To partner at the item; but that too didn't work
(But VA41/42 does allow that change)

Could someone pls help me achieve the same via the FM ?
sapfans99
 
Posts: 2
Joined: Fri Nov 14, 2014 9:17 am

Re: Different Partners @ item

Postby Grogan » Sun Nov 16, 2014 2:59 pm

For what it is worth I recall we had problems with SD_SALESDOCUMENT_CREATE and ended up using BAPI_SALESORDER_CREATEFROMDAT2 instead. Might be worth giving a try.

If still no joy then suggest you do some debugging to try and figure out what its rationale is for setting or not setting these fields.

Also note that exit form USEREXIT_SOURCE_DETERMINATION (incl. MV45AFZB) can be used to set the Item Category.
Grogan

Award cash if useful.
Grogan
 
Posts: 365
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia


Return to ABAP

Who is online

Users browsing this forum: No registered users and 8 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.