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: 

Change the field Logical file to File from PC in MI39

former_member524141
Participant
0 Kudos

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.

4 REPLIES 4

raymond_giuseppi
Active Contributor

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.

0 Kudos

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.

0 Kudos

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

JL23
Active Contributor
0 Kudos

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.