Asset transfer report - for-each-group

- <FAS430>
- <LIST_G_SETUP>
- <G_SETUP>
<COMPANY_NAME>ABCD</COMPANY_NAME>
<LOCATION_FLEX_STRUCTURE>101</LOCATION_FLEX_STRUCTURE>
- <LIST_G_ASSET_TRANS>
- <G_ASSET_TRANS>
<ASSET_NUMBER>1321780</ASSET_NUMBER>
<ASSET_DESCRIPTION>CABLES & CONNECTORS</ASSET_DESCRIPTION>
<TAG_NUMBER>K-PM-B-HCB-3899</TAG_NUMBER>
<TRANSNUM>3512926</TRANSNUM>
- <LIST_G_TRANSFERS>
- <G_TRANSFERS>
<TO_FROM>0</TO_FROM>
<GL_ACCOUNT>81216</GL_ACCOUNT>
<COMP_CODE>118</COMP_CODE>
<COST_CENTER>000</COST_CENTER>
<LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
<START_DATE>21-JUL-08</START_DATE>
<UNITS>-200</UNITS>
<ASSIGNED_TO />
<CCID>6705</CCID>
- <LIST_G_SUB>
- <G_SUB>
<DEPRN_RESERVE>0</DEPRN_RESERVE>
<COST>-89983.26</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
- <G_SUB>
<DEPRN_RESERVE>-18.96</DEPRN_RESERVE>
<COST>0</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
</LIST_G_SUB>
<D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
<D_COMP_CODE>118</D_COMP_CODE>
<D_COST_CENTER>000</D_COST_CENTER>
<D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
<D_AS_COST><89,983.26></D_AS_COST>
<D_AS_DEPRN_RSV><18.96></D_AS_DEPRN_RSV>
<AS_COST>-89983.26</AS_COST>
<AS_RESERVE>-18.96</AS_RESERVE>
</G_TRANSFERS>
- <G_TRANSFERS>
<TO_FROM>1</TO_FROM>
<GL_ACCOUNT>81216</GL_ACCOUNT>
<COMP_CODE>118</COMP_CODE>
<COST_CENTER>000</COST_CENTER>
<LOCATION>KANNUR CHALODE NONE CHALODE NONE</LOCATION>
<START_DATE>21-JUL-08</START_DATE>
<UNITS>199</UNITS>
<ASSIGNED_TO />
<CCID>6705</CCID>
- <LIST_G_SUB>
- <G_SUB>
<DEPRN_RESERVE>18.87</DEPRN_RESERVE>
<COST>0</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
- <G_SUB>
<DEPRN_RESERVE>0</DEPRN_RESERVE>
<COST>89533.34</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
</LIST_G_SUB>
<D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
<D_COMP_CODE>118</D_COMP_CODE>
<D_COST_CENTER>000</D_COST_CENTER>
<D_LOCATION>KANNUR.CHALODE.NONE.CHALODE.NONE</D_LOCATION>
<D_AS_COST>89,533.34</D_AS_COST>
<D_AS_DEPRN_RSV>18.87</D_AS_DEPRN_RSV>
<AS_COST>89533.34</AS_COST>
<AS_RESERVE>18.87</AS_RESERVE>
</G_TRANSFERS>
- <G_TRANSFERS>
<TO_FROM>1</TO_FROM>
<GL_ACCOUNT>81216</GL_ACCOUNT>
<COMP_CODE>118</COMP_CODE>
<COST_CENTER>000</COST_CENTER>
<LOCATION>KANNUR CHALODE MW BB NONE CHALODE MW BB NONE</LOCATION>
<START_DATE>21-JUL-08</START_DATE>
<UNITS>1</UNITS>
<ASSIGNED_TO />
<CCID>6705</CCID>
- <LIST_G_SUB>
- <G_SUB>
<DEPRN_RESERVE>.09</DEPRN_RESERVE>
<COST>0</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
- <G_SUB>
<DEPRN_RESERVE>0</DEPRN_RESERVE>
<COST>449.92</COST>
<YTD_DEP>702</YTD_DEP>
</G_SUB>
</LIST_G_SUB>
<D_GL_ACCOUNT>81216</D_GL_ACCOUNT>
<D_COMP_CODE>118</D_COMP_CODE>
<D_COST_CENTER>000</D_COST_CENTER>
<D_LOCATION>KANNUR.CHALODE MW BB.NONE.CHALODE MW BB.NONE</D_LOCATION>
<D_AS_COST>449.92</D_AS_COST>
<D_AS_DEPRN_RSV>0.09</D_AS_DEPRN_RSV>
<AS_COST>449.92</AS_COST>
<AS_RESERVE>.09</AS_RESERVE>
</G_TRANSFERS>
</LIST_G_TRANSFERS>
<DPIS>30-JUN-08</DPIS>
<ASSET_CATEGORY>BT</ASSET_CATEGORY>
</G_ASSET_TRANS>
We are trying to use XML Publisher to create an Asset transfer report. The element TO_FROM=0 denotes the From part of the asset transfer, the TO_FROM=1 denotes the To part of the asset transfer.. in this case we have a asset 200 units transfered 199 and 1 to two locations..in out rtf we are getting only the first line i.e.199..we have begin the group by <?for-each-group@section:G_ASSET_TRANS;ASSET_NUMBER?><?variable@incontext:G2;current-group()?>. In the units column we are giving <?$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1]/UNITS?>
Edited by: user648077 on Nov 3, 2008 10:26 PM

Hi Srini,
Thanks for the help..we got it resolved at out end.. we added another group <?for-each-group:$G2/LIST_G_TRANSFERS/G_TRANSFERS[./TO_FROM=1];LIST_G_SUB?><?variable@incontext:G3;current-group()?> and then used it in the units column...<?$G3/UNITS?>
Thanks
Ramanathan

Similar Messages

  • Using If condition in For EACH Group

    Hi all,
    I want to use if condition in for-each-group. Basically my requirement is that i want to use dynamic grouping. There will be two groups and the upper group and lower group will be selected on the basis of a report parameter.
    I hope i made it clear enough. So please help me in this. Any ideas will be highly appreciable.
    Thanks and regards
    Naveed

    You can add a If condition filed after the for-each field
    for EG : <?if:ADDRESS_TYPE = 'Employee Address'?>
    and then add anothet field which has <?end if?>
    Hope this helps.
    Thanks,

  • ?for-each-group? dosen't work with page break - rtf template???

    Hello all,
    When I give a page break inside the for-each-group the group doesn't iterate any code after the page break. I can't give <?split-by-pagebreak?> in this case because I want that loop to be iterated for every department, and should show the report in one column(ms word column), and the department description in two columns.....as this has to happen for every department I can't write separate code........everything should go into one file......
    Final file should look like:
    <for every department>
    <department_report-a table>--one column(ms word column)
    <department_description-a huge text>--two columns(ms word columns)
    <next department>
    how can I achieve this - please help, its urgent.
    Thanks for your time.
    DK

    bipuser thanks for your response
    i will have table data also so i cannot keep in the same line.
    its strange for the last 2-3 days below syntax gave me space at the beginning of each group now it is working i didnt do any change
    <?for-each:G_1?>
    ABCDEFDG
    <?split-by-page-break:?><?end for-each?>

  • Asset Transfer Report with matching new asset number

    Hi,
    During the past week, our company transferred over 2000 assets from several companies to one company. As a result of the transfer, the tax depreciation keys and tax depreciation life weren't carried over to the new assets. I am wondering if anyone here know how can I generate a asset transfer report with one column listing all transferred out assets and another column listing matching transferred in assets? I used ZFI_INTERCOASTR- Intercompany Asset Transfer, it gave me a transfer report with all the transfer in and transfer out in one column.
    Edited by: Peggy Wang on Nov 24, 2009 3:40 PM

    Hi,
    you can create yourself an ABAP Query on logical database ADA. In node ANEK you have per each (transfer) transaction the information from which asset the transfer was done.  With the ABAP Query you can configure your output list completely flexible.
    Regards,
    Markus

  • How to compare the value node of a for-each-group with other for-each-group

    Hello!
    I have a report in Oracle BI Publisher (10.1.3.2) with several data set. My XML schema is something like
    <DATA>
    <PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>12345</A_ID>
    <DESCRIPTION>ABC</DESCRIPTION>
    <VALUE>111111</VALUE>
    </MY_PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>12345</A_ID>
    <DESCRIPTION>DEF</DESCRIPTION>
    <VALUE>222222</VALUE>
    </MY_PARAMETERS>
    <MY_PARAMETERS>
    <A_ID>67890</A_ID>
    <DESCRIPTION>ABC</DESCRIPTION>
    <VALUE>333333</VALUE>
    </MY_PARAMETERS>
    </PARAMETERS>
    <NAMES>
    <MY_NAMES>
    <A_ID>12345</A_ID>
    <NAME>ASDF</NAME>
    </MY_NAMES>
    <MY_NAMES>
    <A_ID>67890</A_ID>
    <NAME>EFGH</NAME>
    </MY_NAMES>
    </NAMES>
    <VALUES>
    <MY_VALUES>
    <A_ID>12345<A_ID>
    <VALUE>10987</VALUE>
    <DESCRIPTION>ASDFG</DESCRIPTION>
    </MY_VALUES>
    <MY_VALUES>
    <A_ID>12345<A_ID>
    <VALUE>26385</VALUE>
    <DESCRIPTION>EFGHI</DESCRIPTION>
    </MY_VALUES>
    <MY_VALUES>
    <A_ID>67890<A_ID>
    <VALUE>24355</VALUE>
    <DESCRIPTION>ASDFG</DESCRIPTION>
    </MY_VALUES>
    </VALUES>
    </DATA>
    I'm trying to build a rtf template in Word using this XML schema. The "A_ID" nodes in each group in my data have the same value. I want for each "A_ID" take the respective values in /DATA/VALUES/MY_VALUES.
    <?for-each-group:MY_PARAMETERS;./A_ID?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='ABC'?>
    <?VALUE?>
    <?end when?><?end choose?>
    <?end for-each?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='DEF'?>
    <?VALUE?>
    <?end when?><?end choose?>
    <?end for-each?>
    <?/DATA/NAMES/MY_NAMES/VALUE?>
    <?for-each-group:/DATA/VALUES/MY_VALUES;./A_ID?>
    <?for-each:current-group()?>
    <?choose:?><?when: DESCRIPTION='ASDFG'?>
    <?VALUE?> <---------------- I obtain for this node the '24355' and '10987' values
    <?end when?><?end choose?>
    I want to know how to obtain only '24355' value, this is, the value for A_ID (/DATA/VALUES/MY_VALUES) = A_ID (/DATA/PARAMETERS/MY_PARAMETERS).
    Can someone help me?

    CREATE OR REPLACE TRIGGER "TEST_TRG"
       BEFORE UPDATE OF "STATUS"
       ON "TABLE1"
       FOR EACH ROW
    BEGIN
       IF (:NEW.status = 'HOLD')
       THEN
          INSERT INTO table2
                      (status
               VALUES (:NEW.status
       END IF;
    END;You should learn how to write PL/SQL code.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Last() not returning correct value within for-each-group

    I've found inconsistent results between JDeveloper and SOA Suite using the xslt 2.0 for-each-group construct.
    &lt;xsl:for-each-group select="Po/PoLine" group-by="itemId"&gt;
    &lt;xsl:if test="position()=1"&gt;
    &lt;GroupCount&gt;
    &lt;xsl:value-of select="last()"/&gt;
    &lt;/GroupCount&gt;
    &lt;/xsl:if&gt;
    &lt;/xsl:for-each-group&gt;
    What I expect is the function last() to give me the number of groups which is the unique number of itemIds.
    In JDeveloper 10.1.3.4, testing this construct gives me what I expect.
    At run-time (deployed to 10.1.3.3 SOA Suite), the value returned is the total number of records, not the number of groups.
    For example, given the following XML
    &lt;Po&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>001</strong>&lt;/itemId&gt;
    &lt;description&gt;Hammer&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>001</strong>&lt;/itemId&gt;
    &lt;description&gt;Hammer&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;PoLine&gt;
    &lt;itemId&gt;<strong>002</strong>&lt;/itemId&gt;
    &lt;description&gt;Nail&lt;/description&gt;
    &lt;quantity&gt;10&lt;/quantity&gt;
    &lt;/PoLine&gt;
    &lt;/Po&gt;
    Grouping by <strong>itemId</strong>, last() should return 2 as there are two groups (001 and 002). JDeveloper does this.
    When deployed to SOA Suite, last() returns 3.
    Any ideas?

    Hi,
    if JDeveloper is doing the right thing then this issue should be reported to the SOA Suite forum or BPEL BPEL , what do you think ?
    Frank

  • Reset Page Number for each Group

    I am currently creating a RTF template using XMLP 5.0
    My demanding boss gets back in town in five days, and he expects
    this report to be ready for production. :)
    But I haven't been able to figure out one last spec.
    The page number needs to be reset for each group.
    So for example, the total report is about 83 pages.
    In my RDF file (from Oracle Apps), I am grouping by a DEPT field.
    In my RTF template, I am page breaking on each DEPT.
    The page numbering should also be reset to 1 on each DEPT break.
    The reason for this, is that the report will be printed, then separated by DEPT.
    This way, each DEPT in the plant can receive their own individual report.
    Is there anyway to do this using XMLP 5.0?
    We would be willing to upgrade our XMLP,
    if this functionality is available in a later version.
    Thanks in advance.
    Mark K

    Hi Mark
    Yep, you can do this, you can even do it in 5.0 :o)
    For some reason it did not make the user doc in 5.0 ... an Easter egg if you like.
    So I'd recommend getting the 5.5 or later docs and using that for reference. Just search for "About Oracle XML Publisher Release 5.5" on metalink once you have that doc search it for "Oracle XML Publisher User's Guide" its a link to the PDF document.
    Then check pg 86/290 - Advanced Report Layouts > Batch Reports for details. This approach will work for 5.5. If you would like a sample then if you have installed the template builder there is an Advanced > Repeating Headers folder inwhich you will find an example.
    Regards, Tim

  • Portal Activity Reports for multiple groups

    Hi,
    Can the report display the count of users belonging to multiple groups or would it have to be created seperately for each group. I have tried to use wild cards and commas and nothing worked, the field does not accept more than one valid group name to be entered. Any ideas how to work around this without having to create a different report for different groups?
    Thanks

    Hi EAmin,
    You can only show information about users who belong to a specific group and not multiple groups. But if you want to show users in multiple groups, you can create a new group (say temp) and add the other groups to temp. Now, configure the report to display users in group temp.
    Rajiv

  • Cost Center Report for each Cost Center

    Hi everybody,
    I am using SAP R/3.
    I have 90 Cost Centers (and Variants) and want to print a report for each one. But I dont want to key in all 90 Cost Centers (or select all Variants).
    What opportunities do I have? And I would like to have a kind of report were I can change the layout.
    I use this kind of report (no standard):
    Y_HGS_46000001 - Actual : month/cost center
    The problem: We have more than 500 Cost Centers in our system. So I can't use "range".
    Markus
    Edited by: Markus Schreiter on May 27, 2008 4:12 AM

    @ Karl:
    I defined variants for:
    1. "All Cost Centers"
    2. "Business Divisions"
    - Production
    - G&A
    - Selling
    - Non-Operating ...
    3. "Business Groups"
    - NSW Lab
    - WA Lab ...
    4. "Each Cost Center"
    With No.1 I now have the opportunity to run a report with all CCtr.
    Markus

  • How to handle goup sub total for each group in oracle query ?

    hi,
    i want to handle one complex thing in oracle query.
    i have a grouping in my oracle query.
    i want to do sub total for each group in query and after that i want to subtract one group sub total from previous group subtotal ?
    so how can i handle this in oracle query ?
    any help is greatly appreciated.
    thanks.

    Hello
    Interesting requirement.
    I wonder why are you not using these calculation during the display time. If it is acceptable then you can try using the custom formula with the running total combination in crystral report to achieve to get the required results.
    Best regards
    Ali Hadi

  • Adding ssrs chart for each group under group footer

    Hi,
    I have requirement of report design, user has ability to select single or multiple product name in parameter and it should display column headers for each group and chart for each group (product name). 
    Report Design
    ProductName: A
    Category JAN
    FEB MAR
    Sales 10
    12 15
    Budget 20
    20 20
    Chart Here
    ProductName: B
    Category JAN
    FEB MAR
    Sales 10
    12 15
    Budget 20
    20 20
    Chart Here
    I want to repeat this for all products.
    Please anyone can provide steps to how to achieve this design?

    Hi Srikanth,
    According to your description, you want to design a tablix to display header and chart for each group in its group header and footer. Right?
    In Reporting Service, when we add header and footer for a group, the header row and footer row are still within this group. Anything we put in these two rows will be grouped. For your requirement, we created a sample report in our local environment. Here
    are steps and screenshots for your reference:
    1. Create a matrix. Columns are grouped by month. Rows are grouped by ProductName (with group header and footer).
    2. Put the text/field of the first row into the group (ProductName) header. Delete the header row of matrix (the first row), select Delete rows only.
    3. Insert a chart into the group footer. It looks like below:
    4. Add a parameter for filtering data. Save and preview it looks like below:
    Reference:
    Understanding Groups (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Single row table with for-each group loop to set variable.

    Hi: There is probably a simple answer for this but I have not found it ...
    I have a single row table to loop through a group to set a variable holding a running amount. I am not displaying the amount within the table however when I preview the report I see that the table is expanding (adding rows) for each loop.
    The single row table has 3 columns.
    1st column
    <?for-each:AC_GROUP?>
    2nd column
    <?xdoxslt:set_variable($_XDOCTX,'xAmtVar',xdoxslt:get_variable($_XDOCTX,'xAmtVar')+CURRENT_AMOUNT)?>
    3rd column
    <?end for-each?>
    Should I be using <?for each-group?> or something else. My requirement is to set the value of the variable with the running total but because the loop is adding rows for each value it loops through (even though not displayed), it is moving other areas of the layout off the page.
    Hope this makes sense. Thanks in advance.

    you can do it many ways.
    No need to loop
    You can create a variable and put the sum amount directly in that.
    <?doxslt:get_variable($_XDOCTX,'xAmtVar',sum(/AC_GROUP/CURRENT_AMOUNT))?>or
    loop thru and add like you do.
    <?for-each@inlines:AC_GROUP?><?xdoxslt:set_variable($_XDOCTX,'xAmtVar',xdoxslt:get_variable($_XDOCTX,'xAmtVar')+CURRENT_AMOUNT)?><?end for-each?>do give any space or enter character in word between them, just put this in a single form-field will do
    But as i said, i would certainly go with first option.

  • Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)

    Reporting Services - How to open a second table inside report, for each number of client (each apears in first table)?
    Exemple:
    Table1
    Cliente name:
    John
    Client number:
    12345
    Survay number of negative answers:
    3
    Table2
    Questions and answers that were negative:
    Question: How much time where you waiting
    Avaluation: 3 (from 1 to 10)
    Answer: They only called me 1 mouth later
    Can you please help me?

    Hi,
    Based on the description, I understand that you want to add subreport in the main report. When previewing the main report, the subreport can be shown in detail. Please see the screenshots on my test:
    In Reporting Services, we can create parameters and pass them from main report to subreport in order to control the data dynamically.
    References:
    Subreports (Report Builder and SSRS)
    Add a Subreport and Parameters (Report Builder and SSRS)
    If I have any misunderstanding, please feel free to contact me.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • BW HR-Report for each costcenter of FTE's

    Does anyone know if it is possbible to get all categories like fix,temp,internal,external and features from production, store, develepment
    from a BW HR-Report for each costcenter of FTE's
    Kind regards,
    Karl

    For example:
    Full time equivalents
    Actual (YTD)
    M2411 PRO Production 0.0 37.0 45.0
    M2411 SAL Sales force 0.0 12.0 18.0 7.0 4.0 1.0
    M2411 SER Service 6.0 50.0 24.0 1.0 3.0 7.0 4.0
    M2411 DEV Development 46.0 47.0 7.8
    M2411 MGM Mgm. and admin. 0.0 7.3 2.0 1.0
    M2411 APP Apprentices 0.0
    M2411 FTEs direct fix 0.0 108.3 160.0 31.0 3.0 11.8 11.0 5.0
    M2412 PRO Production 0.0 5.0
    M2412 SAL Sales force 0.0 0.0
    M2412 SER Service
    M2412 DEV Development 2.0 1.0
    M2412 MGM Mgm. and admin. 0.0
    M2412 old until October 2003
    M2412 FTEs direct temporary 0.0 2.0 6.0
    M2410 PRO Production 0.0 37.0 50.0
    M2410 SAL Sales force 0.0 12.0 18.0 7.0 4.0 1.0
    M2410 SER Service 6.0 50.0 24.0 1.0 3.0 7.0 4.0
    M2410 DEV Development 48.0 48.0 7.8
    M2410 MGM Mgm. and admin. 0.0 7.3 2.0 1.0
    M2410 APP Apprentices 0.0
    M2410 FTEs direct 0.0 110.3 166.0 31.0 3.0 11.8 11.0 5.0
    Kind regards,
    Karl

  • Getting the first row for each group

    Hi Everyone,
    I have a query which returns a number of rows, all of which are valid. What I need to do is to get the first row for each group and work with those records.
    For example ...
    client flight startairport destairport stops
    A fl123 LGW BKK 2
    A fl124 LHR BKK 5
    B fl432 LGW XYZ 7
    B fl432 MAN ABC 8
    .... etc.
    I would need to return one row for Client A and one row for Client B (etc.) but find that I can't use the MIN function because it would return the MIN value for each column (i.e. mix up the rows). I also can use the rownum=1 because this would only return one row rather than one row per group (i.e. per client).
    I have been investigating and most postings seem to say that it needs a second query to look up the first row for each grouping. This is a solution which would not really be practical because my query is already quite complex and incorporating duplicate subqueries would just make the whole thing much to cumbersome.
    So what I really new is a "MIN by group" or a "TOP by group" or a "ROWNUM=1 by group" function.
    Can anyone help me with this? I'm sure that there must be a command to handle this.
    Regards and any thanks,
    Alan Searle
    Cologne, Germany

    Something like this:
    select *
    from (
       select table1.*
       row_number() over (partition by col1, col2 order by col3, col4) rn
       from table1
    where rn = 1In the "partition by" clause you place what you normally would "group by".
    In the "order by" clause you define which will have row_number = 1.
    Edit:
    PS. The [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions004.htm#i81407]docs have more examples on using analytical functions ;-)
    Edited by: Kim Berg Hansen on Sep 16, 2011 10:46 AM

Maybe you are looking for