Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

File in not upload in ae11

$
0
0

hi,

 

             i try to upload file from presentation server to application server. i tried one code. the code is executing . but that file is not coming in ae11 in application server.  i ll post my code here. if any mistake plz suggest.

 

 

PARAMETERS:P1_FILE TYPE SAPB-sappfad DEFAULT SPACE.

 

  parameters: p_file type sapb-sappfad DEFAULT 'D:\usr\sap\EC6\DVEBMGS54\data\demo.txt' OBLIGATORY.

 

    data:g_file type ibipparms-path.

*data:IT TYPE TABLE OF BAPIEBANC,

*      WA TYPE  BAPIEBANC.

 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P1_FILE.

   CALL FUNCTION 'F4_FILENAME'

    EXPORTING

*     PROGRAM_NAME        = SYST-CPROG

*     DYNPRO_NUMBER       = SYST-DYNNR

      FIELD_NAME          = 'P1_FILE'

    IMPORTING

      FILE_NAME           = g_file

             .

   P1_FILE = G_FILE.

   CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'

     EXPORTING

       path             = p_file

      TARGETPATH       = 'P1_FILE'

    EXCEPTIONS

      ERROR_FILE       = 1

      OTHERS           = 2

             .

   IF sy-subrc <> 0.

* Implement suitable error handling here

     MESSAGE 'UPLOAD SUCCESS' TYPE 'I'.

   ENDIF.





Regards,

gopi


Viewing all articles
Browse latest Browse all 8914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>