For-each skip rows based on test null condition

I thought this would be simple, but I can't seem to find a satisfactory answer in the XML Publisher manuals. For various reasons, I have a pre formatted Oracle Report in EBS which doesn't group the XML tags as I want them. I have some groupings with tags of NULL data. I simply want to test for a NULL tag and just skip the ROW completely. I don't want to test each individual row on the line of about 10 tags.
Here is an example, I just want to skip rows with blank XML data.
<G_CUSTOMER_NUMBER>
<CUSTOMER_NUMBER>10001</CUSTOMER_NUMBER>
<BILLING_NO></BILLING_NO>
<LIST_G_HEADER>
<G_HEADER>
<HEADER>2HEADER</HEADER>
<BILL_TO_ADDRESS1></BILL_TO_ADDRESS1>
<BILL_TO_ADDRESS2></BILL_TO_ADDRESS2>
<BILL_TO_ADDRESS3></BILL_TO_ADDRESS3>
<BILL_TO_ADDRESS4></BILL_TO_ADDRESS4>
<CS_TERM_NAME></CS_TERM_NAME>
<TRX_TYPE_NAME></TRX_TYPE_NAME>
<DUE_DATE></DUE_DATE>
<LIST_G_DETAILS>
<G_DETAILS>
<REPORT_ALL_AMOUNT></REPORT_ALL_AMOUNT>
<LINE_QTY_INVOICED></LINE_QTY_INVOICED>
<LINE_UNIT_SELLING_PRICE></LINE_UNIT_SELLING_PRICE>
<LINE_EXTENDED_AMOUNT></LINE_EXTENDED_AMOUNT>
<LINE_DESCRIPTION></LINE_DESCRIPTION>
<TRX_NUMBER></TRX_NUMBER>
<INTERNAL_NOTES></INTERNAL_NOTES>
<CS_TERM_ALL_AMOUNT></CS_TERM_ALL_AMOUNT>
</G_DETAILS>
</LIST_G_DETAILS>
</G_HEADER>
<G_HEADER>
<HEADER>4DETAIL</HEADER>
<BILL_TO_ADDRESS1></BILL_TO_ADDRESS1>
<BILL_TO_ADDRESS2></BILL_TO_ADDRESS2>
<BILL_TO_ADDRESS3></BILL_TO_ADDRESS3>
<BILL_TO_ADDRESS4></BILL_TO_ADDRESS4>
<CS_TERM_NAME></CS_TERM_NAME>
<TRX_TYPE_NAME>Invoice</TRX_TYPE_NAME>
<DUE_DATE></DUE_DATE>
<LIST_G_DETAILS>
<G_DETAILS>
<REPORT_ALL_AMOUNT></REPORT_ALL_AMOUNT>
<LINE_QTY_INVOICED>1</LINE_QTY_INVOICED>
<LINE_UNIT_SELLING_PRICE>61.7</LINE_UNIT_SELLING_PRICE>
<LINE_EXTENDED_AMOUNT>61.7</LINE_EXTENDED_AMOUNT>
<LINE_DESCRIPTION>Facility fees for NOV-2006</LINE_DESCRIPTION>
<TRX_NUMBER>10300492</TRX_NUMBER>
<INTERNAL_NOTES></INTERNAL_NOTES>
<CS_TERM_ALL_AMOUNT></CS_TERM_ALL_AMOUNT>
</G_DETAILS>
</LIST_G_DETAILS>
</G_HEADER>
<G_HEADER>
<HEADER>6DETAIL</HEADER>
<BILL_TO_ADDRESS1></BILL_TO_ADDRESS1>
<BILL_TO_ADDRESS2></BILL_TO_ADDRESS2>
<BILL_TO_ADDRESS3></BILL_TO_ADDRESS3>
<BILL_TO_ADDRESS4></BILL_TO_ADDRESS4>
<CS_TERM_NAME></CS_TERM_NAME>
<TRX_TYPE_NAME></TRX_TYPE_NAME>
<DUE_DATE></DUE_DATE>
<LIST_G_DETAILS>
How do I do this?

I found the answer on page 2-63 of the manual, however you need to make sure a test like this <if:LINE_QTY_INVOICE>0> is not used as it caused on error. Rather use this test <if:LINE_QTY_INVOICE!=''>

Similar Messages

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • Query for Separate data for each VU user in OLT testing

    Hi,
    I am not able to configure separate set of data for each VU users in OLT testing to avoid concurrency.Is there a way out in OATs?
    Regards,
    Yogesh
    Edited by: user10313659 on Jan 8, 2012 10:52 PM

    Hi Yogesh,
    It is not really practical to use a separate databank per virtual user (assuming this is what you were referring to). You can use a databank that contains enough records for all users and then use the databank control to make sure that each user gets a separate record for each iteration - check out the 'Sequential/Stop the User' settings or use 'Shuffle'.
    Regards,
    Jamie

  • Report for Pending 103 for 105 (If GR based IV is untick condition)

    Hi,
    I required logic for mapping the report in Pending 103 for 105, If GR based IV is untick condition in PO.
    Our business accept the material with movement type 103. After various tests (outside SAP), we post this document with movement type 105.
    Normally each MIGO document has a reference document no . In case of 103 document, the reference docu no is the same no. In case of 105 document, the reference docu no is the docu no of 103.
    It is noticed that for some 103 and 105 documents, the reference docu no is blank when GR based IV is not ticked in the Purchase order.
    We need some logic to find the ref of 103 doc in 105 doc.
    Regards,
    Maddali

    Thanks for your promt reply.
    I have seen ME2M/ ME2L with selection parameter we104 or we105. However our client required specific report format for controlling this issue.
    So I am trying for logic in this particular senarieo.
    Regards,
    Suresh

  • How to dpwnload one XML file for each report row

    Hi all,
    i have a report on the products table with about 1000 rows
    desc of table products
    product_id varchar (10)
    product_desc varchar2 (2000)
    I would like to download on the file system an xml file for each row of the report
    the nane of each xml file = <product_id>.xml
    thanks in advance
    km

    Hi,
    You would probably find it better to search on the PL/SQL forum as this is more their area than Apex.
    From what I can see in there (and there are a number of examples that would help you), you need to do something like:
    DECLARE
    vPATH VARCHAR2(50) := '/DEV';
    vFILENAME VARCHAR2(50);
    vFILE UTL_FILE.FILE_TYPE;
    BEGIN
    FOR C IN (SELECT PRODUCT_ID, PRODUCT_DESC FROM PRODUCTS)
    LOOP
      vFILENAME := C.PRODUCT_ID || '.xml';
      vFILE := UTL_FILE.FOPEN(vPATH, vFILENAME, 'W');
      UTL_FILE.PUT_LINE(vFILE, '<xdr>');
      UTL_FILE.PUT_LINE(vFILE, '<product_id>' || C.PRODUCT_ID || '</product_id>');
      UTL_FILE.PUT_LINE(vFILE, '<product_desc>' || C.PRODUCT_DESC || '</product_desc>');
      UTL_FILE.PUT_LINE(vFILE, '</xdr>');
      UTL_FILE.FCLOSE(vFILE);
    END LOOP;
    END;I haven't included exception handling etc and you should check on the PL/SQL forum to see if there are better examples!
    Andy

  • Changing the font color for the complete row based on the Keyfigure Values

    Hi Experts,
    Can any one help me to find a solution for this?.
    I have a requirement, in which the Font color for the complete Row needs to be set to RED in Bex Report, when the corresponding Row Keyfigure is more than a particular value.
    Ex: Notification-Material-Customer-Def Qty-delivered Qty
          1000000 - XXXXX- AAAAAA-10-1000
    in the above example, when the Defect qty increses more than 10, then the complete Row Including the characterstics, Notification, Material, and customer Should be Highlighted in Red. This has to happen automatically once the Query is refreshed.
    Please let me know if you have any suggestion here?.
    Regard,
    Muruganand.K

    Hi,
    Step 1: Click the Format Menu in Excel(BEX Analyzer)
    Step 2: Click the Style submenu
    Step 3: there will be number of SAPBEX formats available. Each of these relates to another cell of BEx (Header, Cell Data,
                Result  Row, Hierarchies, etc.). Also, they depend on data types.
    Step 4: Select SAPBEXchatext
    Step 5: Click Modify. This displays all the standard formatting option as shown below.
    Step 6: Select Font, Color (Background/ Font).
    Step 7: Click OK on both the screens. The entire BEx output result row Font and color is modified.
    Hope it helps........
    Regards,
    Suman

  • How to run trigger for each affected row in delete query

    Hello every body, can anyone help me ?
    I will describe my problem. First, i have 2 table name tbStock and
    tbSalesDetail. Column in tbStock and tbSalesDetail is like this :
    CREATE TABLE tbStock (
    idStock INT PRIMARY KEY,
    nameStock VARCHAR(250) NOT NULL,
    qtyStock FLOAT NOT NULL
    GO
    INSERT INTO tbStock (idStock, nameStock, qtyStock) VALUES (0, 'Apple', 100);
    INSERT INTO tbStock (idStock, nameStock, qtyStock) VALUES (1, 'Banana', 80);
    GO
    CREATE TABLE tbSalesDetail (
    idData BIGINT IDENTITY(0,1) PRIMARY KEY,
    invoiceNumber VARCHAR(20) NOT NULL,
    idStock INT NOT NULL,
    qtySales FLOAT NOT NULL
    GO
    INSERT INTO tbSalesDetail (invoiceNumber,idStock,qtySales) VALUES ('JL001',0,10);
    INSERT INTO tbSalesDetail (invoiceNumber,idStock,qtySales) VALUES ('JL001',1,5);
    GO
    Then, i want to update qtyStock in tbStock when data insert into tbSalesDetail or delete from tbSalesDetail with trigger. (In this case, i use delete from tbSalesDetail). So, i create trigger like this :
    CREATE TRIGGER tbSalesDetail_Trigger_Delete ON tbSalesDetail
    FOR DELETE
    AS
    BEGIN
    DECLARE @idStockX INT, @qtySalesX FLOAT;
    SELECT @idStockX=idStock, @qtySalesX=qtySales FROM deleted;
    UPDATE tbStock SET qtyStock=qtyStock+@qtySalesX WHERE idStock=@idStockX;
    END
    GO
    The trigger is run. I hope if i run delete command like :
    DELETE FROM tbSalesDetail WHERE invoiceNumber='JL001';
    will make the quantity of stock become like this :
    Product Apple (idStock=0) = 100+10=110
    Product Banana (idStock=1) = 80+5=85
    But in the fact, Quantity Apple is True (110) and Quantity Banana is
    False (still 80).
    I know this problem because trigger only run for first row. So how can i update each data in affected row with trigger ? (I use Windows 7 SP1 32 bit and SQL Server 2012 SP1 Express Edition)

    Your DDL violates ISO-11179 rules and needs to be fixed. You even use camelCase (look up the research; it does not work because of eye movement to the Uppercase letters). The prefix “tb-” is a design flaw caller “tbling” in the literature (Google some
    of Phil Factor's columns at Red Gate). 
    Why did you use FLOAT for a quantity? Do you really have 3.141592653 bananas so you can make banana pie? 
    Why is the stock id a numeric? What math do you do on it? It should be an industry standard, like UPC, EAN or GTIN. 
    Why is there no reference in the weak entity (Sales_Details) to it's strong entity (Stock)? 
    Why do you think that IDENTITY is a key?? It is the count of physical insertion attempt to a table in one schema! It has no place in DBMS. Why don't you use the current ANSI Standard INSERT statements? 
    Let's fix this mess:
    CREATE TABLE Stock 
    (gtin CHAR(15) NOT NULL PRIMARY KEY, 
     item_name VARCHAR(250) NOT NULL, 
     onhand_qty INTEGER NOT NULL);
    INSERT INTO Stock (gtin, item_name, onhand_qty)
     VALUES ('000000000000000', 'Apple', 100), 
            ('111111111111111', 'Banana', 80);
    If there is a Sales detail table, there has to be a Sales table in a valid design. This is the strong-weak entity rule. 
    While IDENTITY is fundamentally wrong, using BIGINT is an error made worse. Then looking at the data, this is a table of purchase invoices, not sales details. 
    CREATE TABLE Purchase_Orders 
    (po_nbr CHAR(20) NOT NULL PRIMARY KEY, 
     gtin CHAR(15) NOT NULL
        REFERENCES Stock(gtin)
        ON UPDATE CASCADE, 
     purchase_qty INTEGER NOT NULL);
    INSERT INTO Purchase_Orders (po_nbr, gtin, sale_qty)
     VALUES ('JL001', '000000000000000', 10),
            ('JL001', '111111111111111', 5);
    >> I want to update onhand_qty in Stock when data is insert into Invoices or delete from Invoices with trigger. (In this case, I use delete from Invoices). So, I created trigger like this : <<
    Why? A trigger is procedural code and SQL is a declarative language. An SQL Programmer might use a stored procedure to update stock levels instead.
    The simple one item purchase would be:
    CREATE PROCEDURE Apply_Purchase_Orders
    (@in_gtin CHAR(15),
     @in_purchase_qty INTEGER) 
    AS
    UPDATE Stock 
       SET onhand_qty = onhand_qty + @in_purchase_qty
     WHERE gtin = @in_gtin;
    But if you want to apply a table of purchase orders:
    CREATE PROCEDURE Apply_Purchase_Orders ()
    AS
    MERGE INTO Stock AS S
    USING Purchase_Orders AS P
    ON S.gtin = P.gtin
    WHEN MATCHED 
    THEN UPDATE 
         SET onhand_qty = onhand_qty + @in_purchase_qty;
    Your problem is that you have not gotten education or training, so instead of writing RDBMS and good SQL, you are mimicking your old procedural language and a file system. This is more than we can do in a Forum. What you will get is advice to “help” you kludge
    a cripple system. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • VStest.console.exe Query for a Data Row Result DURING Test Execution Status

    I started with the following
    thread and was asked to create a new thread. 
    I have the following test that reads a .csv as a data source.
    /// <summary>
    /// Summary description for Test
    /// </summary>
    [TestCategory("LongTest"),
    TestCategory("Visual Studio 2013"), TestMethod]
    [DeploymentItem("data.csv")]
    [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV",
    "|DataDirectory|\\data.csv",
    "data#csv",
    DataAccessMethod.Sequential),
    DeploymentItem("data.csv")]
    public void Create_And_Build_All_Templates()
    testmethodname = "Create And Build All Templates ";
    LaunchVisualStudio2013();
    When I run the test from VStest.console.exe, I see the following:
    vstest.console.exe /testcasefilter:"TestCategory=LongTest" /settings:"C:\testing\CodedUI.testsettings" /logger:TRX /logger:CodedUITestLogger C:\AppTests\CodedUITest.dll
    Microsoft (R) Test Execution Command Line Tool Version 12.0.31101.0
    Copyright (c) Microsoft Corporation. All rights reserved.
    Running tests in C:\testing\bin\debug\TestResults
    Starting test execution, please wait...
    I want to report on the status of the iterations DURING the test run from VStest.console.exe, like how the test explorer window does this. 
    How can I achieve the output below (notice the (Data Row ) values) ?
    vstest.console.exe
    /testcasefilter:"TestCategory=LongTest"
    /settings:"C:\testing\CodedUI.testsettings"
    /logger:TRX
    /logger:CodedUITestLogger
    C:\AppTests\CodedUITest.dll
    Microsoft (R) Test Execution Command Line Tool Version 12.0.31101.0
    Copyright (c) Microsoft Corporation. All rights reserved.
    Running tests in C:\testing\bin\debug\TestResults
    Starting test execution, please wait...
    Test Passed - Create_And_Build_All_Templates (Data Row 1)
    Test Passed - Create_And_Build_All_Templates (Data Row 2)
    Test Failed - Create_And_Build_All_Templates (Data Row 3)
    Test Passed - Create_And_Build_All_Templates (Data Row 4)
    Ian Ceicys

    Jack, again the results are printed to the std. out console AFTER the test data row has been completed. Is there a way to query VSTest.console and find out which test\data row is being executed so it can be written out to the console
    DURING the test run? 
    I put together the following screencast showing the issue: 
    http://www.screencast.com/t/IrxxfhGlzD
    Also here is the github repo with the source code that I included in the screen cast:
    https://github.com/ianceicys/VisualStudioSamples2015
    Take a look at LongRunningDataDrivenTest.sln
    Unit Test
    [TestClass]
    public class UnitTest
    public static int _executedTests = 0;
    public static int _passedTests = 0;
    public void IncrementTests()
    _executedTests++;
    public void IncrementPassedTests()
    _passedTests++;
    [TestInitialize]
    public void TestInitialize()
    IncrementTests();
    Console.WriteLine("Total tests Row executed: {0}", _executedTests);
    [TestCleanup]
    public void TestCleanup()
    if (TestContext.CurrentTestOutcome == UnitTestOutcome.Passed)
    IncrementPassedTests();
    Console.WriteLine("Total passed tests: {0}", _passedTests);
    private TestContext testContextInstance;
    /// <summary>
    /// Long Running Test
    /// </summary>
    [TestCategory("Long Running Test Example"),TestMethod]
    [DeploymentItem("data.csv")]
    [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV",
    "|DataDirectory|\\data.csv",
    "data#csv",
    DataAccessMethod.Sequential),
    DeploymentItem("data.csv")]
    public void LongRunning_TestMethod_Takes_Over_30_Seconds_to_Run()
    WaitTime(Convert.ToInt32(TestContext.DataRow["WaitTime"].ToString()));
    public void WaitTime (int waittime)
    Thread.Sleep(waittime);
    public TestContext TestContext
    get { return testContextInstance; }
    set { testContextInstance = value; }
    data.csv
    WaitTime,
    13000
    19000
    10000
    11000
    15000
    Ian Ceicys

  • Return the column names for which the row values are not null.

    Hi i m a new guy to db admin, and i need a sql script which should return column names of the particular table. and the returned column should have value (fyi - if the column has null value column name should not come in the sql o/p).
    Exmple:
    table name - A
    s.no name mark status fee
    1 aa 45 p null
    2 bb 30 null paid
    3 cc 35 p paid
    fyi -1) if i give the table name(A) and s.no (2) the o/p should be -- name,mark.
    2) if i give the tablename(A) and s.no (1) the o/p should be --- name,mark,status.
    Thanks
    Krishna.
    Edited by: user13294228 on Jun 14, 2010 10:54 PM

    BTW,
    The previous solution is for all values of the column, if you want a specific row, you can add it in where clause.
    I mean in your example, it you look like:
    SET serveroutput on;
    DECLARE
       l_cnt          NUMBER;
       l_str          VARCHAR2 (255) := '';
       l_table_name   VARCHAR2 (255) := 'YOUR_TABLE_NAME';
       l_col_cond     VARCHAR2 (255) := 'S_NO';
       l_val          NUMBER         := 1;
       CURSOR c_col
       IS
          SELECT column_name
            FROM user_tab_columns
           WHERE table_name = l_table_name;
    BEGIN
       FOR i IN c_col
       LOOP
          EXECUTE IMMEDIATE    'SELECT COUNT ('
                            || i.column_name
                            || ') FROM '
                            || l_table_name
                            || ' WHERE '
                            || l_col_cond
                            || ' = '
                            || l_val
                       INTO l_cnt;
          l_str := l_str || CASE
                      WHEN l_cnt = 0
                         THEN ''
                      ELSE i.column_name
                   END || ',';
       END LOOP;
       l_str := SUBSTR (l_str, 1, LENGTH (l_str) - 1);
       DBMS_OUTPUT.put_line (l_str);
    END;Saad,
    Edited by: S.Nayef on Jun 15, 2010 11:54 AM

  • Getting number for each column value based on Date order

    Hi,
    I have Data look like:
    I need to create new column highlighted in red (Team Number). Even if same team comes in several number of times, it should be tracked as new team with whatever is the next number. For eg. team2 comes second time, its is called as 3. If Team 2 comes again
    then it will be 4.
    Any help is appreciated.
    Thanks,
    Punia 

    Thanks for you reply Ricardo. It does work (but only if select 1 ticket).
    My bad I only posted one Ticket Number. Actually there are lots of them ( as below). Your code take all the tickets as one tickets.
    TicketNumber
    OwningTeam
    Status
    Date
    Team Number
    123
    TEAM 1
    Pick Up
    11/12/2014
    1
    123
    TEAM 1
    Complete
    11/12/2014
    1
    123
    TEAM 2
    Pick Up
    11/12/2014
    2
    123
    TEAM 2
    Complete
    11/12/2014
    2
    123
    TEAM 2
    Resolve
    11/17/2014
    2
    123
    TEAM 2
    Complete
    11/24/2014
    2
    123
    TEAM 2
    Pick Up
    12/8/2014
    2
    123
    TEAM 2
    Complete
    12/9/2014
    2
    123
    TEAM 2
    Provide Info
    12/17/2014
    2
    123
    TEAM 1
    Pick Up
    1/8/2015
    3
    123
    TEAM 1
    Resoved
    1/8/2015
    3
    456
    TEAM 1
    Pick Up
    11/12/2014
    1
    456
    TEAM 1
    Complete
    11/12/2014
    1
    456
    TEAM 2
    Complete
    11/24/2014
    2
    456
    TEAM 2
    Pick Up
    12/8/2014
    2
    456
    TEAM 2
    Complete
    12/9/2014
    2
    456
    TEAM 3
    Pick Up
    12/17/2014
    3
    456
    TEAM 3
    Working
    12/18/2014
    3
    456
    TEAM 1
    Pick Up
    1/8/2015
    4
    456
    TEAM 1
    Resoved
    1/8/2015
    4
    789
    TEAM 1
    Pick Up
    11/12/2014
    1
    789
    TEAM 1
    Complete
    11/12/2014
    1
    789
    TEAM 2
    Complete
    11/24/2014
    2
    789
    TEAM 2
    Pick Up
    12/8/2014
    2
    789
    TEAM 2
    Complete
    12/9/2014
    2
    789
    TEAM 1
    Complete
    12/12/2014
    3
    Any work around is really appreciated.
    Thanks,
    Rajneet

  • Raise expection for each row if returned set contains x

    Hello Guys,
    I have the following code and almost gave up on the idea to raise an exception and print
    a line for each row where the sales price is < 10. I know how this works with a CURSOR but I want to try it without it. Thinking about it let me to the conclusion that this is not possible to act on individual row results on a set based operation. I will have to use a CURSOR (not set based so I can look at each row).
    Am I thinking correctly?
    (Code example deleted due to confusion)
    Code example deleted due to confusion
    Edited by: metalray on 10.11.2010 01:07

    Hi 3360,
    I am using PL/SQL. I can make my point without any code.
    The question, in a different format is this:
    Can I throw an whatever exception (or dbms_output put line) for individual rows WITHOUT using a cursor.
    My answer (and I just need clarification on this):
    *(1)* No, because anything apart from a cursor is set-based and set-based operations (select, join, union)
    can not through exceptions on individual rows.
    *(2)* Yes, you can have a DBMS_OUTPUT.PUT_LINE with whatever exception on a set based operation
    for each individual row that causes the exception (I dont think this answer is true :)
    @Agustin UN, thanks for that. I know that is possible :) The problem is,
    that I dont think I can print or fetch each individual row that causes the "exception" since
    it is treated as a set. - I am welcome for someone to tell me that it work nevertheless

  • How to create a PR for each Maintenance Order

    Dear All,
    Please guide me how to create a PR for each Maintenance Order.
    I test on Ides, I have some Maintenance Orders, all of them require the same stock material. When I run MRP, system always create one PR for all requirements. I don't know how to change.
    Regards,
    QuangDD

    Hi,
    As you planning for Stock Items, by running MRP, system will create single PR only. If it is non stock items, then it would be possible to create different PR based on Orders.
    Regards,
    Maheswaran.

  • IDOC to file: Increase sequence number for each item in a segment

    Dear All,
    I am having one scenario IDOC to file, where one IDoc with multiple items for an header in it will be sent.
    In Destination structure, for each iitem segment I am creating multiple rows. I have a field(INC_NUM) in target structure where in I have to start line number from 1 for each item.
    Also I have a condition - for item x or y I should only have the same line number.
    TinAdvance
    Swarna.
    Edited by: Swarna on Oct 24, 2011 8:15 AM

    Hello,
    You can use the statistic function called index for your requirement. Can you give sample input/output so that we can visualize further?
    Hope this helps,
    Mark

  • XSLT For-each loop issue

    Hi All,
    I have a below requirement:
    two source nodes:
    <NODE1>
         <NODE2>
    Here node 2 is optional. i want to check if node 2 is present, if it is present then for-each value of node 2
    if not the the for each must be based on the value of the parent node which is node1.
    Can anyone help me out on this..
    Thanks in Advance!

    Hi,
    In your xslt code within the for loop, for the trxSetIdentCode why are you using the xpath "/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK2/ns1:Element-143"? It should be just "ns1:Segment-AK2/ns1:Element-143". Similar changes for segmentError and trxSetAckCode also should be done. Remove the '/ns1:Transaction-997/ns1:Loop-AK2/' part from your xpath expressions inside the for loop and try it.
    Sahay

  • For Each Loop - Urgent

    Hi,
    I am trying to use a For each loop:
    FE Agreement_No
    Customer
    0.00
    0.00<?end for-each?>
    This does not work. Does the code FE need to be grouped?
    Can anyone help?
    Thanks

    Hi,
    I have created a repeating group:
    <?for-each-group:ROW;./Agreement_No?>
    This places an F in front of agreement_no field
    and places E in front of the following field customer.
    I would also like to add a condition where installment = 'Under 1'
    Would that be <?for-each-group:ROW;./Agreement_No[../Installments='Under 1']?>

Maybe you are looking for

  • Can I add more ram than suggested

    I need to get some more ram for my imac that apple say I can expand to 16gb. I currently have the standed 4gb. In the following article from pcworld i noticed the following (especially the bold) All iMacs come standard with 4GB of memory, installed a

  • Tranport request missing

    Hi all, our dev server crash. after database restore the problem is solved but it is status on when backup is taken during backup and crash we upgrade some program with transport request. those request are missing after backup restore those request a

  • Header text printing in PR.

    Dear all, I have a requirement to print header text of PR. Please let us know to do this. We have developed a Y tcode to print PR  in the required format. in which table this text is stored Please suggest.

  • Adobe Flex Debug - caching??

    Hi, I noticed at certain intervals, Adobe Flex caches files. For instance, if I trace("This is a new trace"), and then update to... trace("This is the same trace updated"), it appears to keep the previous and is unable to be updated to the new trace

  • Time Series Plot

    Is there a standard way to create a time series chart in Apex 4.2? The line chart does not take into account irregular time intervals - it assumes that the data points on the X axis are equally spaced, its just really a bar chart but with a line inst