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: 

BDC file doubt

Former Member
0 Kudos

hi friends,

plz tell me wat is the functionality of this code and wat should be the input

1)SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.

PARAMETERS: p_ifile LIKE dynpread-fieldname OBLIGATORY, " Input file

p_efile LIKE dynpread-fieldname OBLIGATORY. " Error file

SELECTION-SCREEN END OF BLOCK blk2.

2)DATA : fm_file LIKE ibipparms-path .

3)DATA : v_file LIKE rlgrap-filename.

4)DATA : v_efile LIKE rlgrap-filename.

5)i have a doubt

is code SAVE_DOCUMENT is must while uploading from dat file to sap table

thank's*regards

soorya

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

1)SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.

PARAMETERS: p_ifile LIKE dynpread-fieldname OBLIGATORY, " Input file

p_efile LIKE dynpread-fieldname OBLIGATORY. " Error file

SELECTION-SCREEN END OF BLOCK blk2.

Thie above part is the selection screen design which accpets the file path for the input file and also accepts the file path for the error file to be placed.

2)DATA : fm_file LIKE ibipparms-path .

3)DATA : v_file LIKE rlgrap-filename.

4)DATA : v_efile LIKE rlgrap-filename

these are temporary variables for holding file names..

there is no such statement save_document in sap.

Former Member
0 Kudos

hi soorya,

1. we have to give two files on selection screen i.e, Input file <b>p_ifile</b> and Error File <b>p_efile</b>

Former Member
0 Kudos

HI SOORYA,

1)SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.

PARAMETERS: p_ifile LIKE dynpread-fieldname OBLIGATORY, " Input file

p_efile LIKE dynpread-fieldname OBLIGATORY. " Error file

SELECTION-SCREEN END OF BLOCK blk2.

It is a selection screen where u give filepath for the input file and also for the error file.

2)DATA : fm_file LIKE ibipparms-path .

its data transfer parameter for a local file to be uploaded or downloaded

3)DATA : v_file LIKE rlgrap-filename.

& 4)DATA : v_efile LIKE rlgrap-filename.

--Local filename for uploading or downloading

hope this helps,

priya.