Call a new SAP session within a subscreen area.

Hi,
I will really appreciate your help on this.
How could I call a new SAP session (other transaction or whatever) within a sub screen area?
Many thanks.

Hi Lezarazo,
http://help.sap.com/saphelp_46c/helpdata/en/73/69eba655bb11d189680000e829fbbd/content.htm
If you need to have functionality where you can kick off a transaction in another window then do the followingu2026.
To call the function:
The Structure: ZSE_ITAB
with FIELD  CHAR40 and VALUE CHAR40
DATA: itab_fields type STANDARD TABLE OF ZSE_ITAB,
      wa_field    type ZSE_ITAB.       wa_field-field = 'BELNR'.
      wa_field-value = t_invoice.
      APPEND wa_field TO itab_fields.
      CALL FUNCTION 'Z_CALL_TRANSACTION_SESS'
        STARTING NEW TASK 'TA'
        EXPORTING
          tcode          = 'VF03'
          skip           = 'X'
        TABLES
          itab_data      = itab_fields
        EXCEPTIONS
          no_transaction = 1
          OTHERS         = 2.
Function Module Defined: Must be a remotely enabled function module
Its just the same procedure as of ordinary Function module, but in the Attributes Tab, under Processing Type you have to select Remote-Enabled Module instead of Normal Function Module.
Example :
FUNCTION z_call_transaction_sess.
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(TCODE) TYPE  TCODE
*"     VALUE(SKIP) TYPE  FLAG OPTIONAL
*"  TABLES
*"      ITAB_DATA STRUCTURE  ZSE_ITAB OPTIONAL
*"  EXCEPTIONS
*"      NO_TRANSACTION
The additional info about calling transactions can be found in the following link
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9da935c111d1829f0000e829fbfe/content.htm
or Lezarazo you can create your own zfunction module call that function module in your program using the CALL TRANSACTION Statement inside a Remote-Enabled Function Module and then using the STARTING NEW TASK addition while calling the Function Module.
Hope this helps,
Revert for further clarification.
Thanks and Regards
Srikanth.P

Similar Messages

  • Transaction iView(from remote source) does not open a new SAP session

    Hi All,
    We are on portal 7.4 and are calling a transaction from ECC system. Within the transaction we have a button which displays graphs based on the output of the transaction. Since we are calling this transaction from portal, a new session does not open after clicking on this button.
    In order to enable a new session, I have changed the configuration for 'disable new session buttons in SAP GUI' to false yet the new SAP session does not open. I have also verified the webgui setting and ensured that we do not have '~singletransaction' maintained,  yet we are unable to enable the new session. Could you kindly suggest on how I can get this button to function?
    Additional inputs:
    - Referred to note 125814 for changing the new sessions value.
    - Tried changing the iview type to 'SAP GUI for window' from SAP HTML type(which was default).
    - In case I type '/o' in the command box for SAP, it gives me a 'maximum sessions reached' message, but this message does not come when I click on this button. In fact, nothing happens after I click on the button.
    I still think there might be a possibility to enable this, however, I seek your inputs on this.
    Awaiting response...
    Warm Regards,
    Vinay

    Hi Harini,
    thanks for your answer!
    I can tell you that the same command used from the SAP Client open a new session with the same transaction...
    Is strange that from the portal it has a different behaviour...
    Best Regards

  • Load a new SAP session on the same screen without leaving it.

    Hi,
    I went through demo DEMO_ABAP_OBJECTS_SPLIT_SCREEN and really it is meet my business requirements especially when double clicking one node it is navigate to the proper website. the only thing I need is instead of calling the airline website I want to load an SAP session on the same screen with leaving it.
    Please, I appreciate your help on this.
    Thanks, Thoram...

    I am sure this can be done. I am a newbie so I have not performed this type of task before. You can try this in your sandbox environment first. The databse and its connection information for ABAP stack is in the DEFAULT.PFL. ABAP uses windows authentication to connect to SQL Server.
    1) Stop the SAP instances running in the server.
    2) Make a backup of the databse you want to move to another instance.
    3) Restore the backed up database in your new instance.
    4) Make changes to the following entries in the default.PFL of the <SID>.Also check these entries in the instance profile (<SID>_DVEBMGS01_<server_name>) to make sure nothing is overwritten from the DEFAULT.PFL
      dbs/mss/server = <server_name\instance>
      dbs/mss/dbname = <SID>
      dbs/mss/schema = <six>
      j2ee/dbtype = mss
      j2ee/dbhost = <server_name\instance>
      j2ee/dbname = <SID>
    If you use JAVA AS also then launch the configtool.bat and click on "Secure Store" and change "jdbc/pool/<SID>/Url" to include the instance name i.e. "jdbc:nwmss:sqlserver://<sql_Server_Name>\<instance_name>;databasename=<db_name>".
    I hope this helps!
    RT
    Message was edited by:
            R.T.

  • Dialog Programming(module pool):call a screen to subscreen area.

    Hi experts,
    I want to call a screen created in the function group into my
    subscreen area of current screen of main program.
    I have done the below way :
    1. Created a screen 100 in the module pool program z_bpmodule.
    2.created a subscreen area SUB in screen 100.
    3. I hav created function group :zfungroup
    and  a screen 300,a function module Z_EXPORT_FUN for exporting the data to the screen 300 from report.
    Now my prog is lik below :
    PROGRAM  Z_SUBSCREEN1.
    DATA : ZMATNR LIKE MARA-MATNR.
    DATA : DYNNR LIKE SY-DYNNR .
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  EXPORT_DATA  OUTPUT
          text
    MODULE EXPORT_DATA OUTPUT.
    CALL FUNCTION 'Z_EXPORT_FUN'
                              EXPORTING Z_INPUT = ZMATNR.
    ENDMODULE.                 " EXPORT_DATA  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXP'.
    DYNNR = '0300'.
    *ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    and the flow logic is lik this :
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    MODULE EXPORT_DATA.
    CALL SUBSCREEN SUB INCLUDING SY-REPID ' 0300'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SUB.
    Now the main problem is i am not able to call the screen from function group to subscreen area...
    kindly provide the solution.....
    Thanks a lot in adv ....
    Brahma.

    I am just getting the main screen and the subscreen is not at all displaying .....
    but when i perform the PAI .. I am getting the dump ..
    Short text
        Dynpro does not exist
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "Z_SUBSCREEN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        The system attempted to use dynpro 0000 in program "Z_TX1".
        This dynpro does not exist.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DYNPRO_NOT_FOUND" " "
        "Z_SUBSCREEN1" or "Z_SUBSCREEN1"
        "EXPORT_DATA"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    hope i have given the full information.
    Thanks a lot.

  • Call a transaction in a new session within a program

    Hi Friends,
    I have a requierment to call a custom Z Tcode within a module pool program. When I click on a particular pushbutton the custom transaction should get called in such a way that user should be able to be in the called transaction as well as in the calling program.
    Can someone please help me on how to go about this? I have tried SUBMIT, CALL TRANSACTION, LEAVE TRANSACTION, etc.,
    Thanks,
    Dikshitha

    Hi dixitha,
    1. You want to open VA01 in NEW WINDOW
    2. You want to PASS some values to VA01 (eg. Order Type, Sales Organization etc)
    There are two things.
    1. As mentioned by Vinod, use the function module
    DATA: bdcdata TYPE TABLE OF BDCDATA.
    CALL FUNCTION 'CKEKUTIL_CALL_TRANSACTION_TASK'
      EXPORTING
        transaction       = 'VA01'
    *   MODE              = 'A'
    *   UPDATE            = 'S'
      TABLES
        bdcdata_imp       = bdcdata  "Blank table
    2. BUT, this will ONLY open the tcode VA01 with BLANK values.
       If you have made a BDC program, then you will understand that
       for filling up values automatically, we have to pass some informatino
       (eg. program name, screen number, X
              field name, field value
              field name, field value ) etc.
      to this , using the tables parameter BDCDATA_IMP.
    So for eg., the values for this itab will be
    PROGRAM          DYNPRO     DYNBEGIN FNAM          FVAL
    SAPMV45A     0101     X
                        VBAK-AUART     OR
                        VBAK-VKORG     1000
    This will open VA01 tcode, with order type  as OR (Standard order)
    and Sales organization as 1000.
    (You can use SHDB tcode to get the screen field names and values and the full recording)
    Hope this helps.
    regards,
    amit m.

  • Is there anyway to stop iPhoto 9.6 creating a new unnamed album within a named album when I drag a new photo into the named album.  for example:  There is a album called Fred.  I have a new photo of Fred imported into the Last import Folder.  I wante

    is there anyway to stop iPhoto 9.6 creating a new unnamed album within a named album when I drag a new photo into the named album.  for example:  There is a album called Fred.  I have a new photo of Fred imported into the Last import Folder.  I wanted to drag it into the album called Fred but iPhoto creates a new unnamed album within Fred.
    Any ideas please.  I am using Yosemite 10.1.1
    Many thanks Jaz Eilles

    Sounds like you have a folder with an album named fred inside of it.  Folders can only hold other folders, albums, slideshows, etc. but not just photos.  So you must be sure to drop the photo directly onto the album titled fred that resides inside that folder otherwise it will create a new album.
    So expand the folder so the fred album is visible and drop the new photo onto the album.

  • Call a report with selection screen as subscreen.

    Hi all,
    i need to Submit And Return a Report having some parameters and Select options, from a Function Module.
    all i want that the Selection Scrren of Report should appeared as Subscreeen, so that Calling Screen sould be visible in Background.
    Is this Possible , if yes then How ?
    thanks in advance,
    Nitin

    Running new report means opening new internal session. This can't be embeded within the current internal session where your function group (function module specifically) runs. So there is no such a way which you could run a report inside a subscreen area.
    If you however want only selection screen of the report to be embeded inside your subscreen area (not run) you can use
    "report Z_SUBSCREEN_REPORT
    SELECTION-SCREEN BEGIN OF SCREEN 0200 as SUBSCREEN.
      PARAMETERS pa type c.
    SELECTION-SCREEN end of SCREEN 0200.
    "main screen's flow logic in function group with subscreen area
    PROCESS BEFORE OUTPUT.
      call SUBSCREEN area INCLUDING 'Z_SUBSCREEN_REPORT '0200'.
    Regards
    Marcin

  • Facing problem with call subscreen area in standard infotype

    Dear SAP Guru's,
    I have enhanced standard infotype 0185 from PM01, in assign enhancement tab it create multiple screens ,
    my program name ZP018500, screen number 0200 generated,
    on  0200 screen i need to display two subscreens tfor that
    i have created subscreen area  on srcreen 0200 which is already a subscreen.
    and i am calling two subscreen 0201 and 0202 on that  subscreen area.
    while creating entries for 0185 infotype  my screen keep going in continious loop for call subscreen statement on 0200 screen number.
    roll in fail, session terminated error coming because of this.
    is it correct to create subscreen area on subscreen and calling subscreen on that.
    Guide me to solve the issue.
    Thanks and Regards,
    Syed

    Dear Gopal,
    Thanks for the reply,
    But i can't make 0200 screen as normal screen because it is automatically generated by system while enhancing the standard infotype,
    Please let me know any other solution.
    Regards,
    Syed Taj

  • A Problem when calling a new WDA Application

    Hi,
    i am opening a new wda application with link in a html page using that code;
    in a html;
    <a href = "http://domain/sap/bc/webdynpro/sap/zhr_105_user_pass_control" />  Link </a>
    in "zhr_105_user_pass_control" wda application;
    METHOD onactioncall .
      DATA : lv_url TYPE string.
      CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = 'ZNEW_WDA'
        IMPORTING
          out_absolute_url = lv_url.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component  TYPE REF TO if_wd_component.
      DATA lo_window         TYPE REF TO if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    ENDMETHOD.
    But this is opening wda application in new window and standard sap sessions couldn't starting so the login screen is opening.
    How can i redirect my wda application to another wda application with started sessions?
    Can somebody help me please?
    Thanks.

    Hi,
    Here you r using below code
    CALL METHOD lo_window_manager->create_external_window
        EXPORTING
          url    = lv_url
        RECEIVING
          window = lo_window.
      lo_window->open( ).
    It's occuring the external window each time that's why opening Log-On window.
    Skip this code and use the code for keep the same window.
    -Rick

  • Which abap statements will start new internal session in the same external

    hi
    which abap statements will start new internal session in the same external

    Hi,
    Generally, the statements SUBMIT and CALL TRANSACTION would create internal session within another.
    However, the addition 'AND RETURN' should be specified upon using SUBMIT statement else without the addition, the internal session will be overwritten with the new program called by using SUBMIT.
    LEAVE TO TRANSACTION also will overwrite the current internal session with the new transaction code.
    Cheers,
    Venkat
    P.S: Kindly reward points for useful answers

  • Create new user session after RFC connects

    Hi,
    My client is non SAP. They connect to SAP through an intermediate software , using RFC connections. My client requires that when creating a BOM through BAPI, the "created by" column should have a user name they pass, and not the username with which the RFC connected .
    Is it possible to have a FM in which I can create a new user session, passing username and password, call the bapi that will create the BOM with this username, and close the session?
    Kindly help.
    Thanks in advance

    Most security audits will trigger a warning when they determinate that the RFC common user is allowed to use another logon id. Usually you can provide auditors a list of such id with explanation before the audit execution, sample of explanation to provide :
    - The RFC enabled FM which create the batch job must pass the logon id to be used, and the calling application must not allow user to change this value.
    - The RFC default logon, should be allowed to the minimal authorization required, and could be for example allowed to no transaction, only some RFC FM. (start with [Note 460089 - Minimum authorization profile for external RFC programs|https://service.sap.com/sap/support/notes/460089])
    Regards,
    Raymond

  • Closing sap session

    Hi all i have got a slight problem when closing an SAP session from an BSP(MVC). I am currently using navigation->goto_page( 'main.do?sap-sessioncmd=close' ), which works when i call my BSP using a GET method form:
    <FORM name=form1 action=https://www.not_real_url/main.do method=GET target="_blank">  ... </FORM>
    But when i use a POST method form it just does not seem to close the session:
    <FORM name=form1 action=https://www.not_real_url/main.do method=POST target="_blank">  ... </FORM>
    Has anyone got any ideas?
    Regards
    Mart

    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <script language="JavaScript">
    function exitBSPApplication()
    <% CLASS cl_bsp_login_application DEFINITION LOAD. %>
    var EXIT_URL = "<%= CL_BSP_LOGIN_APPLICATION=>GET_SESSIONEXIT_URL( page = page ) %>";
    EXIT_URL += "&bsp_do_not_delete_sso2_cookie=X";
    alert(EXIT_URL);
    self.location.href=EXIT_URL;
    window.open(EXIT_URL);
    </script>
    <form name="frmmenu" method="post">
    <table width="760" border="0" cellspacing="0" cellpadding="0">
    <tr><td>
       <input type=submit name="pributton" value="exit" alt="Click here to Print" onClick="Javascript:exitBSPApplication()">
    </td></tr>
      </table>
      </form>
    It works for me.<b> Create a new BSP Page with the above code and test.
    Rgds,
    Jothi.

  • HT1420 I purchased new computers twice within the same year because they old were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers.  How do I deal with this situation.

    I purchased new computers twice within the same year because they were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers because it has been less than a year.  How do I deal with this situation?

    BrianBlaze wrote:
    I have 3 Computers at home, I am studying computer sciences and am constantly rerformatting my computers, installing windows and linux over and over again.... EVERYTIME I reformat I have to authorize the same computer and so it takes up one of my 5 authorized computers... Anyways after deauthorizing all my computers in september I was not aware I couldn't do it for another year (why does APPLE assume these stupid tactics prevent piracy). Anywysw I need to reach apple and have them make it so I can do it again. I had a similar problem with Playstation and when I called them they fixed it for me... even windows (which you can only have one serial per computer) made it easy because all I had to do was call them and they fixed it for me. Now I need APPLE to do the same and this is the only place I could see to actually say what is going on... I can't believe I have to do this with my iPhone... I wanted an mp3 player and a phone together and if I can't put new songs until September 20, 2012 I am going to freak out!
    HELP!
    Brian
    Try this link: http://www.howtogeek.com/howto/23974/beginner-deauthorize-all-computers-associat ed-with-your-itunes-account/

  • How to create a different browser session within the same profile

    Internet Explorer 8 lets you create a new session within a new browser window but how can I do the same with Firefox? I know if you switch user profiles then you can have two browsers in different sessions but I would like to have two sessions using the same user profile.

    Sorry, that's not possible with Firefox. Firefox uses a single executable instance to run all windows and tabs, where IE starts another process for each window. Chrome uses a separate process for each tab (or window), which seems real nice until it sucks the life out of an older processor with the "overhead" of all those separate processes.
    Depending upon what you want a "different session" for, there are 3 extensions that allow for multiple cookie sessions which allow for multiple, simultaneous logins to the same server. That works to allow the user to log into multiple webmail accounts at the same service provider. <br />
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • How to call a set method from within a constructor

    Hello,
    I want to be able to call a set method from within a Scanner, to be used as the argument to pass to the Scanner (from a source file). Here's what i tried:
    private void openFiles()
            input = new Scanner( setSource );              
        and here is the set method:
    public String setSource( String in )
            source = in;
            return source;
        }obviously there will be more code in this method but i'm trying to tackle one problem at a time. Thanks in advance..

    The "String in" declaration says: "Nobody may ever invoke setSource() without specifying a certain String. The content of the String is known at run-time only."
    In no place in your code you say the compiler: "I want the 'in' variable (actually, parameter) of method setSource() to contain the first arg which is passed to the application".
    This is exactly the same mechanism allowing you to write "new Scanner" with something inside the two parentheses.

Maybe you are looking for

  • External hard drive, error -36, corrupt files and slow transfer speeds

    This is a long post but stay with me. I've got an external 250GB Lacie drive connected to my 24" Intel iMac via Firewire 800. I have approximately 80GB worth of files (including my iPhoto library) on the Lacie that I'm trying to move over to my iMac

  • Applet Focus in JSP.

    I have an applet embeded in a JSP page. In this applet I have some text feilds for data entry. After the each data entry this field get validated . If the entered data is wrong then it popup a message using the JOptionPane. Now the problem. :- after

  • Hr programming questions

    There are multiple versions of SELECT for HR e.g. SELECT * FROM PA0001 WHERE PLANS = LEADING_POSITION-OBJID AND BEGDA LE PN/BEGDA AND ENDDA GE PN/ENDDA. what difference between these 5 versions of SELECT? *1. ? and begda le pn/begda (begda) and endda

  • Reset security code Nokia Asha 309

    How to reset security code Nokia Asha 309. Please help me.

  • Reflection using super?

    This is pseudocode for what I want to do. Is there a way to do it? class MyException extends Exception   MyException(Throwable cause)      if (islessthan_jdk1.4())         super(cause.toString());      else         super(cause); //this needs to someh