Skip to Content

Change the field Logical file to File from PC in MI39

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • 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.
    Add comment
    10|10000 characters needed characters exceeded

    • 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
  • 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.

    Add comment
    10|10000 characters needed characters exceeded