Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI

Former Member
0 Likes
809

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..

4 REPLIES 4
Read only

Former Member
0 Likes
729

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

Read only

Former Member
0 Likes
729

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.

Read only

0 Likes
729

This one doesnt work I have checked.. tell me other alternative please..

Read only

Former Member
0 Likes
729

Thnx for the answers