2009 Apr 13 6:16 AM
Hi
I maintained two radiobuttons one for uploading the data record and other generating a smartform in the standard selection screen.
And I have another set of radiobuttons below smartorm radiobutton.when I click on the smart form radiobutton only those suboptions should be displayed.How can i do this. Pls Reply soon.
Hi
I maintained two radiobuttons one for uploading the data record and other generating a smartform in the standard selection screen.
And I have another set of radiobuttons below smartorm radiobutton.when I click on the smart form radiobutton only those suboptions should be displayed.How can i do this. Pls Reply soon.
2009 Apr 13 6:23 AM
Parameters:P_upload radiobutton group rad1 user-command ucomm Default 'X',
p_smart radiobutton group rad1.
* Smartform Options.
Parameters: S_opt1 radiobutton group rad2 user-command ucomm1 modif id 'AA',
S_opt1 radiobutton group rad2 modif id 'AA'.
Initailization. " Initially Buttons will not display
Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 0.
Endif.
Modify screen.
Endloop.
At selection-Screen output.
If p_smart = 'X'. " Button is clicked
Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 1.
Endif.
Modify screen.
Endloop.
Else.
Loop at screen.
If Screen-Group1 = 'AA'.
Screen-active = 0.
Endif.
Modify screen.
Endloop.
Endif.Regards,
Gurpreet
2009 Apr 13 6:24 AM
hi,
You can use Modif id to the two suboptions radiobuttons and then use
at selection-screen output.
loop at screen.
if P_SMART = 'X' and
SCREEN-GROUP1 = 'BL2'.
SCREEN-ACTIVE = '1'.
endif.
modify screen.
endloop.
thanks
2009 Apr 13 6:24 AM
Hi,
u need to modify the screen elements after u perform action on the selection screen.
so,
at selection-screen.
Apply the following process
Loop at Screen.
if rad1 eq 'X'.
if screen-group eq 'GRP1'.
screen-active = '1'.
endif.
else.
if screen-group eq 'GRP1'.
screen-active = '0'.
endif.
endif.
modify screen.
endloop.thanks
ravi
2009 Apr 13 6:55 AM
Hi,
Go through this piece of code as an example...
TABLES: MARA,
EKKO,
VBAK.
PARAMETERS: P1 TYPE C RADIOBUTTON GROUP GRP1 USER-COMMAND USER_SEL DEFAULT 'X',
P2 TYPE C RADIOBUTTON GROUP GRP1,
P3 TYPE C RADIOBUTTON GROUP GRP1.
SELECT-OPTIONS : S_MARA FOR MARA-MATNR MODIF ID MI1,
S_EKKO FOR EKKO-EBELN MODIF ID MI2,
S_VBAK FOR VBAK-VBELN MODIF ID MI3.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI1'.
IF P1 = 'X'.
SCREEN-INVISIBLE = '0'.
SCREEN-ACTIVE = '1'.
ELSE.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI2'.
IF P2 = 'X'.
SCREEN-INVISIBLE = '0'.
SCREEN-ACTIVE = '1'.
ELSE.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN .
ENDIF.
IF SCREEN-GROUP1 = 'MI3'.
IF P3 = 'X'.
SCREEN-INVISIBLE = '0'.
SCREEN-ACTIVE = '1'.
ELSE.
SCREEN-INVISIBLE = '1'.
SCREEN-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.Regards.
2009 Apr 28 11:45 AM
Hi,
Are u still watching this thread? If you have got your answer please mark this thread as 'Answered'.
Regards.
2009 May 05 12:57 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |