Returncode  in gui_exec

Dear All,
          Can u plz list all the retuncodes return by the FM gui_exec with there details for example:
31: File extension is not assigned to a program.
2: Unable to find file or component.
with regards
Gaurav Lashkari

maybe the object : CL_GUI_FRONTEND_SERVICES  module EXECUTE.
Rgd
Fred

Similar Messages

  • Use unc path in gui_exec function

    Hi,
    is it possible to use an UNC path in the GUI_EXEC function?
    For example:
      call function 'GUI_EXEC'
         exporting
           command = '\\192.168.8.43\myfolder\myexec.bat'
         importing
           returncode = i_returncode.
    Thanks in advance.
    Regards.

    Calling an external program
    You want to call a program on your PC from an ABAP program ? try this function :
    *This example calls the dos prompt DATA:
    i_returncode TYPE i.
    CALL FUNCTION 'GUI_EXEC'          
        EXPORTING
            command = 'CMD' <<==-- CMD calls the DOS prompt but you can put any program here
    PARAMETER = 'test'
        IMPORTING
            returncode = i_returncode.
    there is a lot of other functions to communicate with the PC like:
    GUI_CREATE_DIRECTORY GUI_DELETE_FILE GUI_DOWNLOAD
    GUI_EXEC
    GUI_FILE_SAVE_DIALOG
    GUI_GET_DESKTOP_INFO
    GUI_GET_FILE_INFO               
    etc...

  • Error :he creation of the default xuser entry aborts with returncode 2.

    Hi,
    We are installing the SAP NW 2004 (ABAP +Java ) on AIX box with MAXBD 7.5.
    During the aBAP installing:
    a)We could sucessfully install the Central instance
    b)While installing the database instance we get the follow error:
    RR 11517  XUSER    Could not open USER file, Permission denied
    WARNING    2007-07-05 14:14:14
               CJSlibModule::writeWarning_impl()
    Execution of the command "/data1/sapdb/programs/bin/xuser -d CTS -n ctsaix05 -u XXXXXX -U DEFAULT -S SAPR3 -t 0 -I 0 set" finished with return code 2. Output:
    FATAL: Close xuser entry failed:
    ERROR      2007-07-05 14:14:14 [iaxxinscbk.cpp:289]
               abortInstallation
    CJS-00030  Assertion failed: in
    function create_xuser_default(db_name, db_host, defUser, defPasswd, dbVer) {
        var def_s = defUser + "," + defPasswd;
        var xuser_pr = new ProcessMgt();
        var xuser_app = xuser_pr.createChildApplication();
        var xuser = (new FileMgt()).convertToOSPath(sapdb_xuser_fl());
        xuser_app.setExecutable(xuser);
        var def_args = ["-d", db_name, "-n", db_host, "-u", def_s, "-U", "DEFAULT", "-S", "SAPR3", "-t", "0", "-I", "0", "set"];
        xuser_app.setArguments(def_args);
        xuser_app.setHiddenArguments({5:true});
        xuser_app.setLogname("xuser_default.log");
        var ret = xuser_app.run();
        ASSERT(arguments.callee, ret == 0, "The creation of the default xuser entry aborts with returncode " + ret + ". Check the logfile xuser_default.log for more information.");
    The creation of the default xuser entry aborts with returncode 2. Check the logfile xuser_default.log for more information.
    I  checked the file xuser_default.log .I has the following
    FATAL: Close xuser entry failed:
    Best Regards
    Manoj

    Hello Manoj
    Does the user calling finally the xuser-command have write permission to the corresponing location in the file system?
    Since you are probably a SAP customer compare with note 39439.
    Regards Thomas

  • Returncode of weblogic.Admin Utility

    i try to check my WLS server with the following command:
    "java -cp $CLASSPATH weblogic.Admin t3://myserver:7001 PING 3 100 system
    weblogic"
    i doesn't matter if the command fails or was successfull i allways get
    returncode 0 when typing "echo $?" as the screenshot shows:
    # java -cp $CLASSPATH weblogic.Admin t3://myserver:7895 PING 3 100 system
    weblogic
    Failed to connect to t3://myserver:7895 due to: [java.net.ConnectException:
    No server found at T3://myserver:7895]
    # echo $?
    0
    Anybody any idea how to manage this?
    alexander

    Alexander,
    Currently, there is not a plan in place to backport the requested
    functionallity to WLS 5.1.
    Thanks,
    Simon Nunn
    Developer Relations Engineer
    BEA Technical Support
    Alexander von Alkier wrote:
    "Glenn Dougherty" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]..
    Alexander,
    This is a known issue with the weblogic.Admin utility. BEA is planning tofix
    this and provide proper return codes in the next major release (probablywithin
    6 months).
    Regards,
    Glenn Dougherty
    Developer Relations Engineer
    BEA Technical Support
    Alexander von Alkier wrote:
    i try to check my WLS server with the following command:
    "java -cp $CLASSPATH weblogic.Admin t3://myserver:7001 PING 3 100 system
    weblogic"
    i doesn't matter if the command fails or was successfull i allways get
    returncode 0 when typing "echo $?" as the screenshot shows:
    # java -cp $CLASSPATH weblogic.Admin t3://myserver:7895 PING 3 100
    system
    weblogic
    Failed to connect to t3://myserver:7895 due to:[java.net.ConnectException:
    No server found at T3://myserver:7895]
    # echo $?
    0
    Anybody any idea how to manage this?
    alexanderso i have no chance to do this with WLS 5.1?
    alexander

  • Import CTS+ transport into Portal failed with Returncode:'12'

    Hi, Gurus!
    I have encountered the problem while deploying CTS+ transport to the Portal (system XO3): Returncode:'12' class java.io.IOException:
    The file (
    \solman.mycompany.com\sapmnt\trans\data\BIGK900007\ctsplus.par) does not exist on the filesystem.
    Full log text:
    | ######################################
    | Deployment
    | Transport request : BIGK900007
    | System : XO3
    | tp path : tp | Version and release: 372.04.71 700 
    | Deploy Service called with following parameters:
    | CommunicationData-Type:0
    | CommunicationData-Address:http://portalXO3.mycompany.com:50218
    | CommunicationData-Host:portalXO3.mycompany.com
    | CommunicationData-Port:50218
    | CommunicationData-User:'filled'
    | CommunicationData-Password:'filled'
    | Deployable(0) | Deployable-Type:0
    | Deployable-Id:
    solman.mycompany.com\sapmnt\trans\data/BIGK900007/ctsplus.par
    | Returncode:'12' | class java.io.IOException:The file (
    \solman.mycompany.com\sapmnt\trans\data\BIGK900007\ctsplus.p
    | >>>ar) does not exist on the filesystem.
    | Deployment
    | End date and time : 20100106154329
    | Ended with return code: ===> 12 <===
    | ######################################
    The file ctsplus.par does exists at the right place and available from the Portal machine.
    Especially strange looks the Deployable-Id: *
    solman.mycompany.com\sapmnt\trans\data/BIGK900007/ctsplus.par*
    Maybe the different slashes "\" and "/" are the cause of the porblem? Both systems (Portal and Solution manager) run on Windows 2003 Servers.
    I have checked the "Note 1232674 - class java.io.IO exception during import" and set up the full control permissions to access "\sapmnt\" for the local (solman) user SAPServiceXO3 but it does not help.
    I've created a local "SAPServiceXO3" user in the server of Solman and have given to it highest permissions to the file share.  Has anybody any idea how to resolve the problem?
    Thanks in advance.
    Edited by: Mikhail Palstsianau on Jan 28, 2010 8:47 AM

    Hi,
    Due you have common trans directory for all the system ???
    Thanks
    Anil

  • Factory calendar error (returncode = 3)

    Hi,
    I am trying to create planning for product group, but getting error Factory calendar error (returncode = 3)
    Message no. MA408
    I have checked the validity for factory calendor but it is found ok with valid upto 2013. and allocation of factory calendor with plant 1000. the same factory calendor with validity is observed.
    Pl help me out of this issue.
    Regards,
    Anil

    Dear,
    Please check  have you maintained different factory calendars in the customizing for SOP (Transaction MC7F for S076) and for the plant OX10.
    Please use same calendar in MC7F. and check again.
    Regards,
    R.Brahmankar

  • Trex 7.0 ReturnCode 3499 /ReturnCode ErrorText unknown request

    Hello All,
    While working with Trex 7.0 ,we are getting this error when we ping the http://HOSTNAME:30005/TREXHttpServer/TrexIsapiExt.dll?cmd=PING
    Error is
    "<Return><ReturnCode>3499</ReturnCode><ErrorText>unknown request</ErrorText></Return>"
    Have gone through these links
    /message/1450094#1450094 [original link is broken]
    /thread/277879 [original link is broken]
    But since ,its standalone Trex and we havn't configured it with Portal or anything yet the links were of no much help.
    Have followed the notes 1029783 ,1036078 and 499372 ,but no luck yet.
    Have installed and reinstalled Trex couple of times ,but the issue is stil there.
    Pls suggest.
    Regards
    Ajay
    PS All the services are running fine in Trex with status green in Admin Tool.

    Solved.

  • Returncode in transfer rules routine

    In every transfer routine template there is such interesting line of comment:
    * returncode <> 0 means skip this record
    I've tried to set the returncode to 1, was a certain condition encountered. However the record isn't ignored at all, and I get this error message in the monitor:
    <i>Record 1 :Returncode 1 with the conversion for the field SOLD_TO</i>
    How does the returncode function?
    Thanks, <a href="https://wiki.sdn.sap.com/wiki/display/profile/Davide+Cavallari">Davide</a>

    hi Davide,
    checked sap help say ?
    http://help.sap.com/saphelp_nw70/helpdata/en/0d/54a2a4705c3c4d9a3726773d741392/frameset.htm
    have you set the option for error handling in infopackage ?
    hope this helps.

  • Abap url not found returncode

    Hey,
    i need a Function or Method to open an url from ABAP with a returncode not found.
    At time i use  CL_GUI_FRONTEND_SERVICES=>EXECUTE
    This function also has the Exception 'File_not_fond', but even if the File is not found, i get the sy-subrc 0.
    Has anybody an idea?

    Hi Luis,
    have you tried CL_GUI_FRONTEND_SERVICES=>FILE_EXIST ?
    Sometimes, for refresh return values after call, method CL_GUI_CFW=>FLUSH is needed.
    Regards,
    Angelo.

  • No RETURNCODE 0 allowed in update routines in transfer mode

    Hi,
    After Applying a RETURNCODE = 4 to one characteristic in my update routine i get the following message:
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    Message no. RSAU492
    It seems that i doesn't allow me to modify a certain characteristic in my target ODS.
    Any suggestions?
    BR,
    Xibi

    Hi,
    could it be this problem (as described in an OSS note) ?
    "Symptom
    Various errors occur when you load reporting point data from CRM with the DataSource 0CRM_UT_POD_ATTR and update the data in BW:
    1. Insufficient data is delivered, and all fields are empty except for the external reporting point name (EXT_UI_BW).
    2. The restriction according to the external reporting point name (EXT_UI_BW) in the BW scheduler has no effect.
    3. The update in BW to the InfoObject 0UCCRMPOD terminates with the error message RSAU-492 (Return code <> 0 is invalid in overwrite MODE in update routines).
    Other terms
    Sales, commercial and industrial customers, IS-U-CRM integration, IS-U, quotation controlling, quotation planning
    Reason and Prerequisites
    There is an error in the extractor. In addition, the selection according to EXT_UI_BW cannot be supported in the InfoPackage for technical reasons. The case was not caught when the texts for 0UCCRMPOD were updated because the texts for 0UC_POD (IS-U reporting point) had not yet been loaded from IS-U.
    Solution
    The error is eliminated in CRM 4.0 Support Package 05 and BI Content Add-On 3.20 Support Package 11 or BI Content Add-on 3.30 Support Package 04  or BI Content Add-On 3.51 Support Package 01.
    Correction instructions for the CRM section are attached."
    /manfred

  • Returncode from include command in sap scipt

    HI,
    If  I include a textelemt with the /: include command I can not identify if that textelement was available or not. So I would like to check a returncode after my include.  Is there any way to do so?
    Because I try to do following as final version:
    include   header_customer_no
    if include fail
    include  header_material_no
    if include fail
    include header_default.
    Any hints how I can do so?
    Thanks
    Jens

    Hi,
    I'm not sure if you can check for this in the SAPScript itself, however, what you could do (if the print program is a Z program) is to add logic to determine if the text exists in table STXH, using the text name, object, id and language.  Based on the results of the select, you could move on to the next STXH until you either get a match or not.  Then you could set global variables to hold the object, id, name and language and pass those to a single INCLUDE statement in the SAPScript element.
    If your print program is not a Z program then you can achieve the same effect by using the /: PERFORM statement to call a subroutine in a Z program object and use this to determine and return the object, id and name.
    Hope this makes sense.
    Regards,   Andy

  • RETURNCODE fail in samrtfroms.

    Hi All ,
    i have developed a custom smartform and a custom Pritprogram . while executing form the transaction it is showing the form but in the OUTPUT type it is showing redbutton . in the processinglog it is giving message "Processing routine ENTRY in program ZZ_SDSH_PALLET_MANIFEST does not exist "
    But in my print program i have a routine ENTRY .
    while debugging i found that after exeqution of FORM sy-subrc = 0 and after that in Function module PROGRAMM_AUFRUFEN , i am getting the RETURNCODE = 999 .
    If i give the return code = 0 . then Output type is displaying in green button .
    sample code of Print program :
    FORM ENTRY USING RETURN_CODE TYPE I SCREEN_OUTPUT TYPE C.
       doing some code and calling Form function module.
    ENDFORM. 
    FORM PROTOCOL_UPDATE USING SCREEN_OUTPUT.
      CHECK SCREEN_OUTPUT EQ SPACE.
      CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
        EXPORTING
          MSG_ARBGB = SYST-MSGID
          MSG_NR    = SYST-MSGNO
          MSG_TY    = SYST-MSGTY
          MSG_V1    = SYST-MSGV1
          MSG_V2    = SYST-MSGV2
          MSG_V3    = SYST-MSGV3
          MSG_V4    = SYST-MSGV4
        EXCEPTIONS
          OTHERS    = 1.
      IF SY-SUBRC <> 0. ENDIF.
    ENDFORM.            
    Thanks

    Check this code out..
    REPORT  ZSD_PACKING_LIST_EN                        .
    *   Program    : ZSD_PACKING_LIST.                                  *
    *   Author     : Suresh Kashimalla                                  *
    *   Date       : 11/29/2004                                         *
    *   Description: Driver Program for Packing List(SD)                *
    *                    Modification Log                               *
    * Author                :                                           *
    * Date of change        :                                           *
    * Functional Spec #     :                                           *
    * Correction Request #  :                                           *
    * Description of Change :                                           *
    Tables: nast,                          "Messages
            *nast,                         "Messages
            tnapr,                         "Programs & Forms
            itcpo,                         "Communicationarea for Spool
            arc_params,                    "Archive parameters
            toa_dara,                      "Archive parameters
            addr_key,                      "Adressnumber for ADDRESS
            MARM,
            vepo.
    type-pools szadr.
    DATA price_print_mode(1) TYPE c.       "Print-mode
    DATA: retcode   LIKE sy-subrc.         "Returncode
    DATA: repeat(1) TYPE c.
    DATA: xscreen(1) TYPE c.               "Output on printer or screen
    Data: GS_Vbeln like LIKP-VBELN.
    DATA : V_SIGNI like VTTK-signi,
           V_TPBEZ like VTTK-TPBEZ,
           v_vltdr like vttk-TDLNR,
           v_name1 TYPE name1,
           v_lfipl like lips-lfimg,
           v_lfipl1 like lips-lfimg.
    DATA : V_CONLB TYPE F VALUE '2.20458553791887'.
    *Intenal Tables Declarations
    *Internal tabel Details fro SD Document: Delivery Header Data
    DATA : BEGIN OF IT_LIKP OCCURS 0.
            INCLUDE STRUCTURE LIKP.
    DATA : END OF IT_LIKP.
    DATA : BEGIN OF IT_ZLIKP OCCURS 0,
             VBELN LIKE LIKP-VBELN,        " Delivery
             LFDAT LIKE LIKP-LFDAT,        " Delivery Date
             KUNNR LIKE LIKP-KUNNR,         " Ship-To Party
             BTGEW LIKE LIKP-BTGEW,        " Total Weight
             GEWEI LIKE LIKP-GEWEI,        " Weight Unit
             NTGEW LIKE LIKP-NTGEW,        " Net weight
             VOLUM LIKE LIKP-VOLUM,        " Volume
             VOLEH LIKE LIKP-VOLEH,        " Volume unit
             TRAID LIKE LIKP-TRAID,        "Means of Transport ID
             BTGEWLB LIKE LIKP-BTGEW,        " Total Weight
             GEWEILB LIKE LIKP-GEWEI,        " Weight Unit
             NTGEWLB LIKE LIKP-NTGEW,        " Net weight
             INCO1 LIKE LIKP-INCO1,        " Terms of deleviry
             INCO2 LIKE LIKP-INCO2,        " Terms of deleviry
    END OF IT_ZLIKP.
    *DATA : BEGIN OF IT_VTTK OCCURS 0,
    *         TKNUM LIKE VTTK-TKNUM,       " Shipment Number
    *         EDOCK  LIKE VTTK-SIGNI,      " Container ID
    *         ADOCK  LIKE VTTK-TPBEZ,      " Description of Shipment
    *         END OF IT_VTTK.
    *Intenal table for Item Details from lips
    DATA : BEGIN OF IT_LIPS OCCURS 0,
             vgpos like lips-vgpos,       " Refrence Doc Line item
             VBELN LIKE LIPS-VBELN,       " Delivery
             POSNR LIKE LIPS-POSNR,       " Delivery item
             lfimg like lips-lfimg,       " Actual quantity delivered
             meins like lips-meins,       " Delivered Quantity UOM
             MATNR LIKE LIPS-MATNR,       " Material Number
             vgbel like lips-matnr,       " Refrence Doc.
             KWMENG LIKE VBAP-KWMENG,     " Order quantity
             VRKME  LIKE VBAP-VRKME,      " Unit
             ARKTX LIKE LIPS-ARKTX,       " Short Text for Sales Order Item
             kcmeng like lips-kcmeng,     " Cumml. Delivery Quantity
             BSTNK LIKE VBAK-BSTNK,       " Cust.SKU
             lfipl like lips-lfimg,       " Actual quantity delivered
             lfior like lips-lfimg,       " Actual quantity delivered
             meinso like lips-meins,      " Delivered Quantity UOM
           END OF IT_LIPS.
    *Internal table for Material Data.
    DATA : BEGIN OF IT_MAT OCCURS 0,
             MATNR LIKE MARA-MATNR,
             BISMT LIKE MARA-BISMT,
           END OF IT_MAT.
    *Internal table declaration for Special Note.
    Data : Begin of it_STXH occurs 0,
             TDOBJECT like STXH-TDOBJECT,
             TDNAME like STXH-TDNAME,
             TDID  like STXH-TDID,
             TDSPRAS like STXH-TDSPRAS,
           End of it_STXH.
    *Internal table for Item
    Data : Begin of It_vbap occurs 0,
             vbeln like vbap-vbeln,
             posnr like vbap-posnr,
           End of it_vbap.
    Data : It_IStxh like It_stxh occurs 0 with header line.
    Data : V_posnr type char16.
    Data : Begin of it_posnr occurs 0,
             item like stxh-tdname,
           End of it_posnr.
    *pallet
    DATA: IT_LTAP LIKE ZLTAP OCCURS 0 WITH HEADER LINE.
    DATA: IT_ITEM LIKE ZLIPS_PACK OCCURS 0 WITH HEADER LINE.
    *--Start of change by rashmi 30th Aug 05
    data: v_vbelnl(70) type c,
          it_line like tline occurs 0,
          it_cert_line like tline occurs 0,
          it_cust_line like tline occurs 0.
    *--End of change by rashmi 30th Aug 05
    *      Parameters Declaration                                          *
    *PARAMETER : P_VBELN TYPE LIKP-VBELN.
    *      Data Declaration                                                *
    DATA : V_TKNUM LIKE VTTP-TKNUM.
    DATA : V_BSTNK LIKE VBAK-BSTNK.
    DATA : V_VBELV LIKE VBFA-VBELV.
    DATA : V_VBELN LIKE VBAK-VBELN.
    DATA : V_KWMENG LIKE VBAP-KWMENG.
    DATA : V_WERKS LIKE LIPS-WERKS.
    DATA : V_KUNNR LIKE KNA1-KUNNR.
    DATA : V_TELF1 LIKE KNA1-TELF1.
    DATA : V_TELFX LIKE KNA1-TELFX.
    DATA : V_EBELN LIKE EKPO-EBELN,
               V_BRGEW LIKE VEKP-BRGEW,
              V_BTGEW LIKE LIKP-BTGEW.
    CONSTANTS : C_J TYPE C VALUE 'J'.
    DATA: LF_FM_NAME            TYPE RS38L_FNAM.
    DATA:  V_LBBIL_INVOICE TYPE LBBIL_INVOICE,    " Invoice
            V_NAST TYPE  NAST.    " Nast
    *data : it_likp like table of zlikp  with header line.
    **      Start of Selection
    *Form Processing
    FORM entry USING return_code us_screen.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing.
      IF retcode NE 0.
        return_code = 1.
      ELSE.
        return_code = 0.
      ENDIF.
    ENDFORM.                    "entry
    *       FORM PROCESSING                                               *
    FORM processing.
      Data : Is_Sender type adrnr.
      DATA: lf_fm_name            TYPE rs38l_fnam.
      DATA: ls_control_param      TYPE ssfctrlop.
      DATA: ls_composer_param     TYPE ssfcompop.
      DATA: ls_recipient          TYPE swotobjid.
      DATA: ls_sender             TYPE swotobjid.
      DATA: lf_formname           TYPE tdsfname.
      DATA: ls_addr_key           LIKE addr_key.
      Data: ls_APPL_OBJ           type SWOTOBJID.
      Data: LS_TSFDARA            type TSFDARA.
      DATA: document_output_info TYPE  ssfcrespd,
          job_output_info TYPE ssfcrescl,
          job_output_options TYPE ssfcresop.
      PERFORM get_data.
      CHECK retcode = 0.
    *Get the Smart Form name.
      IF NOT tnapr-sform IS INITIAL.
        lf_formname = tnapr-sform.
      ELSE.
        lf_formname = tnapr-fonam.
      ENDIF.
    *Get the Header text
    *  To get Special Notes.
      Select TDOBJECT
             TDNAME
             TDID
             TDSPRAS
             into table it_STXH
             from STXH
             where TDNAME = Gs_vbeln.
    * To get the ITem Details
      Select VBELN
             POSNR
             into table it_vbap
             from vbap
             Where VBELN = GS_vbeln.
      if not it_lips[] is initial.
        loop at it_lips.
          concatenate it_lips-vbeln it_lips-posnr into v_posnr.
          it_posnr-item = v_posnr.
          append it_posnr.
        endloop.
      endif.
    *To Get the Item Text.
      Select TDOBJECT
             TDNAME
             TDID
             TDSPRAS
             into table it_ISTXH
             from STXH for all entries in it_posnr
             where TDNAME = it_posnr-item.
      select single werks
               into v_werks
               from lips
              where vbeln = GS_VBELN.
      concatenate '00' v_werks '0001' into v_kunnr.
      select single telf1 telfx
               into (v_telf1, v_telfx)
               from kna1
              where kunnr eq v_kunnr.
    * CONVERTING GROSS AND NET WEIGHT INTO LBs
      IT_ZLIKP-BTGEWLB = IT_ZLIKP-BTGEW * V_CONLB.
      IT_ZLIKP-GEWEILB = 'LB'.
      IT_ZLIKP-NTGEWLB = IT_ZLIKP-NTGEW * V_CONLB.
      loop at it_ltap.
    * it_ltap-brgewlb = it_ltap-brgew *  V_CONLB.
        it_ltap-geweilb = 'LB'.
        it_ltap-vistmlb = it_ltap-vistm *  V_CONLB.
        modify it_ltap index sy-tabix.
      endloop.
    * determine smartform function module for invoice
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME           = 'ZSD_PACKING_LIST_EN'
        IMPORTING
          FM_NAME            = LF_FM_NAME
        EXCEPTIONS
          NO_FORM            = 1
          NO_FUNCTION_MODULE = 2
          OTHERS             = 3.
      IF SY-SUBRC <> 0.
    *   error handling
        RETCODE = SY-SUBRC.
    *    PERFORM protocol_update.
      ENDIF.
    *--Start of change by rashmi on 30th Aug 2005.
    *  CALL FUNCTION lf_fm_name
    *    EXPORTING
    *      ARCHIVE_INDEX        = TOA_DARA
    *      ARCHIVE_INDEX_TAB    = LS_TSFDARA
    *      ARCHIVE_PARAMETERS   = ARC_PARAMS
    *      CONTROL_PARAMETERS   = ls_control_param
    *      MAIL_APPL_OBJ        = ls_APPL_OBJ
    *      MAIL_RECIPIENT       = ls_recipient
    *      MAIL_SENDER          = ls_sender
    *      OUTPUT_OPTIONS       = ls_composer_param
    *      USER_SETTINGS        = ' '
    *      znast                = nast
    *      IT_LIKP              = IT_ZLIKP
    *      V_TKNUM              = V_TKNUM
    *      V_tpbez              = V_tpbez
    *      V_Signi              = V_signi
    *      V_NAME1              = V_NAME1
    *      V_BSTNK              = V_BSTNK
    *      V_VBELN              = V_VBELN
    *      v_telf1              = v_telf1
    *      v_telfx              = v_telfx
    *      V_EBELN              = V_EBELN
    *      V_CONLB              = V_CONLB
    *      V_BTGEW              = V_BTGEW
    *   IMPORTING
    *      DOCUMENT_OUTPUT_INFO = document_output_info
    *      JOB_OUTPUT_INFO      = job_output_info
    *      JOB_OUTPUT_OPTIONS   = job_output_options
    *    TABLES
    *       IT_LIPS             = IT_ITEM
    *      IT_LTAP              = IT_LTAP
    *      it_STXH              = it_STXH
    **      it_ISTXH              = it_ISTXH
    *    EXCEPTIONS
    *      FORMATTING_ERROR     = 1
    *      INTERNAL_ERROR       = 2
    *      SEND_ERROR           = 3
    *      USER_CANCELED        = 4
    *      OTHERS               = 5.
    call function LF_FM_NAME                             "/1BCDWB/SF00000105
      exporting
       ARCHIVE_INDEX              = TOA_DARA
       ARCHIVE_INDEX_TAB          = LS_TSFDARA
       ARCHIVE_PARAMETERS         = ARC_PARAMS
       CONTROL_PARAMETERS         = ls_control_param
       MAIL_APPL_OBJ              = ls_APPL_OBJ
       MAIL_RECIPIENT             = ls_recipient
       MAIL_SENDER                = ls_sender
       OUTPUT_OPTIONS             = ls_composer_param
       USER_SETTINGS              = ' '
        znast                      = nast
        it_likp                    = IT_ZLIKP
        v_tknum                    = V_TKNUM
        v_tpbez                    = V_tpbez
        v_name1                    = V_NAME1
        v_signi                    = V_SIGNI
        v_bstnk                    = V_BSTNK
        v_vbeln                    = V_VBELN
        v_telf1                    = v_telf1
        v_telfx                    = v_telfx
        v_ebeln                    = V_EBELN
        v_conlb                    = V_CONLB
        v_btgew                    = V_BTGEW
    IMPORTING
       DOCUMENT_OUTPUT_INFO       = document_output_info
       JOB_OUTPUT_INFO            = job_output_info
       JOB_OUTPUT_OPTIONS         = job_output_options
      tables
        it_lips                    = IT_ITEM
        it_ltap                    = IT_LTAP
        it_stxh                    = it_STXH
        it_line                    = it_line
    *--Start of changes by Rashmi on 30th Aug 05    .
        it_cert_line               = it_cert_line
        it_cust_line               = it_cust_line
    *--End of changes by Rashmi on 30th Aug 05.
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    *if sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *endif.
    *--End of change by rashmi on 30th Aug 2005.
      IF sy-subrc <> 0.
        retcode = sy-subrc.
        PERFORM protocol_update.
    * get SmartForm protocoll and store it in the NAST protocoll
    *    PERFORM add_smfrm_prot.
      ENDIF.
    ENDFORM.                    "processing
    *&      Form  get_data
    *       text
    FORM GET_DATA .
      IF NAST-OBJKY+10 NE SPACE.
        NAST-OBJKY = NAST-OBJKY+16(10).
      ELSE.
        NAST-OBJKY = NAST-OBJKY.
      ENDIF.
    *Select Nast Entries
      GS_VBELN = NAST-OBJKY.
    *To Get the Header Details
      SELECT VBELN
             LFDAT
             KUNNR
             BTGEW
             GEWEI
             NTGEW
             VOLUM
             VOLEH
             TRAID
             INCO1
             INCO2
        INTO CORRESPONDING FIELDS OF TABLE IT_LIKP
        FROM LIKP
        WHERE VBELN = GS_VBELN.
      select single btgew from likp into v_btgew where vbeln = gs_vbeln.
      IF SY-SUBRC = 0.
        LOOP AT IT_LIKP.
          MOVE-CORRESPONDING IT_LIKP TO IT_ZLIKP.
    *--Start of Changes by Rashmi 30th aug 2005.
          v_vbelnl = it_likp-vbeln.
          condense v_vbeln.
          call function 'READ_TEXT'
            exporting
    *         CLIENT                        = SY-MANDT
              id                            = 'Z002'
              language                      = 'E'
              name                          = v_vbelnl
              object                        = 'VBBK'
    *         ARCHIVE_HANDLE                = 0
    *         LOCAL_CAT                     = ' '
    *       IMPORTING
    *         HEADER                        =
            tables
              lines                         = IT_LINE[]
           EXCEPTIONS
             ID                            = 1
             LANGUAGE                      = 2
             NAME                          = 3
             NOT_FOUND                     = 4
             OBJECT                        = 5
             REFERENCE_CHECK               = 6
             WRONG_ACCESS_TO_ARCHIVE       = 7
             OTHERS                        = 8
          call function 'READ_TEXT'
            exporting
    *         CLIENT                        = SY-MANDT
              id                            = 'Z007'
              language                      = 'E'
              name                          = V_VBELNL
              object                        = 'VBBK'
    *         ARCHIVE_HANDLE                = 0
    *         LOCAL_CAT                     = ' '
    *       IMPORTING
    *         HEADER                        =
            tables
              lines                         = IT_CERT_LINE[]
           EXCEPTIONS
             ID                            = 1
             LANGUAGE                      = 2
             NAME                          = 3
             NOT_FOUND                     = 4
             OBJECT                        = 5
             REFERENCE_CHECK               = 6
             WRONG_ACCESS_TO_ARCHIVE       = 7
             OTHERS                        = 8
          call function 'READ_TEXT'
            exporting
    *         CLIENT                        = SY-MANDT
              id                            = 'Z014'
              language                      = 'E'
              name                          = V_VBELNL
              object                        = 'VBBK'
    *         ARCHIVE_HANDLE                = 0
    *         LOCAL_CAT                     = ' '
    *       IMPORTING
    *         HEADER                        =
            tables
              lines                         = IT_CUST_LINE[]
           EXCEPTIONS
             ID                            = 1
             LANGUAGE                      = 2
             NAME                          = 3
             NOT_FOUND                     = 4
             OBJECT                        = 5
             REFERENCE_CHECK               = 6
             WRONG_ACCESS_TO_ARCHIVE       = 7
             OTHERS                        = 8
    *--End of changes by Rashmi 30th Aug 2005.
        ENDLOOP.
      ENDIF.
    *Customer PO no
      SELECT VBELV
             FROM VBFA
             INTO V_VBELV UP TO 1 ROWS
             WHERE VBELN = GS_VBELN
             AND   VBTYP_N = C_J.
      ENDSELECT.
      IF SY-SUBRC = 0.
        SELECT VBELN
               BSTNK
               INTO (V_VBELN, V_BSTNK ) UP TO 1 ROWS
               FROM VBAK
               WHERE VBELN = V_VBELV.
        ENDSELECT.
      ENDIF.
    *To Get item Details
      SELECT  vgpos
              VBELN
              POSNR
              LFIMG
              meins
              MATNR
              vgbel
              vgpos
              ARKTX
              KCMENG
              VRKME
        INTO CORRESPONDING FIELDS OF TABLE IT_LIPS
        FROM LIPS
        WHERE VBELN = GS_VBELN.
      sort it_lips by vgpos ascending posnr descending.
      IF NOT IT_LIPS[] IS INITIAL.
    *Start of changes by Rashmi on 22nd Feb 06.
    *Pallet
    *    SELECT NLENR
    *           BRGEW
    *           GEWEI
    *           VISTM
    *           MATNR
    *           POSNR
    *           CHARG
    *           VLENR
    *       FROM LTAP
    *       INTO CORRESPONDING FIELDS OF TABLE IT_LTAP
    *        FOR ALL ENTRIES IN IT_LIPS
    *       WHERE VBELN = GS_VBELN
    *              AND MATNR = IT_LIPS-MATNR
    *              AND POSNR = IT_LIPS-POSNR
    *              and vorga = 'LF'.
    *  ENDIF.
    * Get the pallets from LTAP.
        SELECT NLENR
               BRGEW
               GEWEI
               VISTM
               MATNR
               POSNR
               CHARG
               VLENR
           FROM LTAP
           INTO CORRESPONDING FIELDS OF TABLE IT_LTAP
            FOR ALL ENTRIES IN IT_LIPS
           WHERE VBELN = GS_VBELN
                  AND MATNR = IT_LIPS-MATNR
                  AND POSNR = IT_LIPS-POSNR
                  and vorga = 'LF'.
    *Check from vepo and vekp tables if pallets not forund in LTAP.
        if it_ltap[] is initial.
    *End of changes by Rashmi on 22nd Feb 06.
          select vekp~exidv
                 vekp~brgew
                 vekp~gewei
                 vekp~ntgew
                 vepo~matnr
                 vepo~posnr
                 vepo~charg
               into table it_ltap
               from vepo inner join vekp on vekp~venum = vepo~venum
               for all entries in it_lips
                       where vbeln = gs_vbeln
                       and matnr = it_lips-matnr
                      and posnr = it_lips-posnr.
        endif.
      endif.
      loop at it_lips.
    *Start of comment by Rashmi on 22nd Feb 06.
    *    select count(*)
    *           into v_lfipl
    *           from ltap
    *          WHERE VBELN = GS_VBELN
    *                  AND MATNR = IT_LIPS-MATNR
    *                  AND POSNR = IT_LIPS-POSNR
    *                  and vorga = 'LF'.
    *Start of changes by Rashmi on 30th Jan 06.
        select count(*)
               into v_lfipl
               from VEPO
               WHERE VBELN = GS_VBELN
                        AND MATNR = IT_LIPS-MATNR
                        AND POSNR = IT_LIPS-POSNR.
    *                    and vorga = 'LF'.
        if v_lfipl is initial and v_lfipl1 is initial. "Change on 22nd Feb
          select count(*)
                 into v_lfipl
                 from ltap
                WHERE VBELN = GS_VBELN
                      AND MATNR = IT_LIPS-MATNR
                      AND POSNR = IT_LIPS-POSNR
                      and vorga = 'LF'.
        endif.
    *End of changes by Rashmi on 30th Jan 06.
        v_lfipl1 = v_lfipl1 + v_lfipl.
        clear v_lfipl.
        at end of vgpos.
          read table it_lips index sy-tabix.
          move it_lips-vrkme to it_lips-meinso.
          clear it_lips-vrkme.
          if it_lips-lfimg is initial.
            move it_lips-kcmeng to it_lips-lfimg.
          endif.
          if not v_lfipl1 is initial.
            it_lips-meins = 'PL'.
          endif.
          move v_lfipl1 to it_lips-lfipl.
          modify it_lips.
          clear it_lips.
          clear v_lfipl1.
        endat.
      endloop.
      sort it_lips by vgpos posnr.
      sort it_ltap by matnr posnr.
    *Shipment no
      SELECT TKNUM FROM VTTP
              INTO V_TKNUM UP TO 1 ROWS
              WHERE VBELN = GS_VBELN.
      ENDSELECT.
      if sy-subrc = 0.
        Select single tdlnr Signi tpbez
              into (v_vltdr, v_Signi, v_tpbez)
              from vttk
              where tknum = v_tknum.
        if not v_vltdr is initial.
          select single name1 into v_name1
            from lfa1
           where lifnr eq v_vltdr.
          clear v_vltdr.
        endif.
      endif.
      SELECT MATNR BISMT
        INTO TABLE IT_MAT
        FROM MARA FOR ALL ENTRIES IN IT_LIPS
           WHERE MATNR = IT_LIPS-MATNR.
      LOOP AT IT_LIPS.
    *Order quantity
        SELECT KWMENG
               vrkme
               INTO (IT_LIPS-KWMENG, it_lips-vrkme) UP TO 1 ROWS
               FROM VBAP
               WHERE VBELN = V_VBELV
               AND POSNR = IT_LIPS-POSNR.
        ENDSELECT.
        if sy-subrc <> 0.
          SELECT EBELN
                 MENGE
                 MEINS
               INTO (V_EBELN, IT_LIPS-KWMENG, it_lips-vrkme) UP TO 1 ROWS
                 FROM EKPO
                 WHERE EBELN = IT_LIPS-VGBEL
                 AND EBELP = IT_LIPS-VGPOS+1(5).
          ENDSELECT.
        endif.
    *   move-corresponding it_likp to it_item.
        READ TABLE IT_MAT WITH KEY MATNR = IT_LIPS-MATNR.
        MOVE IT_MAT-BISMT TO IT_ITEM-BISMT.
        MOVE : IT_LIPS-VBELN TO IT_ITEM-VBELN,
               IT_LIPS-POSNR TO IT_ITEM-POSNR,
               IT_LIPS-LFIMG TO IT_ITEM-LFIMG,
               IT_LIPS-LFIPL TO IT_ITEM-LFIPL,
               IT_LIPS-MEINS TO IT_ITEM-MEINS,
               IT_LIPS-MATNR TO IT_ITEM-MATNR,
               IT_LIPS-KWMENG TO IT_ITEM-KWMENG,
               IT_LIPS-VRKME TO IT_ITEM-VRKME,
               V_BSTNK TO IT_ITEM-BSTNK,
               IT_LIPS-ARKTX TO IT_ITEM-ARKTX  .
        if it_lips-meinso <> it_lips-vrkme.
          SELECT SINGLE *
              FROM MARM
             WHERE MATNR = IT_LIPS-MATNR
               AND MEINH = IT_LIPS-VRKME.
          IF SY-SUBRC EQ 0.
            IT_ITEM-LFIOR = ( IT_ITEM-LFIMG * ( MARM-UMREN / MARM-UMREZ ) ).
          ENDIF.
        else.
          move it_item-lfimg to it_item-lfior.
        endif.
        CLEAR MARM.
        IF IT_ITEM-LFIPL IS INITIAL.
          MOVE IT_ITEM-LFIMG TO IT_ITEM-LFIPL.
        ENDIF.
        APPEND IT_ITEM.
        CLEAR IT_ITEM.
      ENDLOOP.
    ENDFORM.                    " get_data
    *       FORM PROTOCOL_UPDATE                                          *
    *       The messages are collected for the processing protocol.       *
    FORM protocol_update.
      CHECK xscreen = space.
      CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
        EXPORTING
          msg_arbgb = syst-msgid
          msg_nr    = syst-msgno
          msg_ty    = syst-msgty
          msg_v1    = syst-msgv1
          msg_v2    = syst-msgv2
          msg_v3    = syst-msgv3
          msg_v4    = syst-msgv4
        EXCEPTIONS
          OTHERS    = 1.
    ENDFORM.                    "protocol_update

  • Returncode of Transporting a change request

    Dear developers,
    do you know how to check the returncode when transporting a change request to test or productive system.
    In my case I have the special problem that change requests will be transported in an async way so that the developer could not check in the SAP solution manager whether the transport is error free or canceled with an error.
    Is there a way to switch the transport management in the solution manager to a synchronous mode?
    Best regards,
    Jens

    Hi Ganesh,
    Can I ask something about inactive object here?
    I applied notes with SNOTE.  But all objects are inactive.
    When I activete them, The system requires accesskey.
    How could this happen? And any solution for this?
    I can't deapply the notes any more. coz it's bug fix for SNOTE.
    If I do this, the system will be inconsistent, this happened beffore
    Thanks
    kaz,

  • GUI_EXEC replacement ?

    GUI_EXEC is obsolete on my 4.7 version, do you know the FM replacement ?
    Thanks
    Regards

    maybe the object : CL_GUI_FRONTEND_SERVICES  module EXECUTE.
    Rgd
    Fred

  • DD ACTIVATION finished with returncode 8

    Hi Gurus ,
                 I try to install addon AFS 6.3 on ECC 6.0 server , While installing DD ACTIVATION finished with returncode 8 getting long time . Kindly tell me how to check weather the process stoped or hanged or running . Kindly tell me how long it will take .
    Regards
    Selvan

    If this message is coming it is stopped.
    Check the import logs in SAINT, drill the up to the "red lines".
    Markus

Maybe you are looking for

  • Undesired cropping from FCP to DVD Studio Pro?

    I start with a QT file exported from FCP 6. The settings are 16:9. The problem is the resulting DVD program I create in DVD Studio Pro plays in regular DVD players with the program-image cropped about 5% at the bottom and 5% at the top. I've tried ot

  • Performance of the query incresed to 1 hour 15 mins....

    the view is working, but the performance of the query is horrible. Our pull time has increased from 25 minutes to 1 hour and 15 minutes.

  • Webutil - Config and Jar Files

    Hi List, I am using Webutil for the first time .I have downloaded demo from OTN .WHich has pll,olb,jar ,dll files.I have gone through the manual following few things are still not clear 1.where to store/keep Webutil.config and how do we refer to that

  • Sample Preshippment information in PI Sheet or Process order confirmation

    Dear Gurus, We are using the strategy 40. We need some information on sample sending procedure like preshipment or coshipment and quantity of delivery to the process order PI sheet to identify the production team to keep the sample ready before confi

  • Patch needed for uploading sap ecc 6.0 country india version

    Hello experts,We are facing problems whileworking with the cin module,First of all i would like to convey that our server is based at jakarta and that the license is based at jakarta(indonasia),however the off shore delivery centre is based at india,