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

Error Msg in MIGO screen should be

Former Member
0 Likes
740

Dear All,

In MIGO tcode, if field goitem-wempf is empty then i want to give error msg. But when I am using BADI "MB_MIGO_BADI" method "LINE_MODIFY" after user get error msg screen should allow him to change field. But in my case field get disable mode.

Please Advice the same.

Dear All,

In MIGO tcode, if field goitem-wempf is empty then i want to give error msg. But when I am using BADI "MB_MIGO_BADI" method "LINE_MODIFY" after user get error msg screen should allow him to change field. But in my case field get disable mode.

Please Advice the same.

2 REPLIES 2
Read only

Former Member
0 Likes
613

 IF ( sy-tcode EQ 'MIGO' ) AND goitem-wempf  IS  INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'goitem-wempf '.
        screen-input = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
 

Try this in your Badi.

Thank you.

Thanks,

AMS

Read only

RaymondGiuseppi
Active Contributor
0 Likes
613

A trick commonly used is to store data in memory in method LINE_MODIFY and re-import this data in CHECK_ITEM.

You could then raise a warning/status message in LINE_MODIFY at entry time, and an error message in CHECK_ITEM when saving/posting.

Regards,

Raymond