Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
The reason why you cannot copy BSEG-ZUONR to BKPF-XBLNR is that the header substitution is processed earlier than items. I would check in debug mode if BKPF-AWTYP and BKPF-AWKEY are filled in at the moment of header substitution: if they reference the original invoice or previous payment document you can obtain invoice number from those documents.
| | | ---------------Original Message--------------- From: aniasel Sent: Monday, January 03, 2011 8:18 AM Subject: How to create substitution that will copy header data of FI document? As a result of posting customer partial payment there is a new document posted with a new amount that is left to be paid, however this new document doesn't derive Invoice number / Reference from the original document. The invoice number is copied only to field 'Assignment' (BSEG-ZUONR) which is in customer line item while I need it in 'Reference' (BKPF-XBLNR). As Reference is empty, instead of invoice number there is a document number printed on dunning letters that doesn't say anything to customer and make confusion. Do you know how to create substitution that will copy data from' Assignment' to 'Reference' of the same document (I was trying to write exit in ZGGBS000 but it didn't work). Second idea is to write some program that when posting / clearing via F-28 will derive invoice number from cleared document (from its 'Reference') but where I should write it and how? The last idea that comes to my mind is to change dunning printout so that when 'Reference' is empty then data from 'Assignment' should be printed instead of document number (but also I don't know how to do that). Anybody knows how to realize the ideas given above or has any better one? Thank you in advance. | | __.____._ Copyright © 2011 Toolbox.com and message author. Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251 | | Sergey Korolev SAP Development Enthusiast
Contributed 100 posts in a group to earn a Bronze Achievement Most Popular White Papers _.____.__ |