Application Development 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: 

Function Module

Former Member
0 Kudos

Is there a function module to which we can export the program name and import the select options or selection criteria for it?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use FM PRINT_SELECTIONS

TYPES: BEGIN OF t_varinfo,

flag TYPE c,

olength TYPE x,

line LIKE raldb-infoline,

END OF t_varinfo.

DATA: it_varinfo TYPE t_varinfo OCCURS 0 WITH HEADER LINE.

*-- Get selection screen options

CALL FUNCTION 'PRINT_SELECTIONS'

EXPORTING

mode = ' '

rname = sy-cprog

rvariante = ''

TABLES

infotab = it_varinfo.

Award points iff it helps!

Regards,

GSR.

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

Try RPY_PROGRAM_READ.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Hi

Are you looking for FM: <b>RS_REPORTSELECTIONS_INFO</b>???

Kind Regards

Eswar

Former Member
0 Kudos

Hi,

Use FM PRINT_SELECTIONS

TYPES: BEGIN OF t_varinfo,

flag TYPE c,

olength TYPE x,

line LIKE raldb-infoline,

END OF t_varinfo.

DATA: it_varinfo TYPE t_varinfo OCCURS 0 WITH HEADER LINE.

*-- Get selection screen options

CALL FUNCTION 'PRINT_SELECTIONS'

EXPORTING

mode = ' '

rname = sy-cprog

rvariante = ''

TABLES

infotab = it_varinfo.

Award points iff it helps!

Regards,

GSR.