Application Development 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: 

Enhancement in MB1B

Former Member
0 Kudos

Dear Experts,

                I have developed a Badi in MB1B for Quantity checking error message . It's working fine only problem once the error message

come after entering the ENTER button the screen will be display mode(non editable )I am not able edit the screen. How can I overcome this problem. Urgent reuirement

kindly do the needful..

1 ACCEPTED SOLUTION

Chintu6august
Contributor
0 Kudos

Hi,

make use of method IF_EX_MB_CHECK_LINE_BADI~CHECK_LINE


or


you can write your code like this in badi implementation..


if quantity LE 0.

data: lv_dynnr type sy-dynnr.

clear lv_dynnr.

lv_dynnr = sy-dynnr.

message 'Error Message' type 'S' display like 'E'.

set screen

set screen lv_dynnr.

leave to screen lv_dynnr.

endif.

thanks!!

4 REPLIES 4

Former Member
0 Kudos

Badi Name : MB_CHECK_LINE_BADI

Chintu6august
Contributor
0 Kudos

Hi,

make use of method IF_EX_MB_CHECK_LINE_BADI~CHECK_LINE


or


you can write your code like this in badi implementation..


if quantity LE 0.

data: lv_dynnr type sy-dynnr.

clear lv_dynnr.

lv_dynnr = sy-dynnr.

message 'Error Message' type 'S' display like 'E'.

set screen

set screen lv_dynnr.

leave to screen lv_dynnr.

endif.

thanks!!

0 Kudos

hi Chintu,

Thank u for reply..working

former_member182546
Contributor
0 Kudos

Hi Sunil ,

Please check the below link .

Producing Error to User Via MB_CHECK_LINE_BADI | SCN

With Regards,

Sudhir S