Problem (bug?) in report - sort

I receive this error:
failed to parse SQL query:
ORA-06502: PL/SQL: numeric or value error: NULL index table key value
I know where this comes from, but I don't know how to solve it (the first time). Below how you can reproduce my error.
Test-case:
1. Create a page with a form with one field, static value 1;
2. Add to that page a report with select id, column from table where id = :p1_x; Make the columns sortable.
3. Add to that page an other report with select id, column from table2 where id = :p1_x; Make the columns sortable.
4. If you run the page, you see the form with the item (value 1) and the 2 report with the right results (1 row; id=1)
5. After Sorting on a column of one of the reports, you receive the error on the other report.
When you rerun the page and do the sort also on the other report, the error is gone (for that user).
So to resolve my issue, I need to login with every user, do the sort on all the reports and then I don't have the error.
How can I do it simpler, so that I don't have this error anymore?

Dimitri,
I reviewed your application and found what's causing your sorting issue. When using column heading sorting, you can choose the columns for which you want to enable sorting. This selection is done on the report attributes page. Next to the sort flag, you'll find the "sort sequence" attribute. That attribute allows you to define the default sort sequence for your report. When having column heading sorting enabled, you need to set the sort sequence for at least one column. So to fix your issue, edit both reports and set the sort sequence for e.g. the first column to 1.
Regards,
Marc

Similar Messages

  • Bug in report sorting? Sort doesn't work in last group level.

    Is this a known error? Is there documentation from Oracle about it?
    My query is a simple select from a table. I then created three group levels. Each group contains a value for sorting (up arrow next to column). However, data is not sorted by the value in the third group.
    Try:
    create table test_sort (a number, b varchar2(5), c varchar2(5));
    insert into test_sort (a, b, c) values (1, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'B', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'Z');
    insert into test_sort (a, b, c) values (1, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Z');
    insert into test_sort (a, b, c) values (2, 'A', 'Y');
    insert into test_sort (a, b, c) values (2, 'A', 'X');
    insert into test_sort (a, b, c) values (1, 'A', 'Y');
    insert into test_sort (a, b, c) values (1, 'B', 'X');
    Create a query tabular report with the wizard (select * from test_sort). Then make the groups: first a, then b, then c. Make sure that there is an arrow next to the values (sorting).
    The report only displays a and b values sorted.
    Edited by: user489847 on Jun 3, 2010 1:19 AM

    Hello,
    This is the normal behaviour documented here :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_col_break_order.htm
    Restrictions
    Break Order has no effect on columns that belong to the lowest group of a particular query.
    Break Order only affects columns in groups that are above the lowest child group of a query.
    You have to add an "ORDER BY" in the SQL query in order to sort the columns belonging to the "lowest group"
    Regards

  • Reporting some proxy problems/bugs

    Is there a way to report problems/bugs in the proxy software without having support? I believe this can be done for Java, but what about the proxy?
    In our environment we are using the proxy software (currently v4.0.5, but I haven't seen these items in the release notes of the newer versions of the software) in the reverse proxy mode and have encountered what I believe may be a couple of bugs.
    Possibly related to a previous poster's "Content-length mismatch" error message, it seems that some app servers respond to an If-modified-since conditional GET request incorrectly by sending a Content-length header along with the "304 not modified response" (there should be no such header in a 304 response). When proxy caching is enabled and the GZip compression filter is used, one result I have seen is the "Content-length match" error message which happens when the incorrectly included Content-length header has a non-zero value. A different result occurs when the incorrectly included Content-length header has a value of zero - the proxy response body gets truncated (completely removed).
    A second issue I have seen is with the reverse proxy's handling of a POST with a trailing CR/LF which some browsers (IE) send incorrectly (there should be no such trailing CR/LF in a POST request). The proxy seems to handle the trailing CR/LF for the request/response, however if HTTP1.1 keepalive is used and the POST is followed by a GET request on the same open connection from the browser then the access log entry for the GET request will be broken across two lines.
    Hopefully someone from Oracle monitoring these forums will pass these on to the proxy dev team.

    Yep, I realize Safari on Windows uses Windows Internet Options to get proxy server info BUT the Windows Internet Options don't provide a place to specify the proxy login information.
    As a result, when the browser contacts the proxy it usually (or should) prompt the user for the login info. Safari did the first time and I told it to save the info. Then my login info changed and rather than prompt for it again, Safari sits there and doesn't load any pages.
    IE7 uses the same proxy without problems because IE uses the domain login credentials to connect to the proxy server.
    Google Chrome uses the Windows Internet Options for proxy support and it prompts me to login to the proxy each time I fire it up and access a website.
    Mozilla Firefox 3.0.4 will prompt me for login information if the login info it has stored won't work for the proxy connection.
    Opera 9.62 prompts me for the proxy login information each time I fire it up, just like Google Chrome.
    Out of all of those browsers, Safari is the only one that can't use the proxy because I can't change the login information for the proxy connection.
    Peace...

  • Interactive Report BUG (hangs when sorting columns)

    Hi All,
    i have an interactive report, and when i click on a column to sort the data the report hangs.
    To circle in the screen keeps circeling and on the botom and i get an javascipt error in the apex_3_1.js file.
    i am working with apex 3.2.1.00.02 with an oracle 10G DB.
    I also can reporduce this error. When i have an interactive report in which the sorting works properly and i copy this page to a new page i get a report in which the interactive report sorting is not working.
    Can you please help me in resolving the issue, or is this a known bug ?
    Regards,
    Marco Schlicher

    Hello,
    I came across the same issue. I made a test IR report with the following query
    SELECT '<span class="blue">'||id||'</span>'||name as n_name, id
    FROM
    +(SELECT ''||fullname||'' name, id from users)+
    It all works fine on FF but IE returns this
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; InfoPath.2; AskTB5.5)
    Timestamp: Wed, 5 May 2010 07:53:11 UTC
    Message: Unknown runtime error
    Line: 1
    Char: 9270
    Code: 0
    URI: http://localserver/i/javascript/apex_3_1.js
    Using the IE debugging tool, error occurs upon this
    function $dom_AddTag(E,A,C)
    +{+
    var D=document.createElement(A);
    var B=$x(E);
    +if(B){B.appendChild(D)}+
    +if(C!=null){D.innerHTML=C}+
    return D}
    It all works fine if I remove the <a href... tag...But I need it and I can't use the column properties since it's quite a huge list of if's for the link creation.
    Thanks,
    Andrea

  • Custom Rowtype Template with apex.widget.report.sort() - does this work?

    Hi Folks!
    I have a report with a custom rowtype template (3 rows for each dataset) and I have fiddeled around with the build-in javascript sorting-function. (Cause as it seems you can't use the standard sorting functionality on custom rowtemplates.) I came up with a short solution, but I would like to know how safe this is.
    Setup very simple:
    The Header-Template [before rows]
    <table id="myDomId">
        <thead><tr>
            <th><a href="javascript:sortCol(1)">Col1</a></th>
            <th><a href="javascript:sortCol(2)">Details</a></th>
            <th><a href="javascript:sortCol(3)">Col3</a></th>
        </tr></thead>
    Then the javascript handling runs like that:
    var qmmSorter = {};
    $(function(){
       setupSorters();
    function setupSorters(){
        qmmSorter.DomCatch = /\d+/.exec($('#myDomId>div').attr('id'))[0];
        qmmSorter.lastCol = 1;
        qmmSorter.asc = true;
    function sortCol(colnum){
    //console.log(colnum);
        if (qmmSorter.DomCatch) {
            qmmSorter.lastCol = colnum;
            qmmSorter.asc = !qmmSorter.asc;
            javascript:apex.widget.report.sort( qmmDomCatch,'fsp_sort_'+colnum + ( qmmSorter.asc ? '' : '_desc') );
    Maybe I'll also add some arrows to indicate what sorting took place. Tested so far in IE9 and Moz - all we really use in our internal network.
    But this seems all a bit just too easy. so I'd be really thankful for your comments.
    Tanks and greetings,
    Tobi

    TobiP wrote:
    But this seems all a bit just too easy. so I'd be really thankful for your comments.
    It would be even easier to use column header substitution and retain the built-in sort functionality (although this includes the sort direction image bug).
    <table id="myDomId"> 
      <thead><tr>
        <th>#1#</th>
        <th>#2#</th> 
        <th>#3#</th> 
      </tr></thead>

  • Bug in report CKDBSZ in Oracle Designer 2.1.2

    In that report (Database Table and Index Size Estimate) there's
    the following bug: the report doesn't compute estimates of
    indexes belonging to tablespaces other than those from their
    corresponding tables.
    Does anyone know if Oracle Corporation has corrected the
    problem? If not, does anyone have a corrected version from this
    report?
    Thank you!
    null

    Carlos,
    This forum is for Headstart related questions and experiences
    only. Please go to metalink.oracle.com to get more information on
    your problem.
    Regards,
    Lauri
    Carlos P     rez (guest) wrote:
    : In that report (Database Table and Index Size Estimate) there's
    : the following bug: the report doesn't compute estimates of
    : indexes belonging to tablespaces other than those from their
    : corresponding tables.
    : Does anyone know if Oracle Corporation has corrected the
    : problem? If not, does anyone have a corrected version from this
    : report?
    : Thank you!
    null

  • Problem after run report with spreadsheet

    hi evry one
    ther an a problem after run report with spreadsheet .
    after runing iexplorar open and close fast no thing else
    when i check the job from appserver job success with spreadsheet dis format.
    what shall i do.
    thanks.

    Hello,
    Do you use the Oracle Forms builtin WEB.SHOW_DOCUMENT ?
    If yes , take a look to : "IE7 windows opened and closed immediatly"
    http://www.experts-exchange.com/Software/Internet_Email/Web_Browsers/Internet_Explorer/Q_23304982.html
    You can test the solution suggested :
    We have found the setting that we needed, under the Internet Options
    Security tab, if you select the internet zone, and click the custom level
    button, then scroll down to the Downloads section, the first option is
    Automatic prompting for file downloads, setting this to enable keeps IE 7
    from interfering with this sort of download.
    Regards
    Example with screen shots :
    http://www.celt.iastate.edu/webct/securitysettings.html
    Regards

  • Date Bug in Report Builder

    Hi guys,
    Problem / Bug
    i have a very simple layout report on scott.emp table. i passes two parameters throught parameter form.
    i have assigned the data type as well as the initial value.
    Report paremeter form takes and on message shows a date which has not been mentioned / assigned any where. like (01/02/3021).
    after parameter form having few conditions like if dates are blank then parameter P1 Gets first condition else it gets the second one.
    but report builder runs the first condition each time what ever you do with it.
    mean this is joke with a developer.
    i have re-installed the developer6 no of times and also used tips from fellows to get the right results.
    anyway i will appreciate if some body could resolve this problem.
    Regards,
    Kamal

    Just a couple of things you could look at:
    1) Is P1 null. In PL/SQL, equality comparisons against any null value will always return FALSE. You need to directly compare against null - "if (:p1 is not null)/if (:p1 is null)"
    2) P1's format mask. If the input format mask is something like: 'YYYY' then the date will show up as '01-JUL-YYYY' regardless of the date you gave it (or subsequently set it to in the PL/SQL).

  • Bug toolkit report - LMS 3.1

    Hi
    I have problems with Bug toolkit report - bug summary report.
    I have empty all columns in this report. No bugs. Despite of having over 500 devices with various IOSes.
    Is it depends on CCO account or something else?
    Best regards
    Marek

    The Bug Toolkit report in RME can be problematic when it comes to certain device types.  That is why there is now a link to the Cisco.com Bug Toolkit report in the RME report interface.  You may have to forgo using the RME report, and use the Cisco.com tool directly to find bugs.

  • Ciscoworks LMS 3.2 bug summary report

    Hi,
    I have one Ciscoworks LMS 3.2, it managed around 500 devices. I tried to generate bug summary report and the bug number is zero. Please kindly help to solve this problem.
    Best Regards,
    Jackson Ku                  

    For how many devices are you running the report?
    [ Wed Jan 05  21:26:50 CST 2011 ],INFO ,[main],com.cisco.nm.rmeng.bugtool.BTBugSummary,populateResults,295,Cisco.com URL Connection TimeOut: Try again later or with less number of devices.
    Have you tried running it for just one?
    This is also kind of strange,
    [ Wed Jan 05  21:26:50 CST 2011 ],INFO ,[main],com.cisco.nm.rmeng.bugtool.BTBugSummary,formBTDevHash,228,Device(s) are not supported by Cisco.com.
    [ Wed Jan 05  21:26:50 CST 2011 ],INFO ,[main],com.cisco.nm.rmeng.bugtool.BTBugSummary,formBTDevHash,229,Hence Could not generate report
    Like as if cisco.com would not know about these C3750's
    Maybe do an export of these 3750's in the DCR to see if the all have the same OID and if it is a supported OID.
    Are your device packages up to date? You may want to sync those with CCO.
    Cheers,
    Michel

  • OWB 11.2.0.1 – Known Problems/bugs resolutions ?

    OWB 11.2.0.1 – Known Problems/bugs resolutions ?
    ==========================================
    We are using OWB 11gR2, Java(TM) Platform     1.5.0_17, Oracle IDE     11.2.0.1.0.
    We are finding the strange behavior in OWB Design center. Here is the situation.
    1) OWB Design Center>Databases>Defined Module> Mappings>MAP1>Mapping Editor>Expression Editor>
    Output attributes>Expression Builder
    Specify the expression and press OK.
    Another Expression Builder opens up with blank window. We need to specify the expression again.
    2) Same as above after opening expression Builder, if we go to another apps (eg. SQL Developer, MS Word) and come back expression Builder disappeared from the context.
    We find only Expression Editor. Design Center Hangs. It is not responding to any KEYs. We need to kill the application via task manager and re-start.
    Are these issues related to OWB client piece or OWB Client+Server piece?
    We did not find any events reporting at DB alert Logs for such events. Do we need to set up some trace ON to record such events?
    Are there any log files/tables record such events at OWB repository level to trace back?
    Do we have OWB 11.2.0.1 known issues/bugs, resolutions list posted somewhere?
    Thanks in helping.

    We reviewed the release notes, where it says this patch will improve performance (Bug 7359939).
    We find another note in metalink (provided by our DBA team) says
    Poor Performance of Mapping Validation / Generation in: OWB 11.2.0.1 + Megapatch 10270220 and OWB 11.2.0.2 [ID 1303177.1]
    Are we going to face a new problem after applying this patch?
    Thanks in helping.

  • Problem in ALV report

    Hi Friends,
    I have the following 2 problems in ALV report
    1) Logo is not getting displayed in the report.
    2) When i click on the Purchase order number in the report  the interactive report is not working,i am not able to see report of First interactive level.
    can you help it out friends.
    Thanks and regards
    Dinesh
    REPORT  YSDBALV1
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv  WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line .
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
          ebeln like ekko-ebeln ,           "Purchasing Document No.
          bedat like ekko-bedat ,           "Purchasing Document Date
          matnr like ekpo-matnr ,           "Material No.
          netwr like ekpo-netwr ,         "Net Order Value in PO Currancy
          meins like ekpo-meins ,           "UOM
          chk(1) ,
          light(1) ,
          change like ekpo-menge ,
          end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln  .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
       message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
           EKKO~BEDAT
           EKPO~EBELP
           EKPO~MATNR
           EKPO~NETWR
           EKPO~MEINS
           EKPO~MENGE
           EKPO~BPRME
           INTO CORRESPONDING FIELDS OF  table IT_FINAL
           FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
           WHERE EKKO~EBELN IN S_EBELN.
           APPEND IT_FINAL.
    endform.                    " get_data
    *Getting the Event for Top of Page display.
    *&      Form  event
          text
         -->P_I_event[]  text
    form event  using    p_i_event type slis_t_event.
      clear p_i_event .
      refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = p_i_event
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    read table p_i_event with key name = slis_ev_top_of_page into i_event.
          if sy-subrc = 0.
                 move 'TOP_OF_PAGE_PO' to i_event-form.
                 modify p_i_event from i_event index sy-tabix transporting form.
          endif.
          clear i_event.
    endform.                    " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
           clear i_header .
           refresh i_header .
           write sy-datum to text.
           i_header-typ = 'H'.
           i_header-info = 'PURCHASE OREDER DETAILS'.
           append i_header.
          *Logo Display
          CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
                 EXPORTING
                     it_list_commentary       = i_header[]
                     I_LOGO                   = 'ENJOYSAPLOGO'.
    endform .
    *Field Catalog Append
    *&      Form  field
          text
         -->P_fieldCATALOG[]  text
    form field using  p_fieldcatalog type slis_t_fieldcat_alv.
         clear fieldcatalog.
          fieldcatalog-fieldname   = 'EBELN'.
          fieldcatalog-seltext_m   = 'Purchase Order No'.
          fieldcatalog-col_pos     = 1.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'BEDAT'.
          fieldcatalog-seltext_m   = 'PO Date'.
          fieldcatalog-col_pos     = 2.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MATNR'.
          fieldcatalog-seltext_m   = 'Material No'.
          fieldcatalog-col_pos     = 4.
          fieldcatalog-outputlen   = 20.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'NETWR'.
          fieldcatalog-seltext_m   = 'Net Value '.
          fieldcatalog-col_pos     = 5.
          fieldcatalog-outputlen   = 20.
          fieldcatalog-do_sum = 'X'.
          append fieldcatalog .
          clear fieldcatalog.
          fieldcatalog-fieldname   = 'MEINS'.
          fieldcatalog-seltext_m   = 'Units'.
          fieldcatalog-col_pos     = 6.
          fieldcatalog-outputlen   = 4.
          append fieldcatalog .
          clear fieldcatalog.
    endform.                    " field
    *&      Form  layout
          text
    form layout  using    p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra  = 'X'.
        i_layout-lights_fieldname = 'LIGHT'.
        i_layout-lights_tabname = 'IT_FINAL'.
        i_layout-box_fieldname = 'CHK'.
        i_layout-box_tabname  = 'IT_FINAL'.
        i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING  P_I_EXTAB TYPE
                     SLIS_T_EXTAB.
                     SET PF-STATUS 'MENUPO'.
      ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND  using r_ucomm like sy-ucomm
                             rs_selfield type slis_selfield .
      if r_ucomm = '&IC1'.
      READ TABLE IT_FINAL  index   rs_selfield-tabindex.
      write:/ IT_FINAL-ebeln.
      endif.
    endform .
    *Parameters of FM  REUSE_ALV_GRID_DISPLAY
    *&      Form  grid_display
          text
    -->  p1        text
    <--  p2        text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM                = SY-REPID
       I_CALLBACK_PF_STATUS_SET          = 'SET_PO_PF_STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
        IS_LAYOUT                         = I_LAYOUT
        IT_FIELDCAT                       = FIELDCATALOG[]
        IT_EVENTS                         = I_EVENT[]
      TABLES
        t_outtab                          = IT_FINAL.
    endform.                    " grid_display

    *& Report  YSDBALV1
    REPORT  YSDBALV1.
    tables: ekko , ekpo .
    type-pools: slis .
    Table for Display Header
    data:i_header type slis_t_listheader with header line.
    *Fieldcat Declaration
    data:fieldcatalog type slis_T_fieldcat_alv WITH HEADER LINE.
    *Table of Events
    data:i_event type slis_t_event with header line ,
         wa_event type line of slis_t_event.
    For Layout
    data:i_layout type slis_layout_alv .
    data: text(30) .
    *Internal Table Declaration
    data: begin of it_final occurs 0 ,
    ebeln like ekko-ebeln , "Purchasing Document No.
    bedat like ekko-bedat , "Purchasing Document Date
    matnr like ekpo-matnr , "Material No.
    netwr like ekpo-netwr , "Net Order Value in PO Currancy
    meins like ekpo-meins , "UOM
    chk(1) ,
    light(1) ,
    change like ekpo-menge ,
    end of it_final .
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln .
    selection-screen end of block block .
    selection-screen begin of block block1 .
    parameters:grid radiobutton group r .
    parameters:list radiobutton group r .
    selection-screen end of block block1 .
    at selection screen
    at selection-screen .
    select single * from ekko where ebeln in s_ebeln .
    if sy-subrc <> 0 .
    message e000(8I) WITH 'No Data Exists' .
    endif .
    start-of-selection .
    if grid = 'X' .
    perform get_data .
    perform event using i_event[] .
    perform field using fieldcatalog[] .
    perform layout using i_layout .
    perform grid_display .
    endif .
    *& Form get_data
    text
    --> p1 text
    <-- p2 text
    form get_data .
    *DATA Retrieval from tables
    SELECT EKKO~EBELN
    EKKO~BEDAT
    EKPO~EBELP
    EKPO~MATNR
    EKPO~NETWR
    EKPO~MEINS
    EKPO~MENGE
    EKPO~BPRME
    INTO CORRESPONDING FIELDS OF table IT_FINAL
    FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
    WHERE EKKO~EBELN IN S_EBELN.
    APPEND IT_FINAL.
    endform. " get_data
    *Getting the Event for Top of Page display.
    *& Form event
    text
    -->P_I_event[] text
    form event using p_i_event type slis_t_event.
    clear p_i_event .
    refresh p_i_event .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = p_i_event.
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2.
    read table p_i_event with key name = slis_ev_top_of_page into wa_event.
    if sy-subrc = 0.
    move 'TOP_OF_PAGE_PO' to i_event-form.
    modify p_i_event from i_event index sy-tabix transporting form.
    endif.
    clear i_event.
    endform. " event
    *Display Top-of –Page Details and Logo
    form top_of_page_po .
    clear i_header .
    refresh i_header .
    write sy-datum to text.
    i_header-typ = 'H'.
    i_header-info = 'PURCHASE OREDER DETAILS'.
    append i_header.
    *Logo Display
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header[]
    I_LOGO = 'ENJOYSAP_LOGO'.
    endform .
    *Field Catalog Append
    *& Form field
    text
    -->P_fieldCATALOG[] text
    form field using p_fieldcatalog type slis_t_fieldcat_alv.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order No'.
    fieldcatalog-col_pos = 1.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'BEDAT'.
    fieldcatalog-seltext_m = 'PO Date'.
    fieldcatalog-col_pos = 2.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material No'.
    fieldcatalog-col_pos = 4.
    fieldcatalog-outputlen = 20.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'NETWR'.
    fieldcatalog-seltext_m = 'Net Value '.
    fieldcatalog-col_pos = 5.
    fieldcatalog-outputlen = 20.
    fieldcatalog-do_sum = 'X'.
    append fieldcatalog .
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Units'.
    fieldcatalog-col_pos = 6.
    fieldcatalog-outputlen = 4.
    append fieldcatalog .
    clear fieldcatalog.
    endform. " field
    *& Form layout
    text
    form layout using p_i_layout TYPE SLIS_LAYOUT_ALV .
    i_layout-zebra = 'X'.
    i_layout-lights_fieldname = 'LIGHT'.
    i_layout-lights_tabname = 'IT_FINAL'.
    i_layout-box_fieldname = 'CHK'.
    i_layout-box_tabname = 'IT_FINAL'.
    i_layout-edit = ' '.
    endform.
    *To display Buttons in the MENU BAR if needed
    FORM SET_PO_PF_STATUS USING P_I_EXTAB TYPE
    SLIS_T_EXTAB.
    SET PF-STATUS 'MENUPO'.
    ENDFORM.
    *Event for Interactive display of ALV report
    form USER_COMMAND using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield .
    if r_ucomm = '&IC1'.
    READ TABLE IT_FINAL index rs_selfield-tabindex.
    set parameter id 'VL1' field it_final-ebeln.
    call transaction 'ME23N'.
    endif.
    endform .
    *Parameters of FM REUSE_ALV_GRID_DISPLAY
    *& Form grid_display
    text
    --> p1 text
    <-- p2 text
    form grid_display .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    IS_LAYOUT = I_LAYOUT
    IT_FIELDCAT = FIELDCATALOG[]
    IT_EVENTS = I_EVENT[]
    TABLES
    t_outtab = IT_FINAL.
    endform. " grid_display
    Regards,
    Rusidar S.

  • Wrong folder and report sorting

    We installed BO XI R2 SP4. Folder and report sorting is incorrect. How to fix that?

    Hi Wallie,
    we just started our mirgation from 6.5 to XI
    so BO XI SP4 on .NET is our first XI installation.
    Sort order is incorrect for both folders and objects
    and for both asc and desc orders.
    Most of folders/objects are sorted correctly but several of them are out of order.
    Examples:
    __ASC order__                            DESC order
    Class                                        User         
    Customer                                  Report Samples
    Data                                         Report Conversion
    Document                                 Feature
    Accident                                   Admin
    Admin                                       Accident
    Feature                                     Document
    Report Conversion                      Data
    Report Samples                         Customer
    User                                         Class
    I believe it gives the picture.
    Valentin.

  • Custom report sorting

    Custom report sorting
    I need to display the report column header in vertical format, hence I’ve to use to use some css code along with column name for that. Also, I want this column to be sorted by clicking the column name. So, I’m embedding the following url along with css and column name to enable sorting on this column when user clicks the column header. I got the following url by looking at the standard report with sorting enabled on a column.
    http://test.com:7777/pls/htmldb/f?p=100:22:&APP_SESSION:fsp_sort_1::RP&fsp_region_id=1870116795285540
    My questions are …
    How can I toggle the url to append “_desc” to the fsp_sort_1 parameter dynamically when the user clicks the column name, as it is done when standard column sorting is selected.?
    How can pass region id dynamically in the above url (last number in the url)?
    Any ideas are appreciated
    Thanks,
    Surya

    hi pavan
    i can just tell you that i had no issues with custom column sorting in webi with Enterprise XI 3.0 and Xcelsius 2008.
    Best Regards
    Ulrich

  • Problems accessing BW Report from Portal

    Hello friends,
    I have a problem. I am trying to create a link in portal that should call a BW Report. To do this we should require the query string which I have. The problem is this report in turn is calling a separate transaction code from a different back end system. When the user tries to execute the report he is getting the following error code
    ICF-NF-http-c:000-u:SAPSYS-I:E-i:wwbsap06_DEV1_22-v:0-s:403-r:Forbidden
    Can anyone tell me how this can be achieved?
    Points guaranteed.
    Thank You
    Avik

    You can use SAP Web dispatcher for exposing the BW web reports to extranet. The SAP Web dispatcher is located between the Web client (browser) and your SAP system that is running the Web application.
    http://help.sap.com/saphelp_nw04/helpdata/en/42/5cfd3b0e59774ee10000000a114084/content.htm

  • Problem in exporting report in CSV format

    Hi All,
    I am using Crystal Reports. Following are details about it:
    CR Developer
    Product 8.5.0.217
    *_Problem that I am facing:__*_
    I can create report in .rpt format, it is working fine here. But while trying to export this report in CSV format, it gives report that doesn't contain any information.
    Is it because I am missing something or it is a known issue?
    Thanks and Regards,
    Anand

    Hi,
    I too am facing the same problem.
    The report was made in 8.5. I have exported the report & opened it in Crystal report 12.
    I can export to PDF, RTF, DOC & Tab separated Test.
    However when I export this report in .csv (legacy mode) I just get the header & when I export it in .csv (Standard) I get a blanck .csv file.
    I have  checked 'Isolate Report/Page sections' and 'Isolate Group sections'. Still no data in the report.
    refreshed it too.
    I contains sub reports, but not in the page header & footer (I think) & it does not seem to have cross tabs & OLAP grids.
    Any help is appreciated.
    Links to Screenshots:
    Main Report:
    http://picasaweb.google.com/lh/photo/yM9sBexKt5jW9soqaMmHjw?feat=directlink
    One of the Sub-Report:
    http://picasaweb.google.com/lh/photo/0ofa5sABakvZ-nFZp-JSMw?feat=directlink

Maybe you are looking for

  • How do i make a app on my macbook air 13" with netbeans

    netbeans is a development tool for (mac os x intel ) windows and linux os but every time i try to use the app i created it says this is no longer ppc supported

  • Wireless Keyboard functions not working after upgrade

    I have a HP Pavillion Elite m9080a desktop with a wireless keyboard 5189URF Running originaly on Vista but last week I upgraded to Windows 7 Home Premium. My problem is that the feature buttons on my keyboard are not working ie no volume control, CD/

  • Re : Subtotals Font

    HI experts, i have an internal table.. example : customer number I  Invoice no I amount 100 I 001 I 100 100 I 002 I 200 100 I       I 300 200 I 003 I 111 200 I 004 I  222 200 I       I  333 if customer is changing i need to do the subtotal , i have d

  • Where can I get Brother printer drivers?

    I found on the local net the printer I want to share. MFC-685CW I need the drivers, though, so I select to have them installed but get an error to do with network server connection or something. I found them on the Apple site but when I run the 'Brot

  • How to rename desktops

    So I attached a picture of what I need help with, but see how in the picture it says "Desktop 3" under one of the desktops? Is it possible to rename those? thanks