Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

run time path decleration

$
0
0

here i am trying to give fine name dynamically using parameter statment......

the below code is not working......it is not creating the file

 

data : v_file type localfile,

       wa3 type tyva0303,

       it3 type table of tyva0303.

 

 

PARAMETERS : P_FILE TYPE IBIPPARMS-PATH.

 

 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

 

 

 

 

CALL FUNCTION 'F4_FILENAME'

EXPORTING

   PROGRAM_NAME        = SYst-cprog

   DYNPRO_NUMBER       = SYST-DYNNR

IMPORTING

   FILE_NAME           = P_FILE.

 

 

 

 

V_FILE = P_FILE.

 

 

CALL FUNCTION 'GUI_DOWNLOAD'

                       EXPORTING

*                       BIN_FILESIZE                  =

                        FILENAME                      = 'v_file'

                        FILETYPE                      = 'ASC'

*                        APPEND                        = ' '

                        WRITE_FIELD_SEPARATOR         = 'X'

*                        HEADER                        = '00'

*                        TRUNC_TRAILING_BLANKS         = ' '

*                        WRITE_LF                      = 'X'

*                        COL_SELECT                    = ' '

*                        COL_SELECT_MASK               = ' '

*                        DAT_MODE                      = ' '

*                      IMPORTING

*                        FILELENGTH                    =

                       TABLES

                         DATA_TAB                      = it3.

*                      EXCEPTIONS

*                        FILE_WRITE_ERROR              = 1

*                        NO_BATCH                      = 2

*                        GUI_REFUSE_FILETRANSFER       = 3

*                        INVALID_TYPE                  = 4

*                        NO_AUTHORITY                  = 5

*                        UNKNOWN_ERROR                 = 6

*                        HEADER_NOT_ALLOWED            = 7

*                        SEPARATOR_NOT_ALLOWED         = 8

*                        FILESIZE_NOT_ALLOWED          = 9

*                        HEADER_TOO_LONG               = 10

*                        DP_ERROR_CREATE               = 11

*                        DP_ERROR_SEND                 = 12

*                        DP_ERROR_WRITE                = 13

*                        UNKNOWN_DP_ERROR              = 14

*                        ACCESS_DENIED                 = 15

*                        DP_OUT_OF_MEMORY              = 16

*                        DISK_FULL                     = 17

*                        DP_TIMEOUT                    = 18

*                        FILE_NOT_FOUND                = 19

*                        DATAPROVIDER_EXCEPTION        = 20

*                        CONTROL_FLUSH_ERROR           = 21

*                        OTHERS                        = 22

                               .

                     IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

                     ENDIF.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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