Use same LUW / create session

Hi,
I would like to use the BAPI BAPI_BUS2172_CREATE to create a new cProjects Proj.definition. This BAPI requires the BAPI BAPI_CPROJECTS_COMMIT_WORK to be called afterwards in order to acutally create the database entries. Unfortunately it doesn't work because the second BAPI seems to be called from within a different LUW (Logical unit of work). Is there any way to call these two BAPIs "together" so that they use the same connection or LUW in the backendsystem?
Many thanks & regards,
Nils

Hello Nils,
I think it has something to do with the RFC itself. When you call a BAPI in VC then you get a session id, or something like that. When the BAPI ends the session becomes invalid and therefore the next BAPI becomes another session id.
But to be honest I don't understand that much about RFC, session ids etc...
So I use this workaround: it works fine: and ...
never change a running system!
Regards, Michael

Similar Messages

  • Restrict same user using same internet explorer session

    Hi,
    I encountered a problem here. Hope some one had deal with this problem can help me out.
    The application was written in BSP. The users are using Internet Explorer 6.0 and 7.0 to use the application.
    The problem I encountered here is after an user is logged in to the system through the browser, then he open another new window or tab (ctrlN or ctrlT), the application will not prompt him to login again because the sessions were shared between this two internet explorer. I do not want this to happen because it giving problem and causing data loss.
    Any possible way to restrict user to open two same application within same session? Because the problem will not occur if the user open two same application within different session.
    I really appreciate for those who can help me on this.
    Thanks you.

    Check OSS notes for this - there are a number about aspects of BSP logons.
    I believe this is to do with a cookie being held / kept alive that should not be.  There are some OSS notes about this issue - you may have to redefine how the user logs on so that HTTP Basic Authentication is not used.
    Andrew

  • How do I use the same Icloud address on my Ipad and Iphone ? I went to put my icloud address on my Iphone, but ttells me it is already being used and to create another one, which I dont want to do

    I have just bought an Iphone 4s to compliment my Ipad Air, I want to use my Icloud address on both machines but cant get my iphone to accept my icloud address, it tells me it is already in use and to create a new one, which is not what I want.. How do I get the same email on both devices?

    it tells me it is already in use
    You will need to contact the previous owner of the iPhone in order to change the Apple ID.

  • I have a file that was created in FH 11 and I am using same version.Originator opens file and everything is fine and also earlier version opens it fine.when I open it the links shift 1/8" up and left.Has anybody had this happen to them

    I have a file that was created in FH 11 and I am using same version.Originator opens this file and everything is fine and also an earlier version opens it fine.When I open it it shifts the links 1/8" up and to the left.Has anybody ever had this happen to them?

    What file format(s) are the "links"?
    If raster images, do they contain clipping paths or transparency?
    What is your platform and OS?
    Were the FH documents created on the same platform (Mac or PC) as the one you are currently using?
    Were the linked files created on the same platform (Mac or PC) as the one you are currently using?
    Can you reproduce the problem with a newly created document and the same linked images?
    There was once an issue with transparent 1-bit TIFF images shifting, but I believe that was in a previous version of FH.

  • How to create session and end the session in atg without using ootb

    can anyone send the code for creating session(Login) and ending(Logout) session in atg without using ootb.
    thankyou!

    It is plain simple and is plain old request.getSession(false) and then invalidate the session , but why do you want to do it separately . ATG works behind scenes to associate lot of attributes to the session when log in happens and then deassociates them when log out happens , SessionManager component is also helpful in security , can you state why exactly would you want to do it?

  • Create session bean using interfaces, not implementation classes

    Hi,
    I'm using interfaces and session beans for my persistence/data layer in my adf application.
    I've created a data control for my session bean and during creation of this data control, javabean.xml files are created for the different interfaces that are used in my session bean.
    If I create bindings on these methods, interfaces in jspx-documents I will get errors because he can't find the impl-classes that implement these interfaces.
    When using interfaces in your session bean (as return values or parameters) instead of classes you need to manually create javabean.xml files for the implementation classes.
    It's required by the databindings/datacontrol that the implementation-classes are described in a javabean-format as well? Is this a spec we need to adhere to?
    Could someone verify that you need to create javabean.xml-files for as well the interfaces as the classes when you're working with interfaces in your session beans?
    regards,
    Nathalie

    A patch was released by Oracle to be able to work with Interfaces and so it's not required to work with implementation-classes.
    Patch for 5726754(Base bug 5657179)

  • Can we use Call transaction and session method in same program ?

    Hi experts,
                     Is it suggested to use call Transaction and session method in the same Program ?
                     i have a doubt , why cant we use multiple call transactions in same program instead of session method if we have multiple transaction updations ?

    Hi Dengyong Zhang,
    we can use the call transation and session method in same program.
    However for better performance it's benificial to use call trasaction method of BDC. but if u want to upload very large amount of data then Session method is more preferable to use.
    Session method is one of the method of BDC.
    U can also use BAPI to upload the data in SAP but it's a different concept than BDC. Performance wise BAPI is more advantageous than BDC.

  • Can we use same session again and again

    can we use same session again and again.....in BDC
    thanks,
    venki..

    Hi
    Till all the records in that session was properly uploaded into the system you can use the same Session again and again.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Created FK using sql but "CREATE SCRIPT" not same

    I used this to create a FK relationship between  a Parent and Child table.
         ALTER TABLE [dbo].[Child]
         ADD  CONSTRAINT [FK_Child_Parent]
         FOREIGN KEY([Pid])
         REFERENCES [dbo].[Parent] ([pid])
         GO
    When I scripted the relationship (under SSMS) this was returned....
         ALTER TABLE [dbo].[Child]  WITH CHECK ADD  CONSTRAINT [FK_Child_Parent] FOREIGN KEY([Pid])
         REFERENCES [dbo].[Parent] ([pid])
         GO
          ALTER TABLE [dbo].[Child] CHECK CONSTRAINT [FK_Child_Parent]
          GO
    Note the addition of "CHECK CONSTRAINT" and now there are two statements What does that do that my original statement didn't?
    TIA,
    edm2

    It does nothing different.  This is just another instance of SSMS explicitly scripting out the current state of the object, and explicitly specifying every possible option, even if the current value is the same as the default setting.
    The first statement creates the constraint, checks the existing data and enables the constraint.  The second statement enables the constraint.
    The reason it uses two statements is probably because you cannot create a CHECK CONSTRAINT and disable it in a single statement.  If you want to, you must use two statements.  So SSMS appears to be coded to always use two statements: one to create
    the constraint and one to set it's enabled/disabled state.  IE because it sometimes requires two statements to create a CHECK CONSTRAINT in the desired state, SSMS always uses two statements, because it's simpler to code the script generator that way.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • How to use cdrw to create multi-session cd?

    I use cdrw to create multi-session cd as this:
    # cdrw -O -i /tmp/1.iso
    contents in 1.iso can be read by both Solaris and Windows, then
    # cdrw -O -i /tmp/2.iso
    Solaris consider the cd is empty and Windows consider the cd is not existed.
    My question is, how to handle multi-session cd in Solaris? From some cdrecord FAQ, the data was there but TOC was broken, so one tip is importing TOC of previous sessions before burn. But how?

    Honestly I know this is sort of a weak point with Macs. Not really sure why. I guess with the price of HD storage getting cheaper as well as writable media it's just not something people are interested in enough. But that's too bad because it does seem to have interest.
    Anyway you might check out Burn Again

  • Problem FOR creating session in SM35 with EDI process using trans.sm35

    When we create output for billing documents (VF31 t-code)  for EDI output with following inputs, it create input session for data uploading, which we can check with  (SM35 t-code). Thru which we upload the data in system.
    Till 31st  March 2007 it is working and we have uploaded our data also. Since 1st April 2007 we are unable to create session for uploading the data

    Hai Manish Patel,
    There might be date range hard coding values.
    Please <b>check the Report Program.</b>
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • Problem FOR creating session in SM35 with EDI process using trans.VF31

    Hi all,
    When we create output for billing documents (VF31 t-code) for EDI output with following inputs, it create  session for data uploading, which we can check with (SM35 t-code). Thru which we upload the data in system.
    Till 31st March 2007 it is working and we have uploaded our data also. Since 1st April 2007 we are unable to create session for uploading the data
    Manish

    Hai Manish Patel,
    There might be date range hard coding values.
    Please <b>check the Report Program.</b>
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • JMStudio Error  "Can not create session manager"

    Hi,
    I'm trying to transmit an mpg file through a simple pc to pc network, using the transmission wizard in the JMStudio, and everytime it causes a "can not create session manager" error, even when I try to transmit .mp3 file
    I'm using an ip like 100.100.0.1 for the sender machine, and 100.100.0.2 for the receiver machine, and I don't know where is the problem
    thanks in advance

    Um,maybe the port that you use for transmission is already occupied.
    Make sure that you are not using JMStudio to transmit streams while trying to receive streams from the same port.

  • Solution Manager EWA - cannot create session in satellite system

    "Hi,
    I want to configure EWA self service using Solman 4.0. I succesfully did the following :
    a. Maintained SMSY and create the required trusted RFC connections from SM to satellite system. All connection and authorization passed in SM59. I used SAP_ALL/SDCCN_ALL role and assigned objects S_RFC*.
    b. Assigned the system to a logical system.
    c. Created the a new solution and activate "Solutions Monitoring > Earlywatch Alert"
    d. Activated and maintained required RFC in SDCCN in satallite system.
    My problem is that the create EWA alert request (Red Flag with a specific session number ) coulnd be pass to the satelitte system even though all the trusted RFC and authorization is set. When i execute the SESSION_REFRESH in the satellite system, the session is not created.
    Did I miss out any steps. Can any one share any help ?
    FYI, there is no connection to SAPOSS yet, so i did not manage to run RTCCTOOL completed, but i doubt this is required for EWA self service."
    I  have the same problem as Solution Manager EWA - cannot create session in satellite system
    tried all of solutions,  but it does not help... Created the CM (high) for SAP, but get 1 response for 1 week from them:(

    Dear Sapbcer,
    Have you tried the following option :
    Execute SMSY and from the Server entry Execute the "Read System Data Remote" option in change mode.
    Save the data captured and then try using Refresh Session Task from SDCCN of the satellite system. Do select the RFC for Solution Manager while performing this task.
    Hope this helps.
    Regards
    Amit

  • UCCX 8 - Dramatic change in the Create File Document step that is used by the Create XML Document step in order to read an XML file

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed.  I've re-used this script on 20+ client installs and it's always worked.  The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
    I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error.  It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
    So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
    The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING.  This seems to imply that I have to hardcode the document in each script that I deploy for a customer.  When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
    Questions to the group
    #1 Am I missing something here?
    #2  Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
    #3 Cisco didn’t document this in any way that I can find.
    #4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    (Background)
    Create File Document Step
    The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
    The output of this step is a DOCUMENT to be used in the Create XML Document step
    The string FILE_FullPathHolidayFiles references  en_us\folderName\documentName.xml
    The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    The create XML document input can only be a type DOCUMENT

    #1 Am I missing something here?
    You are mixing two different issues together here.
    The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
    Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
    #2  Do you assume that you'll be able to load a script that
    worked fine in UCCX 7 into UCCX 8 and that it should completely
    function when you're doing everything according to the step reference
    documentation.
    Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
    #3 Cisco didn’t document this in any way that I can find.
    You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
    Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
    #4 How can you use the Create XML Document step in a fashion that would
    let you construct the path of the file and the filename previously in
    the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example:  "DOC[" + myFilePath + "]"

Maybe you are looking for