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: 

about rlgrap

Former Member
0 Kudos

hi,

some body pls tell me what is rlgrap ? where it is used ? pls tell me in detail with example .

pls reply

1 ACCEPTED SOLUTION

former_member214288
Participant
0 Kudos

Hi,

RLGRAP is a structure which can be used for defining File related Screen fields. For example, if you want to provide a selection screen with a parameter for file path for upload or download - following statement can be used:

parameters: pa_file TYPE RLGRAP-FILENAME.

Reward and encourage helpful answers.

Regards,

Ram

4 REPLIES 4

former_member214288
Participant
0 Kudos

Hi,

RLGRAP is a structure which can be used for defining File related Screen fields. For example, if you want to provide a selection screen with a parameter for file path for upload or download - following statement can be used:

parameters: pa_file TYPE RLGRAP-FILENAME.

Reward and encourage helpful answers.

Regards,

Ram

Former Member
0 Kudos

RLGRAP is the structure for File related Function module,

when you look at WS_UPLOAD,UPLOAD,WS_DOWNLOAD,DOWNLOAD FM's ,they use RLGRAP structure.

Thanks

Seshu

Former Member
0 Kudos

Hi,

RLGRAP is a structure that contains the fields realated to a File e.g. File name, File Type etc.

Generally, RLGRAP-FILENAME is used to define an input field on the screen.

e.g.

Report ZTEST.

Parameters : P_FILE LIKE RLGRAP-FILENAME.

This will create an input box where u can enter a file location like C:\Himanshu\Test.xls.

Then using this location u can either upload/download the file.

Regards,

Himanshu

mohammed_moqeeth
Active Participant
0 Kudos

Hello Jamshad,

RLGRAP is a structure which is used by many standard Function modules which are related to File uploads and downloads. And RLGRAP-FILENAME is of type C length 132 characters.

For some standard Function modules their parameter to accept File name will be of this type, when we are using Funtion modules the types of the Import and Export parameters should be type compatible, i.e their type and length should be same.

<b>Example:

PARAMETERS: file TYPE rlgrap-filename DEFAULT 'data_file.txt'.</b>

Reward points for useful answers.

Regards,

Moqeeth.