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

Passing internal table data with set parameter

Former Member
0 Likes
1,452

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

1 ACCEPTED SOLUTION
Read only

mnicolai_77
Active Participant
0 Likes
770

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

3 REPLIES 3
Read only

mnicolai_77
Active Participant
0 Likes
771

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

Read only

Former Member
0 Likes
770

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

Read only

Former Member
0 Likes
770

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.