‎2008 Aug 16 2:33 PM
Hi All,
Can we use the USER-COMMAND for a field declared as parameter?
Like eg:
Parameters ptemp1 type hap_s_object-name OBLIGATORY user-command.
My requirement is whenever this parameter field is not initial ..i need to enable a block on the selection screen. pls suggest.
Thanks & Regards,
Padmasri.
‎2008 Aug 16 2:40 PM
Hi,
I Think no. What u can do is put the logic in AT SELECTION-SCREEN ON parameter event. So when ever user enters some value in selection screen parameter and press enter ur logic should be executed to enable the new block.
But if the user directly execute after entering the value in parameter this won't work.
Thanks,
Vinod.
‎2008 Aug 16 2:40 PM
Hi,
I Think no. What u can do is put the logic in AT SELECTION-SCREEN ON parameter event. So when ever user enters some value in selection screen parameter and press enter ur logic should be executed to enable the new block.
But if the user directly execute after entering the value in parameter this won't work.
Thanks,
Vinod.
‎2008 Aug 16 2:50 PM
it is not possible to add the user command addition along with the input parameters.
after input you need to press enter.
REPORT ZTEST.
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_vbeln TYPE vbeln MODIF ID aaa.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF NOT p_matnr IS INITIAL.
IF screen-group1 = 'AAA'.
screen-active = 1.
MODIFY SCREEN.
ENDIF.
ELSE.
IF screen-group1 = 'AAA'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.