Skip to Content
avatar image
Former Member

ITS file Upload / Download

Hello,

I have developed a file upload / download interface on ITS (Templates are built using Interent Services - Classic HTML in SE80). The problem is interemediary screens appear during file upload / download. I have the ~GENERATEDYNPRO paremeter value = 1 , meaning if my IAC does not have the relevant screen, an equivalent webgui screen would be generated. My questions are:

1. If I use mime-download, would I be able to select the file from the workstation? <b>is there any macro for file selector from workstation?</b>

2. I'm ok with the intermediary screen, <b>but is there an option not to show the menu bar, like open session etc.</b>

I have ~DONTSHOWACCESSIBILITYONLOGIN = 1, so it does not show the transaction command box.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 13, 2005 at 07:11 AM

    The mime-download call automatically associate program to the file extension. If you use for example "application/execel" the system open Microsoft Excel and display the data. After this, the user select to save the file with file name on the workstatio.

    Gianluca

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I tried the MIME-UPLOAD example but I can't get it to work. I use the Browse button to select a file from my workstation. I then click the File Upload button. In the corresponding abap I issue command mime-info but table mime_info does not contain any data.

  • avatar image
    Former Member
    May 23, 2005 at 06:35 PM

    Hi Michael,

    Will you please tell me how to prepare this INternal Table (Tab separated and with Carriage return). I tried it..but it is not working Fine..

    I would appreciate if you can help me out.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      > Hi Michael,

      > Will you please tell me how to prepare

      > ow to prepare this INternal Table (Tab separated and

      > with Carriage return). I tried it..but it is not

      > working Fine..

      > I would appreciate if you can help me out.

      hi s t ,

      sure, I will try.

      My w_output structure simply looks like this:

      DATA: BEGIN OF w_output OCCURS 0,
              string(300),
            END OF w_output.

      My concatenate looks like this for the Excel header line:

                  CONCATENATE 'Schedule'
                              'Material Number'
                              'Description'
                              'Plant'
                              'Receipt'
                              'Schedule Date'
                         INTO w_output-string
                         SEPARATED BY con_tab.
      

      (it looks similar for the detail line, obviously)

      after the concatenate, there are some more string manipulations to be done:

                PERFORM fill_spacer.
      
                CONCATENATE w_output-string con_lf INTO w_output-string.
      
                DO.
                  REPLACE '|' WITH ' ' INTO w_output-string.
                  IF sy-subrc <> 0.
                    EXIT.
                  ENDIF.
                ENDDO.
      
                APPEND w_output.
      

      I use the '|' pipe symbol to force spaces between the texts, by the way.

      Lastly, my fill_spacer subroutine looks like this:

      FORM fill_spacer.
      
        len = strlen( w_output-string ).
        i   = len + 1.
      
        DO.
          IF i = 299.
            EXIT.
          ENDIF.
          w_output-string+i(1) = '|'.
          ADD 1 TO i.
        ENDDO.
      
      ENDFORM.                    " fill_spacer
      

      This prevents the texts from being squashed up.

      Now, one more thing: it took me a while to find the correct codes for the tab and carriage return to make Excel start new lines - I'll save you some time. Here they are:

      CONSTANTS: con_tab TYPE x VALUE '09',
                 con_lf TYPE x VALUE '0D'.
      

      use "con_tab" for a column seperator and use "con_lf" for a line feed.

      Hope this helps!

      Kind regards,

      Michael

      P.S.: Please don't forget to reward points if this is what you are looking for! Ta.