Capture the Invoice Split Reason and update it in the invoice header text

Hi All,
We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
Is there any way to determine the number of iterations of a routine written for split?
Require your valuable inputs for this issue....
TIA
Regards,
Sharadendu

Hi,
Is your invoice split reason maintained in the header or item level?
Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
Regards,
Amit
Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

Similar Messages

Maybe you are looking for

  • Error  while running custom BI report in R12.1.1

    Hi All, We are encountering below error while running custom BI report in R12.1.1... Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing APPLLCSP Environment Variable set to : Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables a

  • GL Clearing (F-03)

    Hi Experts i am trying to clear GL accounts by using T-Code F-03 but msg appearing The entry T008   is missing in table T043S please advise. Kuldeep Dubey

  • Forms applet parameter

    Forms applet parameter colorScheme=teal how much color scheme can we add in parameter.

  • Datafile of DB got deleted..!!

    Dear All, Unknowingly the data file has been deleted from the file system of the Server.. It was an accident... and now the DB is not coming up... it shows like: SQL> startup; ORACLE instance started. Total System Global Area 581523028 bytes Fixed Si

  • Quality of books look like cheap photocopies

    Hi, I have been using iPhoto for many years and have been a loyal iPhoto book customer as well. I use the books for all sorts of events such as golf charity fundraisers, weddings, family reunions, etc... The results have been usually great with good