Application Development and Automation 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: 
Read only

variant-Program

Former Member
0 Likes
541

Where does the variant get stored ,Is there a way to read the values of a variant saved at slection -screen.

Thanks in advance

4 REPLIES 4
Read only

Former Member
0 Likes
510

Please check Table: TVARV

Read only

Former Member
0 Likes
510

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.

Read only

0 Likes
510

hi guys i have got the solutio i could read the variants and its contents from FM RS_VARIANT_CONTENTS

Thanks for the support

Read only

Former Member
0 Likes
510

Answered