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: 

Issue with message pop-up in BADI LE_SHP_GOODSMOVEMENT.

Former Member
0 Kudos

Hello All,

I have created an Implementation for badi LE_SHP_GOODSMOVEMENT . The badi has been called from 2 tranasaction codes VL02N and VT02N.

I have displayed an warning message inside the implementation code.

When i am calling it from VL02N the warning message is comming properly in POP-UP but while i am calling it from VT02N the code is running properly but the warning message is not comming in POP-UP.

Below is the code for the same.

    IF sy-ucomm EQ c_zla.

        w_len = strlen( w_accesskey ).

        IF w_len EQ 44.

          SET SCREEN 0.

          EXIT .

        ELSE .

          MESSAGE text-t01 TYPE c_w.

        ENDIF.


      ENDIF.

Thanks & Regards,

Susheel Kumar Joshi

M:+91-9975493727

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

issue resolve in place of massage keyword we have used function module

POPUP_TO_DISPLAY_TEXT.

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos

Hi

You must be using method CHANGE_INPUT_HEADER_AND_ITEMS. It already has a message log table CT_LOG. Please fill it in both cases you wont need to do any of the SET screen type stuff.

Thanks

Nabheet

0 Kudos

Hi Nabhneet,

I am using the method CHANGE_INPUT_HEADER_AND_ITEMS but inside the code we are calling a screen then we have some validation on the data passed in the pop-up screen called by the code.

For the VT02N tcode below line of code is getting executed ( as i have checked in debug mode ) properly but no pop up is comming:

  MESSAGE text-t01 TYPE c_w.

0 Kudos

Hi

Let your screen remain as it is. Can you please fill CT_LOG tab for displaying the warning message. It is always advised to use as much as standard process possible. Just check in debugging fill this table it wil work.

Former Member
0 Kudos

Hi

issue resolve in place of massage keyword we have used function module

POPUP_TO_DISPLAY_TEXT.