‎2008 Jan 10 4:28 PM
HI,
I have a ALV report...from the report I am calling a standard transaction using a push button in the application tool bar. I am calling FD15 trasaction. FD15 has a selection screen. I have to populate the data which i am having to the selection screen before calling(Pre population) when I press the button.
I want to populate a select option also which is company code with the data i am having in the internal table. How to pass the data to the standard transaction selection screen.
KIshore
‎2008 Jan 10 4:34 PM
hi,
try to use submit command for example
SUBMT RFBIDE10 with UE_BUKRS IN rng_bukrs AND RETURN.
RFBIDE10 is the program of FD15 transaction.
Bye.
Marco
Edited by: nicolai marco on Jan 10, 2008 5:34 PM
‎2008 Jan 10 4:34 PM
hi,
try to use submit command for example
SUBMT RFBIDE10 with UE_BUKRS IN rng_bukrs AND RETURN.
RFBIDE10 is the program of FD15 transaction.
Bye.
Marco
Edited by: nicolai marco on Jan 10, 2008 5:34 PM
‎2008 Jan 10 4:35 PM
Hello Kishore,
Do like this.
data: G_CALLBACK_USER_COMMAND TYPE SLIS_FORMNAME,
G_CALLBACK_USER_COMMAND = 'F_ALV_USER_COMMAND'.
*--- ALV List Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = G_PROGNAME
I_CALLBACK_USER_COMMAND = G_CALLBACK_USER_COMMAND
IT_FIELDCAT = G_T_FIELDCAT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = G_T_OUTTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM F_ALV_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
*--- Hotspot selektion
CASE RS_SELFIELD-FIELDNAME.
WHEN 'BUKRS'.
SET PARAMETER ID 'BUK' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'FD15' AND SKIP FIRST SCREEN.
ENDFORM
Cheers,
Vasanth
‎2008 Jan 10 4:41 PM
Hi ,
Try using this command
EXPORT DYNPRO h f e m ID id.
Exports the screen specified in the field id. The screen information is taken from the structure h (screen header, structure D020S) and the internal tables f (field list, structure D021S), e (flow logic, structure D022S) and m (matchcode information, structure D023S).
Regards,
Mohan.