‎2010 Feb 15 4:54 PM
Hi all,
My requirement is to add a customized screen in QM01 transaction. That is, when the user enters the notification type and press enter, second screen appears.
In that 2nd screen (Header data), the user will enter the material number under the reference object. Once materaial number is entered, a new screen has to be shown at the bottom of the header object frame instead of the std screen.
Im new to screen exit. So can anyone pls tell me the steps to be followed to attach a customized screen in the second screen of QM01 tcode.
Regards,
Shanthi
‎2010 Feb 16 4:04 AM
Hi,
Go to function group XQQM ,create the screen under screens tab number 0090.
Declare the screen fields under include tab ZXQQMTOP .
Under the function module EXIT_SAPMIWO0_008 write the code for updation of custom fields to the structure viqmel.
Under PAI create a module for capturing the screen field values.
Case sy-ucomm.
when '10\TAB02'.
viqmel-cust = cust.
viqmel-dist = dist.
viqmel-sal = sal.
endcase.
For QM02 and QM03use EXIT_SAPMIWO0_008 for display of the screen field values
Under the PBO of the screen create a module for fields to be in display mode.
if sy-tcode = 'QM03'.
loop at screen.
if sy-ucomm = '10\TAB02'.
screen-input = 0.
modify screen.
endif.
endloop.
endif.