Different Partners @ item

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Posts: 2
Joined: Fri Nov 14, 2014 9:17 am

Different Partners @ item

Post by 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 ?

Posts: 365
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia

Re: Different Partners @ item

Post by 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.

Award cash if useful.

Post Reply