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

Selection screen needs to be populated

Former Member
0 Likes
1,132

Hello Friends,

My requirement is :

I need to create a report for inbound interface.

on execution of the report in thr foreground mode, it is required that all the files that are present on the application layer for the default path, should be displayed on the selection screen.

Function module RZL_READ_DIR_LOCAL can be used to get the details of the files available.

But i am unable to display those on the selection screen.

Kindly help me to achieve the functionality.

Thanks & Regards

Dheeraj Bulchandani

Hello Friends,

My requirement is :

I need to create a report for inbound interface.

on execution of the report in thr foreground mode, it is required that all the files that are present on the application layer for the default path, should be displayed on the selection screen.

Function module RZL_READ_DIR_LOCAL can be used to get the details of the files available.

But i am unable to display those on the selection screen.

Kindly help me to achieve the functionality.

Thanks & Regards

Dheeraj Bulchandani

7 REPLIES 7
Read only

Former Member
0 Likes
1,087

Do you want it on F4 on the selection screen?

Read only

Former Member
0 Likes
1,087

Actually, it sounds like a simple table control would be the best option.

Rob

Read only

former_member227810
Participant
0 Likes
1,087

This may helpful to you

parameters : p_file type rlgrap-filename,

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

CLEAR P_FILE.

DATA: PATH_NAME(151) TYPE C.

SUBMIT RS_GET_F4_DIR_FROM_APPLSERV AND RETURN.

IMPORT PATH_NAME TO PATH_NAME FROM MEMORY ID 'PATH_NAME_SDL' .

P_FILE = PATH_NAME.

Edited by: sadeqAhmed on Feb 1, 2012 6:14 AM

Edited by: sadeqAhmed on Feb 1, 2012 6:15 AM

Read only

Former Member
0 Likes
1,087

My req is to create a selection screen as follows:

File Path: -


Files available on file path: -


-


-


In need to select the files available on the application layer and populate on the selection screen in the files available area..

Read only

0 Likes
1,087

Like I said - module pool.

Rob

Read only

0 Likes
1,087

Hi Dheer,

Are you able to get the list of files on a particular path?

if yes then you can use a parameter as a listbox to display all your files and select any one, use this approach if you dont want to use module pool, but said this, i would suggest that you should go as per Rob's suggestion for a module pool, if not then i would say listbox would be your next best bet.

Regards,

Kartik

Read only

Former Member
0 Likes
1,087

Thanks Kartik