Skip to Content

Change the field Logical file to File from PC in MI39

Sep 27, 2017 at 06:22 AM


avatar image
Former Member

I want to change the field "Name of logical file" To file from PC.

Basically I want to make a Copy of transaction MI39 in which I want to upload file from my PC to this field,and rest of transaction will work as it is, But Since I am new to ABAP, I do not know the exact way to proceed.

Kindly Suggest if there is any way in which this can be achieved.

Any help regarding this field would be appreciable.

erg.png (43.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Sep 27, 2017 at 07:16 AM

Don't build a copy, it's not usually a good idea, build a simple wrapper report

  • Create (copy) a new selection-screen just changing the logical file parameter to a filename parameter.
  • Process the F4 with method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG.
  • Upload data with method GUI_UPLOAD
  • Get physical name from logical name with FM FILE_GET_NAME
  • Copy data with DATASET statements to AS
  • SUBMIT the report RM07II39 behind MI39 passing the logical file name.
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for quick reply Raymond.

But I could not understand last two steps of your answer, please sir can you elaborate as I am a fresher to ABAP.


Look on your course and online help for:

  • Dataset statements allows you to write data in a file on the Application File Server (where the standard transaction expects to find the file, look for the transaction default value of logical name in transaction FILE)
  • SUBMIT execute a report, just use the SUBMIT pattern in Abap Editor and pass the report name RM07II39 you can find with transaction SE93
Jürgen L
Sep 27, 2017 at 09:13 AM

Logical file names are defined in customizing (transaction FILE), you only make use of a defined one. You can't enter what you want at this place.

10 |10000 characters needed characters left characters exceeded