on 10-23-2007 6:51 AM
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.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.