Help with report

hi to all experts,
                           i have  a requirement of listing purchase orders created only on Sunday and Saturday,please help me out im struggling  with is report from 2 days. any sample code will help

Hi,
Use as follows
Parameters : P_startdate type dats,
P_enddate type dats.
data: days_between type i.
ranges : r_days type dats.
days_between = p_startdate – p_enddate.
do days_between times.
Call function module “DATE_TO_DAY” to see if the day is sat or sun.
Call function DATE_TO_DAY
Exporting
DATE = p_startdate
Importing
WEEKDAY = g_day.
*if the day is sat ir sun populate u'r ranges
<b>If g_day = ‘Sat’ or g_day = ‘Sunday’.</b> Changed
R_days – low = p_startdate.
R_days- high = ‘’.
R_days – sign = I.
R_days – option = EQ.
Append r_days.
Endif.
P_startdate = p_startdate + 1.
enddo.
Select * from vbak
into table lt_vbak
where erdat in r_days.
This works only in Enlgish logon
For better results I advise you to check the Function module DATE_TO_DAY and see the Text elements used for the Day texts.
And create in your program also similar text elements and compare using the text elements rather than hard coded stuff in one language.
Regards,
Sesh

Similar Messages

  • Help with Report Variables

    I have been doing battle with the SBO Customer Receivables Aging Report. I am trying to add the fields "Customer Reference" and "Creation Date" to the Repetitive area of the report with no success. All of the existing fields are variables, and the on-line help says to contact SAP support (which would be me) for help with changing variables. Does anyne have a list of these variables, or know how to define them?
    Many thanks,
    Mike.

    Hi Mike Stroud, i'm actualy also working on the customer ageing report. You also responded to my post. It was the reports one. Well, im not sure about the variables but i simply wrote a query that brings all that info and more up. But i'm having problems diplsying it. In the normal SAP report/print layout, if i  make the report based on the query it doesn't let me move the info from the repetitive area to the header....why.....can you get around this??? I then did it in the advanced layout but the first page is always wrong. What do you want to do with the variables?? what are you trying to achieve with the report because me and my coleagues have had a BIG problem with the ageing.

  • Need help with Report Generation Toolkit: Excel Set Cell Format.vi

    Hi people,
    I've been searching and found this old thread of someone asking what is the input parameter "Number format". And I dont know what should I put in there. I've tried so many possibilities, but nothing works so far, such as:
    0,0
    0,?
    0,#
    #,0
    ?,0
    and also with @, doesnt works. Where would I find help about this parameter?
    I'm using Excel2003, german version, thus local decimal separator is a comma.
    I also found this help from NI, but seems doesnt help me either. Do I miss something important?
    thanks,
    Yan. 

    Hi,
    I've used your suggestion and some numbers in excel doesnt need to get "right click, change to numbers" anymore (green indicators on the left-top side in some cells are gone). But, I think its still not a number, because I cant use a simple formula, such as in cell A10 I type "= A1/2" (cell A10 equals cell A1 divided with 2) . I got error which says its not a number.
    Well, but other thing is found, any format-string I put in the input of Excel Set Cell Format.vi, such as #,########, will be shown the same as "customize #,########" if I right click in a cell in excel and click "Zellen formatieren" (formatting cell). But however, the numbers are still depends on the input of the format I put in the Append Table to Report.vi.
    regards,
    Yan.

  • OBIEE 11G help with report narrative and table view

    Hi,
    I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
    Customer Number:
    Customer Name:
    Customer Address:
    Order Detail:
    Line number | Order No | Order description | Order Status

    ssk1974 wrote:
    Hi,
    I have a report designed like the below, I have used "narrative view" for customer detail and "table view" for order detail. In the narrative view I can say row = 1 and it picks up the first record of the customer detail, but order detail shows all rows. How can I control it so the order detail shows only the detail record of the customer associated. Also how do I go to the second record and so forth. Please help. If this is not possible and if there are any alternates, please let me know. Thanks for your time and help.
    Customer Number:
    Customer Name:
    Customer Address:
    Order Detail:
    Line number | Order No | Order description | Order StatusWhy don't you do this?
    1) Build a dashboard prompt for Customer Number. and save to a PV.
    2) Build a report with all the columns for customer and order (in Criteria View) with a filter for the PV to capture the dashboard prompt.
    3) Build a pivot table with Customer Number and Customer Name in the Rows section. Put the Customer Address in the Measures section and change the Aggregation Rule to Max.
    This will serve as the summary table showing only the information of the customer selected.
    2) Build Pivot Table:2 with the Order details.
    3) In the Compound Layout, put Pivot table one on the top and Pivot Table:2 below it.
    When a customer is selected, you will have the customer data with the order details under it for that customer only.

  • Need help with report

    Hi Friend,
    I'm quite new to Oracle BI. I have managed to create a request (from the answers section) that returns desired result, my problem is the formatting requirement of my report... the thing is i need to have three sections first of which is the header with such information as timestamp, company logo etc. the second section will contain the body of the report (which i have generated from query) and the last section will be footer.
    How and where do i get the formatting power to achieve this? the dashboard seems to have very limited formatting power. Could you also point me a any documentation that could be helpful?
    Many thanks in advance

    Since no one mentioned it, I'll add this as well:
    In the Compound Layout View, in the top left corner, there is a Print and PDF button. Click it and there are options to included a HEADER and FOOTER. You can add a timestamp for the report, date, page numbers, author, etc. See if these may help you as well.

  • Help with Report Script please :(

    Hi,
    I'm trying to write a report script with a slight calculation and would really appreciate some help.
    Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
    (All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
    So account 100 for all Entities = 50
    account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
    I want to display account 100 grouped as 75 without showing a line for each entity.
    This is what I have so far but it doesn't work right:
    ROWREPEAT
    SUPCOLHEADING
    SUPCOMMAS
    SUPHEADING
    SUPBRACKETS
    SUPEMPTYROWS
    TABDELIMIT
    MISSINGTEXT "#mi"
    DECIMAL 2
    NOINDENTGEN
    <PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
    "FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
    <ROW ("Account")
    <LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
    { CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
    <COL (Period)
    "Dec"
    !

    Dreamscapeuk wrote:
    Hi Robert,  I wasn't getting any data, but I managed to figure that out.  Basically I created 2 columns with the values I needed and then added them up with a calc cloumn.  However I can't get my essbase substitution variables working.  So I created a substitution variable called CurrQtr  and set this to Quarter3.  In my script I'm using this @CurrQtr as  a period however it doesn't use it as it's just giving me the total for the Period dimension.  Any help?
    Here's the script:
    ROWREPEAT
    SUPCOMMAS
    SUPBRACKETS
    SUPEMPTYROWS
    TABDELIMIT
    MISSINGTEXT ""
    DECIMAL 2
    NOINDENTGEN
    <PAGE ( DataSrc, Years, Version, "P&L Type", Currency, Scenario, InterCompany, "Cost Center","Set of Books","Reporting")
         "DataSrc" "FY10" "Current" "No_Type" "USD" "Actual" "InterCompany" "Cost Center" "AB_CON_USD" "No_Cost_Type"
    <COLUMN (Period)
              @CurrQtr
         WWL "RIA-IFRS REPORTING ADJS."
    CALCULATE COLUMN "Gaap" = 1 - 2
    ORDER 0,3,1,2
    <ROW (Account)
    <LINK(<DESCENDANTS("Global Accounts","Lev0,Account"))
    In my script I'm using this @CurrQtr as a period however it doesn't use it as it's just giving me the total for the Period dimension. Any help?
    I don't understand this...
    *<COLUMN (Period)*
    *          Qtr3      WWL "RIA-IFRS REPORTING ADJS."*
    have you tried like this.??
    Edited by: Prabhas on Feb 1, 2011 12:05 AM

  • Need help with report by day

    I've encountered another bump in the road. Can someone point me in the right direction in order to get help creating a report based on dates input by a user?
    I have a report that keeps track of outages based on application. I now need to break down that report and display the percentage of availability for each application and by each day between the dates entered by a user.
    I have been unsuccessful at finding any information on how to get this accomplished.

    Willi, I have a question concerning your query.
    I have a start date and end date in my table that keeps track of outages based on application. How would I incorporate that into your query, in addition I am not having any luck at the breakdown by day. When I attempt to run the query changing my attributes I get a column with hours = 24 and date = the start date of my outage. Please help.

  • Need help with reporting

    I am very confused and frustrated with this whole process. I got Captivate to build a on line teaching tool for my office employees. After creating the training I found that you have to have a place to host it.  I found a web host, and made a website and uploaded the program to it.  I got captive 7 so that I could make use of the reporting tool. (I need to be able to track which employees did the training).  I then found that when I upload the results to actrobat.com, the user needs an adobe ID and password. So I went on actrobat and entered all my employees as name, and employee number @ adobe.com  It let me enter everyone of them with no issues whatsoever.  Until I had some of them try to take the training. They were able to open my training and complete the whole thing. When they went to post results it asked fro their adobe ID and password.  Armed with the ID and password I gave them it states that the Id email was not verified.  I cannot find a way to verify it.  Should be an easy way to upload employees that you need to track? Please help, I am not a computer guy, I am a safety guy and I am lost.
    RB

    I don't normally use Acrobat.com as an LMS, but from memory Adobe has some kind of email verification mechanism whereby once a person registers an email address as their Adobe ID then they receive a verification email sent to that address and they're expected to confirm they are a real person by clicking a link or something.  Is it possible that your employees did not receive this verification email or that it was picked up and ditched by your company's antivirus software thinking it was a virus?  If their email addresses were never verified then that would explain why they were not able to log in just because you set up their Adobe IDs.

  • Help with report script query please

    Hi,
    I'm trying to write a report script with a slight calculation and would really appreciate some help.
    Ideally I want to create a report where I only get the Account and Value. I select all my members but I need a calculation on the Entity dimension. Here's what i am trying to achieve:
    (All selected members for all Entities + All selected members for all Entities in group RIA-IFRS REPORTING ADJS. ) Yes I'm duplicating the members of group RI-IFRS REPORTING ADJS.
    So account 100 for all Entities = 50
    account 100 for all Entities in RI-IFRS REPORTING ADJS. = 25
    I want to display account 100 grouped as 75 without showing a line for each entity.
    This is what I have so far but it doesn't work right:
    ROWREPEAT
    SUPCOLHEADING
    SUPCOMMAS
    SUPHEADING
    SUPBRACKETS
    SUPEMPTYROWS
    TABDELIMIT
    MISSINGTEXT "#mi"
    DECIMAL 2
    NOINDENTGEN
    <PAGE ( Years, Version, Currency, Scenario, InterCompany, "Entity", "Cost Center","Set of Books","Reporting")
    "FY10" "Current" "Currency" "Actual" "InterCompany" "Entity" "Cost Center" "AB_CON_USD" "Reporting"
    <ROW ("Account")
         <LINK(<DESCENDANTS("Total Balance Sheet Accounts","Lev0,Account"))
    { CALCULATE ROW "Entity" = "Entity" + "RI-IFRS REPORTING ADJS."})
         <COL (Period)
         "Dec"
         !

    For the benefit of anyone else looking for this answer, I figured it out.
    //To do this it's better to create 2 columns:
    <COLUMN (Period)
              Q4           
    WWL "RIA-IFRS REPORTING ADJS."
    //Then add the 2 columns up:
    CALCULATE COLUMN "Q4 Gaap" = 1 - 2
    //And order the column how you want
    ORDER 0,3,1,2
    Hope this help someone out.
    http://atmyplace.co.uk

  • Help with report column formatting

    Hi,
    Simple question .... I have a report that has some fairly large text columns, and I want to fit the report onto one screen. Does anybody know how you can change the width of the column of a report, and get the text to wrap round within that cell ?
    thanks
    Tim

    Tim,
    You could change the display type of the longer fields to be text areas.
    You may also want to look at Carl AJAX app which has a feature which hides/shows detail data without the page being refreshed.
    http://htmldb.oracle.com/pls/otn/f?p=11933:22
    Select the HTMLDB and Javascript -> AJAX and DHTML -> AJAX -> Show Report with Detail option.
    Hope this helps
    Chris

  • Need help with report generation toolkit

    I'm having a really hard time finding a solution for my problem. I'm measuring a distance and a diameter simultaneously. The outcoming values have a depency and are stored in a 2-D array.  I want to export this array to an excel table and x-y-chart (distance is x and diameter y). So far I can export the data to a table, however the charts produced are useless. Can somebody please help me? I'm almost crying since I'm trying to find a solution for 3 days now.
    Additionally, after one measurement is done, the user should have the possibility to do the next measurement, and the data has to be stored in the same excel file, in another worksheet. How can I do this? 
    Attachments:
    Hauptprogramm_0.5.vi ‏129 KB

    Hi!
    If you want a nice graph in Excel based on your data you have input there, I would recommend creating a macro that builds your graph. Read more about macro, Excel and LabVIEW here. I don't have the Report Generation toolkit, but I think you can send macros with it too. 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Help with Report-Transaction P000_M10_NDT

    Hello Experts,
    I came across this transaction P000_M10_NDT..... looks like this is a standard SAP Delivered report.....
    Can anyone please explain me how this report works? and what is its use? with examples?
    All inputs are appreciated and rwrded.........
    Thanks,

    Hi,
    You can refer to Wikipedia help as follows:
    http://en.wikipedia.org/wiki/401%28k%29
    It is the part of legislation and makes sure that tax deferral of HCEs - highly compensated is not more than some percentage of the tax deferral of NHCEs non-highly compensated.
    Regards
    Edited by: Dilek Ersoz Adak on Mar 23, 2010 3:59 PM

  • Help with Report Condition

    I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
    The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
    My report conditions are as below:
    ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
    (Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?
    Please assist. Thanks.

    user8655468 wrote:
    I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
    The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
    My report conditions are as below:
    ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
    (Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?You can use lexical parameter in reports sql and pass the condition whatever u want. How can we do that ?
    1. create a parameter like PR with char data type.
    2. pass the column name and other parameter to this parameter via After Parameter Form trigger.
    Hope this will help you.

  • Weblogic, Forms and reports 11g - help with report server

    Hi Everyone
    To start with i'm very new to forms and reports (3 months!!!) so my question may sound a bit silly.
    At the moment we have 10 apps using forms and about 6 of them using reports. All the reports get run from the forms. We are upgrading forms and reports from 10g to 11g and the dev teams are not willing to recode the forms to pick up ENVID's etc. i have 1 reports server running and have configured to run one of the apps reports but my question is how do i get the other apps to run under that report server, can this be done.
    I have thought about creating a report sever for each app but not sure if this is best practice and a bit over kill.
    Would i be wrong to create a report server for each app.
    Thanks
    Edited by: Zantie on May 11, 2011 2:27 PM

    Hi,
    If both apps are using the same middle-tier home, then forms built-in run_report_object should submit reports to the this url. i.e <protocol://<mid-tier or LBR>:<port>/reports/rwservlet?. Assuming you are using the in-process reports server no need to specify reports_server parameter. Also if the envid is missing, you can move all the .rdf or .rep files to the default reports server directory $mid-tier_home/reports/samples/demo directory.
    Leonard

  • Need help with report quering store procedure

    I posted earlier today with my code, but I thought I should start a new thread and explain my scenario properly. Sorry for that.
    have to find if a person visited a particular type of store, lets say pets mart in last six months. Every time a member of us go to store, the transction is saved into a database, which means that there are 100s of records for each member. I have few condition to apply (like flags). For example, if a member visited pets mart in last 6 months, we can send him cuopan for that store.
    In my last code, I was using count(*) which takes for ever as everytime function is been called, it checks everything and then return more then one row. And my scenario requires only a flag kind of stuff, like either that member visited a particular store or not.
    I am not sure what approach would be the best and optimised, obviously not the count one. I tried the case statment and it also returns more then one record (for each visit of the member) and I am looking for something like if it occured then Y else N.
    My old code was something like that
    function fnc (memberno, startdate, endate) return number as abc number;
    begin
    select count(*) into abc
    from table a, table b
    where a.zz = b.cc
    and a.shop_date between startdate and endate)
    and a.store_shoped in ('st01' , 'sto02' , 'sto3')
    and a.store_location in ('loc1' , 'loc2');
    return (abc);
    end fnc;
    I really appreciate if you can suggest me a better way to handle my situation.
    Could someome please help me?

    Something involving WHERE EXISTS or add a ROWNUM = 1 filter:
    function fnc (p_memberno in number, p_startdate in date, p_enddate in date)
      return number
    as
      abc number;
    begin
      select count(*)
        into abc
        from dual
       where exists (select null
                       from table a, table b
                      where a.zz = b.cc
                        and ?? = p_memberno
                        and a.shop_date between p_startdate and p_enddate
                        and a.store_shoped in ('st01' , 'sto02' , 'sto3')
                        and a.store_location in ('loc1' , 'loc2'));
      return (abc);
    end fnc;With either approach, the count will return only 0 or 1 and will stop at the first match it finds.

Maybe you are looking for