SXPG_COMMAND_EXECUTE in background

Hi all.
Does the FM SXPG_COMMAND_EXECUTE can be activated within background mode?
When I activate the abap program that includes the above FM within a periodic job it's not being executed.
Any reason for that?
Thanks in advance,
Rebeka

*--> Activate decryption command
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE' "IN BACKGROUND TASK
      EXPORTING
        COMMANDNAME                   = 'ZFI_GPG'
        ADDITIONAL_PARAMETERS         = LV_PARAMS
        OPERATINGSYSTEM               = 'Windows NT'
        TARGETSYSTEM                  = LV_SERVER
      IMPORTING
        STATUS                        = STATUS
        EXITCODE                      = EXITCODE
      TABLES
        EXEC_PROTOCOL                 = LT_PROT_TAB
      EXCEPTIONS
        NO_PERMISSION                 = 1
        COMMAND_NOT_FOUND             = 2
        PARAMETERS_TOO_LONG           = 3
        SECURITY_RISK                 = 4
        WRONG_CHECK_CALL_INTERFACE    = 5
        PROGRAM_START_ERROR           = 6
        PROGRAM_TERMINATION_ERROR     = 7
        X_ERROR                       = 8
        PARAMETER_EXPECTED            = 9
        TOO_MANY_PARAMETERS           = 10
        ILLEGAL_COMMAND               = 11
        WRONG_ASYNCHRONOUS_PARAMETERS = 12
        CANT_ENQ_TBTCO_ENTRY          = 13
        JOBCOUNT_GENERATION_ERROR     = 14
        OTHERS                        = 15.
When 'ZFI_GPG' is the command from sm69 and lv_params is the additional parameters.
Thanks a lot,
Rebeka

Similar Messages

  • Error BT616 when calling function module SXPG_COMMAND_EXECUTE in background

    Hi All,
    We use function module SXPG_COMMAND_EXECUTE with a custom command we defined in SM69 to move files in unix (mv command).
    The function module call has worked fine for almost a year and recently we have been seeing an error (BT616) in our job lob (SM37) when the program is run in background. We have not been able to reproduce the error in foreground mode and it seems to be occuring only periodically in the background. (The appropriate SAP authorization objects where assigned to the batch job ID and the steps on the batch job.) We are in the process of setting up the trace flag and performing analysis on the trace log via ST11 to help identify the issue.
    After perform analysis on SXPG_COMMAND_EXECUTE, the error is occurring when calling function module SAPXPG_END_XPG for exception 2, system failure, yet function module SAPXPG_END_XPG does not exist. I assume this is a program at the operating system level and is just a signature of the parameters to be passed to the operating system program.
    Below is part of the SAP function module SXPG_COMMAND_EXECUTE that is failing.
    * Now we have to wait for the termination of the external
    * command if the caller wants us to.
        IF TERMINATIONWAIT = 'X'.
          CALL FUNCTION 'SAPXPG_END_XPG'
            DESTINATION DESTINATION
            IMPORTING   EXITSTAT = STATUS
                        EXITCODE = EXITCODE
            TABLES      LOG      = LOG
            EXCEPTIONS  COMMUNICATION_FAILURE = 1 MESSAGE MSG
                        SYSTEM_FAILURE        = 2 MESSAGE MSG.
    I performed a where used on function module SXPG_COMMAND_EXECUTE, and most of SAP programs call the function module with the parameter TERMINATIONWAIT = 'X', so I assume we should pass ‘X’ as well.
    Any ideas on what could be causing this issue?
    Mike Vondran

    I also remember I have this kind of issue, as I have some UNIX script at OS( UNIX) level . The problem was with the ID , as it don’t have proper authorization at OS level ( UNIX ) . Please check this ID authorization. This could be the one of reasons if you’re sure from SAP standpoint.
    Hope this’ll give you some guide line..
    Thanks
    Bye

  • Print PDF file from app.server

    Hello,
    I need to print a PDF file from the application server without any dialog for the user.
    Is it possible? and if so- how?
    Is it also possible to do the same with office file (DOC,XLS)?
    Thanks
    Moshe

    Hi,
    CV150_RPINT_DOC for frontend execution.
    FM SAP_PDF_VIEWER_DEMO- foreground only.
    using fm SXPG_COMMAND_EXECUTE in background.
    thanks & regards.

  • Schedule job in background and ftp the data to non-sap system

    Hello All,
    I have a requirement where in i have to write a program(with selection screen) to download 2 files into application server(frequency: end of each day i.e daily at 23:59), and then in turn i need to put those two files into FTP server using FTP script.
    i guess my flow of the code should be
    1. write the program with selection screen and
    2. get the data from corresponding tables and put it into internal tables.
    3. then i have download the data into application server
    my question is : how i will schedule the job in background to download the data into application server daily? using job_open, job_submit, job_close?
    4. then how i need to move the files from application server to FTP server using FTP SCRIPT?
    Also my doubt is once i execute the program ONLY, the background job is triigred (because i wrote job_open, job_submit and job_close inside my program). then how will i input the data into screen daily and download the data into application server in background automatically???? i am confused ...
    Please help me to solve the above issues
    thanks
    sangeetha

    >
    sangeetha s k wrote:
    How my data in application server will be transfer to another system using above FM? Because i am not passing application server file path in SAP to that FM. Could you please explain ?
    So the path name and the file name are always the same? In that case you could simply create a SM49 entry with hard coded file & path name.
    An easy example for the COPY command under WINDOWS OS:
    Create a command in SM49 called ZCOPY with following data:
    Operating System = Windows NT
    OS command: cmd
    Parameters for os command: /C copy  "C:\tmp\my_file.txt" "z:\tmp\my_file_copy.txt"
    Additional parameters allowed: (leave blank)
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 2  parameters:
         commandname                  = 'ZCOPY'     
         operatingsystem               = 'Windows NT'
    In the case that the file name and the path are not fixed you would set the following in the SM49 definition:
    Additional parameters allowed: X
    In this case you would call SXPG_COMMAND_EXECUTE by filling this 3  parameters:
         commandname                   = 'ZCOPY'     
         operatingsystem                = 'Windows NT'
         additional_parameters       = params  "<== fill in the path and file name during run time into this variable

  • Issue in moving files from data fodler to processed folder in background

    Hi All,
    I am facing one issue in moving files from data fodler to processed folder in case of background execution.
    When i am executing the file in the foreground, i can move the file from Data folder to processed folder. I am using SXPG_COMMAND_EXECUTE FM to move the file from data folder to processed folder.  I can see the file in processed folder once the program is executed.
    But in case of executing the same program in background, it is giving me the error "Failed to move the file to processed folder" in the spool of SM37 and i can see the file still laying in data folder.
    I tried to check other programs which acesses the same folder as the above program, whether they are able to move. They are able to move the file to processed fodler successfully both in foreground and background mode.
    Please help me in resolving this issue.
    Thanks,
    Deepa

    Hi Sanu,
                    Please use teh following code to move the file from source to target folder.
    This is a code showing how to create and use COPY command of UNIX in ABAP
    PARAMETERS:
    Input file path
    p_input TYPE localfile,
    Processed file path
    p_proc TYPE localfile.
    Declare the Types to file data
    TYPES: BEGIN OF L_X_OUTPUT,
    sys(200), " Please note, there are asterisk before and after sys (i.e.sys)
    END OF L_X_OUTPUT.
    * Internal table to store file data
    DATA l_i_output TYPE STANDARD TABLE OF l_x_output WITH HEADER LINE.
    * Variable for the UNIX command
    DATA: l_v_unix_comm(255) TYPE c.
    Copy command of UNIX
    CONCATENATE 'mv' p_input p_proc
    INTO l_v_unix_comm SEPARATED BY space.
    For example the Copy command is stored as below
    cp u2018/data/interfaces/input/input_fileu2019 u2018/data/interfaces/processed/processed_fileu2019
    Examples of UNIX Command *u2022 mv filename1 filename2 --- moves a file (i.e. gives it a different name, or moves it into a *different directory (see below) *u2022 cp filename1 filename2 --- copies a file
    Execute the UNIX Copy command.
    This command will copy the file from input file path to the processed file path
    CALL 'SYSTEM' ID 'COMMAND' FIELD l_v_unix_comm
    ID 'TAB'
    FIELD l_i_output-sys.
    IF sy-subrc eq 0.
    write: 'File is copied successfully using UNIX command in ABAP'.
    ENDIF.

  • Downloading .xml/.tx data to presentation server while running background.

    Hi experts,
    I have a requiremnt to downloading .xml/.txt data to presentation server while running background.
    when i run the program in foreground with use of GUI_upload/ Gui_download its working fine but not working in background.
    i can't use email/data download to database file and than get it  option as data can be huge.
    Can anybody help me out regarding this.
    Thanks
    Anuj jain

    Hi anjui,
    it'snt possible to download a file in background using gui_download.
    You could try to create a Shell Command (transaction SM69) to transfer data in a shared directory.
    You can execute Os Commands using function module SXPG_COMMAND_EXECUTE
    Alessandro

  • Problem in background processing

    Hi all,
       following Program is working fine in foreground, when i am scheduling it is not working, plz find if there is any problem in coding.
    DATA: PATH(256)  TYPE C.
    DATA: DIR_SEC    LIKE EPSF-EPSDIRNAM,
          DIR_PROCESS LIKE EPSF-EPSDIRNAM,
          DIR_INBOUND LIKE EPSF-EPSDIRNAM,
          DIR_ERROR LIKE EPSF-EPSDIRNAM.
    DATA: FILE_MASK  LIKE EPSF-EPSFILNAM VALUE 'TEMP_.'.
    DATA: FILE_INBOUND  LIKE EPSFILI OCCURS 0 WITH HEADER LINE,
          FILE_BACKUP  LIKE EPSFILI OCCURS 0 WITH HEADER LINE.
    DATA: LOC LIKE SXPGCOLIST-PARAMETERS,
          RET_CODE LIKE EXTCMDEXEX-STATUS.
    DATA: BEGIN OF PROT_TAB OCCURS 10.
    INCLUDE STRUCTURE BTCXPM.
    DATA: END OF PROT_TAB.
    *DIR_SEC = '
    172.19.2.249\pos\inbound'.
    read directory
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
      EXPORTING
       DIR_NAME                     = DIR_SEC
         DIR_NAME                     =  '
    172.19.2.249\pos\inbound_pos'
       FILE_MASK                    = FILE_MASK
    IMPORTING
      DIR_NAME                     =
      FILE_COUNTER                 =
      ERROR_COUNTER                =
      TABLES
        DIR_LIST                     = FILE_INBOUND
      EXCEPTIONS
        INVALID_EPS_SUBDIR           = 1
        SAPGPARAM_FAILED             = 2
        BUILD_DIRECTORY_FAILED       = 3
        NO_AUTHORIZATION             = 4
        READ_DIRECTORY_FAILED        = 5
        TOO_MANY_READ_ERRORS         = 6
        EMPTY_DIRECTORY_LIST         = 7
        OTHERS                       = 8.
    IF SY-SUBRC <> 0.
      IF SY-SUBRC = 7.
        MESSAGE S083(TRUST).
        RETURN.
      ELSE.
        MESSAGE E081(TRUST) WITH DIR_SEC.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
      EXPORTING
       DIR_NAME                     = DIR_SEC
         DIR_NAME                     =  '
    172.19.2.249\pos\inbound_archive'
       FILE_MASK                    = FILE_MASK
    IMPORTING
      DIR_NAME                     =
      FILE_COUNTER                 =
      ERROR_COUNTER                =
      TABLES
        DIR_LIST                     = FILE_BACKUP
        EXCEPTIONS
        INVALID_EPS_SUBDIR           = 1
        SAPGPARAM_FAILED             = 2
        BUILD_DIRECTORY_FAILED       = 3
        NO_AUTHORIZATION             = 4
        READ_DIRECTORY_FAILED        = 5
        TOO_MANY_READ_ERRORS         = 6
        EMPTY_DIRECTORY_LIST         = 7
        OTHERS                       = 8.
    IF SY-SUBRC <> 0.
      IF SY-SUBRC = 7.
        MESSAGE S083(TRUST).
        RETURN.
      ELSE.
        MESSAGE E081(TRUST) WITH DIR_SEC.
      ENDIF.
    ENDIF.
      LOOP AT FILE_INBOUND.
      READ TABLE FILE_BACKUP WITH KEY NAME = FILE_INBOUND-NAME.
      IF SY-SUBRC <> 0.
         CONCATENATE '
    172.19.2.249\pos\inbound_process\' FILE_INBOUND-NAME INTO DIR_PROCESS.
         condense DIR_PROCESS.
         CONCATENATE '
    172.19.2.249\pos\inbound_pos\' FILE_INBOUND-NAME INTO DIR_INBOUND.
         condense DIR_INBOUND.
         CONCATENATE DIR_INBOUND DIR_PROCESS INTO LOC separated BY SPACE.
         condense LOC.
          CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
          EXPORTING
          COMMANDNAME = 'ZMOVE'
          OPERATINGSYSTEM = 'Windows NT'
          ADDITIONAL_PARAMETERS = LOC
          STDERR = 'X'
          STDOUT = 'X'
         TARGETSYSTEM = DB_HOST
         DESTINATION = XPG_DEST
          TERMINATIONWAIT = 'X'
          TRACE = ' '
          IMPORTING
          STATUS = RET_CODE
          TABLES
          EXEC_PROTOCOL = PROT_TAB
          EXCEPTIONS
          COMMAND_NOT_FOUND = 01
          NO_PERMISSION = 02
          PARAMETERS_TOO_LONG = 03
          PARAMETER_EXPECTED = 04
          PROGRAM_START_ERROR = 05
          PROGRAM_TERMINATION_ERROR = 06
          SECURITY_RISK = 07
          TOO_MANY_PARAMETERS = 08
          WRONG_CHECK_CALL_INTERFACE = 09
          X_ERROR = 10
          OTHERS = 11.
          write 'sai'.
          ELSE.
         CONCATENATE '
    172.19.2.249\pos\inbound_pos\' FILE_INBOUND-NAME INTO DIR_INBOUND.
         condense DIR_INBOUND.
         CONCATENATE '
    172.19.2.249\pos\inbound_errorfile\' FILE_INBOUND-NAME INTO DIR_ERROR.
         condense DIR_PROCESS.
         CONCATENATE DIR_INBOUND DIR_ERROR INTO LOC separated BY SPACE.
         condense LOC.
         CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
          EXPORTING
          COMMANDNAME = 'ZMOVE'
          OPERATINGSYSTEM = 'Windows NT'
          ADDITIONAL_PARAMETERS = LOC
          STDERR = 'X'
          STDOUT = 'X'
         TARGETSYSTEM = DB_HOST
         DESTINATION = XPG_DEST
          TERMINATIONWAIT = 'X'
          TRACE = ' '
          IMPORTING
          STATUS = RET_CODE
          TABLES
          EXEC_PROTOCOL = PROT_TAB
          EXCEPTIONS
          COMMAND_NOT_FOUND = 01
          NO_PERMISSION = 02
          PARAMETERS_TOO_LONG = 03
          PARAMETER_EXPECTED = 04
          PROGRAM_START_ERROR = 05
          PROGRAM_TERMINATION_ERROR = 06
          SECURITY_RISK = 07
          TOO_MANY_PARAMETERS = 08
          WRONG_CHECK_CALL_INTERFACE = 09
          X_ERROR = 10
          OTHERS = 11.
          ENDIF.
          WRITE 'SAI'.
         endloop.

    the only thing I can think of is that your function modules don't work in the Background ? Have you checked them ? Lot of FM's like GUI_DOWNLOAD etc don't work in the background. Perhaps your FM's function similarly ?

  • SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error:

    Hi,
    Our Production server is in High Availability on Unix ( DB node active & CI Node active).
    When I am executing the initialize tape or triggering the backup from DB13 in our production we are getting the below error.
    SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error:
    Even in DB12 when I click on the detailed log of any backup log, it is giving the same error.
    In System log we got the below error.
    Error 1003 when executing external command brtools on
    (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:)
    Error 1003 when executing external command brtools on
    (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:)
    RFC SAPXPG_DBDEST_<HOSTNAME>  connection test giving the below error
    Logon Connection Error
    Error Details Error when opening an RFC connection
    Error Details ERROR: timeout during allocate
    Error Details LOCATION: SAP-Gateway on host ProdApp / sapgw00
    Error Details DETAIL: no connect of TP sapxpg from host PROD-DB-SRV
    after 20 sec
    Error Details COMPONENT: SAP-Gateway
    Error Details COUNTER: 869
    Error Details MODULE: gwr3cpic.c
    Error Details LINE: 2007
    Error Details RETURN CODE: 242
    Error Details SUBRC: 0
    Error Details RELEASE: 700
    Error Details TIME: Tue Mar 30 09:07:51 2010
    Error Details VERSION: 2
    I have created .rhosts and .rshosts files in both DB & CI nodes under path /home/trpadm as below
    CI Node
    ProdApp:trpadm 27> cat .rhosts
    PROD-DB-SRV
    PROD-APP-SRV
    ProdApp:trpadm 28> cat .rshosts
    PROD-DB-SRV trpadm
    PROD-APP-SRV trpadm
    trpadm
    DB Node
    ProdDB:trpadm 2> cat .rhosts
    PROD-DB-SRV
    PROD-APP-SRV
    ProdDB:trpadm 3> cat .rshosts
    PROD-DB-SRV trpadm
    PROD-APP-SRV trpadm
    trpadm
    But below command is giving error
    ProdApp:trpadm 24> rsh PROD-DB-SRV -l trpadm sapxpg
    rshd: 0826-813 Permission is denied.
    rsh is happening in both the nodes.
    In CI node when iam doing rsh to DB node it is connecting. Pleas find the below logs
    ProdApp:trpadm 17> rsh PROD-DB-SRV
    trpadm's Password:
    Welcome to AIX Version
    6.1! *
    Please see the README file in /usr/lpp/bos for information pertinent
    to *
    this release of the AIX Operating
    System. *
    Last login: Wed Mar 31 11:36:53 IST 2010 on /dev/pts/1 from
    Prod_App_boot_1
    ProdDB:trpadm 1>
    In DB node when iam doing rsh to CI node it is connecting. Pleas find the below logs
    ProdDB:trpadm 1> rsh PROD-APP-SRV
    trpadm's Password:
    Welcome to AIX Version
    6.1! *
    Please see the README file in /usr/lpp/bos for information pertinent
    to *
    this release of the AIX Operating
    System. *
    Last unsuccessful login: Tue Mar 23 16:05:26 IST 2010 on ftp
    from ::ffff:10.0.1.39
    Last login: Wed Mar 31 11:36:30 IST 2010 on /dev/pts/1 from
    Prod_DB_boot_1
    ProdApp:trpadm 1>
    the below entries are already maintained in /etc/services file on both the nodes.
    sapgw30 3330/tcp
    sapdp30 3230/tcp       
    Please look into this and suggest us.

    Hi,
    I have cross checked every thing, it is ok.
    Praveen,
    As per your suggest, i have changed the background server in DB13. It didnot help us.
    Problem is RFC are giving errors.
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host <host> / sapgw00
    Error Details     DETAIL: no connect of TP sapxpg from host <host> after 20 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 4853
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 2007
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 700
    Error Details     TIME: Mon Apr  5 09:18:49 2010
    Error Details     VERSION: 2
    When i am doing rsh from one node to another node it is asking for password, but it should not ask.
    and also the below error for sapxpg
    rsh <hostname> -l <sid>adm sapxpg
    rshd: 0826-813 Permission is denied.
    i have created .rhosts in both the nodes and maintained the values for hostname with <sid>adm user correctly.
    Please look into this and suggest.
    Regards,
    Raj

  • SXPG_COMMAND_EXECUTE Can't exec external program (No such file or directory

    Hi Experts,
    I need to launch or terminate an external application (i.e. command prompt, notepad, etc.) in background job by using FM SXPG_COMMAND_EXECUTE. However, I am unable to proceed because of the following error occured after executing the command in SM69.
    Can't exec external program (No such file or directory)
    External program terminated with exit code 1
    I was using the following sample code. Can someone tell me what might be the cause of the problem?
    DATA: lv_status TYPE extcmdexex-status,
          lt_output TYPE TABLE OF btcxpm,
          lv_opsys  TYPE sy-opsys.
    lv_opsys = 'WINDOWS NT'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                   = 'ZIEXPLORE'
        additional_parameters         = '/c'
        operatingsystem               = lv_opsys
      IMPORTING
        status                        = lv_status
      TABLES
        exec_protocol                 = lt_output
      EXCEPTIONS
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        OTHERS                        = 15.
    ZIEXPLORE command
    Operating system command: cmd
    Parameters for operating system command: taskkill /f /im iexplore.exe
    Thanks and Regards,
    Louie

    Hi Louie,
    I am not able to assume the reason of the problem, If you say that its not getting executed in SM49 then the problem lies there.
    So I am providing you a link which might be helpful, just go through it and cross check. There is a parameter called "trace" in the fm mentioned.
    Secton Microsoft Windows NT - [Prerequisites for Running External Commands and External Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7fbb505211d189550000e829fbbd/content.htm]
    [Analyzing Problems with External Commands and Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a80c4505211d189550000e829fbbd/content.htm]
    May be you can post this question in [SAP AS General|SAP NetWeaver Application Server; also.

  • FM ''SXPG_COMMAND_EXECUTE"

    Hi all,
      Iam using the FM ''SXPG_COMMAND_EXECUTE" to execute a .exe file in the application server which is a Microsoft Windows Server R2 in background. Can you please let me know the steps to do this process.
    I guess a command line to be created in SM69. Can anyone elaborate on it.
    Thanks,
    Raj.

    hi,
    Refer to this link...
    http://www.sap-img.com/basis/basis-faq.htm
    How to add OS command in SM69?
    http://searchsap.techtarget.com/generic/0,295582,sid21_gci1156933,00.html

  • Read the names of the files in ABAP program that runs in the background

    Hello,
    I have a program that uploads information from file on application server.
    What I can't figure still is how to get the <b>names </b>of the files that are in <b>specific directory</b>.
    There is an other application that will post those files into this directory. I wont to get file names and file types from this directory and put it into an internal table.
    File names are changing based on date and version.
    Please keep in mind that the program runs in the background, (presentation server is not included in the process)
    Thanks in advance,
    Milan

    Hi,
    one epossible solution that i have used is:
    1. Create an operating system comand with transaction SM69
    command  OS                              OS-command  Parameter
    ZDIR         Windows NT Customer  cmd.exe          /C dir &
    2. Call Functionmodul
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          COMMANDNAME                         = 'ZDIR'
          ADDITIONAL_PARAMETERS               = P_PARA1
      OPERATINGSYSTEM                     = SY-OPSYS
      TARGETSYSTEM                        = SY-HOST
      DESTINATION                         =
      STDOUT                              = 'X'
      STDERR                              = 'X'
      TERMINATIONWAIT                     = 'X'
      TRACE                               =
       IMPORTING
          STATUS                              = G_OK
      EXITCODE                            =
        TABLES
          EXEC_PROTOCOL                       = GTBL_PROTO
       EXCEPTIONS
         NO_PERMISSION                       = 1
         COMMAND_NOT_FOUND                   = 2
         PARAMETERS_TOO_LONG                 = 3
         SECURITY_RISK                       = 4
         WRONG_CHECK_CALL_INTERFACE          = 5
         PROGRAM_START_ERROR                 = 6
         PROGRAM_TERMINATION_ERROR           = 7
         X_ERROR                             = 8
         PARAMETER_EXPECTED                  = 9
         TOO_MANY_PARAMETERS                 = 10
         ILLEGAL_COMMAND                     = 11
         WRONG_ASYNCHRONOUS_PARAMETERS       = 12
         CANT_ENQ_TBTCO_ENTRY                = 13
         JOBCOUNT_GENERATION_ERROR           = 14
         OTHERS                              = 15
    3. Loop at GTBL_PROTO and make your coding with the filenames
    Hope this helps
    Regards
    Bernd

  • DB13 SXPG_COMMAND_EXECUTE failed for backup reason

    Dear Gurus,
    I am facing error during DB13 since passed few days during backup and update statistics .SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
    cancelled after system exception ERROR_MESSAGE..
    Please do need full.
    Thanks,
    Regards,
    Snehal Patel

    Hi,
    Do you have Standalone gateway on your server ?
    You can try Go to the db13 -> goto -> backend configuration
    And change background or application server to the database server (where DB physically resides)
    If you Database is on another host then SAPXPG_DBDEST_<dbhost> or <virtual_dbhost> (a TCP/IP connection) will play an important role for executing SAPXPG command.
    1) Install a Gateway instance on the DB server
    2) Mention the Gateway hostname and service ( sapgwxx) in the RFC destination SAPXPG_DBDEST_<DBHOST> using SM59.
    Also check the permission of the SAPXPG file.
    SAP Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13 - Point 8

  • Process a File by WS_EXECUTE in background

    Hi Experts,
    I have one .EXE file which capture data from Non-SAP system and place it into one text (.txt) file.
    Now I am executing that file by WS_EXECUTE FM like this way;
    CALL FUNCTION 'WS_EXECUTE'
          EXPORTING
           DOCUMENT          = ' '
           CD                        = ' '
           COMMANDLINE    =
           INFORM                = ' '
            PROGRAM             = 'C:\fetch.exe'
           STAT                    = ' '
           WINID                    = ' '
           OSMAC_SCRIPT   = ' '
           OSMAC_CREATOR    = ' '
           WIN16_EXT                = ' '
           EXEC_RC                   = ' '
         IMPORTING
           RBUFF                        =
         EXCEPTIONS
            FRONTEND_ERROR    = 1
            NO_BATCH                 = 2
            PROG_NOT_FOUND    = 3
            ILLEGAL_OPTION        = 4
            GUI_REFUSE_EXECUTE       = 5
            OTHERS                   = 6
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    So Is it possible to Execute this file in background ???
    Regards & Thanks,
    Nishit.

    If the file is on the presentation server i dont think there is any way to exeute it in the background. If you place it in the application server or through FTP, you may try using SXPG_COMMAND_EXECUTE
    Vikranth

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • Closing the Background report engine

    I use a menu that can call several reports, and when they open, the Reports Background Engine runs. I understand why it is useful to keep this open while the main app is on, but it does not close out automatically when the app closes. Is there a command that will do this?
    Thanks,
    Sara

    I Guess,
    Add_Parameter(pl_id, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'YES') will do (pl_id is the parameter list that you must have created to run each individual report)

Maybe you are looking for

  • Price Difference at the time of GR

    Hi All, We have an Item with Price Control as "S" the current price for that Item is 4961 and the time of Goods Issue  system is picking price 5827. At the time of GR system post following entry Material Account Dr 5827 IR account Cr 4961 Purchase Va

  • Cannot re-install windows 7

    bought a htpc two weeks ago which have runned without any issues until yesterday when i was going to get it out from "sleep mode" i could get and picture via HDMI ... so after restarting the computer liger 100 times i finally got picture but then i c

  • HT5176 Is it possible to change default spellings in IOS dictation?

    I want to spell Cathleen with a "C" not the default "K"athleen.

  • Itunes sees my ipod but won't allow me to manage its contents

    my fully-charged ipod is connected and itunes sees it, but everything on it is grayed out and can't be touched. i can even sync and have a new podcast move over to the ipod, but once it gets there it's grayed out and can't be touched. i can't play it

  • My screen is backwards!!!!

    If anyone has had this problem PLEASE let me know! Just about a year after I got my IPod mini (of course...) out of no where a black bar started scrolling down the screen...nothing showed up on the screen except that bar. I reset it and it seemed to