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: 

Need to create pop-up box in custom subscree in MM01

I044433
Product and Topic Expert
Product and Topic Expert
0 Kudos
533

Hi,

I have a requirement where i need to include custom sub-screen in one of the tabs in MM01. The custom sub-screen has a button clicking on which should display a pop-up box, where user can enter values like some long text etc and then when user clicks 'Save' in MM01/02 the pop-up text along with other details should get saved into the z tables.

1. Created a custom subscreen and assigned it in SPRO under, Logistics-General -> Material Master -> Configure the material Master-> Define Strcture of Data screens for Each Screen sequence

2. Created a new screen of type 'modal dialog box'. This modal dialog box i want to use as a pop-up when user hits button on the custom subscreen.

Pls. confirm how this can be achieved.

Thanks

4 REPLIES 4

Former Member
0 Kudos
186

Hai,

1. Create a screen with modal dialog box and set the fn codes for continue, cancel and exit.

2. if sy-ucomm = 'BUTTON'.

call screen 100 starting at 25 05. // This is used to call the modal dialog box.

3.In PAI of screen 100 write this code

if you press on continue in modal dialog box then save the inputs what you are entered in the screen

if sy-ucomm = 'CONTINUE'.

ztable-field = field1.

insert ztable.

endif.

4. if you press on cancel then exit from the screen

if sy-ucomm = 'CANCEL'.

leave to screen 0.

endif.

Edited by: Ravi.Seela on Dec 21, 2011 12:34 PM

I044433
Product and Topic Expert
Product and Topic Expert
0 Kudos
185

Hi Ravi,

Thanks for the reply. I had already done this piece. But some how the custom pop-screen does not appear. It is displaying some standard pop-up with 3 buttons 'other material', 'additional data' & 'organisational levels'. I have aleady maintained the entries for the custom code for the screen sequence in t133e and T133d tables.

Thanks

Rohit

I044433
Product and Topic Expert
Product and Topic Expert
0 Kudos
185

Hi Ravi,

Thanks for the reply. I had already done this piece. But some how the custom pop-screen does not appear. It is displaying some standard pop-up with 3 buttons 'other material', 'additional data' & 'organisational levels'. I have aleady maintained the entries for the custom code for the screen sequence in t133e and T133d tables.

Thanks

Rohit

0 Kudos
185

What Ravi has suggested should work.

If it is not working, put a breakpoint and debug.

If you are getting some unknown buttons, you have not defined and called the GUI Status.