2008 Apr 21 7:25 AM
Hi,
My requirement is To display automatic cash management group with reference to account group in vendor master.
In vendor master initial screen if user enters Account group (LFA1-KTOKK) as VWOP or DMST in the accounting information screen Cash management group field (LFB1 FDGRV) planning group code A1 has to display.
In change mode if any of the user trys to change planning group code an error massage change is not possible has to appear..
Now i ve coded in the method PRESET_VALUES_CCODE which is in the BADI definition VENDOR_ADD_DATA this method is getting triggered even after the accounting information screen and could you please help me in displayin the error message?
please please please..
2008 Apr 21 7:42 AM
Hi,
When you want to make sure that the warning is display as dialog you could
use one of the function modules POPUP_TO_CONFIRM & POPUP_TO_INFORM ( search in SE37 POPUP) to display a text.
Refer
https://forums.sdn.sap.com/click.jspa?searchID=10947078&messageID=5214757
Regards
Kiran Sure
2008 Apr 21 7:49 AM
within PRESET_VALUES_CCODE method write the code as below:
if LFA1-KTOKK = VWOP OR LFA!-KTOKK = DMST .
LFB1 FDGRV = A1.
else.
message e000(z00) with 'change is not possible'.
endif.
but here u should take care about parameter names...acutually LFA1 structure must be defined as some I_LFA1 in VENDOR-ADD_DATA interface..so try to use this parameter in your code instead LFA1 use I_LFA1.
Reward if useful.
Dara.
2008 Apr 21 8:31 AM
This one doesnt work I have checked.. tell me other alternative please..
2011 Jan 05 7:46 AM