How to make cross Tab report for SAP B1

Hello and Hi
i trying to make cross tab report for SAP B1 but test column not appera in
File >>New >>Cross Tab Report  start cross tab report creation wizard select database name and table
but only numeric columns appear in available column fields , how will appearall fields including test fields..

i got solution
thanks google
memo type field will not apper in list .use bellow  statment to convert in interger or char type
convert(int,U_Dist_Sr_No) AS Dist_Sr,            CAST(U_Dist_Name AS varchar(250)) AS Dist_Name,

Similar Messages

  • How to create cross tab reports in SAP-MII

    how to create cross tab reports in SAP-MII

    Hi,
    What do you mean by cross-tab reports? Pls elaborate.
    MII Transaction has an action block named 'crosstab' that is used to calculate subtotals of data columns.
    http://wbhelp.sap.com/manufacturing/xmii_120/en/44/749ea81627053ce10000000a1553f6/content.htm
    Is this what, you are looking for?
    Best Regards,
    Kedar
    Edited by: Kedar Shewalkar on Jan 11, 2011 10:40 AM

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • How to crate cross tab reports in discoverer

    Hi,
    i am learning discover, can any body give clear explanation on
    cross tab reports in discoverer.how to create it . it with example ?

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • Report Painter- How to make cost center report for Jun07-Jul08 ?

    Hi Experts,
    I need to make a P&L (Actual/ Plan) report for Jun 07 - Jul 08 by using Report Painter, but I'm having difficulty to make column for the next year period (2008) and some other things.
    We are using K4 Fiscal Year Variant in ECC 6.0.
    The layout is somehow like this:
    Header : Cost Center
                 Actual/Plan Report
                 June 2007 to July 2008
    Body:
    Cost Element     |   Total Actual   |   Total Plan |  Actual  June | Plan June .................Actual July | Plan July    
    xxxx       
    xxxx
    Account Group (total)
    xxxx
    xxxx
    Account Group (total)
    Grand Total  
    How to:
    a. make the header "June 2007 to July 2008" ?
    b. make the selection screen to provide parameter for June 2007 to July 2008? (e.g.: period 6 fiscal year 2007 to period 7 fiscal year 2008)
    c. provide layout (rows and columns) as described above? it should provide detail cost elements and also calculate it as the total per account group, then finally the Grand Total for all of account groups. 
    Thank you before,
    -=Meila.S=-

    Hi,
    1. Put Year and Month as your General Selection parameters
    2. In the label of the fields, if you put the parameter name with & before, it will display the value
    3. If you put cost element in General selection, it will come with a group, and when you selecting the group, the report does the sub-totals automatically.
    Regards,
    Eli

  • Dynamic or cross tab report in sap

    Dear Gurus,
    I want to develop a report in SAP where colums will be variable like if data increase colume will also be increased.I am giving an example below which clarify my requirements : -
    In normal ALV display as follows :-
    Material            Batch               Month                 Qty
    M1                      B1                  04-2011           10.00
    M1                      B1                  05-2011           15.00
    M1                      B1                  06-2011            8.00
    M2                      B6                  05-2011           18.00
    M2                      B6                  06-2011            30.00
    M3                      B5                  07-2011            35.00
    I need this like following :
    Material            Batch             04-2011       05-2011         06-2011          07-2011
    M1                     B1                   10.00           15.00               8.00                0.00
    M2                     B6                     0.00           18.00             30.00                0.00
    M3                     B5                     0.00             0.00               0.00              35.00
    Here if month increase then it will increase like that :
    Material            Batch             04-2011       05-2011         06-2011          07-2011       08-2011
    M1                     B1                   10.00           15.00               8.00                0.00                1.00
    M2                     B6                     0.00           18.00             30.00                0.00                2.00
    M3                     B5                     0.00             0.00               0.00              35.00              58.00
    It can be increased upto n no of entries depends on selection screen.
    I have never develop such type of report .Please help me out to develop this report.
    Advance Thanks
    Nirmal Sharma
    Moderator message: please don't just post the same thing again after the previous one was locked by moderators.
    Edited by: Thomas Zloch on Aug 12, 2011 2:26 PM

    please refer the below thread.. i am sure you will find the solution.... its not difficult at all.
    Need Dynamic or Cross tab reports

  • How to make a login method for SAP Netweaver in java

    Hi
    Can anyone help me out to make a login() method that can be used to login to the SAP Netweaver server using a simple java code..........
    Hope a helpfull answers from u all....
    THANKS in ADV.
    Rupesh Khemka

    Hi Everyone
    I have made the login() method but i am facing the problem while making the resource context...Because in Resource Context it takes IUser of package
    com.sapportals.portal.security.usermanagement.IUser but I have got IUser of package com.sap.security.api.IUser ...while type Casting it with below code it is giving ClassCAstException.......
    public class NewSimpleServlet extends HttpServlet {
         protected void doGet(
              HttpServletRequest request,
              HttpServletResponse response)
              throws ServletException, IOException {
              StringBuffer s = new StringBuffer();
              try {String j_user="epuser";
                        String j_password="Abcd1234";
                        request.setAttribute("j_user", j_user);
                        request.setAttribute("j_password", j_password);
                        javax.security.auth.Subject subject;
    Set principals = UMFactory.getLogonAuthenticator().logon(request, response, "uidpwdlogon").getPrincipals();
    i have problem with getting IUser object from set of principals. In javadoc is written: "In order to get an IUser object from this subject, call Subject.getPrincipals() and iterate through the returned Set of principals." so i tried to iterate but i was not able to get that IUser with any casting. Do u know how it should be?
    IUser serviceUser = (IUser)subject.getPrincipals().iterator().next();
    Now in resource Context
    ResourceContext c = new ResourceContext(User);
    Here resource context need IUser type object as parameter...
    I also tried st like this
    loggedUser = UMFactory.getAuthenticator().getLoggedInUser(request, response);
    but loggedUser is not authenticated.
    Can Anyone Help me Out...
    Thanks
    Rupesh Khemka

  • How to Add new column in cross tab reports

    I am using crystal reports 10
    I created cross tab report for monthly sales. I need to add one more column in that report
    ex:
    Month   Customer    Part1  Part2    Part3      
    Jan         A               10       12         15        
    Jan         B                20      0           10        
    Jan         C               0         3           5          
    Feb        A               5         10          8          
    Feb        D               55        23        33        
    In above data Parts are no limit, thatswhy i am taking cross tab report.
    I am taking Month and Customer name as Rows,
    Part Codes as Colums,
    Quantiry as Total fields in cross tab Report.
    Here month field is storing as Transaction date in database, I am calculating by month
    I am getting upto this.
    User needs add one more field is Invoice no
    Month   Customer    Part1  Part2    Part3        Invoice no
    Jan         A               10       12         15          B1,B2,B3,B4
    Jan         B                20      0           10         B12,B30
    Jan         C               0         3           5           B6
    Feb        A               5         10          8           B35,B40
    Feb        D               55        23        33          B25,B56
    How to add invoice nos by group wise(By customer and  By month)
    Thank you.
    Raja shekar Reddy K.
    Edited by: Raja shekhar Reddy on Apr 16, 2009 5:10 PM

    Dear Amogh,
    Thanks for u'r  Replay.
    If i use new crosstab for Invoice no each invoice number can display like seperate columns.
    But I need Invoice  no in single column with seperate with "," or "/".
    Thanks & regards,
    Raja Shekar Reddy K.

  • SORTING FOR THE CALCULATION FIELD IN CROSS TAB REPORT

    LIST_G_AUCTION_TITLE>
    <G_AUCTION_TITLE>
    <BID_NUMBER>5002</BID_NUMBER>
    <AUCTION_TITLE>E2E-01 Construction RFQ</AUCTION_TITLE>
    <ITEM_NUMBER>C2631</ITEM_NUMBER>
    <ITEM_DESCRIPTION>4G000,000,0STRUC,X,SPECIAL STRUCTURE</ITEM_DESCRIPTION>
    <ESTIMATED_QTY>1</ESTIMATED_QTY>
    <UNIT>LS</UNIT>
    <QUOTE_PRICE>400</QUOTE_PRICE>
    <ESTIMATED_QUOTE_PRICE>400</ESTIMATED_QUOTE_PRICE>
    <SUPPLIER>X - L CONTRACTING</SUPPLIER>
    my xml data is in this format, i created a cross tab report for ITEM_DESCRIPTION as row and SUPPLIER as column and calculated a sum(ESTIMATED_QUOTE_PRICE)
    for all the ITEM_DESCRIPTION for every SUPPLIER in templete . now i need to sort the data by sum(ESTIMATED_QUOTE_PRICE) from lowest to higest from left to right , that is supplier with lowest sum(ESTIMATED_QUOTE_PRICE) should display first from left to right.
    can any one help thanks in advance.

    thank you tim , for asking i got the solution. it is actually in template builder i was asking about. xml template builder

  • Cross tab reporting in Crystal 8.5

    Post Author: KPetrey
    CA Forum: General
    I am trying to create a cross tab report for some data that will have varying number of columns.I am running into a problem where some situations are producing 25 or more columns.  This results in the crossing over to a second page.My end-users are going to dislike this very much.  I am trying to duplicate a report they had with their previous software system and it did not cross pages.  All data stayed on one page. My questions are as follows:Is there a way to make the cross tab wrap so that data does not cross to second page?Is there a different way to do what I need other than cross tab?What I am trying to do is list a column for each store that will show the qty of a product that is ordered for it....the number of stores will vary depending on my end-users setup. Any help would be greatly appreciated.Thanks

    Post Author: wapper
    CA Forum: General
    Crosstab is designed to grow wide-wise if the number of columns increases. How can you avoid splitting pages if the number of columns will reach, for example, 50?
    You should probably first make a decision, whether your report must be fixed-column or variable-column. If you stick to fix-column, you can design the report to accommodate theoretical maximum of columns, and imitate dynamic columns by using groups, formulas and hiding columns not in use at run time. Pain in the a** with 25+ columns but still doable. Drawback - if actual data will exceed the maximum number of columns, you are out of luck. Or you could stay with crosstab to keep support for variable number of columns, using small font and "Show Cell Margins" option to squeeze as many columns as is actually possible before falling over to the second page. I would prefer the latter if you ask me.
    Wapper

  • Variance formual in Cross tab report

    Hi,
    I am new to crystal and don't have formal training. I am trying to create a report that shows Actuals and Budget and I want to the variance.  Format is 1 row is for actuals, 1 row is for budget and the other is for forecast.
    I would like to have a variance that is actual - budget and another actual - forecast for each measure.
    I am using cross-tab report for formatting, any assitance for how to over write totals coloumn with Variance calculation, assistance for creating variance formula in formula workshop is required. I happend to see the logic in other forums but not in cross-tab scenario.
    Thanks in advance.
    Bhanu

    Use a manual Crosstab report so you have full control

  • How to make saved IR available for all users

    Hi,
    I've created IR and saved it to several tabs based on search conditions.
    But they're only visible for developers.
    How to make these tabs available for all end-users ?
    Does version 4.0 support this option ?
    Thank you!

    Hi
    At present this feature is not included, although I believe it may be in 4.0. Many people have provided workarounds for this. None of which I have tried. I cannot find the original thread but here is a solution from a chap called Ruud
    >
    One way to share your saved reports with others is to 'Publish' your report settings to a few intermediate tables in your application and have other users 'Import' your settings from there. The reason for using intermediate tables is so that not all your saved reports need to be 'visible' to other users (only those that you've chosen to publish).
    Basically you have available the following views and package calls that any APEX user can access:-
    - flows_030100.apex_application_pages (all application pages)
    - flows_030100.apex_application_page_ir_rpt (all saved reports - inclusing defaults and all user saved reports)
    - flows_030100.apex_application_page_ir_cond (the associated conditions/filters for above saved reports)
    - wwv_flow_api.create_worksheet_rpt (package procedure that creates a new saved report)
    - wwv_flow_api.create_worksheet_condition (package procedure that creates a condition/filter for above saved report)
    The way I've done it is that I've created 2 tables in my application schema that are straightforward clones of the 2 above views.
    CREATE TABLE user_report_settings AS SELECT * FROM flows_030100.apex_application_page_ir_rpt;
    CREATE TABLE user_report_conditions AS SELECT * FROM flows_030100.apex_application_page_ir_cond;
    ( NB. I deleted any contents that may have come across to make sure we start with a clean slate. )
    These two tables will act as my 'repository'.
    To simplify matters I've also created 2 views that look at the same APEX views.
    CREATE OR REPLACE VIEW v_report_settings AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_rpt r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND r.session_id IS NULL
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    CREATE OR REPLACE VIEW v_report_conditions AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_cond r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    I then built 2 screens:-
    1) Publish Report Settings
    This shows 2 report regions:-
    - Region 1 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT apex_item.checkbox ( 1, report_id ) " ",
    page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY page_name,
    report_name
    Each row has a checkbox to select the required settings to publish.
    The region has a button called PUBLISH (with associated process) that when pressed will copy the settings from
    V_REPORT_SETTINGS (and V_REPORT_CONDITIONS) into USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    - Region 2 - Shows a list of already published reports in table USER_REPORT_SETTINGS (again filtered for your user)
    SELECT apex_item.checkbox ( 10, s.report_id ) " ",
    m.label,
    s.report_name
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user = :APP_USER
    AND ( s.page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY m.label,
    s.report_name
    Each row has a checkbox to select a setting that you would like to delete from the repository.
    The region has a button called DELETE (with associated process) that when pressed will remove the selected
    rows from USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    NB: P27_REPORT is a "Select List With Submit" to filter the required report page first.
    Table MENU is my application menu table where I store my menu/pages info.
    2) Import Report Settings
    This again shows 2 report regions:-
    - Region 1 - Shows a list of all published reports in table USER_REPORT_SETTINGS (filtered to show only other users saved reports)
    SELECT apex_item.checkbox ( 1, s.report_id ) " ",
    m.label,
    s.report_name,
    s.application_user
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user :APP_USER
    AND ( s.page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY m.label,
    s.report_name,
    s.application_user
    Each row has a checkbox to select the setting(s) that you would like to import from the repository.
    The region has one button called IMPORT that when pressed will import the selected settings.
    It does this by using the 2 above mentioned package procedure to create a new saved report for you
    with the information form the repository. Be careful to match the right column with the right procedure
    parameter and to 'reverse' any DECODEs that the view has.
    - Region 2 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY page_name,
    report_name
    This is only needed to give you some feedback as to whether the import succeeded.
    A few proviso's:-
    a) I'm sure there's a better way to do all this but this works for me :-)
    b) This does not work for Computations! I have not found an API call to create computations.
    They will simply not come across into the repository.
    c) If you import the same settings twice I've made it so that the name is suffixed with (2), (3) etc.
    I did not find a way to update existing report settings. You can only create new ones.
    d) Make sure you refer to your saved reports by name, not ID, when matching APEX stored reports and the
    reports in your repository as the ID numbers may change if you re-import an application or if you
    auto-generate your screens/reports (as I do).
    Ruud
    >
    To me this is a bit too much of a hack and I personally wouldn't implement it - it's just an example to show it can be done.
    Also if you look here in the help in APEX Home > Adding Application Components > Creating Reports > Editing Interactive Reports
    ...and go to the last paragraph, you can embed predicates in the URL.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)
    Edited by: Munky on Jul 30, 2009 8:03 AM

  • Unable to convert the RDF layout to RTF Layout for cross tab report

    Hello All,
    I have a RDF, which has cross tab layout. For this I need to create RTF template.
    I have the XML file. I'm not able to get the cross tab report in RTF as RDF.
    Below is the part of XML data.
    Pleaes let me know how do i achive this.
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.27.0
    -->
    - <XXAQS_EXPENSE_COST_DIV>
    - <LIST_G_CS_1>
    - <G_CS_1>
    - <LIST_G_2>
    - <G_2>
    <DEPT>11100</DEPT>
    - <LIST_G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501010000</ACCOUNT>
    <DESCRIPTION>Salaries</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>100126</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501020000</ACCOUNT>
    <DESCRIPTION>Overtime</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>14811</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>501030000</ACCOUNT>
    <DESCRIPTION>Bonus</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>28968</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502000000</ACCOUNT>
    <DESCRIPTION>Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502010000</ACCOUNT>
    <DESCRIPTION>Food Allowance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502020000</ACCOUNT>
    <DESCRIPTION>Housing Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15612</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502030000</ACCOUNT>
    <DESCRIPTION>School Fees Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1249</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>502040000</ACCOUNT>
    <DESCRIPTION>Other Allowance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1873</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503000000</ACCOUNT>
    <DESCRIPTION>Sales Incentive and Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503010000</ACCOUNT>
    <DESCRIPTION>Sales Incentive</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>503020000</ACCOUNT>
    <DESCRIPTION>Sales Commissions</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504000000</ACCOUNT>
    <DESCRIPTION>Employee Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504010000</ACCOUNT>
    <DESCRIPTION>Vacation Pay</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>8636</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504020000</ACCOUNT>
    <DESCRIPTION>Air Tickets</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>5265</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504030000</ACCOUNT>
    <DESCRIPTION>End of Service</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>26367</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504040000</ACCOUNT>
    <DESCRIPTION>Medical Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>15441</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504050000</ACCOUNT>
    <DESCRIPTION>Contract Labour</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2500</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504060000</ACCOUNT>
    <DESCRIPTION>Recruitment Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504070000</ACCOUNT>
    <DESCRIPTION>Visas Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>1625</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504080000</ACCOUNT>
    <DESCRIPTION>Drivers Liscencs</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090000</ACCOUNT>
    <DESCRIPTION>Traveling Expenses</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>2601</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090100</ACCOUNT>
    <DESCRIPTION>Traveling Food</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090200</ACCOUNT>
    <DESCRIPTION>Traveling Car Rent</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090300</ACCOUNT>
    <DESCRIPTION>Traveling Hotel</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090400</ACCOUNT>
    <DESCRIPTION>Traveling Taxi</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504090500</ACCOUNT>
    <DESCRIPTION>Traveling Telephones</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>504100000</ACCOUNT>
    <DESCRIPTION>Gratuity Pay</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505000000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505010000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Iqama Expense</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505020000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - Car Registration Renewal</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505030000</ACCOUNT>
    <DESCRIPTION>Permits and Liscenses - MVPI</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505040000</ACCOUNT>
    <DESCRIPTION>Company License</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505045000</ACCOUNT>
    <DESCRIPTION>Permits and License Drivers License</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>505050000</ACCOUNT>
    <DESCRIPTION>Permits and licenses-Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>506000000</ACCOUNT>
    <DESCRIPTION>Director's Remunerations</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>507000000</ACCOUNT>
    <DESCRIPTION>Audit Fees</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>10866</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>508000000</ACCOUNT>
    <DESCRIPTION>Legal Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>509000000</ACCOUNT>
    <DESCRIPTION>Professional Fees</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510000000</ACCOUNT>
    <DESCRIPTION>Communication Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510010000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telephone</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>748</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510020000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Telefax</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>51</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510030000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Postage</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510040000</ACCOUNT>
    <DESCRIPTION>Communication Expenses - Mobile</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>175</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>510050000</ACCOUNT>
    <DESCRIPTION>Communication expense – Satellite Connectivity</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511000000</ACCOUNT>
    <DESCRIPTION>Stationery</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511010000</ACCOUNT>
    <DESCRIPTION>Printing and Stationary</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>511011000</ACCOUNT>
    <DESCRIPTION>IT Expense</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512000000</ACCOUNT>
    <DESCRIPTION>Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512010000</ACCOUNT>
    <DESCRIPTION>Operating Supplies</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>3385.796</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>512020000</ACCOUNT>
    <DESCRIPTION>Lubricants Supplies</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513000000</ACCOUNT>
    <DESCRIPTION>Rental Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513010000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Housing</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513020000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Warehouses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513030000</ACCOUNT>
    <DESCRIPTION>Business Promotion - Rental Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513040000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Vending Machines</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513050000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Municipality</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513051000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Signage</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>513060000</ACCOUNT>
    <DESCRIPTION>Rental Expenses - Other</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>0</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514000000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514010000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Repairs and Maintenance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>883.381</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514020000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Fuel and Oil</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>50</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514030000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Rep and Maint - Outside Job Orders</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>150</AMOUNT>
    </G_AMOUNT>
    </LIST_G_AMOUNT>
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>514040000</ACCOUNT>
    <DESCRIPTION>Motor Vehicle Expenses - Others</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515000000</ACCOUNT>
    <DESCRIPTION>Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515010000</ACCOUNT>
    <DESCRIPTION>Insurance - Fire Insurance</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515020000</ACCOUNT>
    <DESCRIPTION>Insurance - Workmen Compensation</DESCRIPTION>
    <LIST_G_AMOUNT />
    </G_ACCOUNT>
    - <G_ACCOUNT>
    <ACCOUNT>515030000</ACCOUNT>
    <DESCRIPTION>Insurance - Fidility Insurance</DESCRIPTION>
    - <LIST_G_AMOUNT>
    - <G_AMOUNT>
    <AMOUNT>900.61</AMOUNT>
    </G_AMOUNT>
    ---------------------------------------------------------------------------------

    try this, there must be simpler one i guess...
    1. take a form field, and make its type as number. Paste the below one <?xdoxslt:set_variable($_XDOCTX,'v1',2)?>
    2. now take a table with as below,
    A l B |
    C l D1 l D2 l E1 l E2 l
    observe that i. A, C are in one column
    ii. cell B is on top of D1, D2
    iii. we have no cell on top of E1 and E2 cells
    iv. 'l' represents the wall of the cell :)
    A: <?horizontal-break-table:1?> SCHEMECODE
    B: <?for-each-group@column:G_SCHEMECODE;ASSET_TYPE?> <?ASSET_TYPE?> <?end for-each?>
    C: <?for-each-group:G_SCHEMECODE;SCHEMECODE?> <?xdoxslt:set_variable($_XDOCTX,'v1',2)?> <?SCHEMECODE?>
    D1: <?for-each-group@cell:current-group();ASSET_TYPE?> <?MARGIN?> <?xdoxslt:set_variable($_XDOCTX,'v1',xdoxslt:get_variable($_XDOCTX,'v1')-1)?>
    D2: <?AMOUNT_SECURED?> <?end for-each?> <?end for-each?>
    E1: <?for-each@column:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,'v1'),1)?>
    E2: <?END FOR-EACH?>
    3. If you are confused gimme your email id, i will pass the template. But you should add credits to me.. :)

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • Unable to get cells for the columns which have no data in cross-tab report

    Hi friends,
    I am developing a cross-tab report.
    Let's take an example to explain the problem.
    Here is the XML file i am using
      <?xml version="1.0" ?>
    - <!--  Generated by Oracle Reports version 6.0.8.11.3
      -->
    - <MODULE1>
    - <LIST_G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171091</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171091</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Loans To Govt</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171093</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>120</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>171093</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Loans To Govt</ASSET_TYPE>
      <MARGIN>0</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
    - <G_SCHEMECODE>
      <SCHEMECODE>*171095*</SCHEMECODE>
      <AMOUNT>0</AMOUNT>
      <ASSET_TYPE>Govt Guarantee</ASSET_TYPE>
      <MARGIN>100</MARGIN>
      <AMOUNT_SECURED>0</AMOUNT_SECURED>
      <VALUE_OF_SECURITY>0</VALUE_OF_SECURITY>
      </G_SCHEMECODE>
      </LIST_G_SCHEMECODE>
      </MODULE1>Now I want SCHEMECODE in rows and ASSET_TYPE in columns.
    And the each ASSET_TYPE column is to be divided into 2 sub-columns (MARGIN,AMOUNT_SECURED).
    I am able to achevie this.
    The problem is that ,for the schemecode 171095, since there is no data for ASSET_TYPE "Loans To Govt",no cells are generated for this SCHEMECODE and ASSET TYPE.
    But the requirement is to generate blank cells.
    If needed i will send the template at xml files also.

    try this, there must be simpler one i guess...
    1. take a form field, and make its type as number. Paste the below one <?xdoxslt:set_variable($_XDOCTX,'v1',2)?>
    2. now take a table with as below,
    A l B |
    C l D1 l D2 l E1 l E2 l
    observe that i. A, C are in one column
    ii. cell B is on top of D1, D2
    iii. we have no cell on top of E1 and E2 cells
    iv. 'l' represents the wall of the cell :)
    A: <?horizontal-break-table:1?> SCHEMECODE
    B: <?for-each-group@column:G_SCHEMECODE;ASSET_TYPE?> <?ASSET_TYPE?> <?end for-each?>
    C: <?for-each-group:G_SCHEMECODE;SCHEMECODE?> <?xdoxslt:set_variable($_XDOCTX,'v1',2)?> <?SCHEMECODE?>
    D1: <?for-each-group@cell:current-group();ASSET_TYPE?> <?MARGIN?> <?xdoxslt:set_variable($_XDOCTX,'v1',xdoxslt:get_variable($_XDOCTX,'v1')-1)?>
    D2: <?AMOUNT_SECURED?> <?end for-each?> <?end for-each?>
    E1: <?for-each@column:xdoxslt:foreach_number($_XDOCTX,1,xdoxslt:get_variable($_XDOCTX,'v1'),1)?>
    E2: <?END FOR-EACH?>
    3. If you are confused gimme your email id, i will pass the template. But you should add credits to me.. :)

Maybe you are looking for

  • My iPod insists that I have no more free space when I have 10 gigs left. Help?

    After a whole slew of problems with iTunes today, including trying to get me to reset my iPod to its factory setting, getting the 42408, and it trying to delete all my apps, I am now faced with the problem of it telling me I am going over my itunes l

  • Printing of internet-based pdf files garbled by Acrobat 8 Pro

    I am running Acrobat 8 Pro on a pc under Windows XP SP2. Any pdf files received by email or downloaded from the internet (Explorer 8) are completely garbled. Same happens with Reader 9. However, when I print from my laptop with Vista Home Basic, Expl

  • Certificate problem with adobelc

    Hi, I am quiet new with mac and did get some problems with the following: I tried to open secured documents coming from adobeLC ( rights management from my company) but can not be open since I upgraded to 10.8.2. Certificate seems not to be recognize

  • PhotoStream, Camera Roll deletes not working

    I'm fully up to date on both iOS and OS X Since 7's release a few bizarre things have been happening If I delete a photo from Camera Roll, the photo reappears a few minutes later. I have to delete a photo 4-5 times before it stops coming back In addi

  • Photoshop Elements 10 on Windows 8

    Can photoshop elements 10 be loaded onto Windows 8 64-bit operating system?