Issue with SM30 in user defined transaction

  I have a custom transaction from where I`m calling SM30 transaction skipping the inital screen of SM30. I`m running a background BDC program to call this transaction where in I give the table name to be changed / displayed and other conditions before going to SM30 tranx.
It opens the transaction screen from my custom transaction. But when I click on either BACK or CANCEL button in SM30 screen , its taking me to SM30 initial screen. How do I modify the SM30 screen ,so that it`ll take me back to my custom transaction or it shows me the SAP inital screen.
Any help on this would be helpful and rewarded .Thanks in advance.

You can Try this method.
Note: You can acheive this functionality by changing the Code of the Function group generated by Table maintenance generator.
Open the TABLE MAINTENANCE program(Function Group) of ur Custom Table (for which you created the Custom Tcode).
Open the Flow logic of the Screen where you want to alter the Functionality of the BACK and CANCEL.
Change the Logic in the PAI Module as below (for BACK and CANCEL)
Note: by default there may be SET SCREEN 0 or LEAVE TO SCREEN 0 .
   IF SY-BINPT = 'X'.  "Only for batch input processing
Let me know the result.
<b>Reward if Helpful.</b>

Similar Messages

  • User Defined Transaction in Logical Data Service

    I have few physical data services created from database store procedures. I've corresponding logical services for each of the physical data services.
    Now I've created a logical data service that calls 2 store procedures & trying to update this 2 store procs in a single transaction.
    Also I dont have a read operation in my logical data services. In this case both store proc. should take part in a single transaction & should commit or rollback as per success/failure.
    I tried testing this scenario & it fails. ALDSP was able to update first store proc. but there was an error in second store proc. so it should have rollback the entire transaction.
    Is there any way that we can have user defined transaction in logical data service?
    My Scenario:
    InsertData(RequestA,RequestB) as response
    res1 := call First Store Proc (RequestA) ;
    res2 := call Second Store Proc (RequestB);
    response := res1 + res2
    So my question was is it possible to define user transaction before making calls & have commit/rollback define around it.
    Apprecaite for your help!

    I have assumed that you realize you need XA drivers for this. What is the exception you see? Something about "mixed outcome"?
    But in the case of store procedure, we cant drag & drop physical ds into logical ds. Why?Since your stored procedure updates, it should be defined in the physical ds as a "procedure" not a "function" - it sounds like it is. (procedure means it will update, function means it will not - not that it is a "stored procedure"). Because it updates it cannot be called by an xquery function because xquery is by definition read-only. It can only be called directly from the client, or from another procedure (which is XQSE, not Xquery). If you created a logical ds with a "procedure" - you could drop your procedure into that.
    created a new library procedure in which i am calling 2 physical ds assuming it will be executed in a single transaction. But it does not. Please verify.
    But it does not. Please verify.I won't verify it because it is not correct. It should be treated as though it is one transaction. And barring the bugs with JNDI/data source names and multi-data sources, I do not know how how it would not be. So either there is a misunderstanding or a new bug.
    Either way you need to open a case with customer support to resolve this. When you open your case, the more information you provide them with (i.e the smallest possible dataspace that will reproduce the problem along with DML to create the stored procedures and the tables that they use, and also any/all exceptions/stack traces and server logs).
    - Mike
    ps. there are no means to explicitly create a transaction in ODSI.

  • Java user-defined transaction management not working correctly???

    Hi everyone,
    I have encountered a problem when using Java user-defined transaction management in my session bean. It threw an exception but I could not work out what that means. Could anyone comment on this? Thanks.
    This BrokerBean is a stateless session calling other entities bean to perform some simple operations. There are 2 Cloudscape databases in use. Invoices (EB) use InvoiceDB and all the other EBs use StockDB.
    If I comment out the user-defined transaction management code, then everything works fine. Or if I comment out the Invoices EB code, it is fine as well. It seemed to me that there is something wrong in transaction management when dealing with distributed databases.
    --------------- source code ----------------------
    public void CreateInvoices(int sub_accno) {
    try {
    utx = context.getUserTransaction();
    SubAcc subAcc = subAccHome.findByPrimaryKey(new SubAccPK(sub_accno));
    String sub_name = subAcc.getSubName();
    String sub_address = subAcc.getSubAddress();
    Collection c = stockTransHome.findBySubAccno(sub_accno);
    Iterator i = c.iterator();
    ArrayList a = new ArrayList();
    while (i.hasNext()) {
    StockTrans stockTrans = (StockTrans);
    int trans_id = stockTrans.getTransID();
    String tran_type = stockTrans.getTranType();
    int stock_id = stockTrans.getStockID();
    float price = stockTrans.getPrice();
    Invoices invoices = invoicesHome.create(sub_accno, sub_name, sub_address, trans_id, stock_id, tran_type, price);
    stockTrans = stockTransHome.findByPrimaryKey(new StockTransPK(trans_id));
    utx = null;
    } catch (Exception e) {
    if (utx != null) {
    try {
    utx = null;
    catch (Exception ex) {}
    // e.printStackTrace();
    throw new EJBException("BrokerBean.CreateInvoices(): " + e.getMessage());
    --------------- exception ----------------------
    Initiating login ...
    Enter Username:
    Enter Password:
    Binding name:`java:comp/env/ejb/BrokerSB`
    EJB test succeed
    Test BuyStock!
    Test BuyStock!
    Test BuyStock!
    Test BuyStock!
    Test SellStock!
    Test SellStock!
    Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: BrokerBean.CreateInvoices(): CORBA TRANSACTION
    _ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806
    completed: Maybe
    at javax.rmi.CORBA.Util.mapSystemException(
    at BrokerStub.CreateInvoices(Unknown Source)
    at Client.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    at java.lang.reflect.Method.invoke(
    at com.sun.enterprise.util.Utility.invokeApplicationMain(
    at com.sun.enterprise.appclient.Main.main(
    Caused by: java.rmi.RemoteException: BrokerBean.CreateInvoices(): CORBA TRANSACT
    ION_ROLLEDBACK 9998 Maybe; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x2000 minor code: 1806
    completed: Maybe
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.ja
    at com.sun.ejb.containers.BaseContainer.postInvoke(
    at BrokerBean_EJBObjectImpl.CreateInvoices(
    at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown Source)

    Three things:
    first, maybe you should think of putting ut.begin() just before the invoicesHome.create() method and ut.commit() just after the stockTrans.remove() method.It wont solve the current problem but will help in performance once the problem is solved.
    second, your utx.commit() is outside the try block. how come the code is compiling then??
    third, try doing a SOP call before and after invoicesHome.create() method and see where the problem actually lies.
    let us know...
    Hi SteveW2,
    Thanks for being so helpful. Here are my replies:
    Can I just ask why you're not using containermanaged
    transactions?The reason why I didn't use container managed
    transactions is because I don't really know how to do
    that. I am more familiar with this user-defined
    transaction handling.
    I have attempted to implement the same method in an
    entity bean and just let the container manage the
    rollback itself. The same exception was thrown when
    running the client.
    Also, the transaction behaviour is likely to relateto
    the app server youre using - which is it?What do you mean by the app server? I am using J2EE
    1.3.1 if that is what you meant.
    Finally, if your code has a problem rolling back,and
    throws an exception, you discard your exception
    thereby losing useful information.I have tried to print the exception stack as well, but
    it is the same as just printing the general
    This problem is very strange cause if I comment out
    the transaction management thing, then everything
    works fine. Or if I am only working with 1 single
    database, with this user-defined transaction handling,
    everything works fine as well.
    Here is the error log from J2EE server if you are
    ------------ error log ---------------
    Exception thrown from bean; nested exception is:
    javax.ejb.EJBException: ejbCreate: Connection
    previously closed, open another Connection
    javax.ejb.EJBException: ejbCreate: Connection
    previously closed, open another Connection
         at InvoicesBean.ejbCreate(Unknown Source)
         at InvoicesHomeStub.create(Unknown Source)
         at BrokerBean.CreateInvoices(Unknown Source)
    at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown
    Exception thrown from bean; nested exception is:
    javax.ejb.EJBException: ejbCreate: Connection
    previously closed, open another Connection
         at InvoicesHomeStub.create(Unknown Source)
         at BrokerBean.CreateInvoices(Unknown Source)
    at BrokerBeanEJBObjectImpl_Tie._invoke(Unknown
    What is "connection previously closed, open another
    connection"? This might be the cause of the
    I'll keep trying till I solve the problem.

  • How can an user defined Transaction type in Inventory be configured in IB?

    Need to know how to make an user defined transaction to update the status in IB automatically. i.e. suppose there is an user defined transaction "XYZ". I need to update the instance stause of an item to "CANCELLED" once that transaction happens on the item.
    Edited by: user13340970 on Aug 13, 2010 7:14 AM

    Hi Atheek,
    I was looking at doing the transform manually, but my challenge is how to parse the inbound String into XML Elements with their properties. For example:
    Example Message:
    <abd:aString><jkl:embeddedMessage jkl:attributeABc="Hello There"><jkl:someOtherElement>OSB Rules!<jkl:someOtherElement><jkl:aNumber>123456</jkl:aNumber></jkl:embeddedMessage>
    If I get the value of the embedded XML as a string, how can I parse our or address the various elements and attributes in the embedded XML? I was hoping to use:
    $aString cast as jkl:embeddedMessage
    But on OSB10g this fails. Is there another way with XQuery or XSL to convert an embedded XML that comes in as a string, into a complex User-Defined type?

  • Issue with Active Directory User Target Recon

    Hi ,
    I am facing an issue with Active Directory User Target Recon
    My environment is OIM 11g R2 with BP03 patch applied
    AD Connector is activedirectory- with bundle patch 14190610 applied
    In my Target there are around 28000 users out of which 14000 have AD account (includes Provisioned,Revoked,Disabled accounts)
    When i am running Active Directory User Target Recon i am not putting any filter cleared the batch start and batch size parameters and ran the recon job .Job ran successfully but it stopped after processing around 3000 users only.
    Retried the job two three times but every time it is stopping after processing some users but not processing all the users.
    Checked the log file oimdiagnostic logs and Connector server logs cannot see any errors in it.
    Checked the user profile of users processed can see AD account provisioned for users
    My query is why this job is not processing allthe users.Please point if i am missing some thing .
    thanks in advance

    Check the connector server load when you are running the recon. Last time I checked the connector, the way it was written is that it loads all the users from AD into the connector server memory and then sends them to OIM. So if the number was huge, then the connector server errored out and did not send data to OIM. We then did recon based on OUs to load/link all the users into OIM. Check the connector server system logs and check for memory usage etc.

  • CANT execute query with parameter on user defined tables using query genera

    Dear All,
    I have problem when executing query with parameter on user defined tables using query generator.
    It seems SBO cannot accept parameter to query user defined tables.
    I've tried these:
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
    I try to pass the value directly without using parameter and It works
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
    This one works
    SELECT * FROM RDOC T0 WHERE T0.width =[%0]  --- this SUCCESS
    and this one works too
    SELECT * FROM RDOC T0 WHERE T0.width = 595  --- this SUCCESS
    Is there anyone can help me ....???

    I  generated this code using query wizard ....
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = (N'2' )
    and replaced the (N'2' ) with [%0]
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = [%0]
    and It worked ......
    Thanks 4 all .....

  • Calling ORACLE Store Procedure with parameters in user define function

    Hi everybody,
    We have a scenario connecting Oracle DB thru JDBC adapter.
    We have to call store procedure with input parameter and output parameter to retrieve data from DB. The implementation was made using JDBC adapter by building the correct XML message with EXECUTE action, and it works fine.
    Now we need to use DB lookup within mapping. I wrote users define function with SELECT statement (using the JDBC adapter) and it works fine but I need to call store procedure in ORACLE instead of SELECT statement.
    I found lot of examples concerning DB lookup but none of them explained how to write UDF calling store procedure in ORACLE with input and output parameters.
    I am looking for an example.
    Thanks in advance,

    I agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
    If you think you are going to get existing MS Stored Procedures  or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
    coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
    You could use the EF backdoor, call Oracle Command object and use the Packages,  if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
    That's about your best shot.

  • Issue in passing Oracle User Defined Types to PL SQL from Websphere Applica

    I am facing an issue when trying to pass Oracle collection object(User Defined Types) from Java to PL SQL. The issue happens inside J2EE application which is running inside Websphere Application Server 6.x. My database is Oracle 10g and i am using ojdbc1.4.jar as thin driver.
    The issue is that when i pass the Oracle Object from java side, the attribute values of the collection objects at the Oracle PL SQL side is coming as empty. I have tried the same java code in a standalone application and it works fine. The issue happens only when the application is running inside WAS.
    Anybody has any idea how to pass Oracle User Defined Types from WAS 6.x server to Oracle PL SQL?

    Andy Bowes wrote:
    I am using WebLogic 8.14 & Oracle 9i with thin JDBC driver.
    Our application needs to perform the same DB operation for every item in a Java Collection. I cannot acheive the required performance using the standard Prepare & Execute loop and so I am looking to push the whole collection to Oracle in a single invocation of a Stored Procedure and then loop on the database.
    Summary of Approach:
    In the Oracle database, we have defined a Object Type :
    TxnId VARCHAR2(40),
    Target VARCHAR2(20),
    Source VARCHAR2(20),
    Param1 VARCHAR2(2048),
    Param2 VARCHAR2(2048),
    Param3 VARCHAR2(2048),
    Param4 VARCHAR2(2048),
    Param5 VARCHAR2(2048),
    and we have defined a collection of these as:
    There is a stored procedure which takes one of these collections as an input parameter and I need to invoke these from within my code.
    I am having major problems when I attempt to get the ArrayDescriptor etc to allow me to create an Array to pass to the stored procedure. I think this is because the underlying Oracle connection is wrapped by WebLogic.
    Has anyone managed to pass an array to an Oracle Stored procedure on a pooled DB connection?
    AndyHi. Here's what I suggest: First please get the JDBC you want to work in a
    small standalone program that uses the Oracle thin driver directly. Once
    that works, show me the JDBC code, and I will see what translation if
    any is needed to make it work with WLS. Will your code be running in
    WebLogic, or in an external client talking to WebLogic?
    Also, have you tried the executeBatch() methods to see if you can
    get the performance you want via batches?

  • Problem with ALV and user defined selection screen. please help!

    Hi Experts,
           I have program which has a user defined selection screen 9001. On executing the selection screen i call a ALV using resuse_alv_grid function module.
    What problem I am facing is that when I press back button from ALV page it goes to the se38 editor instead of selection screen.
    How to resolve this?

    This might be due to LEAVE TO TRANSACTION statement. You might be running the program from SE38. Try to run the program using Z-TCode assigned to it.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was edited by: Bharat Reddy V

  • Problem with sorting involving user defined types and reports

    I have a problem with sorting involving Reports and user defined objet types.
    I have created the following object types
    CREATE TYPE type_balance_compte AS OBJECT
    CREATE TYPE TB_type_balance_compte IS TABLE OF type_balance_compte
    At the reports query I use:
    SELECT ...
    FROM table(cast(test_pkg.balance_comptes(:P_num_soc) as TB_type_balance_compte)) c
    The procedure balance_comptes will retrieve data from various tables into the type.
    The report is ordered by a certain string field that usually contains characters and numbers.
    I need to have numbers always before characters, meaning the data should come in this order in the report for example:
    So, before the report query, I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) to guarantee NLS_SORT in case it is originally set to FRENCH.
    The problem here is that even after this call, I have the report ordered like this
    And not the numbers before as it should be.
    To try and find out where the problem was, I have created a table to use instead of the object type described above. In this case, it worked correctly. So all I know by now is that is has something to do with the type or cast, but what exactly? Does anybody now how to solve this without using a table?
    Many thanks

    I have placed a call to DBMS_SESSION.SET_NLS( 'nls_sort', 'binary' ) why not order directly then:
    SQL> select *
          from table (sys.dbms_debug_vc2coll ('A', 1, '5', 'C', 'a'))
    order by nlssort (column_value, 'NLS_SORT = binary')
    5 rows selected.?

  • Issue with Network Home Users on Mountain Lion ( connecting to Lion Server)

    I have been forced to setup a network user on a new mac running mountain lion because their old mac just went pop, and have run into multiple issues that I have narrowed down to them being a Network User on Mountain Lion.
    1. Contacts get deleted whenever you open Mail. Mail will hang on fist launch until all your contacts in Contacts (I hate the new names! ) get deleted, console shows that the location for the address book database is invalid, seems to be an issue with ~/Library/Containers/ folder
    2. Word documents with images in the background do not display correctly, there is a giant red cross through the document
    If I change this network user to a mobile home user the problems go away and everying works as expected

    How to re-enable the Apple-provided Java SE 6 applet plug-in

  • Issues with only certain users under AD Auth

         I wanted to find out of new copies of install documents for JAVA AD Auth and SSO for Windows.  I have one from mid 2008.  I have customer that is having a ON again OFF again issues with certain users.  See error below
    While processing an AS request for target service krbtgt/ROMAMOULDING.COM, the account dbowman did not have a suitable key for generating a Kerberos ticket (the missing key has an ID of 3). The requested etypes : 17. The accounts available etypes : 23  -133  -128  3  1  -140. Changing or resetting the password of krbtgt will generate a proper key.
    I am running BOE Edge 3.1 w/ FP 1.2
    Thanks Kindly,
    Ajay Gupta

    Old post but since there was no answer and I have that case recently : here are some clue.
    your environnemnt is  the state describe here: The security principals and the services that use only DES encryption for Kerberos authentication are incompatible with the default settings on a computer that is running Windows 7 or Windows Server 2008 R2.
    external similar post( ( )
    You should consider to apply the Microsoft fix on the 2008 Domain controller(s). FIX: User accounts that use DES encryption for Kerberos authentication types cannot be authenticated in a Windows Server 2003 domain after a Windows Server 2008 R2 domain controller joins the domain

  • Enabling ITS to a User Defined Transaction

    <i>I have Module pool program which generates user id and Password in SAP. But the requirement is that it should be ITS enabled. ( The users should be able to view it in the Interner Explorer instead of SAP )</i>I heard that we have a feature in SAP called ITS where we can do this.
    Can anyone help me out on this?

    I want to be able to send a message from CRM_DNO_MONITOR - transaction monitor to a user to track progress. For this I use webgui service under SICF/SE80 published with the required transaction and other parameters. This worked fine in Solamn 3.2 when we had external ITS. The user gets this URL
    [http://<server>:10080/scripts/wgate/webgui/!?logical_system=<ls>&object_type=BUS2000116&object_key=46137291ADC6E14193D98A890D51D080&client=<clnt>&~language=<lang>"] which then fires up the transaction monitor in the browser and goes directly to the message in question.
    Now after the upgrade to Solman 640 which uses internal/integrated ITS the service does not work. In SICF the port is now 8000 and the alias scripts/wgate does not exist! However when you send the message to users they still get the above URL. When you test the service in SE80 or SICF it comes up with the new internal URL [http://<server>:8000/sap/bc/gui/sap/its/webgui/!logical_system=<ls>&object_type=BUS2000116&object_key=46137291ADC6E14193D98A890D51D080&client=<clnt>&~language=<lang>"] which is correct behaviour.
    The problem is therefore how do I get rid of the [...<old port>/scripts/wgate/...] string? So that when the user clicks the link sent to them they go straight to transactino monitor and they dont have to tweak the URL to remove the rogue string

  • Issue with authenticating a user in OBIEE Application

    We have few users all of which are able to authenticate themselves in the QA Environment. When we moved the webcatalog from DEV to QA one of the users named CAROLAIG stopped geting authenticated and hence couldnot enter in to the system. We tried deleting the CAROLAIG and CAROLAIG.atr from the Users folder present in the wecatalog but it did not help. The issue is coming up after the webcatalog migration. We are failing to understand how the webcatalog controls the authentication mechanism and make this happen. All the other users continue to work perectly.
    The OBIEE version used is The complete webcatalog migration from dev to QA has been done.
    Edited by: 925099 on Jul 10, 2012 4:56 AM

    Its not the catalog which takes care of authentication but its the OPSS. In OBIEE, the catalog and .rpd hold the GUID of the users in the OpenLDAP of weblogic (If not integrated with any other authentication mechanism). The GUID from the Active Directory is always cross-checked with the one stored in catalog and .rpd during authentication.
    So, in your case too the GUID (old one that was got from QA LDAP) might have conflicted with the new one from the production environment and hence the user fails to be successfully authenticated and hence needs a refresh.There are some steps to refresh the GUID in your case in oracle documentation.
    Hope this helps.
    Thank you,

  • Is there known issues with a CRM user working with 2 concurrent sessions?

    This is in regards to CRM 6.0 - Web Client.  I'm wondering if anyone has heard of issues coming up if 1 user operates 2 CRM sessions / browsers at the same time?
    For example, the user is in the middle of a BP change in 1 browser and gets a phone call.   The user wants to have a second CRM session opened so that they don't have to exit the current one while they speak to the BP and maybe even edit this second BP as well. 
    I'm wondering if anyone has seen or heard of problems with these scenarios such as edits ending up on the wrong BP or information  exchanged between browsers, etc.

    For your current CRM version, multisession is not supported for the following scenarios:
    - Telephony
    - Alerts
    - Broadcasting
    As of CRM7.01, multi session is supported. For instance, in your exemple, there is a tab navigation that allows several browsers with and without a call.
    [SAP Note 1597836|] contains details on multi session.

Maybe you are looking for

  • AP and AR Gathering details

    Hi, Please provide me details what information do i need to gather from Client to implement AP and AR. Points will be assigned. Thank you

  • Nitpicking about .properties file syntax

    After years of using these files, could someone please tell me what the convention for syntax is? :) This: somekey=valueor this: somekey = valueAnd YES, this must be the least important thread of all time, but since we're with multiple guys here mixi

  • Properties panel still a major issue - so is overall CC interface

    Hi, I have just bought into the whole Adobe CC apps things after years of working with CS4, 5 and 5.5 and remaining compatible with most of my clients, few are taking the leap to CC right now. Anyways, I am extremely disappointed in the interface, an

  • TDMS user master records over written

    Hello All, I ran TDMS copy (Time sliced) and noticed user master records got over written. (Example: After log into the system, the menu is displaying different name instead of my name. This happened for all users. Do we need to exclude tables relate

  • Empty DVD folder - how to convert format for iMovie?

    A few years ago I had transferred home videos from 8 mm tapes to DVD, because I was afraid the tapes would disintegrate if I waited any longer. Now that I finally have time to edit these DVDs I discover that I cannot import them on iMovie, because th