2010 Dec 21 10:10 AM
Hi,
I have a requirement to throw a warning message on the initial screen of vf01 when certain condition is met. I have included my logic in RV60AFZZ, however this userexit will be triggered x times (x = number of line items in the delivery doc). I've tried in RV60AFZC but same behavior. I need to show the warning message only once...
Thanks.
2010 Dec 21 10:40 AM
Hi ,
u put a flag when ever u give message for first time
and for next time check this flag if it is not set then give message else ignore
regards
m.a
2010 Dec 22 3:08 AM
2010 Dec 22 4:44 AM
Hi Mawi,
You must be having some global table which will hold the total number of items. So you can set a counter and check if that counter is equal to total number of items, then display message. In between you can set flag each time if your required criteria is met.
Thanks,
Rupali
2010 Dec 22 8:00 AM
Hi Mawi,
Create and set the flag then Export it to memory. Import the same everytime when your code gets executed. For example :
DATA : LV_FLAG(X) TYPE C.
IMPORT LV_FLAG FROM MEMORY ID 'VFFLAG'.
IF LV_FLAG IS INITIAL.
"Your code here
LV_FLAG = 'X'.
ENDIF.
EXPORT LV_FLAG TO MEMORY ID 'VFFLAG'.
Thanks & Regards,
Faheem.
2010 Dec 22 5:02 AM
HI,
How you have found out the exit...
i found out the below exits... now u need to select the proper one as per your requirement and den write the code in it.
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
may be it is helpful for u.
With Best Regards,
VG