Archived discussions are read-only. Learn more about SAP Q&A

Account determination for COGS

Currently, both retail and web orders post COGS to the same GL account after PGI. We'd like to be able to post COGS to two different accounts for both retail and web orders.

Retail (Order Type = OR; dist channel = 10)

Web (Order Type = ZWO; dist channel = 30)

Both Retail and Web use movemtent type 601 for PGI so the config in transaction OMWB will not work. I thought about creating a new movement type for web orders but I think it might be easier to create a substitution instead. If so, I'm not sure how to create a substitution for this scenario. Any thoughts on this?



OK, I was able to get the substitution to hit my user-exit. However, the change I make to the GL account has no affect. Here is my code:

FORM U901.



select single * from VBAK into VBAK

where VBELN eq BSEG-VBEL2.

if sy-subrc eq 0 and VBAK-VTWEG eq '30'.

BSEG-HKONT = '0000500025'.




Edited by: Tony Raimo on Nov 7, 2008 7:44 PM

Edited by: Tony Raimo on Nov 17, 2008 8:11 PM

Not what you were looking for? View more on this topic or Ask a question