Run time column attach to apex report

Hello everyone,
can it be possible to make a function in a apex which will return a column value in report, like wise we use in report builder. I know we can do this directly in report query... however i want to make a some process may be, through which i can get a column value.
My requirement is.... i am having a PO report where columns are Header_id, Segment1, Vendor_id, Vendor_site n Amount.
I can have every column data from PO_header_all except amount for which i need to use.. PO_lines_all whose would be depend on header_id.
Now.. i can do this directly in query.. but here i don't want to.. use a po_lines_all in report query. I want to call the Amount column attach at run time to report.
Pls tell me how can i do this??
I don't know whether it is possible or not... if it is then how can i do this.
Regards,
UKJ

Hi,
Do you mean something like:
SELECT H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITE, SUM(A.AMOUNT) TOTAL_AMOUNT
FROM PO_HEADER_ALL H
LEFT OUTER JOIN PO_LINES_ALL A ON H.HEADER_ID = A.HEADER_ID
GROUP BY H.HEADER_ID, H.SEGMENT1, H.VENDOR_ID, H.VENDOR_SITEThis will return the header_id, segment1, vendor_id and vendor_site values from po_header_all and a total of amount from po_lines_all
Andy

Similar Messages

  • I get run time error in step Set Report in reportgen_xml sequence

    I get run time error in step "Set Report" in reportgen_xml.seq. The error code is "Out of memory".
    I don't know what to do.
    I use BatchModel, I have 6 batch loops. The problem appears on the 3d loop. I have NI 3.5.
    Help me!!!!!!
    I send attachment (screen of error).
    Attachments:
    problem.jpg ‏106 KB

    Hi Terry, it happened again :-(
    Actually I see that the problem appeares in the same subsequence of my sequence. In that  subsequence I have approximately 25 numeric steps, 6 of them are on skip now.
    The problem appeares suddenly after many batch loops.  I have the message "Error, Parameter new value: Out of memory. [Error code -17000, out of memory].
    After that on next loop I see it runs and writes reports for others subsequences and steps, but on the "problem subsequence" again I get message "Out of memory"...
    At the one of the problem loops I saw other message "An error occured calling 'Process One Result' in ITSO FlyReportGen of TestStand on-the-Fly-Report-Generator. Out of memory. Source: TSOTFRG  [Error Code: -17000, Out of memory].
    I use "Discard Results or Disable Results " enable option in the ModelOptions. But without success. Is this a problem of TestStand or may be is this the special problem of my subsequence or any step in that subsequence?

  • Column Links in Apex Reports

    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?

    Doug wrote:
    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?
    When discussing "reports" it is essential to indicate whether this means a standard report or an interactive report in order to receive an appropriate response.
    It is possible to create a link column that is distinct from report data columns. In standard reports, this is done using the Add Column Link option from the Tasks menu in the right sidebar of the Report Attributes page. In interactive reports, define a Link Column on the Report Attributes page.
    To provide further information about links to users in both cases, specify an HTML title attribute for the link in the Link Attributes property of the link definition. This will be rendered as a tooltip when the cursor hovers over the link in visual browsers, and as an audio cue on navigation to the link when using a screen reader.

  • Run time error in all standard reports

    Hi
    Gurus
    I got a run time error in all standard reports and error as below.
    Unable to fulfil request for 8296200 bytes of storage space.                                                                               
    What happened?                                                                               
    Each transaction requires some main memory space to process      
    application data. If the operating system cannot provide any more
    space, the transaction is terminated.         
    plz reply urgently.
    Thanks in advance
    Regards,
    sarang

    hmmm well reports work with variables and internal Tables.
    Those use memory. to be more specific RAM.
    in your case there would be about 8 MB of Memory needed, which you aint got.
    The problem may be that there just isnt that much available, or that one dialog work process is limited to some number below that.
    in anyway like all my precedessors told yah, contact you basis guys to check whether this is a problem or not.

  • Run-time error '13' in ALV report

    Hello,
    In a standard ALV report we are using Excel report layout. The Excel contains a table and a graph. The excel table refreshes with no errors.
    In order to refresh the graph data we recorded a VB Macro but when we run the report (which runs the macro) we are getting the error:
    run-time error '13'
    When we open the excel report from our workstation (not trough the SAP system) we are not getting this error.
    Please Advice,
    Amir

    hi
    this is a bug(error )in microsoft excel:
    Run-time error:'13' Type Mismatch" error message when you click a macro or a function on a menu in Excel 2002
    Please chec kthis link for the details:
    http://support.microsoft.com/kb/821292
    Regards
    Neha

  • Run time error in org sructure report

    Hi All,
    I am trying to execute org structure report s_ahr_6106493 with evaluation path BOSS_OE (Standard SAP evaluation path). The report fails on run time error. It looks like there is e recursion that causes that but I checked the data carefully & I don't have a recursion.
    Did it happen to anyone? Any suggestions for solution?
    Thanks a lot!
    Hagit

    Hi,
    f.e. you have to call OOAW
    copy way O-O-S-P
    5 O     B     002     ist Linien-Vorgesetzter v     *     O
    10 O     B     003     umfaßt     *     S
    20 S     A     008     Inhaber     *     P
    to Y-O-O-SP
    5 O     B     002     ist Linien-Vorgesetzter v *     O
    10 O     B     003     umfaßt                         *     S
    20 S     A     008     Inhaber                         *     P
    30 O         B               012          wird geleitet von             *           S
    Regards
    Bernd
    Message was edited by:
            Bernd Köhn

  • Run time Column Name in the Select Statement

    Hi there,
    I face problem while writing sql statment for report in the Oracle reports.
    The prom is I want to bound the where clause column name with the value stored in a variable e.g.
    Select * from emp
    where Column_Name = 'XYZ' ;
    where the variable Column_Name have different values at different times, e.g.
    At a time the value of Column_Name is Dept then
    Select * from emp
    where Dept = 'XYZ' ;
    At other time value of Column_Name is City then
    Select * from emp
    where City = 'XYZ' ;
    Waiting for the response .
    Regards,
    Hafeez

    Hi,
    U can use lexical parameters for the solutions.U must be aware of it, but still i describe how to work it out.
    1)In your datamodel in object navigator create a parameter under User parameter node.Name the parameter, for eg. p_clause.
    set data type of parameter to character.
    2)write a select query eg.
    select * from emp &p_clause; --(THIS IS THE PARAMETER WE CREATED ABOVE)
    3)Now run your report
    Now in your parameter form pass the value for p_clause parameter.
    eg: where name='JACK';
    or
    where city='NEWYORK';
    or where deptno=10;
    But do it in steps as above mentioned.
    Do tell me if it works or not via mail on [email protected]
    Enjoy.......
    navneet jain
    [email protected]

  • Run time error while printing ALV report

    Hi,
    At the time of printing a report  output we get a dump GETWA_NOT_ASSIGNED.
    The printer used here is LOCL.
    The length of the report increases dynamically according to no. of months given in range.
    In report , there are 3 static columns & no. of columns increases by 2 for each month. System is printing the report for 1 month ie. (3+2) columns . but if no. of months increased to 2 ..... no. of columns also increases by 2.... in this case system is giving dump.
    Please help.
    Thanks in advance,
    Vijeta

    Hi
    1. check the fieldcat ( ie. CURR field without WAERS field.. )
    2. check if you want to use colours at calling the ALV.. but you don´t fill the deep structure for the colours...
    bestreg Robert

  • Run Time Error while generating PDF report

    Hi
    I am generating reports in PDF format using JClass and JDK 1.3.The code works absolutely fine in windows environment.
    But when I try to run the same code in Unix environment on Solaris, I get the following error. What could be the reason?
    ERROR :-
    Exception in thread "main" java.lang.IllegalAccessError: try to access method sun.java2d.SunGraphics
    Environment.initializeProps()V from class sun.java2d.SunGraphicsEnvironment$1
    at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:89)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:83)
    at com.eteks.java2d.PJAGraphicsEnvironment.<init>(PJAGraphicsEnvironment.java:66)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
    at java.awt.Font.initializeFont(Font.java:259)
    at java.awt.Font.<init>(Font.java:293)
    at com.klg.jclass.page.FontBase.<init>(FontBase.java:83)
    at com.klg.jclass.page.adobe.postscript.FontPS.<init>(FontPS.java:161)
    at com.klg.jclass.page.adobe.postscript.AFMParser.parse(AFMParser.java:170)
    at com.klg.jclass.page.FontBase.loadFonts(FontBase.java:114)
    at com.klg.jclass.page.FontBase.getFonts(FontBase.java:155)
    at com.klg.jclass.page.adobe.postscript.FontPS.getAllFonts(FontPS.java:898)
    at com.klg.jclass.page.adobe.pdf.JCPDFPrinter.<init>(JCPDFPrinter.java:119)

    The problem is in the PJA toolkit.
    Please see their index.html that comes with PJA distribution. Specifically section:
    "Why the Java Virtual Machine crashes when I use fonts on UNIX platform ?"

  • Run time column names as parameters

    Hi SDN,
    I am trying to use a FORM/ENDFORM which can work for many internal tables in my project except that a couple of field (table columns) names differ. In other words, just for two assignment statements I may have to repeat rest of the code, unless there is a way to 'reference' these fields.
    Is there a way to pass the field names as a parameter to the FORM? Can someone give me an example if that is possible. I looked at the FIELD SYMBOL but don't know how to use it in a FORM.
    Thanks for the help.
    Saf.

    FM DDIF_NAMETAB_GET retruns a table of field names.
    Sample code follows (hope it helps!)
    call function 'DDIF_NAMETAB_GET'
      exporting
        tabname           = 'Z213'
      tables
        dfies_tab         = lta_dfies
      exceptions
        not_found         = 1
        others            = 2.
    if  sy-subrc         <> 0.
                            message e007 with 'syserr bld bkpf fields.'.
    endif."subrc
    loop at lta_dfies assigning <i>.
            append <i>-fieldname to lta_bkpf_fl.
    endloop."dfies
    select (lta_bkpf_fl)
    from   bkpf
    into   table lth_vbkpf
    where
           bukrs  = p_bukrs
      and  bstat  = space               " normal documant
      and  blart  = 'WE'
      and  gjahr  = p_gjahr
      and  monat in so_monat
      and  budat in so_budat
      and  waers in so_waers
    order  by       belnr.
    if     sy-subrc <> 0.
                       message i008 with 'No BKPF data found for selection'.
                       stop.
    endif."subrc.
    Best,
    Jim

  • URGENT Printing a BI publisher report from a column link in APEX

    I am developing an APEX report with a column link that will call a BI publisher report, the case is the link column in the APEX report will pass the item number to the BI publisher query.
    At the moment this is what I am doing:
    1- Create a hidden item on top of page zero. (e.g. PARAM1_VALUE)
    2- Create a report query and a report layout (For BI Publisher) in the Shared Components. (e.g ITEM_REPORT)
    3- Include the state session in the report query and reference that item in the query. (e.g. SELECT * FROM items where item_number = :PARAM1_VALUE)
    4- Create an APEX report displaying orders with the item number as a link column.
    5- In the Link column I set the report URL request to be "PRINT_SERVER=ITEM_REPORT".
    6- In addition I set the PARAM1_VALUE to be #ITEM_NUMBER# on the link.
    When I press on the link the BI publisher report prints but it doesn't display anything except the Headers, my understanding is that PARAM1_VALUE is not set with the item_number value when I press on the link and thus the query returns no results as when I remove the condition from the query i can see the report printing.
    Please help as this is urgent

    I opened the session and it is there with a proper value, it appears that whenever I enable the inclusion of session state in my shared components query the query returns no rows even if I am not using the item in the query.
    So if my query is "SELECT * FROM items" it will display nothing, the only way to get the report data back is to untick the inclusion of the session state and remove any reference to the item from my query, then I will get the report with all my data (which is NOT what I am trying to do).
    Thanks alot
    Khaled Jamoos

  • APEX Report Output Formats

    In the SQL Workshop query builder can the output of these queries be changed to HTML or ASCII? We have WEBDB running and are able to change the output formats at run time.

    Hello Andy,
    The APEX Query Builder was not designed as a report generator. It’s main purpose is to allow novice users to create SQL queries in a bit more friendly manner. After testing the validity of the query, with the displayed format type, you should actually copy the generated SQL code into an appropriate page region, like a report region.
    The configuration options of this specific tool are very limited, and as far as I know, the kind of things you are asking for can’t be done in this version. One of the major additions to APEX 4.0 will be something (I don’t know the final name for it) that will allow you to do the sort of things you are asking for.
    >> Also cant he number of records that are displayed by increased to say 1000 or 4000 rather then 15?
    You can’t change the displayed number of records in the Query Builder. A possible work around can be to copy the SQL query into the SQL Commands. There you can control the number of displayed records.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • While creating a student through piqstc getting abap run time error

    Hi Experts,
    I am new to SLCM,
    By following Micheal Fan's Basic configuration document,
    I have done the basic configuration required  for creating a student & maintaining  the student file,
    But while trying to create a student through PIQST00/PIQSTC getting abap run time error,
    Attaching the txt file for complete view of abap error.
    Please guide how to resolve this error.
    Regards,
    Prashanti Swain

    Hi Rob,
    Thanks a ton, for your quick reply,
    But I have not understood the reason of the issue.
    As i said I followed Micheal Fan's Document for configuration,
    in that document there is no configuration  step is defined for Vendor master data.
    Could you please explain it in a more detail way.
    Regards,
    Prashanti Swain

  • How to Install crystal run time programs with out designer.

    Can anyone suggest me  how to install crystal run time program with out installing entire designer software.
    Is it coming along with CR software package, which we have to do custom install or is it coming as a different package.  
    Currently my client is using only the run time programs to trigger crystal  report from VB app but developers have installed entire software for development.  We need to figure out how this install can be done, as it was done long time before and folks who have done it left the company.  
    Any suggestion on this would be of great help to me.

    See this wiki:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0
    Ludek

  • Smartview webf run time prompts upon submit are not picking up from the POV

    Hi ,
    I am in Planning 11.1.2.1 and using Smartview 11.1.2.1.103. After connecting to Planning Webform from Smartview, i am saving a composite form which should launch a Business Rule with run time prompts attached to the webform upon submit. The business rules are running with default run time prompts and it is not picking up the members from the POV ... is there a way to make it pick up the members from POV into the run time prompts upon saving it ? so far the workaround is to initiate the business rule from the planning tab in smartview .. any thoughts on this ? cheers

    I found a known issue for smart view in 11.1.2.1 read me doc
    11075506
    When you open a data form in Smart View, if a business rule is directly attached to a composite data form that is set to Use Members on Data Form and Hide Prompt, the runtime prompt values are not picked up. Instead, the Runtime Prompt dialog box is displayed, and the user is prompted to enter a value.
    Good Luck

Maybe you are looking for