Queries on CN25 Transaction

Hi Guru's
Please address my Queries on CN25 Transaction at the earliest :-
(1) Is it possible to add new items to a reservation material even after items have already been consumed against it by doing goods movement ?
(2) Once material has been consumed doing CN25 transaction for a reservation material, is it possible to reverse the complete transaction ?
(3) What is the transaction code to view the materials attached to a particular resevation material once it is consumed ( Goods movement is done ) ?
Regards,
Sai
Edited by: Julius Bussche on Sep 24, 2009 1:35 PM

Hi
(1) Is it possible to add new items to a reservation material even after items have already been consumed against it by doing goods movement ?
Yes it is possible, but this practice is not advisable to do in SAP system. If you follow this process the data inconsistency will happen.
Once material has been consumed doing CN25 transaction for a reservation material, is it possible to reverse the complete transaction ?
For this you need to carry out two steps
1. Cancel the Network confirmation using CN29
2. Cancel the material documents using MIGO
) What is the transaction code to view the materials attached to a particular reservation material once it is consumed ( Goods movement is done ) ?
MB23 and MB25
Thanks
S.Murali

Similar Messages

  • Control multiple updates and queries within one transaction in JPA

    Hi,
    I have a question regarding control multiple updates and queries within one transaction. We are using EclipseLink 2.3.1. With below code, will I be able to:
    - have all insert, update, select queries committed in one transaction;
    - queryGetBalance will return the latest OrgBalance after update;
    - if one fails, everything rolls back.
    Thanks!
    Jeffrey
    PS: I realized that I cannot use em.getTransaction().begin() and em.getTransaction().commit(), since I am using JTA.
    =============
    @PersistenceContext(unitName="Test")
    EntityManager em;
    em.setFlushMode(FlushModeType.COMMIT);
    newTransaction.setAmount(1000);
    newTransaction.setType("check");
    em.persist(newTransaction);
    orgAudit.setUpdateUser("Joe")
    orgAudit.setupUpdateTime(time);
    em.merge(orgAudit);
    Query queryUpdateBalance = em.createQuery("update OrgBalance o set o.balance = o.balance + :amount where orgId = :myOrgId");
    queryUpdateBalance.setParameter("amount", 1000);
    queryUpdateBalance.setParameter("myOrgId", 1234);
    Query queryGetBalance = em.createQuery("select OrgBalance o where o.orgId = :myOrgId");
    queryGetBalance.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH);
    queryGetBalance.setHint("javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS);
    queryGetBalance.getResultList();
    em.flush();
    Edited by: JeffreyW on Dec 12, 2011 10:34 AM

    Yes, the operation will be in a single transaction, assuming you are using a JTA managed SessionBean and the code is part of a SessionBean method.

  • Run custom queries in Enjoy transactions

    Hi
    I have replaced the standard queries in the 'Document Overview' of some MM transactions (i.e. ME21N, ME22N, ME23N) using SAP enhancement 'MEQUERY1'. But, some standard queries such as 'My Purchase Orders' are able to fill automatically fields of the selection screen and run.
    Is it possible to reproduce this feature with custom queries ?
    Thanks,
    Florian

    Moderator message - this is wrong on so many levels, I don't know where to begin, Maybe someone can help me.
    Rob

  • Are there limitations to running queries inside of transactions?

    I'm seeing altered or no results when running under a transaction:
    context = getXmlManager().createQueryContext();
    XmlQueryExpression.execute(XmlTransaction, XmlQueryContext, XmlDocumentConfig)where:
                TransactionConfig txnConfig = new TransactionConfig();
                txnConfig.setNoWait(false);
                txnConfig.setSync(true);
                transaction = getXmlManager().createTransaction(null, txnConfig);and         XmlDocumentConfig docConfig = new XmlDocumentConfig();
            docConfig.setLockMode(LockMode.RMW);
            docConfig.setLazyDocs(false);The XmlContainer and Environment are transactional. There are node indexes on these containers.
    If I use: XmlQueryExpression.execute(XmlQueryContext, XmlDocumentConfig) all is fine.
    My test conditions are single threaded dbxml 2.2.13 on Windows 2003 Server. Later I'll need to run multi-threaded.
    Any thoughts (aside from upgrade)?
    Known, confirmed problem?
    Are there any limitations to what can be inside of a query that is run inside a transaction?
    Can the query span containers?
    Any impact from setDefaultContainer?
    Does document{ } work any differently?
    Do FLWR queries behave differently?
    Thanks in advance,
    Douglas Moore

    John,
    I'm actually pointing out a functional difference while running with a single threaded non-stressful unit test.
    The inner <report> elements do not show up when transactional api is used.
    Inlining the FLWOR expression does not change the situation.
    I now have the 6 patches applied to dbxml 2.2.13 and see the same results as an unpatched dbxml library.
    My query looks like:
    declare function local:get_ordered($max_reports as xs:decimal)
            for $reports in collection("per-system.dbxml")/reports-catalog/report
                            where $reports/@type = "ABC"
            return $reports
    document{
    <reports-catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.persistable.org/reports-catalog.xsd"
            mime-type="application/pdf" sequence="65241390550" id="ABC">
                    local:get_ordered(1)
    </reports-catalog>
    } Thanks,
    Douglas Moore

  • Slow record insertion when using millions of queries in one transaction

    For test purposes, we play a table creation scenario (no indexes) under multiple conditions : we insert records in bulk mode or one by one, with or without transactions, etc.
    In general, the record insertion is ok, but not when we try to insert 1 million record one by one (sending 1 million INSERT commands) in a single transaction: in this case, the insertion is quick enough for the first 100000 records approximatively, but then, it becomes extremely slow, so that it would take several days to complete. This doe not happen whithout the transaction.
    We were not able to find the database parameters to change to gain a better performance : rollback? transactions? undo? what else?
    Does anybody have an idea of teh parameters to modify?
    Thank-you in advance.

    >
    For test purposes, we play a table creation scenario (no indexes) under multiple conditions : we insert records in bulk mode or one by one, with or without transactions, etc.
    In general, the record insertion is ok, but not when we try to insert 1 million record one by one (sending 1 million INSERT commands) in a single transaction: in this case, the insertion is quick enough for the first 100000 records approximatively, but then, it becomes extremely slow, so that it would take several days to complete. This doe not happen whithout the transaction.
    >
    Hi
    How are you inserting the one million records when you do one at a time? If it's within a loop, you are probably doing a COMMIT as well within the loop. This will cause log file sync waits as LGWR will be too busy writing the redo entries. This will slow down the insert process as well as the performance of database. This is an expected bahaviour. Commit causes checkpoint to triiger which in turn will make log writer write the redo entries in the online redo logs. This is a serial process.
    You can do the following methods to insert bulk records
    a) INSERT /*+ APPEND */ into table select * from stage;
    This will cause direct path load to happen bypassing buffer cache and reducing the redo to a great extent. However if you have foreign keys enabled in the table, it will silently ignore the direct path directive and do the conventional load.
    b) Forall....SELECT ...BULK COLLECT..... This will be a good method when you do from PL/SQL
    c) When you do within a loop
        Declare
        v_commit_cnt Number := 0;
       Begin
        For i in (select col1, col2, col3 from billion_record_table)
        Loop
         v_commit_cnt := v_commit_cnt + 1;
         Insert into target values (i.col1, i.col2, i.col3);
         If (v_commit_cnt >= 50000) Then
          commit;
          v_commit_cnt := 0;
         End If;
       End Loop;
       COMMIT;
    End;
    /4) If the target table is a staging table, you can do a CTAS (Create table as SELECT)
    and many more options if you plan well in advance.

  • What is the diff b/w transactional cube and std cube

    What is the diff b/w transactional cube and std cube

    Hi Main differences,
    1) Trasactional infocube are optimized for writing data that is multiple user can simultaneously write data into it without much effect on the performance where as the std infocube are optimized to read the data ie.e through queries.
    2) transactional inofcubes can be loaded through SEM process as well normal laoding process.Std can be loaded only thorugh normal loading process.
    3) the way data is stored is same but the indexing and partionong aspects are different since one is optimized for writing and another one for reading.
    Thanks
    Message was edited by:
            Ajeet Singh

  • Query to get list of queries within a specific session.

    Hi all,
    I want to know the query which will return me all the queries within a session. I have a query which I use quite often, but it returns the last query executed within that session.
    select st.sql_text
    from v$sqltext st,v$session sn where st.address=sn.sql_address and st.hash_value=sn.sql_hash_value and
    sn.sid = <sid> and
    sn.serial# = <serial#>
    order by st.piece
    Could anybody help me.
    thanx,

    Hi,
    Thanx.
    I have one more query, does oracle server keep cursors open till end of the transaction or close it immediately as soon as query is successfully executed ? If it's not closing the cursors immediately, why the following query where I am joining v$sqltext, v$session and v$open_cursor is not retruning me all the queries in one transaction. I believe, transaction is queries executed between two successive commit / rollback. The following query is returning me the same resultset as the earlier one.
    select oc.sql_text from v$session sn, v$open_cursor oc where sn.sql_address = oc.ADDRESS and sn.sql_hash_value = oc.HASH_VALUE and sn.sid = 8 and sn.serial#= 22769;
    Thanx,

  • Convert query made u200Bu200Bin SQ01, SQ02 and SQ03 for a transaction set

    Hello people, how do I create a transaction for a report I did in queries with the transaction SQ01, SQ02 and SQ03? ...
    hugs

    Hi Stelio Mucavele
    i had the same issue resolved by below steps
    1>go to SQVI t code and  enter your query name and press enter
    2>In the menu path select Quick view--> additional functions-->Generate Program
    3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
    4>Now in se38 enter the report name in Program field and execute
    5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
    6> Note down the Program name and Screen number
    7>Go to SE93 and Create a Z tcode for the query, Enter the description  and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
    8>In the next screen enter the Report name In Program field and enter the screen number
    9>In the classification Section select Professional user  Transaction
    10>In GUI support section select all the options  i.e SAPGUI for HTML,Java,Windows
    and save
    the system will ask for Package select your package if not there then select local object
    now execute the Z tcode your report will run sucessfully
    Regards
    Vijay hebbal

  • Generic Insert and Update Queries to work on both Oracle and SQLServer

    xMII12.0.2
    I need to write queries which will be able to run on both Oracle and SQLServer database tables without any changes.  It needs to be able to handle dates without including Oracle specific date functions (TO_DATE, TO_CHAR, TO_TIMESTAMP, etc.).
    I did read a post earlier by Jeremy Good regarding the use of ED and SD which invoke the DatePrefix and DateSuffix in the data server configuration.  That seems to work fine in cases of only trying to insert two distinct dates.  However, what do you do in the case of having three or more dates to insert.  An example query might be:
    Insert into ProductionOrder
    (ProdOrdNbr, Plant, Material, Quantity, UOM, DeliveryDate, ProdStartDate, ProdFinishDate, CreateDate, LastModifiedDate)
    Values
    ('0100001001', '001', '000000000007887780', 20.0, 'PC', '21-FEB-08 22:01:19','11-FEB-08 00:01:34', '12-FEB-08 02:44:59', '01-FEB-08 12:00:00', '04-FEB-01 13:22:13')
    So far I have been using the TO_DATE to convert the dates successfully, but SQLServer does not recognize that function (not surprising since it is an Oracle specific function).  So I would have to go through all the transactions/query templates and rebuild them separately to deal with the different database vendors. 
    Any suggestions?
    Thanks,
    Mike

    Hi Rick,
    Are you talking about dynamically building each script based on a server setting and datatype?  If I understand you correctly, I guess it could be done that way, but it would be a royal pain to maintain.  I have done such things before and can see how it could be done. 
    But is there no way to invoke the DatePrefix and DateSuffix besides the SD and ED parameters?  Or did I misunderstand your response?
    I would be perfectly happy to build all the queries inside BLS transactions.  In the few cases, where they are not already contained in the BLS, we could throw a BLS wrapper around it and not pay much of a penalty in performance.
    Thanks,
    Mike

  • Inter Operating Unit transactions.

    Hi All,
    I have some queries on the transactions between different operating units. Kindly answer the same at Individual level.
    1.     I have raised a Purchase Order against a project (at distribution level) at the corporate level on behalf of a division, made the payment at the corporate level for a division, & transferred the cost to the Division. Is it possible as the Corporate & the Divisions are two different Operating units?
    2.     I have raised a Purchase Order against a project (at distribution level) at the corporate level for and on behalf of a Division. The Division receives the goods and made the payment. How would the Corporate transfer the cost of the commitment to the Division? It that possible & How?
    3.     The Division has made some project specific purchases on behalf of the Corporate, citing lack of fund availability. The Division makes the purchase & pays it. How is it possible to transfer cost from the Division level to the Corporate, assuming that Corporate & Divisions are two different Operating Units.
    4.     The Corporate carries some activity on behalf of the different Operating units. How the cost of activity is allocated to different operating units & how?
    request you to answer the same as reply needed urgently.
    Thanks
    Tarun.

    Hi
    Look at the following insights:
    The operating unit who raise the purchase order is getting the supplier invoices, and the costs are imported to the project on that operating unit.
    The operating unit which gets the supplier invoice is the one that pay it.
    You cannot raise the po on OU A and get the supplier invoice on OU B. ]
    You cannot enter supplier invoice on OU B and pay it on OU A.
    Cash flow and actual payments are not maintained by project.
    If the operating unit A that is charged by the project cost is not the owning organization of the project, you might consider running inter-company billing. This process will credit the internal revenue of OU A, and debit the internal purchase costs of OU B, who owsn the project.
    If you implement Project Manufacturing you can get items from vendors and deliver them to the inventory organization, using the project and task locator. This will charge the project on that OU. You might later on enter an Interorg transfer transaction to move on hand quantity from inventory organization of one operating unit to another inventory organization of other operating unit.
    Dina

  • Hiding of queries for perticular roles in POWL in SRM7.0

    Hi Experts,
    We have a requirement to hide the certain queries in POWL for perticular roles. I have maintained the entries for the roles through transaction POWL_QUERYR but we are not able to see the desired results.
    Also tried by running the report POWL_D01 but this report will delete the queries based on the users.  Our requirement is to show or hide certain queries to all the users with a perticular role.
    Kindly advice.
    Thanks and Regards
    Vishal

    Hi Lavanya,
    Thanks for the reply.
    We are following the below approach for hiding the tabs "Team Shopping Carts", Invoice/Credit Memo" and Confirmation Team Shopping Carts".
    - Defined a new application id Z_SAPSRM_E_CHECK_STATUS.
    - Maintained the entry in POWL_TYPER with the application Z_SAPSRM_E_CHECK_STATUS and type for confirmation and shopping cart along with the role
    - Maintained the entry in POWL_QUERY with the application Z_SAPSRM_E_CHECK_STATUS, role and activated the activate check box
    - Assigned the application id to the role authorizations "authorizations for Personal Object Work List (POWL) iViews"
    When I run the report POWL_D02, I can see that for the application Z_SAPSRM_E_CHECK_STATUS the queries shopping carts abd confirmations are active.
    But when I run the report POWL_D01 with the above application id I get the result that no queries found.
    Please let me know if the approach that we are following above is correct. or do we need to maintain some more things to accomplish this.
    We are defining are our own application id's because we need to hide queries for many transactions, so in our defined application id we will include the queries that needs to be displayed and will assign those application id in the roles after carrying out the above steps.
    Thanks and Regards
    Vishal

  • Post Moved Re-554-Transaction-failed

    Moved http://community.bt.com/t5/Other-BB-Queries/Re-554-Transaction-failed/td-p/208825
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    Try this to see if it the case?
    http://answers.yahoo.com/question/index?qid=20100914072503AAlstCN
    Basicaly it says too many recipients or content deemded inappropriate.
    Looks like 554 is a generic error code that providers can use for anything
    If my post was helpful then please click on the Ratings star on the left-hand side If the the reply answers your question fully then please select ’Mark as Accepted Solution’

  • Destinations jump queries

    Hello,
    I understand that to define the destiny of the jump is performed queries from the transaction RSBBS, but what is clear is not me if I define a destination for a jump querie that run from BEX analyzer, the same fate jump me serves to execute the same querie in WEB, or I have to define another to operate a Web?
    Regards,

    You don't have to create new query to run it on Web. But it is better to have a distinction in the name space to differentiate between Bex Queries and Portal/Web queries.
    In RSBBS you just need to define the name of the query where you have to jump to.It should be very simple and clear.
    Hope this helps.

  • Find SAP Query for SQ01 in transaction ST03N

    Hello Experts,
    My requirement is to find the SAP Queries that were executed through the transaction SQ01 by the user in a given period. I am using transaction ST03N for the same.
    I am able to view the transaction SQ01 and the users who have executed the same in transaction ST03N for a particular period (day, month). But unable to see the SAP Queries executed through SQ01.
    I have checked the standard program RSSTAT26 but it only gives the data for 2 days.
    Please let me know how I can get the SAP Queries run through transaction SQ01 using transaction ST03N.
    Please treat it as high priority.
    Waiting for quick response.
    Thanks and Regards,
    Rahul Sinha

    Hi Danish,
    In the program name, the query name is always attached.
    For example : The program name is , AQ10SD==========Z10SD_INVPRODL=
                           Here the query name is Z10SD_INVPRODL and if you go to transaction SQ01 and enter the query name
    then you can find the infoset.
    And also you can gernate the program with the help of query name.
    Please try the same and let me know if any details are required.
    Regards,
    Darshana

  • Manage a transaction without an EJB container !

    Hi all,
    i have a problem, i have to write into 5 tables of a DBMS launching 5 queries.
    My application is a standalone program, about your opinion how can i manage the 5 queries inside a transaction ?
    I have heard that i could use a property of the Connection class called AutoCommit.
    Any suggestion ?
    Cheers.
    Stefano

    I'd say that if the OP hasn't heard of autoCommit that
    Spring might be over his/her head. Yeah, your probably right.
    Better to learn
    how to do it with JDBC first, IMO.Definitely
    Not only will they learn about units of work, they'll
    appreciate all that a good framework is doing for them
    once they realize how much work it is to do by hand.
    %Just want to point out other solutions when they are potential fits, up to the poster to decide if its overkill for their scenario.
    Cheers,
    -Scott

Maybe you are looking for

  • Can't find Amber Update

    I looked at my 'extras & info' in settings and Amber Update was in bright yellow, bold text. I went to me phone update and it keeps saying my phone is up to date. I tried turning my phone on and off but it keeps saying my phone is up to date even tho

  • Error executing DBMS_SCHEDULER

    I am getting the following error :: select log_date,additional_info from user_scheduler_job_run_details where log_date = (select max(log_date) from user_scheduler_job_run_details); LOG_DATE ADDITIONAL_INFO 11-JAN-07 05.34.00.23434 AM -8:00 STANDARD_E

  • Change the logo of BW report

    Hi All, I have created a BW report through query designer. I guess it takes the default template when executed through web portal. There is a logo available in the report when run through web portal and I wish to change it to some other logo. Where d

  • Ajax request problem

    Hi , I am writting a simple login application using Ext-js and servlet. I need , show login form , if ok then go to success page , with some list generated at server sider otherwise to error page. Using Ext.FormPanel , I am submitting form and reques

  • Flash Builder 4.5 developer required as partner

    Good day, I'm seeking an experience FB developer to work with. I'm a UX designer using FB and Flash Professional. I need someone with experience in web and mobile application development (strictly back-end ) for android and blackberry playbook. Pleas