Query on AT NEW

Hi I have a internal table i_vttp1 of following structure.
TYPES: BEGIN OF t_vttp1,
             tknum   TYPE vttp-tknum,
             tpnum   TYPE vttp-tpnum,
             vbeln   TYPE likp-vbeln,
             kunnr   TYPE likp-kunnr,
             END OF t_vttp1.
Now i have to put a AT NEW   for both the kunnr and tknum.
i have sorted the table. But i am nt very sure whether i can write "AT NEW kunnr tknum." ... like this. bcoz do far i have been using at new for single field only. kindly help.

what u do is... declare kunnr as first field and tknum as second field....
TYPES: BEGIN OF t_vttp1,
kunnr TYPE likp-kunnr,
tknum TYPE vttp-tknum,
tpnum TYPE vttp-tpnum,
vbeln TYPE likp-vbeln,
END OF t_vttp1.
sort itab by kunnr tknum.
now use at new tknum.
it will solve ur problem....

Similar Messages

  • How to copy existing query report into new query report in SQ00

    Hi Experts,
    Hi Experts,
    I want to add fields "company code" "'region" to existing  query report AQZZ/SAPQUERY/FKF1============
    (list of vendor address) for this i done as following:
    1.In SQ01  go to "EDIT->other user group" and i selected user group as /SAPQUERY/FK
    2.I typed F1 in query field and click change button
    3.I clicked next screen button and entered into "change query f1: select fields screen".here i clicked "basic list" button and searched company code checkbox and saved it as result company code is appearing in the standard report"AQZZ/SAPQUERY/FKF1============"
    but unfortunately there is no region field(LFA1-REGIO) for this i think i should copy the existing  query report  into new query report(Ex:Z_LIST_OF_VEND) which should be 14 characters.please tell me briefly how to do this because this is first time i am using SQ00.
    one more issue is when i selected "edit-otheruser group" and choosing /SAPQUERY/FK  i  am getting only infoset "/SAPQUERY/FIKD" but i should need Info set: "/SAPQUERY/FIDD" please tell me how to add the previous one into user group.i think if i got /SAPQUERY/FIDD into usergroup  /SAPQUERY/FK i can add region also into Query report as i mentioned above by going SQ01 ...............................
    please help regarding this which should be very beneficiary to my carrier.
    Regards,
    naresh

    Hi Experts ,
    I solved issue by changing infoset in SQ02 by means of assigning field to field group and changed the query in SQ00.
    Regards,
    naresh.

  • How to insert a query into a NEW workbook ?

    Hi Friends,
    Could some one tell me how to insert a query into a new workbook? i am trying to run query in NW2004S BEx Query Designer, which always open the query on web when executed. i want to run the query in NW2004S BEx Query Designer and want it to open the result in Excell.
    If i am not wrong then to do the same, i need to embed the query into workbook. Correct me if i am wrong. If i am right then plzz tell me the steps to insert the query into workbook.
    Ur help will be rewarded in terms of points.
    Thanks,

    Hello,
    If you open the BEx Query Designer from the desktop, you cannot execute the query directly to the BEx Analyzer for an Excel view. You can only execute it directly to the Web. This is true for the SAP BW 3.x version as well as the SAP NetWeaver 2004s version.
    If you open the BEx Query Designer from within BEx Analyzer, once you select (or create) your query, you will have a green check mark icon that will then allow you to deploy the query directly to the BEx Analyzer for the Excel view.
    However, this would only make sense if you are creating or modifying the query. If not, you would simply open BEx Analyzer and use the Open Query option in this tool to see your query in an Excel format, as has been previously suggested by the other respondents to this posting.
    Regards,
    Katie Beavers
    SAP NetWeaver Product Management

  • Show query results in new tabs - preference

    I am presently in Build MAIN-12.84.
    Setting this preference: "Show query results in new tabs" either on or off gives the same result when executing for instance 3 queries at once.
    1. execution 3 result tabs, 2. execution, 6 result tabs ....
    And that also happens even if I set the preference to OFF ! surely not the intended behaviour?
    best regards Inger

    Hi KK
    For this to work unit must be a characteristic that is stored in the infoprovider
    Try creating a structure in the rows with 3 RKF, drag in the unit characteristic a restrict to the following:
    1. Unit restricted to KG
    2. Unit restricted to LB
    3. Unit restricted to EA
    Then under the RKF include the material characteristic, this will give a break down of material by the above unit types.
    Then in the columns include quantity.
    Hope this helps
    Josh

  • Query That Retrieves New Customers & Leads By Date

    Hello All --
    We would like to create a Query that retrieves new customers and leads based on the date (or date range) they are entered into SAP. 
    Can we create a UDF named STDATE --- Start Date -- and have a Query that allows us to select based on this date range?
    Start dates are entered in this format --- YYYYMMDD.
    Then, the Query would pull out:
    Contact...Company...Bill To Address...Bill To City...Bill To State....Bill To Zip...Phone...Email
    Is this possible to do?
    Thanks!
    Mike

    Hi Mike ,
    You can add some other field as you like .This report will give you combination of both customer and lead .
    I couldn't understand the purpose ,but I like previous query as i have flexibilty to choose customer or vendor .
    SELECT T0.[CreateDate], T0.[CntctPrsn], T0.[CardName], T0.[Address], T0.[City], T0.[E_Mail], T0.[ZipCode], T0.[Phone1] FROM OCRD T0 WHERE T0.[CardType] in ('C','L') and T0.[CreateDate]=[%0]
    If you agree with me ,you can use this query
    SELECT T0.[CreateDate], T0.[CntctPrsn], T0.[CardName], T0.[Address], T0.[City], T0.[E_Mail], T0.[ZipCode], T0.[Phone1] FROM OCRD T0 WHERE T0.[CardType] =[%0] or T0.[Cardtype]=[%1] and
    T0.[CreateDate]=[%2]
    Regarding the date issue , since you are entering paramenter it will match with the date you are looking for .If you have more than one customer created on same day , you willreceive multiple client .
    Thank you
    Bishal

  • How to modify search query based on new FE

    Hi,
    As per a requirement, in All Accounts search (advanced search section), I had to replace 5 checkboxes (e.g. Role1, Role2, Role3, Role4, Role5) by a single dropdown (codelist) name= "Account_Roles" containing same values (Role1, Role2, Role3, Role4, Role5). I created Customer's XBO and declared field of the codelist type, name= "Account_Roles". So, the XBO now has below 6 fields :
    Role1, Role2, Role3, Role4, Role5 (type = Indicator)
    Account_Roles                            (type = codelist)
    Existing search on All Accounts worked on the 5 checboxes and fetched those accounts for which the values matched.
    E.g.
    If in search parameters, I check Role1 & Role2, and for Account1, these values are stored as "true", then Account1 will be shown in the result list.
    Now the search UI doesn't have the checkboxes, but codelist ('Account_Roles') which can have value 'Role1'/'Role2'/'Role3'/'Role4'/'Role5' or combinations are also possible like 'Role1' OR 'Role2', etc..
    My question here is -
    Will the old search query that worked on indicator fields earlier, handle the new FE "Account_Roles" automatically ?
    If not, then will modification be required to existing search query ?
    If modification is required, what steps I need to follow to handle this new field instead of checkboxes.
    I need exact steps to modify a search query, as I tried several things in the PDI but was not able to confirm if this requirement can be implemented by modifying search query or it is not feasible from PDI perspective.
    Appreciate all your inputs.
    Thanks,
    Sachin.

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

  • SQL QUERY to create new schema in Oracle 10g Express

    Can anyone provide the SQL query to create a new schema in Oracle 10g Express edition.

    Can anyone provide a SQl query to create a
    schema/user named 'test' with username as 'system'
    and password as 'manager'system user is created during database creation, it's internal Oracle admin user that shouldn't be used as schema holder.
    In Oracle database, Oracle user is schema holder there's no seperate schema name to be defined other than username.

  • How to point an existing query into a new cube?

    Hello Experts,
    For a Business requirement, I had to create a new cube.
    Now, I wanted point out all my existing queries to the new Cube.
    Can someone please tell me how to do it?
    Point will be assigned for useful information.
    Thanks
    kumar

    Hello
    I Don't want all the queries to be copied to the new cube.Can we specify the query names in the transaction?
    It may be a dumb question but, can we the same for workbooks as well?
    Thanks
    Kumar

  • Sql query slow in new redhat enviornment

    We just migrated to a new dev environment in Linux REDHAT5, and now the query is very slow, and I used the TOAD to run the query, it took like 700 msecond to finish, however from any server connection, the sql query takes hours to finish.
    I checked toad monitor, it said need to increase db_buffer_cache and shared pool too small.
    Also three red alert from toad is:
    1. Library Cache get hit ratio: Dynamic or unsharable sql
    2. Chained fetch ratio: PCT free too low for a table
    3. parse to execute ratio: HIgh parse to execute ratio.
    App team said it ran real quick in the old AIX system, however I ran it in old system, and monitored in the toad, it gave me all same 5 red alerts in old system, and it did provide query results a lot quicker though.
    Here is the parameters in the old system (11gr1 on AIX):
    SQL> show parameter target
    NAME TYPE VALUE
    -------------------------------- archive_lag_target integer 0
    db_flashback_retention_target integer 1440
    fast_start_io_target integer 0
    fast_start_mttr_target integer 0
    memory_max_target big integer 0
    memory_target big integer 0
    pga_aggregate_target big integer 278928K
    sga_target big integer 0
    SQL> show parameter shared
    NAME TYPE VALUE
    -------------------------------- hi_shared_memory_address integer 0
    max_shared_servers integer
    shared_memory_address integer 0
    shared_pool_reserved_size big integer 31876710
    shared_pool_size big integer 608M
    shared_server_sessions integer
    shared_servers integer 0
    SQL> show parameter db_buffer
    SQL> show parameter buffer
    NAME TYPE VALUE
    -------------------------------- buffer_pool_keep string
    buffer_pool_recycle string
    db_block_buffers integer 0
    log_buffer integer 2048000
    use_indirect_data_buffers boolean FALSE
    SQL>
    In new 11gr2 Linux REDHAT parameter:
    NAME TYPE VALUE
    ----------- archive_lag_target integer 0
    db_flashback_retention_target integer 1440
    fast_start_io_target integer 0
    fast_start_mttr_target integer 0
    memory_max_target big integer 2512M
    memory_target big integer 2512M
    parallel_servers_target integer 192
    pga_aggregate_target big integer 0
    sga_target big integer 1648M
    SQL> show parameter shared
    NAME TYPE VALUE
    ----------- hi_shared_memory_address integer 0
    max_shared_servers integer
    shared_memory_address integer 0
    shared_pool_reserved_size big integer 28M
    shared_pool_size big integer 0
    shared_server_sessions integer
    shared_servers integer 1
    SQL> show parameter buffer
    NAME TYPE VALUE
    ----------- buffer_pool_keep string
    buffer_pool_recycle string
    db_block_buffers integer 0
    log_buffer integer 18857984
    use_indirect_data_buffers boolean FALSE
    SQL>
    Please help. Thanks in advance.

    846422 wrote:
    why need ddl? we have a sql query slow.The DDL shows the physical structure of the table and physical storage characteristics. All relevant in performance tuning.
    As for the SQL query being slow. It is not.
    You have not provided any evidence that it is slow. And no, comparing performance with a totally different system is not a valid baseline for comparison. (most cars have 4 wheels, a gearbox and a steering wheel - but that does not mean you can compare different cars like a VW Beetle with a VW Porsche)
    What is slow? What are the biggest wait states for the SQL? What does the execution plan say?
    You have not defined a problem - you identified a symptom called "+query is slow+". You need to diagnose the condition by determining exactly what the SQL qeury is doing in the database. (and please, do not use TOAD and similar tools in an attempt to do this - do it properly instead)

  • SAP query , want a new calculation

    Hi,
    I have a SAP query which displays the material quantity , shipping instructions etc.
    what i want is not a new field or column, but just display at the end of the shipping instructions column 2 lines showing the ratios of 2 values.
    How do i do this? I know to add additional columns but how am i to add just 2 rows with custom calculations?

    Hi,
    In SQ02, you hae the option to add your own code lines. You will find this icon in the toolbar after teh 'Extras' button.
    You can write the code in any event that you wish. Check the node where you are writing this code.
    Regards,
    Subramanian

  • Copy query (SQ01) to new query with new infoset

    Hi,
    Not sure if this is correct forum.
    Is there a way to copy existing query with an infoset to a new query using another created infoset?
    If so, please explain how.
    Kind regards

    Hi,
    If you want to copy a query for another infoset its not possible.
    The copied query will work for that infoset only which you have been generated.
    You need to make a new infoset and than create a new query for it.
    Regrds,
    Nikhil.

  • ABAP QUERY - Adding a new field in the output

    Hello ,
    I am creating a ABAP query in which i need to do a calculation and display it in the output.
    How do i do it?
    I have added the field PLAF-GSMNG and PLAF-AVMNG in the infoset.
    The calculation that i have to do is CALCULATEFIELDS = PLAF-GSMNG - PLAF-AVMNG.
    I have to display the CALCULATEFILEDS in the output. How do i add this field and where do i do the calculation for this.
    Regards
    Ashish

    Hi Kanagaraj,
    Thanks a lot for your help.
    Actually those steps dint work but i created a new infocube and copied the structure from old infocube and then just created a Transformation and DTP.It worked fine.Did not generate a export datasource.
    But for my previous question
    3 characteristics and 3 keyfugures.
    Want to add a new field based on the department ID
    Tthe values have to be populated for the new field.
    It is not a constant value.So what should i choose in the conditons.
    Regards,
    Harish

  • Xpath query depenedent on new line chars

    Hi,
    I am trying to run an XPath query against a String which contains the XML. I am using Apache Commons IOUtils
    to convert String to InputStream
    If the String contains new line chars in it then I get unexpected results. However if XML is one looong string then there
    is no problem.
    What can I do to avoid this problem.
         public static void main(String[] args)
                   throws XPathFactoryConfigurationException,
                   XPathExpressionException, ParserConfigurationException,
                   SAXException, IOException {
              // System.out.println(XML);
              XPathFactory xpathFactory = XPathFactory
                        .newInstance(XPathFactory.DEFAULT_OBJECT_MODEL_URI);
              XPath xpath = xpathFactory.newXPath();
              DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder();
                    // Use XML_STRING as the xml to reproduce the error
              Document document = documentBuilder.parse(IOUtils.toInputStream(XML_STRING));
              NodeList xpathResult = (NodeList) xpath.evaluate("/Envelope/Body",
                        document, XPathConstants.NODESET);
              Node node = xpathResult.item(0).getFirstChild();
              String requestName = node.getNodeName();
              requestName = requestName.split(":",-1)[1];
              System.out.println(requestName);
              String sessionIdXqry = "/Envelope/Body/" + requestName + "/sessionId";
              System.out.println(sessionIdXqry);
              String sessionId = (String)xpath.evaluate(sessionIdXqry, document, XPathConstants.STRING);
              System.out.println("SessionID = " + sessionId);
         }

    You can't call methods in EL like that - write a custom tag that transforms the data in the way you want (replacing newlines with "<br>"). Then:
    <something:yourNewTag text="${row.description}" />

  • Query on adding new node to existing 2 node cluster

    Hi experts
    current environment
    Oracle VM 2 Node RAC cluster
    Oracle 11G 11.2.0.3.0
    Oracle 11g rel 2 GI
    on current 2 node cluster we have GI and RAC db configured
    Nodes: vmorarac1,vmorarac2
    we shutdown vmorarac1 to clone it to vmorarac5
    on new node I have changed the hostname to vmorarac5
    In /etc/sysconfig/network-scripts/ifcfg-eth0 change ip to new ip and same for /etc/sysconfig/network-scripts/ifcfg-eth1
    152.144.199.210,152.144.199.211
    mad echanges to /etc/hosts on vmorarac1/2 for 2 new IP address assigned to vmorarac5
    152.144.199.171 vmorarac1.pbi.global.pvt vmorarac1
    192.168.2.30 vmorarac1-priv.pbi.global.pvt vmorarac1-priv
    152.144.199.184 vmorarac1-vip.pbi.global.pvt vmorarac1-vip
    152.144.199.172 vmorarac2.pbi.global.pvt vmorarac2
    192.168.2.31 vmorarac2-priv.pbi.global.pvt vmorarac2-priv
    152.144.199.185 vmorarac2-vip.pbi.global.pvt vmorarac2-vip
    152.144.199.210 vmorarac2.pbi.global.pvt vmorarac2
    192.168.2.32 vmorarac2-priv.pbi.global.pvt vmorarac2-priv
    152.144.199.211 vmorarac2-vip.pbi.global.pvt vmorarac2-vip
    152.144.199.201 vmorarac-scan.pbi.global.pvt
    Query is is that all ok to reboot the new node to reflect changes as below and change the hostname to vmorarac2
    152.144.199.210 vmorarac2.pbi.global.pvt vmorarac2
    192.168.2.32 vmorarac2-priv.pbi.global.pvt vmorarac2-priv
    152.144.199.211 vmorarac2-vip.pbi.global.pvt vmorarac2-vip
    hostname change in /etc/sysconfig/network
    please let me know
    On new node vmorarac5, there is alreay software for RAC DB and GUI cloned from vmorarac1
    addnode.sh is used to add existing node, but as part of pre-requisite configuratoin is there any config step missing
    thanks

    The only thing you want "cloned" is the base OS install... The GI home directory, the oraInventory and a whole lot of other stuff is configured at addNode time or cluster install time. I would say that proceeding with your current plans will corrupt your clusterware. You really need to STOP LISTENING to the SA's and START reading the documentation on how to add a node to a cluster. Simply changing the hostname IS NOT a supported "feature".
    Start with a CLEAN OS. Configure shared devices, networks, /etc/hosts, memory and packages.
    Follow the instructions for addNode.
    Doing this any other way has the potential to corrupt your entire cluster.

  • Recursive query to calculate new value in a table.

    Hello folks,
    I have following data.
    drop table transactions;
    create table transactions
    ( ac varchar2(10), rec_seq int, tr_ref int, action varchar2(100), qty int );
    select * from transactions;
    insert into transactions values ('A1', 1, null, 'BUY', 1);
    insert into transactions values ('A1', 2, null, 'BUY', 4);
    insert into transactions values ('A1', 3, 1, 'TR to A2', -2);
    insert into transactions values ('A1', 4, null, 'SELL', -1);
    insert into transactions values ('A1', 5, 2, 'TR from A2', 2);
    insert into transactions values ('A1', 6, null, 'BUY', 5);
    insert into transactions values ('A1', 3, 3, 'TR to A3', -1);
    insert into transactions values ('A2', 1, null, 'BUY', 5);
    insert into transactions values ('A2', 2, null, 'BUY', 5);
    insert into transactions values ('A2', 3, null, 'BUY', 5);
    insert into transactions values ('A2', 4, 1, 'TR from A1', 2);
    insert into transactions values ('A2', 5, null, 'SELL', 2);
    insert into transactions values ('A2', 6, null, 'BUY', 1);
    insert into transactions values ('A2', 7, null, 'BUY', 1);
    insert into transactions values ('A2', 8, 2, 'TR to A1', -2);
    insert into transactions values ('A2', 9, null, 'sell', 3);
    insert into transactions values ('A2', 10, 4, 'TR from A3', 3);
    insert into transactions values ('A3', 1, null, 'BUY', 5);
    insert into transactions values ('A3', 2, 3, 'TR from A1', 1);
    insert into transactions values ('A3', 3, null, 'SELL', 2);
    insert into transactions values ('A3', 4, 4, 'TR to A2', -3);I the transactions table that holds the activity took place in a time. Below is some description of the table.
    1. rec_seq is the unique for each row within each AC value
    2. action column holds the nature of the activity
    3. tr_ref holds to link between the transfers. That is, source and destination of the transfers can be matched using this column.
    Now I want to write a query such that It returns the whole table with value of rec_seq changed in a recursive fashion that is
    1. Compare transfer records using tr_ref.
    2. Assign the greatest rec_seq to both the records.
    3. Recalculate the rec_seq of the following records from the new value. This recalculation to happen in a recursive fashion.
    Any hint/partial or full assistance in this will immensely help.
    Thank you.
    Girish

    Hi,
    Transfers are the key events in this problem. Every time there is a transfer, the new rec_seq number has to be adjusted. The new rec_seq value will be the greater of two numbers:
    (1) the req_seq of the last transfer in this ac, plus the number of other transactions in this ac since then, and
    (2) the req_seq of the last transfer in the other ac, plus the number of other transactions in that ac since then.
    (I assume a transfer always involves two different ac's. If not, the query below can be changed.)
    One way to approach this problem is to think of a directed graph, where every node is a transfer row, and it may have up to two parents:
    (1) the previous transfer in the same ac
    (2) the previous transfer in the other ac
    The query below constructs such a graph, then finds all the paths through that graph (in the sub-query named graph). It finds the longest path to each node (weighted by the number of rows between transactions). The main query references that number, and assigns consectuive new_rec_seqs starting with it.
    WITH     got_trs  AS
         SELECT     ac, rec_seq, tr_ref, action, qTy
         ,     LAST_VALUE (tr_ref IGNORE NULLS)  OVER ( PARTITION BY  ac
                                                           ORDER BY      rec_seq
                                            ROWS BETWEEN  UNBOUNDED PRECEDING
                                             AND  1            PRECEDING
                                           )        AS prev_tr
         ,       LAST_VALUE (tr_ref IGNORE NULLS)  OVER ( PARTITION BY  ac
                                                           ORDER BY      rec_seq     DESC
                                                 )        AS next_tr
         FROM    transactions
    --     WHERE     ...     -- if you need any filtering, put it here
    ,     got_tr_cnt     AS
         SELECT     got_trs.*
         ,     COUNT (*) OVER ( PARTITION BY  ac
                                  ,            next_tr
                          )    AS tr_cnt
         FROM    got_trs
    ,     nodes     AS
         SELECT     ac
         ,     tr_ref
         ,     tr_cnt
         ,     ac          AS parent_ac
         ,     prev_tr          AS parent_tr
         FROM     got_tr_cnt
         WHERE     tr_ref     IS NOT NULL
        UNION
         SELECT     s.ac
         ,     s.tr_ref
         ,     o.tr_cnt
         ,     o.ac          AS parent_ac
         ,     o.prev_tr     AS parent_tr
         FROM     got_tr_cnt     s
         JOIN     got_tr_cnt      o  ON     s.tr_ref     = o.tr_ref
                           AND     s.ac          != o.ac
         WHERE     o.prev_tr        IS NOT NULL
    ,     graph     AS
         SELECT     tr_ref
         ,     MAX ( LENGTH ( REPLACE ( SYS_CONNECT_BY_PATH ( LPAD ('.', tr_cnt, '.')
                    )     AS start_pt
         FROM     nodes
         START WITH     parent_tr     IS NULL
         CONNECT BY     parent_tr     = PRIOR tr_ref
              AND     parent_ac     = PRIOR ac
         GROUP BY     tr_ref
    SELECT       t.ac
    ,       t.rec_seq
    ,       t.tr_ref
    ,       t.action
    ,       t.qty
    ,       NVL ( g.start_pt
               , 1
               ) + ROW_NUMBER () OVER ( PARTITION BY  ac
                                            ,          NVL ( t.tr_ref
                                                    , t.prev_tr
                                            ORDER BY          rec_seq
              - 1     AS new_rec_seq
    FROM           got_trs  t
    LEFT OUTER JOIN      graph       g  ON  g.tr_ref     = NVL ( t.tr_ref
                                                       , t.prev_tr
    ORDER BY  t.ac
    ,            t.rec_seq
    ;Output:
    AC    REC_SEQ TR_REF ACTION     QTY NEW_REC_SEQ
    A1          1        BUY          1           1
    A1          2        BUY          4           2
    A1          3      1 TR to A2    -2           4
    A1          4        SELL        -1           5
    A1          5      2 TR from A2   2           8
    A1          6        BUY          5           9
    A1          7      3 TR to A3    -1          10
    A2          1        BUY          5           1
    A2          2        BUY          5           2
    A2          3        BUY          5           3
    A2          4      1 TR from A1   2           4
    A2          5        SELL         2           5
    A2          6        BUY          1           6
    A2          7        BUY          1           7
    A2          8      2 TR to A1    -2           8
    A2          9        sell         3           9
    A2         10      4 TR from A3   3          12
    A3          1        BUY          5           1
    A3          2      3 TR from A1   1          10
    A3          3        SELL         2          11
    A3          4      4 TR to A2    -3          12I don't recommend trying to store this number in the table; it will be a nightmare trying to keep it up to date. However, if you do want to store it in the table, you can use something like the query above in a MERGE statement.
    When trying to understnad any quiery that uses sub-queries, it can be helpful to run the individual sub-queries by themselves, and study the output.

  • Query to extract new enrollment amount during open enrollment

    Hi,
    Can someone share a query to extract the new enrollment amount employee chooses during a life event enrollment. I need to do some validations based on the new amount employee chooses during self service enrollment.
    Thank you for your help.

    This is pretty old but still for the people who will be visiting to this thread just like I did.
    We had a same issue... I have checked Web Dynpro java application for benefits enrollment and it shows this message when it has ZERO plans to show in open enrollment.
    Then I did debugging in ECC Function modules and found why it is not sending any benefit plans even though user has them in Info type 168 (insurance plans).
    It could be any reason for plans not to populate, our reason was user have Vol Spouse Life insurance and Voluntary Child Life Insurance but they dont have Spouse and/or Child records in Info type 21.
    So, this error will show up when there are ZERO plans / records to show in portal. Find your issue why by debugging.
    -Pradeep

Maybe you are looking for

  • HT201343 My macbook pro becomes very hot when i use airplay ?!

    my macbook pro gets really hot when i turn on airplay (watching movies) ?! macbook 2014 - 17

  • Re:Transfer Routine to split an incoming data record

    Hi , We need to split an incoming data record coming from R/3 in to multiple records before updating into the cube. The requirement is as follows. We are having a record whose structure is as follows: Order No  | Transaction Value for 1st Fiscal Peri

  • Max number of Netrestore clients?

    Hi, I am using the Netrestore feature in 10.6.3 system image utility to deploy a standardized image to about 18 clients. I have been able to successfully restore the image to all of the clients, however I had to do it in two separate deployments. The

  • Can anyone send some docs about 0infoprovider?

    hi all, I am trying to create a new multiprovider where the infoproviders are from 4 ods. i want to restict an ods using infoprovider? So can anyone send me some docs nor links. to my email id [email protected] regds hari

  • Where are addresses located?

    My addresses disappeared from address book for some reason. I made a back-up with Super-Duper. How can I get the info from my back-up onto my mac? Where is it? In library? Where? iMac G5   Mac OS X (10.4.9)