Call transaction LM05 from Z program

Hi,
I need to call transaction LM05 from a Z program, and when LM05 finishes then continue with the process in Z program. But when i use CALL TRANSACTION 'LM05' the process does not return to program Z, when LM05 finishes,it returns to main screen of 'LM05' but not Z program.
I change CALL TRANSACTION by SUBMIT zrlmob001 AND RETURN, but it happens the same, because transaction 'LM05' continuosly evaluates the system variable SY-TCODE, and therefore SY-TCODE contains code transaction 'ZXX'.
it exists a way to call a LM05 transaction from Z program, and then continue in z program after LM05 finishes?
can i create a user exit screen for transaction LM05 and use the user exit to continue with the process that i wish in Z program after call transaction 'LM05'?
I'm in SAP version ECC 6.0.
Thanks in advance
Alejandro

Hi,
I want to share how i resolved this topic:
I searched for user exit, badi and did'nt find a correct way to solved this issue. Also, i tried to create a screen exit for transaction LM05, but the dynpro 2100 of program SAPLLMOB is used for transaction LM02, LM03, LM05 and for each one show a diferent initial screen, this logic cannot be suplied with my custom screen.
Finally, how the final option, i used a enhancement implementation to add code in SAP standard program RLMOB001, and the problem was resolved. i am in version SAP ECC6.0, in this version is posible to create enhancement implementation, and for support package and upgrade, SAP will not overwrite your custom code.
Regards,
Alejandro.

Similar Messages

  • CALL TRANSACTION 'ME33K  from another program

    Hi,
    I ma trying to CALL TRANSACTION 'ME33K  from another program, but it is not working.  The transactions is opening, but it is not opening with the contract number (ls_ekpo-ebeln) i am passing.
    ls_ekpo-ebeln does have a valued when CALL TRANSACTION 'ME33K  is called.
    In debug, I noticed the "value" is blank when step into CALL TRANSACTION 'ME33K .
       WHEN 'EBELN'.  "Contract
          l_field = 'EVRTN'.
         IF ls_ekpo-ebeln <> ''.
            GET PARAMETER ID 'VRT' FIELD l_field.  "EVRTN.
           SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
           CALL TRANSACTION 'ME33K AND SKIP FIRST SCREEN.
            SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
          ENDIF.
    Any help or suggestions would be great.
    Thanks,
    Naing

    Dear Naing,
    I execute the same code
    IF ls_ekpo IS INITIAL.
    GET PARAMETER ID 'VRT' FIELD LS_EKPO.
    SET PARAMETER ID 'VRT' FIELD ls_ekpo.
    CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
    SET PARAMETER ID 'VRT' FIELD ls_ekpo.
    ENDIF.
    And it is working.
    Try to do de simple sintax.
    A program with one pararmeter to introduce the contract number.
    The set parameter for this parameter and the call transaction.
    I´m waiting your comments.
    Regards.
    Antonio.

  • Call transaction MMBE from another program and press Back button

    Hello,
    I have program that is used as a 'launch pad' for some of our heavily used transactions. When I call the main 'launch pad' program, the user will select a button and a Call Transaction MMBE is initiated (USING the first screen). The user selects a material for display and presses the execute button (F8). The material overview is displayed correctly.  When the user presses the Back button (F12), transaction returns all the way back to the first called program and not to the first screen for transaction MMBE as expected.
    Does anyone know how I can change the screen flow and go back to the fist screen of MMBE and not the screen of the first called program?
    Regards,
    RC

    Rod,
    In your case i think it is not possible as it is standard functionality by SAP.
    Try work around, may be modification to the program will work.
    Regards,
    Amey

  • Call SXPG _ CALL _ SYSTEM from ABAP program

    Hi,
    Someone may help me?  I need to call the function module SXPG _ CALL _ SYSTEM from ABAP program for to encrypt a file.
    I created the command by SM49 , but I don't know how I can call it from ABAP program.
    Thanks
    Maria C

    Hi Maria.
    This is a possible code you can use:
    DATA: log LIKE TABLE OF btcxpm WITH HEADER LINE.
    Can contain STDOUT, STDERR
    commandname =
    CALL FUNCTION ‘SXPG_CALL_SYSTEM’
    IMPORTING
      COMMANDNAME = commandname
      PARAMETERS = parameters
    EXPORTING
    STATUS = status
      TABLES
      EXEC_PROTOCOL = log
    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
      OTHERS = 12.
    The following are the comments of the parameters taken from:
    http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm
    Parameters
    IMPORTING Parameters
    Parameter name
    Use
    COMMANDNAME
    The name of the definition of the external command, as specified in the maintenance function (transaction SM69).
    PARAMETERS
    Arguments for the external command as specified by the definition in the R/3 System and by the calling program or user.
    These arguments are checked for impermissible characters, such as the ; under UNIX. Problems are registered with the SECURITY_RISK exception.
    EXPORTING Parameters
    Parameter name
    Use
    STATUS
    Returns the final status of the execution of the external command:
    · Value ‘O’: The external command was started and ran to end successfully.
    · Value ‘E’: An error occurred; the external command was not run successfully.
    Tables Parameters
    Parameter name
    Use
    EXEC_PROTOCOL
    Contains the STDOUT and STDERR output of the external command and any output from the target host system.
    Exceptions
    Exception name
    Meaning
    X_ERROR
    Reserved for future use.
    NO_PERMISSION
    The AUTHORITY-CHECK of the user’s authorization for the authorization object S_LOG_COM failed. The user is not authorized to carry out the command named with the specified arguments on the target system.
    COMMAND_NOT_FOUND
    Command name, as identified by COMMANDNAME and OPERATINGSYSTEM, has not been defined in the maintenance function (transaction SM69).
    PARAMETERS_TOO_LONG
    The combined argument string (ADDITIONAL_PARAMETERS and the DEFINED_PARAMETERS, as returned in ALL_PARAMETERS) exceeds the limit of 128 characters in length.
    SECURITY_RISK
    Either:
    · The command contains impermissible characters. These are characters with potentially dangerous properties, such as ; under UNIX.
    · The command definition specifies that an extra-check function module be run. This function module has rejected execution of the command.
    WRONG_CHECK_CALL_
    INTERFACE
    The command definition specifies that an extra-check function module is to be run. Either this function module is missing, or the interface defined for this function module does not match that of the standard R/3 function module SXPG_DUMMY_COMMAND_CHECK. For more information, please see SXPG_DUMMY_COMMAND_CHECK: Interface for Extra-Check Function Modules.
    TOO_MANY_PARAMETERS
    The command definition specifies that user-specified arguments for the external command are not allowed. However, an additional string of command arguments was specified.
    PARAMETER_EXPECTED
    The command definition includes the placeholder character ?, which signifies that additional user-defined arguments are required. However, no additional arguments string was supplied.
    PROGRAM_START_ERROR
    An error occurred while starting the external command. The R/3 system field SY-MSGV1 contains additional information on the problem.
    PROGRAM_TERMINATION_
    ERROR
    An error occurred while trying to obtain the return code of the external program. The R/3 system field SY-MSGV1 contains additional information on the problem.
    ILLEGAL_COMMAND
    The external command definition was modified "illegally". That is, the command was not modified by means of the maintenance function (transaction SM69).
    The modified command is registered in the system log in its substituted form. The message is registered under the system log ID "LC".
    OTHERS
    Catch any new exceptions added to this function module.
    Hope this will be useful.
    Sandro Lombardo

  • Can we call a BDC from REPORT program.

    hi
    can anybody tell me that
    can we call a BDC from REPORT program.
    thanks&regards

    Yes, It can be called.
    Infact you can generate a program from SHDB recording and in the program generated you can put necessary report logic and call the BDC/CALL TRANSACTION as required.
    <b>Please check here for a sample program,</b>
    http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm
    Regards
    Kathirvel

  • Call transaction variant from IW51

    hi ,
    i have created a transaction variant for va01.
    i want to call this transaction only when user creates sales order
    from IW51(service notification) .i dont know how to call transaction variant from iw51.
    i would appreciate your help on this.
    thanks,
    yoga

    Hi,
    You may refer this
    Passing Variant's value to a transaction iview
    Thanks
    Prashant

  • Call the BAPI from the program..

    Hey guys,
    can we  call the BAPI from the program..
    if yes how can  we  can show sales orders being loaded..
    thanks its urgent

    Nishant,
    yes easily you can call bapi from program.
    for getting all sales order use:
    BAPI_SALESORDER_GETLIST
    also am providing a program so that you can see how bapi has to call in program.
    CALL FUNCTION 'BAPI_SALESORDER_GETLIST'
                 EXPORTING
                      customer_number    = lf_customernumber
                      sales_organization = if_sales_organization
                      document_date      = lf_document_date_from
                      document_date_to   = lf_document_date_to
    *              PURCHASE_ORDER     = IF_PURCH_ORDER
                      material           = lf_matno
                 IMPORTING
                      return             = ls_return
                 TABLES
                      sales_orders       = sales_orders.
    Am afraid to say you that above solution you get about bapi it is not for showing the list of SO these are for creating SO.
    Edited by: Amit Gujargoud on Jul 3, 2008 3:12 PM

  • How to Call .XDO file From Java Program

    Hi,
    I have developed a report in using BI Publisher version 10.1.3.
    I created the report and it only created XDO files. If I want to call XDO file from Java program how I can do that.
    What are the APIs available to do that.
    Thanks
    -Ashutosh

    Hi,
    the JavaAPI didn't work with the xdo-Files. But you can create a proxy stub for the Web Service API of BI Publisher which uses the xdo's in the repository.
    regards
    Rainer

  • Call a Tcode from different program

    Hi frieds,
    How to call a Tcode using a push button in another report.
    Eg:   Tcode =  Ztest.  (for invoice list report, using 
                            the program zinvlist).
          This Ztest should be called in another report
          Zrep1 (program name Zsale) using the push button.
    Regards,
    A S VINCENT

    Hai Vincent
    *&      Form  DISPLAY_SEC1
         TO CALL TRANSACTION ME23
    form DISPLAY_SEC1.
    <b> SET PARAMETER ID 'BES' FIELD IT_EKKO-EBELN.
    CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.</b>endform.                    " DISPLAY_SEC1
    also I will send you Some Sample Code
    *& Report  ZSSSS1                                                      *
    REPORT  ZSSSS1  LINE-SIZE 120
                    LINE-COUNT 25(3)
                    MESSAGE-ID ZSAN.
    *Program Desc: INTERACTIVE REPORT FOR PURCHASE ORDER DETAILS
                   BASIC LIST CONTAINS HEADER DETAILS
                   SECONDARY LIST CONTAINS ITEM DETAILS
                      AND CONDETION RECORD DETAILS
       T A B L E S         U S E D                                   *
    TABLES: EKKO,EKPO,KONV,LFA1,T001.
       S E L E C T I O N     S C R E E N                             *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
    SELECT-OPTIONS:
          S_LIFNR FOR EKKO-LIFNR,
          S_BUKRS FOR EKKO-BUKRS.
    SELECTION-SCREEN END OF BLOCK B1.
       D A T A   D E C L A R A T I O N S                             *
    DATA: BEGIN OF IT_EKKO OCCURS 0,
              BUKRS LIKE EKKO-BUKRS,
              LIFNR LIKE EKKO-LIFNR,
              EBELN LIKE EKKO-EBELN,
              KNUMV LIKE EKKO-KNUMV,
          END OF IT_EKKO.
    DATA: BEGIN OF IT_EKPO OCCURS 0,
              EBELN LIKE EKPO-EBELN,
              EBELP LIKE EKPO-EBELP,
              MATNR LIKE EKPO-MATNR,
              INFNR LIKE EKPO-INFNR,
              MENGE LIKE EKPO-MENGE,
              MEINS LIKE EKPO-MEINS,
              NETPR LIKE EKPO-NETPR,
          END OF IT_EKPO.
    DATA: BEGIN OF IT_KONV OCCURS 0,
              KNUMV LIKE KONV-KNUMV,
              KSCHL LIKE KONV-KSCHL,
              KAWRT LIKE KONV-KAWRT,
              KBETR LIKE KONV-KBETR,
              KPOSN LIKE KONV-KPOSN,
          END OF IT_KONV.
    DATA: BEGIN OF IT_LFA1 OCCURS 0,
              LIFNR LIKE LFA1-LIFNR,
              NAME1 LIKE LFA1-NAME1,
              STRAS LIKE LFA1-STRAS,
              ORT01 LIKE LFA1-ORT01,
              PSTLZ LIKE LFA1-PSTLZ,
              LAND1 LIKE LFA1-LAND1,
          END OF IT_LFA1.
    DATA: V_BUTXT LIKE T001-BUTXT,
          FNAM(20) TYPE C,
          FVAL(20) TYPE C.
      A T    S E L E C T I O N - S C R E E N    O N    <FIELD>       *
    AT SELECTION-SCREEN ON S_BUKRS.
      PERFORM VALIDATE.
      S T A R T - O F - S E L E C T I O N                            *
    START-OF-SELECTION.
      PERFORM SELECT_DATA.   " SELECTION OF ALL DATA
      PERFORM DISPLAY_DATA.  " DISPLAY OF BASIC LIST
      A T   L I N E   S E L E C T I O N                              *
    AT LINE-SELECTION.
      GET CURSOR FIELD FNAM VALUE FVAL.
      CASE FNAM.
      WHEN 'IT_EKKO-EBELN'.
            PERFORM DISPLAY_SEC1.
      WHEN 'IT_EKKO-LIFNR'.
            PERFORM DISPLAY_SEC2.
      WHEN OTHERS.
            PERFORM DISPLAY_SEC3.
      ENDCASE.
      T O P - O F - P A G E                                          *
    TOP-OF-PAGE.
      PERFORM WRITE_HEADER.
      T O P - O F - P A G E   D U R I N G   L I N E  S E L           *
    TOP-OF-PAGE DURING LINE-SELECTION.
      PERFORM WRITE_HEADER2.
      E N D - O F - P A G E                                          *
    END-OF-PAGE.
      PERFORM WRITE_FOOTER.
    *&      Form  SELECT_DATA
          THIS FORM CONTAINS ALL SELECTION OF DATA STATEMENTS
    form SELECT_DATA.
    SELECT  BUKRS LIFNR EBELN KNUMV
            FROM EKKO
            INTO TABLE IT_EKKO
            WHERE LIFNR IN S_LIFNR
            AND BUKRS IN S_BUKRS.
    IF NOT IT_EKKO[] IS INITIAL.
    SELECT   EBELN EBELP MATNR INFNR MENGE MEINS NETPR
          FROM EKPO
          INTO TABLE IT_EKPO
          FOR ALL ENTRIES IN IT_EKKO
          WHERE EBELN = IT_EKKO-EBELN.
    IF SY-SUBRC = 0.
      LOOP AT IT_EKKO.
       LOOP AT IT_EKPO.
        SELECT  KNUMV KSCHL KAWRT KBETR KPOSN
                FROM KONV
                INTO IT_KONV
                WHERE KNUMV = IT_EKKO-KNUMV
                AND KPOSN = IT_EKPO-EBELP.
          APPEND IT_KONV.
        ENDSELECT.
      ENDLOOP.
    ENDLOOP.
    ENDIF." END OF IF FOR CHECK OF SY-SUBRC
       SELECT  LIFNR NAME1 STRAS ORT01 PSTLZ LAND1
               INTO TABLE IT_LFA1
               FROM LFA1
               FOR ALL ENTRIES IN IT_EKKO
               WHERE LIFNR = IT_EKKO-LIFNR.
    ENDIF." END OF IF FOR IT_EKKO IS NOT INITIAL
    endform.                    " SELECT_DATA
    *&      Form  DISPLAY_DATA
          DISPLAY THE BASIC DATA
    form DISPLAY_DATA.
      DATA: LINNO TYPE I.
      SORT IT_EKKO BY BUKRS LIFNR EBELN.
      LOOP AT IT_EKKO.
        READ TABLE IT_LFA1 WITH KEY LIFNR = IT_EKKO-LIFNR.
        SELECT SINGLE BUTXT
                      FROM T001
                      INTO (V_BUTXT)
                      WHERE BUKRS = IT_EKKO-BUKRS.
        WRITE:/1 SY-VLINE,
                (10) IT_EKKO-EBELN HOTSPOT ON,
                  SY-VLINE,
                (10) IT_EKKO-LIFNR HOTSPOT ON,
                  SY-VLINE,
                (15) IT_LFA1-NAME1 HOTSPOT ON,
                   SY-VLINE,
                (10) IT_EKKO-BUKRS HOTSPOT ON,
                  SY-VLINE,
                (15) V_BUTXT,
                 75 SY-VLINE.
                 HIDE: IT_EKKO-EBELN,
                       IT_EKKO-LIFNR.
         WRITE:/1(75) SY-ULINE.
        AT END OF LIFNR.
          LINNO = SY-LINCT - SY-LINNO - 1.
          SKIP LINNO.
        ENDAT.
      ENDLOOP.
    endform.                    " DISPLAY_DATA
    *&      Form  DISPLAY_SEC3
    form DISPLAY_SEC3.
      LOOP AT IT_EKPO.
         CLEAR: IT_EKPO, IT_KONV.
       READ TABLE IT_EKPO WITH KEY EBELN = IT_EKKO-EBELN.
        IF SY-SUBRC = 0.
              FORMAT COLOR 3.
              WRITE:/1 SY-VLINE,
                    (10) IT_EKPO-EBELN,
                    SY-VLINE,
                    (10) IT_EKPO-EBELP,
                    SY-VLINE,
                    (18) IT_EKPO-MATNR,
                    SY-VLINE,
                    (10) IT_EKPO-INFNR,
                    SY-VLINE,
                    (15) IT_EKPO-MENGE,
                    SY-VLINE,
                    (10) IT_EKPO-MEINS,
                     SY-VLINE,
                    (12) IT_EKPO-NETPR,
                      105  SY-VLINE.
               FORMAT COLOR OFF.
              WRITE:/1(105) SY-ULINE.
              FORMAT COLOR 4.
        READ TABLE IT_KONV WITH KEY KPOSN = IT_EKPO-EBELP.
         IF SY-SUBRC = 0.
          WRITE:/1 SY-VLINE,
               (10) IT_KONV-KNUMV,
               SY-VLINE,
               (10) IT_KONV-KSCHL,
               SY-VLINE,
               (15) IT_KONV-KAWRT,
               SY-VLINE,
               (12) IT_KONV-KBETR,
               SY-VLINE.
          WRITE:/1(95) SY-ULINE.
         FORMAT COLOR OFF.
       ENDIF.
    ENDIF.
    ENDLOOP.
    endform.                    " DISPLAY_SEC3
    *&      Form  DISPLAY_SEC1
         TO CALL TRANSACTION ME23
    form DISPLAY_SEC1.
    SET PARAMETER ID 'BES' FIELD IT_EKKO-EBELN.
    CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
    endform.                    " DISPLAY_SEC1
    *&      Form  WRITE_HEADER
            HEADER DISPLAY
    form WRITE_HEADER.
    FORMAT COLOR 3.
    WRITE:/1 SY-VLINE,
                (10) 'PUR.ORDER',
                  SY-VLINE,
                (10) 'VENDOR',
                  SY-VLINE,
                (15) 'NAME',
                   SY-VLINE,
                (10) 'COMP.CODE',
                  SY-VLINE,
                (15) 'COMP.DESC',
                 75 SY-VLINE.
    WRITE:/1(75) SY-ULINE.
    FORMAT COLOR OFF.
    endform.                    " WRITE_HEADER
    *&      Form  WRITE_FOOTER
    FOOTER OF LIST
    form WRITE_FOOTER.
    FORMAT COLOR 4.
    WRITE: /1 'USER:',SY-UNAME,
            45 'DATE:', SY-DATUM.
    FORMAT COLOR OFF.
    endform.                    " WRITE_FOOTER
    *&      Form  WRITE_HEADER2
             HEADER FOR SECONDARY LIST
    form WRITE_HEADER2.
          FORMAT COLOR 4.
          WRITE: /30 'INTELLIGROUP ASIA PVT LTD' CENTERED.
          WRITE:/50  'HYDERABAD' CENTERED.
              FORMAT COLOR 5.
               WRITE:/1 SY-VLINE,
                    (10) 'PUR.ORDR',
                    SY-VLINE,
                    (10) 'ITEM',
                    SY-VLINE,
                    (18) 'MATERIAL NUMBER',
                    SY-VLINE,
                    (10) 'INFO.RECD',
                    SY-VLINE,
                    (15) 'QUANTITY',
                    SY-VLINE,
                    (10) 'UNITS',
                     SY-VLINE,
                    (12) 'NETPRICE',
                      105  SY-VLINE.
               FORMAT COLOR OFF.
              WRITE:/1(105) SY-ULINE.
               FORMAT COLOR 6.
               WRITE:/1 SY-VLINE,
               (10) 'COND.RECD',
               SY-VLINE,
               (10) 'TYPE',
               SY-VLINE,
               (15) 'BASE VALUE',
               SY-VLINE,
               (12) 'AMOUNT',
               SY-VLINE.
               FORMAT COLOR OFF.
          WRITE:/1(95) SY-ULINE.
    endform.                    " WRITE_HEADER2
    *&      Form  DISPLAY_SEC2
       TO DISPLAY VENDOR DETAILS IN POP UP WINDOW
    form DISPLAY_SEC2.
    READ TABLE IT_LFA1 WITH KEY LIFNR = IT_EKKO-LIFNR.
    IF SY-SUBRC = 0.
      WRITE:/   'NAME IS:' ,   IT_LFA1-NAME1,
            /   'STREET IS:',  IT_LFA1-STRAS,
            /   'CITY  IS:',   IT_LFA1-ORT01,
            /   'POSTEL CODE IS:',IT_LFA1-PSTLZ,
            /   'COUNTRY IS: ', IT_LFA1-LAND1.
      WINDOW STARTING AT 1  15
             ENDING   AT 50 20.
    ENDIF.
    endform.                    " DISPLAY_SEC2
    *&      Form  VALIDATE
      VALIDATE BUKRS
    form VALIDATE.
    SELECT SINGLE *
                FROM T001
                WHERE BUKRS IN S_BUKRS.
    IF SY-SUBRC <> 0.
      MESSAGE E001.
    ENDIF.
    endform.                    " VALIDATE
    Thanks & regards
    Sreenivasulu P

  • Call transaction in a BDC program...

    Hi,
    I can see in one of the BDC program, the call transaction command is used. This BDC program updates the Vendor master table.
    CALL TRANSACTION BLF00-TCODE USING  FT
                                     MODE   ANZ_MODE
                                     UPDATE UPDATE.
    Now, I am trying to know what transaction code it is using in above call transaction to update vendor master.
    Regards,
    Rajesh.

    Put a break point on that statement in that program and run your program using MODE 'A', step thru the screens, when you get to that statement in debug mode, simply click on the BLF00-TCODE and see the value. 
    Regards,
    Rich Heilman

  • How to call transaction in an abap program

    how do we open a transaction thru an abap program and pass a parameter to it

    Use call transaction. You can fill up the parameters in the BDC internal table
    DATA:   bdc_tab LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    CONSTANTS: c_tcode LIKE t130m-tcode VALUE 'FB01'. "Tcode you want to call
            CALL TRANSACTION c_tcode
                 USING  bdc_tab
                 MODE   'N'
                 UPDATE 'S'
                 MESSAGES INTO messtab.
    Error message will be captured in the messtab.
    You can goto the SAP help on Call transaction to see all the details and options.
    <b><REMOVED BY MODERATOR></b>
    Thanks.
    Message was edited by:
            Alvaro Tejada Galindo

  • Calling GUI Scripting from ABAP program

    Is it possible to call GUI Scripting from ABAP and thus to use GUI Scripting as an alternative to CALL TRANSACTION?
    Is the class CL_JAVA_SCRIPT suitable to access GUI Scripting engine? Accessing ABAP data object would work as well in this case as i think. What SAP Logon and WAS releases are required? Is the 6.20 release sufficient for this case?
    I would appreciate if somebody could post an example.

    Hi,
    CL_JAVA_SCRIPT has nothing to do with SAPGUI Scripting.
    Calling SAPGUI Scripting API from ABAP could be possible for programmes experienced with OLE automation calls from ABAP coding.
    The hardest thing will be, to access the scripting engine handle as an entry point. Once you have a handle in your abap session, any api function can be invoked.
    Best regards
    Jens
    BTW: SAP testtool eCATT does call SAPGUI-Scripting from ABAP.

  • Procedure to Call Workflow Object from ABAP program in Se38

    Hi All,
    I have one scenario like i have to call one Workflow object from ABAP program in SE38.The scenario is like below.....
    I have to select some records from database table.For example there are 100 records in the internal table.
    For all that records i have to invoke Workflow for getting approval from the authorized persons. Once Approval has come to program, It will post one document in SAP and process ends.
    Please suggest me how to move forward with this scenario.
    Regards
    Manas Ranjan Panda

    Hi,
    So you want to start a workflow from an ABAP, if an event exists for that particular workflow then the best way is to use fm SAP_WAPI_CREATE_EVENT,
    to start a workflow from an ABAP you can use fm SAP_WAPI_START_WORKFLOW.
    Kind regards, Rob Dielemans

  • How To call a Tcode From a Program and returning back ?

    Dear All,
    I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?

    Hi,
    Basic syntax to call the transaction is:
    SET PARAMETER ID <id name> FIELD <filedname>.
    CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
    If your are using ALV then snippet is :
    FORM user_command  USING okcode    LIKE sy-ucomm
                           lselfield TYPE slis_selfield.
      CASE okcode.
        WHEN '&IC1'. " SAP standard code for double-clicking
          CASE lselfield-sel_tab_field."check if double click is only on
            WHEN 'ITAB-AUFNR'."aufnr not on any other field
              SET PARAMETER ID 'ANR' FIELD lselfield-value.
              CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
          ENDCASE.
      ENDCASE.
    Endform.
    Pooja

  • How to use call transaction stmt from webdynpro application

    Hi Expers,
    Can I use call transaction 'tcode' in my webdynpro application, I have tried in my application but i am getting short dump saying
    Error analysis+
    An exception occurred that is explained in detail below.The exception, which is assigned to class'CX_SY_SEND_DYNPRO_NO_RECEIVER',  was not caught and therefore caused a runtime error. The reason for the exception is: During background processing, the system  attempted to send a screen to a user. Current screen: "SAPLMGMM " 0060.
    I haven't used any more statements in my application am sure from my application side everything perfect. but I have seen a screen shot
    with SAP screen in webbrowser.
    Please help me out if you are not clear abt my doubt please ask me for clear idea.
    Thanks in advance
    Phalani M

    Hello,
    Since you can't use the call transaction command in web dynpros components, I suggest you to create a report and fill a BDC table on this and use the call transaction in this report.
    So, in your web dynpro component you can use a command SUBMIT to create a job in background.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards.

Maybe you are looking for

  • Exporting from Motion as MPEG 2 - won't happen - please help!

    I have a 3 minute Motion sequence that I can't export in Compressor - it takes over 5 hours to get halfway through the process. It looks as though Compressor has crashed, it goes so slow. Basically I need to make a DVD in DVDSP, urgently. I exported

  • Grouping Problem in Crystal Reports

    Hi, Looking for help on Crystal Report design, the issue is -  I have a group on Country, If I check  "Keep Group Together" option, then I'll often get a page with only one short group, the rest of the page blank because a big group starts on the nex

  • Business Connector work with ECC 6.0 or have to switch over to PI - Upgrade

    Hi Client want the upgrade their current SAP system from 4.6C to ECC 6.0. Like to know if Business Connector would work with ECC 6.0 or they have to switch over to PI. Please Help Thanks

  • Video Workshop Views

    Nice college education gave me design info, but no good Dreamweaver work. I have CS3. Working on the Video Workshop tutorials. The pages come up totally unlike those in the workshop, I think it is a Live View or Live Data issue, but there is no infor

  • Photoshop freezes up my mac, crashes Macos 10.7.5

    photoshop CC 2014 freezes up my mac, crashes Macos 10.7.5 to the point I have to restart machine! What's up with that? Joe Processor  2 x 3 GHz Dual-Core Intel Xeon Memory  8 GB 667 MHz DDR2 FB-DIMM Graphics  ATI Radeon X1900 XT 512 MB Software  Mac