‎2008 Mar 04 6:40 AM
Where does the variant get stored ,Is there a way to read the values of a variant saved at slection -screen.
Thanks in advance
‎2008 Mar 04 6:46 AM
‎2008 Mar 04 6:48 AM
Hi,
VARIANTS:
-
This component is used to hold the repetitive values that are needed to be inserted
into the input fields in GUI Screen. This component is useful for the end users.
eg. code:
-
PARAMETERS : A(10), B(10), C(10), D(10), E(10).
SELECTION-SCREEN PUSHBUTTON /10(10) LB1 USER-COMMAND PB1.
SELECTION-SCREEN PUSHBUTTON 60(10) LB2 USER-COMMAND PB2.
SELECTION-SCREEN PUSHBUTTON 40(10) LB3 USER-COMMAND PB3.
INITIALIZATION.
LB1 = 'PRINT'.
LB2 = 'EXIT'.
LB3 = 'CLEAR'.
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'PB1'.
LEAVE TO LIST-PROCESSING.
WRITE 😕 A, B, C, D, E.
WHEN 'PB2'.
LEAVE PROGRAM.
WHEN 'PB3'.
A = ' '.
B = ' '.
C = ' '.
D = ' '.
E = ' '.
ENDCASE.
Regards,
Priya.
‎2008 Mar 04 7:14 AM
hi guys i have got the solutio i could read the variants and its contents from FM RS_VARIANT_CONTENTS
Thanks for the support
‎2008 Mar 04 7:14 AM