cancel
Showing results for 
Search instead for 
Did you mean: 

naming convension for a flat file

Former Member
0 Kudos

Hi all,

I am generating a flat file by using fm 'gui_download'.The naming convention of that flat file should be like this "al_ponumber_polineitem_labelid.pj".

the requirement is "When the po is generated the flat file should generate and the flat file naming convension should be "al_ponumber_polineitem_labelid.pj".

Need help very urgent,

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Chandra!

Looks like you have an own file for each line and label (if there are several labels per line).

So you should have something like this:

data filename type string.
loop at ekko.
loop at ekpo where ebeln = ekko-ebeln.
loop at ekpo_label where ebeln = ekko-ebeln
                    and  ebelp = ekpo-ebelp.
concatenate 'AL' ekko-ebeln ekpo-ebelp ekpo_label-id
            into filename separated by '_'.
concatenate filename '.pj' into filename.
* Rest of output definition
* GUI_DOWNLOAD
endloop.
endloop.

Regards,

Christian

RenaldWittwer
Contributor
0 Kudos

Hi,

You should post this question in the ABAP-forum, this is the better place.

Good luck!

Best regards

Renald