Confirm TO Query (ref:L_TO_CONFIRM)

HI Everyone,
I have a query regarding TO confirmation that I'd appreciate some advice on. I implemented a custom RF transaction to confirm TO for putaway using the function module L_TO_CONFIRM. To my mind it's working as it should but my client has reported what they think is an error. Bascially when the TO is created from the goods receipt it's creating entries as follows . e.g
Material  Batch   QTY
1234      ABC     1
1234      ABC    1
Now when the client uses the RF transasction they scan in the details for material batch and quantiy and perform the confirm action. In the example above they enter Quantity as 2 so they expect both lines above to be confirmed. Currently it just confirms one of these lines. My question is this:
Why have two different lines on the TO/GR with the same material and batch instead of just one line with a quantity two ?
and
Can the function module L_TO_CONFIRM handle the above scenario ? 
Any help or advise is greatly appreciated.
Thanks for your time
DK

More or less what J put.  Presumably you've got two TO items as there are two destination bins.  On that basis confirming a quantity of 2 is incorrect if that is against a single TO item.  In fact you should probably have some form of feedback given to the operator to that effect i.e. an 'error' or 'warning' sound and msg as quantity input does not match quantity expected, for your custom RF tx.
You've got two issues:
1. Understand why quantity split over two items and possibly correct settings
2. Consider how to present the information to the operator so the operator understands the expected quantity and is alerted to entry of a quantity that doesn't match.

Similar Messages

  • TO Confirmation Error using FM L_TO_CONFIRM

    Hi Gurus,
    I am using L_TO_CREATE_DN to create TO for delivery. And using that TO created in L_TO_CONFIRM to confirm the TO. But i am getting an error that 'Transfer order does not exist in warehouse number (check entry)'. But when i an taking that TO which is created by FM L_TO_CREATE_DN in LT12 is there. I think i have to call some other FM in between to clear the buffer or some thing else.
    Please let me know what should be done to correct this.
    Thanks in Advance.
    Sharat Chandra
    Gurus,
    Above probelm is solved Actually in FM  L_TO_CONFIRM if we activate the
    i_update_task = 'X'
    , then its confirming the TO.
    Thanks for the intrust shown.
    Regards
    Sharat

    Have already updated the Answer.

  • Query Ref Problem:Would like UserField updated on adding item to Quotation

    This query works without variable in it - SELECT T1.[U_NPS_QD] FROM OITM T1  INNER JOIN QUT1 T2 ON T1.ItemCode = T2.ItemCode WHERE T1.[ItemCode] = T2.[ItemCode]
    I would like above query to populate a user defined field on Sales Quotation whenever an item is added to quotation or the item is changed. The field I have on Sales Quotation is U_NPS_D2 (it is not in above query). I used form setting to make U_NPS_D2 visible on Sales Quotation. The value I want updated in U_NPS_D2 is from U_NPS_QD (from Item master data).
    I would actually want U_NPS_D2 updated automatically even without user entering Shift F2.
    Where should the $ sign be placed in above query with the right syntax?
    I tried many things and failed.
    Appreciate help.
    Thank you.

    Hi,
    Try This:
    SELECT T1.U_NPS_QD
    FROM OITM T1 INNER JOIN QUT1 T2
    ON T1.ItemCode = T2.ItemCode
    WHERE T1.itemcode =  $[QUT1.itemcode]
    Auto update the field when Item number changes.
    Regards
    Ashutosh
    You should not write " http://"  this is a " [   ] "  actually. But wile i am posting it it comes like http://qut1....
    Cheers..
    Edited by: Ashutosh T on Jun 14, 2010 7:38 AM

  • Query ref. Sales Revenues v Delivered Costs of these

    Hi Experts
    I picked up on the following SQL Query in answer to another users requirements.
    SELECT Distinct T0.DocNum 'Invoice#', T0.DocDate, T0.DocDueDate,
    T0.GrosProfit, T1.ItemCode, T1.Quantity, T1.Price, T3.DocNum 'Delivery#'
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    inner join DLN1 T2 on t0.docentry = t2.trgetentry
    inner join ODLN T3 on t3.docentry = t2.docentry
    WHERE DateDiff(MM,T0.DocDate, GetDate())=1
    Is it possible to modify this SQL so as to :
    1. Be able to determine what the "Delivered Cost" (as per per the Jnl linked to the Delivery Docket' ) of the Sales Invoice was.
    2. Change date criteria so as to show only Sales Invoice posted between x and y dates?
    Any help would be much appreciated
    Derek

    Hi Rahul
    It's ok - I must have missed part of SQL when I cut and pasted from email instead of directly from your SAP reply.
    From what I can see, your SQL is taking the Purchase Price from the GP icon on the Sales Invoice.
    However, the Delivered Cost (ie. the journal created on delivery) is working through Stocks on FIFO basis.
    Therefore getting different answer.
    Is there any way of picking up the Delivered Cost in this SQL?
    Thanks for your help to date.
    Derek

  • Help for query tuning

    hello all
    my one of query is returning result in 1-2 mins only for 1 lakh record but i am not sure if it showed me complete rows or not because when I an trying to get count of result ..its taking lot of time .when I am using this query on plsql code ..code is running slow so just wanted to confirm on query tuning point of view if its fine or not ..please look onto it and let me know if query is fine or not by explain plan .my oracle version is 11g
    this is my query
    SELECT ROWNUM , TRUNC(rownum/5000) + 20000 ,'FOR_UPDATE', sku_org.NAME ,
    acct_promo_sku.src_num , acct_promo_sku.sub_type ,
    promo_actual.sku_actual_pos
    FROM siebel.s_src acct_promo_hdr,
    siebel.s_src acct_title_format,
    siebel.s_src acct_promo_sku,
    siebel.s_src_x acct_promo_hdrx,
    siebel.s_src_x acct_promo_skux,
    siebel.s_prod_int prod,
    siebel.s_bu promo_hdr_org,
    siebel.s_bu sku_org,
    siebelwb.stg_sbl_acct_promo_actuals2 promo_actual
    WHERE acct_promo_hdr.sub_type = 'PLAN_ACCOUNT_PROMOTION'
    AND acct_promo_hdr.row_id = acct_title_format.par_src_id
    AND acct_title_format.sub_type = 'PLAN_ACCT_PROMOTION_CATEGORY'
    AND acct_title_format.row_id = acct_promo_sku.par_src_id
    AND acct_promo_sku.sub_type = 'PLAN_ACCOUNT_PROMOTION_PRODUCT'
    AND acct_promo_hdr.row_id = acct_promo_hdrx.par_row_id
    AND acct_promo_sku.row_id = acct_promo_skux.par_row_id(+)
    AND acct_promo_sku.prod_id = prod.row_id
    AND acct_promo_hdr.bu_id = promo_hdr_org.row_id
    AND acct_promo_sku.bu_id = sku_org.row_id
    AND prod.x_prod_material_num = promo_actual.material_number
    and prod.X_PROD_SALES_ORG=promo_actual.sales_org
    AND acct_promo_hdr.row_id = promo_actual.acct_promo_id
    and nvl(acct_promo_hdr.pr_accnt_id,0)=nvl(promo_actual.acct_siebel_rowid,0)
    and nvl(acct_promo_hdr.x_indirect_id,0)=nvl(promo_actual.indirect_acct_siebel_rowid,0)
    AND promo_actual.load_date >= TRUNC(SYSDATE)
    AND promo_actual.load_date < TRUNC(SYSDATE + 1)
    explain plan
    PLAN_TABLE_OUTPUT
    Plan hash value: 3864590768
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 298 | 2300 (1)| 00:00:28 |
    | 1 | COUNT | | | | | |
    |* 2 | FILTER | | | | | |
    | 3 | NESTED LOOPS | | | | | |
    | 4 | NESTED LOOPS | | 1 | 298 | 2300 (1)| 00:00:28 |
    | 5 | NESTED LOOPS OUTER | | 1 | 273 | 2298 (1)| 00:00:28 |
    | 6 | NESTED LOOPS | | 1 | 263 | 2296 (1)| 00:00:28 |
    | 7 | NESTED LOOPS | | 1 | 236 | 2295 (1)| 00:00:28 |
    | 8 | NESTED LOOPS | | 1 | 165 | 2292 (1)| 00:00:28 |
    | 9 | NESTED LOOPS | | 1 | 117 | 2289 (1)| 00:00:28 |
    | 10 | NESTED LOOPS | | 1 | 109 | 2289 (1)| 00:00:28 |
    | 11 | NESTED LOOPS | | 1 | 99 | 2287 (1)| 00:00:28 |
    |* 12 | TABLE ACCESS FULL | STG_SBL_ACCT_PROMO_ACTUALS2 | 1 | 49 | 2285 (1)| 00:0
    |* 13 | TABLE ACCESS BY INDEX ROWID| S_SRC | 1 | 50 | 2 (0)| 00:00:01 |
    |* 14 | INDEX UNIQUE SCAN | S_SRC_P1 | 1 | | 1 (0)| 00:00:01 |
    |* 15 | INDEX RANGE SCAN | S_SRC_X_U1 | 1 | 10 | 2 (0)| 00:00:01 |
    |* 16 | INDEX UNIQUE SCAN | S_BU_P1 | 1 | 8 | 0 (0)| 00:00:01 |
    |* 17 | TABLE ACCESS BY INDEX ROWID | S_SRC | 1 | 48 | 3 (0)| 00:00:01 |
    |* 18 | INDEX RANGE SCAN | S_SRC_F2 | 2 | | 2 (0)| 00:00:01 |
    |* 19 | TABLE ACCESS BY INDEX ROWID | S_SRC | 1 | 71 | 3 (0)| 00:00:01 |
    |* 20 | INDEX RANGE SCAN | S_SRC_F2 | 2 | | 2 (0)| 00:00:01 |
    | 21 | TABLE ACCESS BY INDEX ROWID | S_BU | 1 | 27 | 1 (0)| 00:00:01 |
    |* 22 | INDEX UNIQUE SCAN | S_BU_P1 | 1 | | 0 (0)| 00:00:01 |
    |* 23 | INDEX RANGE SCAN | S_SRC_X_U1 | 1 | 10 | 2 (0)| 00:00:01 |
    |* 24 | INDEX UNIQUE SCAN | S_PROD_INT_P1 | 1 | | 1 (0)| 00:00:01 |
    |* 25 | TABLE ACCESS BY INDEX ROWID | S_PROD_INT | 1 | 25 | 2 (0)| 00:00:
    Predicate Information (identified by operation id):
    2 - filter(TRUNC(SYSDATE@!)<TRUNC(SYSDATE@!+1))
    12 - filter("PROMO_ACTUAL"."LOAD_DATE">=TRUNC(SYSDATE@!) AND "PROMO_ACTUAL"."LOAD_DATE"<TRUNC(SYSD
    13 - filter("ACCT_PROMO_HDR"."SUB_TYPE"='PLAN_ACCOUNT_PROMOTION' AND
    NVL("ACCT_PROMO_HDR"."PR_ACCNT_ID",'0')=NVL("PROMO_ACTUAL"."ACCT_SIEBEL_ROWID",'0') AND
    NVL("ACCT_PROMO_HDR"."X_INDIRECT_ID",'0')=NVL("PROMO_ACTUAL"."INDIRECT_ACCT_SIEBEL_ROWID",'0'
    14 - access("ACCT_PROMO_HDR"."ROW_ID"="PROMO_ACTUAL"."ACCT_PROMO_ID")
    15 - access("ACCT_PROMO_HDR"."ROW_ID"="ACCT_PROMO_HDRX"."PAR_ROW_ID")
    16 - access("ACCT_PROMO_HDR"."BU_ID"="PROMO_HDR_ORG"."ROW_ID")
    17 - filter("ACCT_TITLE_FORMAT"."SUB_TYPE"='PLAN_ACCT_PROMOTION_CATEGORY')
    18 - access("ACCT_PROMO_HDR"."ROW_ID"="ACCT_TITLE_FORMAT"."PAR_SRC_ID")
    19 - filter("ACCT_PROMO_SKU"."PROD_ID" IS NOT NULL AND
    "ACCT_PROMO_SKU"."SUB_TYPE"='PLAN_ACCOUNT_PROMOTION_PRODUCT')
    20 - access("ACCT_TITLE_FORMAT"."ROW_ID"="ACCT_PROMO_SKU"."PAR_SRC_ID")
    22 - access("ACCT_PROMO_SKU"."BU_ID"="SKU_ORG"."ROW_ID")
    23 - access("ACCT_PROMO_SKU"."ROW_ID"="ACCT_PROMO_SKUX"."PAR_ROW_ID"(+))
    24 - access("ACCT_PROMO_SKU"."PROD_ID"="PROD"."ROW_ID")
    25 - filter("PROD"."X_PROD_MATERIAL_NUM" IS NOT NULL AND
    "PROD"."X_PROD_MATERIAL_NUM"="PROMO_ACTUAL"."MATERIAL_NUMBER" AND
    "PROD"."X_PROD_SALES_ORG"="PROMO_ACTUAL"."SALES_ORG")
    55 rows selected.
    thanks

    Hi,
    the plan you posted has the cost of 2300, i.e. 2300 single-block reads or equivalent number f multi-block reads. Even if none of the blocks is found in cache, 2300 reas shouldn't take more than a couple of minutes, beacause for most of the hard drives available today a disk read is typically within 5-10 ms.
    This means that if there is a problem, we will never find out about it by looking in the plan. And it's quite likely that there is, in fact, a problem, because the plan contains a bunch of nested joins, and the cost of each nested join is directly proportional to the cardinality of the previous nested loop. I.e. it suffices to make one bad mistake in estimating the number of rows coming fom one of the nested rows to screw up the entire plan and get all remaining estimates (including the total cost of the query) completely wrong.
    In order for us to be able to tell more, we need to see the plan with rowsource statistics, and please don't forget to use tags to preserve formatting (use the preview tab to make sure the posted plan is actually readable).
    Best regards,
      Nikolay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to change date format in query

    Hi all!
    there is Date field in query (ref to 0Date) and it is in "01.2010" format. Anybody knows how to switch to "Jan 2010" format?

    HI,
    You can dispay using the excel properties. Once after the workbook run, select the column you want to change the format and cange to the format required. Save the workbook.
    From next run the date field will be displayed as the format set in workbook.
    Hope this helps,
    regards,
    anil

  • Vendor master query

    Hi
    I need to make a sap query for all the fields available in both the tables LFA1 & LFB1.  So anyone can suggest the steps of config. for sap query of vendor master records.
    thanks & Regards,
    babjee

    Hi
    Generally there are no configuration steps for SAP query. It is a reporting tool. Using these tool, you can create reports.
    If you are using SAP Query, refer to the following websites
    help.sap.com/printdocu/core/Print46c/EN/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    understanding sap query
    http://www.sap-basis-abap.com/sapqu005.htm
    http://www.sap-basis-abap.com/sapqu001.htm
    Additionally you can also create ABAP Report or use BW for vendor master records
    Please let me know if you need more information.
    Regards
    Sridhar M

  • Could query form and result table display at seperate pages

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * Could query form and query result table display at differenct pages?
    Thanks
    Lei

    yeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
    select ename, job, sal, empno, deptno
    from emp
    where :P1_JOB = job
    and :P1_DEPTNO = deptno
    ...hope this helps,
    raj

  • Abap coding in SAP query (SQ01)

    Hi,
    By using the a table like for MSEG if i want to retrieve data for the movement type 101 (receipts from vendor), i can build a query using this table and retrieve data - my problem starts when the system shows individual line items instead of cumulated result as mentioned in the following example.
    Example :-
    for the date 01.07.2007 - i have 10 entries (101 movement) of quantity 1,2,3,4,5,6,7,8,9,10 against a vendor V1. - the query lists all the 10 entries.
    But what is required is the cumulated entry against the vendor like shown below
    vendor    receipt
    V1         55.
    What abap coding should be written (provide the sample code) and the where should it be written in the query transaction SQ01
    Regards,
    M.M

    Hi Magesh,
    If you do not wish to see the detail lines, then you do not need to create them.  Just create the Statistics portion only.
    If you wish to see 'summarized Vendor quantity by day', then you might sort on Vendor first, then posting date second.  Or, vice versa, depending on your business requirement.  I would think that you might also wish to include Material in the sort, since each Material is probably valued differently.
    For more info on creating statistics in SAP Query, refer to
    http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb4256455611d189710000e8322d00/frameset.htm
       Regards,
       Bruce

  • Class to run standard SAP Query

    Hi,
    Could you help me with finding standard SAP class to run query created in SQ01?
    Thank you

    Hi,
    You can create the TCode for the Sap Query and use to run query.
    refer the links to create tcode for sap query..
    how to create a tcode for abap query
    tcode for sap query

  • #REF! appearing in the workbook cells

    Hi gurus,
    When there are values for the query selection, the workbook will present the values properly but when there are no values for a perticular selection criteria of the query- #REF! appeares in the workbook cells. I think there are cell references in the workbook. Now the client does not want that  '#REF!' to appear, he wants zero to appear if values are not there. Pls advice how to achieve this?
    Thanks & Regards,
    Shreesh.

    Hi Shreesh,
    You can give an IF condition for the cells referencing the #REF! value as
    if ( cell reference = "#REF!", 0 )
    Also, have a look at the forum below:
    Bex Excel prolem with cell references
    Hope this helps u.!
    -Pradnya.

  • Setting approval of Status of Goods/Service Confirmation - Stat_RELEASE

    Could someone please tell me where in SRM Stat_Release is set for approval of Status of Goods/Service Confirmation.
    Does it have a default value to begin with?
    What triggers the value to change?
    When & where does the value change?

    Hi
    This seems to be a bug in the system.
    <u>0BBP_RELCON (Release status of the GR/service confirmation)</u>
    Query 0BBP_CONF_Q009
    Title Confirmation of Goods/Service per Order
               Based on InfoCube: 0BBP_CONF
    Use:
               This report shows which goods and service completion confirmations were updated for each order within a certain period.
    <u>Please go through the follwoing SAP OSS Notes -></u>
    Note 214220 - Additional documentation: SAP B2B Procurement 2.0B
    Note 816764 - Incorrect extraction of Approval SC with 'DELETE' Status
    Note 807718 - BBP 30 - SRM 4.0: BW extractor and quotation status
    Note 813919 Performance of 0BBP_TD_SC_APPR_1 DataSource
    Note 978637 - Duplicated Entries in Shopping Cart Approval DSO
    Note 912542 - Total Approved Value of Shopping Cart is multiplied in BW
    Note 915528 - Wrong 'Total Approved Value' in Shopping Cart
    Note 947495 - Composite SAP note for BI Content 3.5.3 Add-On Patch 11
    Regards
    - Atul

  • No BI query logs

    I was working on a production issue, unfortunately query logging is disabled in production. Technically query might be same as from dev, but i need to confirm prod query. What should be the right approach to solve the issue here?

    Take the logical query from analysis which would be shown from 'Manage Sessions' and run this in 'Issue SQL' under Administration and enable whatever logging you want to starting with 4 is recommended. Now you can click view log to get the physical query.!
    Run this in your DB.
    Mark if helps.
    Thanks,
    SVS

  • How to link a non-linkable query and a plsql query in the datamodel

    Hi,
    I am creating a matrix group....
    Where in I get my
    1) Column values from a non-linkable query - Period (Jan, Feb....)
    2) Row values from a plsql query (ref cursor). Group is also from this query
    3) Cross product is on the above two queries.
    4) Cell info comes from a plsql query (refcursor).
    I created a group link from the cross product group (3) to the cell info query (4)
    I prepared the layout and executed the report... I am getting redundant data....
    The reason being the (4) and (1) are not linked properly.
    From google, About non-linkable queries column.... I understood that to link two non-linkable queries, we need to create a group link and then add a where clause in the child query referring the parent query column.
    But my case is a non-linkable query (which is a parent ) and a plsql query which is the cell.
    Any help...?
    Thanks in advance.
    KK

    Hello Sam,
    >
    I was wondering if you could have any link or examples to show how to make a form with report and an insert form in the same page, these two forms are related to the same table. Our customer wants a user can add new row to the table in a form and see all of rows created by this user in a report, this report should provide edit link as well. the problem is: whenever I inserted a new row or edit a row or delete a row, and submitted, and return to this page, all of hidden items lost their values, so report is blank, and some display only items also lost their values. Could anyone give me suggestions?
    >
    This will help:
    http://www.grassroots-oracle.com/2011/09/apex-tutorial-form-report-sharing-same.html
    Hope it helps!
    Regards,
    Kiran

  • BW Universe with multiple hierarchies issue

    Hi,
         We created an OLAP universe off a BW BEx query that has 2 hierarchies enabled.  Hierarchy 1 is 12 levels deep while Hierarchy 2 is only 5 levels.  Level 00 was also generated for better hierarchy reporting.  In Web Intelligence reporting, Hierarchy 1 is required to report starting on Level 4 and then drill as needed so L00, L01, L02, L03, L04 was included in the report.  Hierarchy 2 is for grouping and only L00, L01 was included in the report along with key figures.  This Web Intelligence result set works fine [Hierarchy 1:  L00, L01, L02, L03, L04] , [Hierarchy 2: L00, L01] , measures/key figures. 
         If additional levels of Hierarchy 1 is added, at L06 and beyond, the query suddenly returns message "No Data to Fetch".  In BEx, it was confirmed the query does run with the exact same drilldowns as Web Intelligence and it works in BEx.  If Hierarchy 2 is removed from Web Intelligence, the report also can successfully fetch up to the lower levels up to L09.  If other flat objects are added, the Web Intelligence report still works fine, it seems to get "No Data to Fetch" when Hierarchy 2 is added.  Any information would be appreciated, thank you.
    Issue:  Web Intelligence report with two BW hierarchies gets "No Data to fetch" if Hierarchy 1 goes lower than L06.
    Observations:
    1)  There are some empty nodes starting in Hierarchy 1 L06, but the Hierarchy 1 works fine by itself
    2)  The BEx and Universe has a hierarchy node variable prompt.  We filtered at lower hierarchy nodes, levels where there is data, but it still does not work with Hierarchy 2
    Environment:
    - BOE XI 3.1 SP2
    - SAP BI 7
    - BEx query (2 hierarchies), OLAP universe, Web Intelligence

    Please refer to:  the below document page# 43.  Hope this helps!
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_sap_olap_universes_en.pdf

Maybe you are looking for