cancel
Showing results for 
Search instead for 
Did you mean: 

linking smart form

Former Member
0 Kudos

Hi all,

I have a requirement of creating a custom transaction where i will have 4 fields for input and one drill down or list box which contains A,B and C.

A for smartform1

B for smartform2

C for smartform3

Can anybody help me how to link the driver programs to A,B, and C.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi sandeep,

for creating list box,

go with the function module: VRM_SET_VALUES for this you need to declare

TYPE-POOL: VRM.

using above FM u can create a drop down.

after that use CASE or IF condition for calling a perticular SMARTFORM.

hope this will help you...

murali...

Former Member
0 Kudos

hi try the following code:

TYPE-POOLS: VRM.

DATA: NAME TYPE VRM_ID,

LIST TYPE VRM_VALUES,

VALUE LIKE LINE OF LIST.

PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.

NAME = 'PS_PARM'.

VALUE-KEY = '1'.

VALUE-TEXT = 'LINE 1'.

APPEND VALUE TO LIST. VALUE-KEY = '2'.

VALUE-TEXT = 'LINE 2'.

APPEND VALUE TO LIST.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name

values = list

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

START-OF-SELECTION.

*WRITE: / 'PARAMETER:', PS_PARM.

loop at list into value.

if value-key = '1'.

call of smartform1.

endif.

if value-key = '2'.

call of smartform2.

endif.

endloop.

Former Member
0 Kudos

hi,

3 different Smartforms might be called based on some condition (just like language or country).

write a case statement on that condition, when ever that condition satisfies that particular smartform will get executed..

Regards,

sujatha.

Former Member
0 Kudos

thx for ur answer but myproblem is for the list box where i have A B and C

i need the logic for list box......

Former Member
0 Kudos

hi,

u can do this using the FM <b>VRM_SET_VALUES</b>

Just go through the link below.

Reward points if helpful.

regards,

sujatha.

Former Member
0 Kudos

HI,

you can use one driver prog also

depending on the selecton of the smartform you can call the particular

perform where the smart form will be called

for eg

take three performs

case field.

when 'A'.

perform call_sfA.

when 'B'.

perform call_sfB.

when 'C'.

perform call_sfc.

endcase.

here in performs get the whole logic for the smartfoms

or

else you can create the three driver progs also

call them by using

sumbit statement

for this you have to create three progs

it is waste of doing ...

better one is the first one...

regards,

Venkatesh