Using sort sequence

I have a sql report. I have enabled sorting for all columns through Report Attributes tab. Didn't pick anything in sort sequence.
When I run the report, it sorts results based on first column. That I understand because apex requires one sort sequence at least and probably by default it sorts by first column.
I then set sort sequence as : 1desc, 2
Still the results are same. I don't see any effect of sort sequence. What should I do?
Also, is it possible to allow user to sort based on multiple columns together just as we do in order by col1, col2?
But also want to keep sorting enabled for all columns.

Probably a better-er chance of getting some help here:
Oracle Application Express (APEX)

Similar Messages

  • Is there a way to enforce the use of sequences

    is there a way to stop someone from inserting an id without using the sequence?
    CREATE SEQUENCE id_seq
       START WITH 1;
    CREATE TABLE test_table (id_seq NUMBER (4) PRIMARY KEY);
    INSERT INTO test_table
         VALUES (id_seq.NEXTVAL);
    INSERT INTO test_table
         VALUES (2);
    INSERT INTO test_table
         VALUES (id_seq.NEXTVAL);gives us
    ORA-00001: unique constraint (DSAMSTRC.SYS_C0091648) violated
    as it should
    however is there a check constraint of some ilk that ensures that the user is using the sequence when doing inserts?
    so that the second insert
    INSERT INTO test_table
         VALUES (2);gives me some sort of check constraint violation that I'm not using the id_seq.NEXTVAL ?

    Justin:
    One minor problem with your trigger. If the "bad" insert is the first thing done in the session you get:
    SQL> insert into test_table values(25);
    insert into test_table values(25)
    ERROR at line 1:
    ORA-08002: sequence ID_SEQ.CURRVAL is not yet defined in this session
    ORA-06512: at "OPS$ORACLE.TRG_TEST_TABLE", line 4
    ORA-04088: error during execution of trigger 'OPS$ORACLE.TRG_TEST_TABLE'If you want to raise an exception instead of just silently using the sequence as Frank suggests you need something more like:
    create trigger trg_test_table
       before insert on test_table
       for each row
    declare
       l_currval integer;
       no_currval exception;
       PRAGMA EXCEPTION_INIT (no_currval, -8002);
    begin
       select id_seq.currval
       into l_currval
       from dual;
       if( l_currval != :new.id_seq ) then
          raise_application_error( -20001, 'Hey!  Use the sequence' );
       end if;
    exception
       when no_currval then
          raise_application_error( -20001, 'Hey!  Use the sequence' );
    end;John

  • Sort Sequence for Product Catalogue ISA B2B

    Hi there
    I'm trying to find another way of sorting items within a catalogue area. As it is in the standard system , the products are simply sorted according to the Product number (acceding).
    The requirement is to be able to rearrange the sequence according to alternate means such as product description. So that when it comes to browsing the product catalogue in the web shop the specific sort sequence is reflected.
    we are using CRM4.0 E-Selling B2B
    thanks in advance

    Thanks for the responce,
    No, we use Both Manual and Automatic too.
    In this program can you re-import or is that only used for first time uploads ?
    secondly does the sequence of products, within a catalogue area remain as it is in your spread sheet after the upload, or does it revert back to the accending oprder of the product numbers ?
    thanks

  • Sort sequence

    Hello,
    I have an internal table and am trying to sort the table by three fields. The internal table contains some 400 records and all the three fields that are used in the sort have same values for all the 400 records. I am expecting that the internal table ignore the sort and maintain the order of the 400 records ( 1 - 400 ) but instead it simply reverses the contents i.e after sort the internal table holds values from 400 - 1.
    This is not my custom code and it is in one of the standard program of SAP. I am just wondering why the sort gets reversed irrespective of the fact that all the three fields specified in the sort has same values for all the 400 rows. Can some one throw some light?
    Thanks.
    Prem

    Hi,
    There is nothing mentioned in the same. It is simply sort ( internal table ) by field 1 , field 10 , field 14.
    There are fields in between the sort fields i.e the table is sorted by field1, field 10 and field 14. If all these fields are the same would the system consider a different sort sequence i.e Field 2 , field 3 etc.I am really not sure how the internal table gets sorted in this condition.

  • How to read sort sequence and other properties of a specification in Cg02 .

    hello ,
    i need to update the specification properties in CG02 basing on sort sequence  for hazards and mariane pollutant of a specification.
    do we have any standard Bapi or Fm to read the properties of Specification .
    thanks for your help
    Ananta

    well -
    specifications are rather complicated - there are many tables linked by internal keys. As most of them (and all in the folowing overview) begin with 'EST' I only use the subseqent letters - so table ESTRH is written as RH below.
    Here an -  uncomplete - overview
    Header: RH
    2nd level:
    - RR References
    - RI Identifiers
    - MJ Material Joins
    - VH Valuation Headers (containing field ESTCAT for valuation type)
    3rd level:
    - VA - Valuation (instance - containing sequence number (field ORD - non unique!)
    4th level - data of the valuation:
    - PR Data stored in class system (such as regulation, DG-Class)
    - DU Usage
    - VP Components
    - 0F Transport Classification (containing Hazard Inducers)
    In general you can determine the related table if you look at the technical info at CG02. The structure name will be like
    "RCGxxIOT" where xx stands for the last two letters of the table ESTxx. The structure of interfaces in FUGR C1F5 are defined with a similar pattern: ESPRH_APIxx_TAB_TYPE.
    To read the data, you may use FM C1F5_SPECIFICATIONS_READ  which has sufficient documentation. You may refer to the documentation of obsolete FM C1F2_SUBSTANCES_READ as well.
    A good alternative is  BAPI_BUS1077_GETDETAIL - as this is a BAPI Function it should work after an upgrade while FM of C1F5 migh make some adaption necessary.
    However - it will take some days to understand both - the data model of specifications and the related FMs. I personally would recommend a developer familar with this 1yr+ before asking for implementations that are not only reading data - but they are hard to find....
    have fun!
    hp

  • Sort sequence changes for batch determination

    Dear pankaj
    my client already using the "batch number" acending order sort method.
    now i have to change to the FEFO concept.
    i have to create new sort sequence in CU70..........?
    because i deleted the existing one in CU71 and enter the FEFO .but it is not working.
    PLEASE GIVE THE HIGH PRIORITY
    regards

    hi pankaj again i am distrubting you
    1)The character and class are already existing for shelf life expiry so i think no need to create again.
    2)my client using class type 22 (MCH1) for FIFO method.now i am using the same class type.
    3) In CU70 i created one new sort sequence by coping the existing one and change the name.
    4) Sort rule is maintaining the plant level.already the are maintain the "0" value in the selection type in MSC1.
    5)In IMG side ,i maintained the strategy type for production and inventory.
    still i have problem.
    for normal goods issue MB1A-261 (based on the manual reservation) .If i put * in batch no column,then it will take the sort sequence.but it is not giving.if i gothough the WITH OUT BATCH view it is giving the all batches by order.
    If i check the batch details of the received batch,it has "INCOMPLETE" status.
    what i have to do?
    please reply me

  • Barchart sort sequence

    I have produced a template which outputs a stacked bar chart which outputs the data on the x axis in a random sequence rather than in order. What do i need to do to apply a sort sequence to the chart?
    Edited by: mike_p on Oct 23, 2009 4:36 PM

    Hi Tim,
    Your answer makes sense - although I may need to use the approach of amending the graph code if other graphs are needed. I looked at the code from my graph & it doesn't match yours - mine looks like:
    <DataValues>
    <xsl:for-each-group select="//ROW" group-by="./AGE_RANGE" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="G1" select="current-group()" />
    <RowData>
    <xsl:for-each-group select="//ROW" group-by="./IMPLANT_YEAR">
    <Cell>
    <xsl:value-of select="count($G1[(./IMPLANT_YEAR=current()/IMPLANT_YEAR)]/PATIENT_NO)" />
    </Cell>
    </xsl:for-each-group>
    </RowData>
    </xsl:for-each-group>
    </DataValues>
    The value I would like to sort on is implant_year
    where would I put the sort statement in this?
    Thanks,
    Mike

  • AFS Sort - Sequence  (table J_3ASORT)

    We are in the process of upgrading from SAP 4.5B (AFS 2.5B) to ECC 5 (AFS 5).  Table J_3ASORT has been marked as 'obsolete' by SAP and no new/substitute table is mentioned (in the SAP documentation nor notes - that I could find) that will contain data that I can use in its place.
    J_3ASORT is used in many of our customer applications to control the sequence of our sizes / dimensions as they are presented on the screen or report.
    If I let the screen display in the sequence based on the dimension then we will get (for example):
    Dimension value Sort sequence
    1X              00001350    
    28              00000100    
    2X              00001400    
    30              00000200    
    32              00000300    
    34              00000400    
    36              00000500    
    38              00000600    
    3X              00001500    
    40              00000700    
    42              00000800    
    44              00000900    
    46              00001000    
    48              00001100    
    4X              00001600    
    50              00001200    
    52              00001300   
    The dimensions are not in the correct 'size' sequence, but rather they are in the ASCII sort sequence.
    When I use the sort sequence, I get the better readable version of:
    Dimension value Sort sequence
    28              00000100    
    30              00000200    
    32              00000300    
    34              00000400    
    36              00000500    
    38              00000600    
    40              00000700    
    42              00000800    
    44              00000900    
    46              00001000    
    48              00001100    
    50              00001200    
    52              00001300    
    1X              00001350    
    2X              00001400    
    3X              00001500    
    4X              00001600   
    Short of creating a new Z table does somebody know of a table that can be used to the same effect of being able to assign a sort sequence to the various dimensions?
    I very much appreciate your time and effort.
    Henry

    Henry,
             Did you try out this note - Note 856352 - AFS 5.0 upgrade: Wrong values order for grid characteristics. Now in AFS 5.0 the characteristics maintenance is thro ct04. The dimension sort sequence for the relevant grids are now maintained in the following table - J_3APGDI . I guess you will have to populate this table using your dimension and grid relationships.
    I hope this piece of information was useful to you.
    Regards,
    Gary

  • Using sort variables

    Hi All:
    I am new in LE topics and I would like to ask you what is the use or principal functionality of the sort variables within storage bins as part of warehouse management?
    Thanks for your help
    Regards.

    Hi,
    You can use this field to help in Storage space optimization. I am copying SAP Help here.
    Define Sort Sequence for Putaways (Cross-line Stock Putaway)
    If you do not want the SAP system to carry out the search for a suitable storage bin according to the numerically ascending
    sequence of storage bins, you can influence the sequence of storage bin allocation using this cross-line putaway method. 
    With cross-line putaway, you can prevent the danger of one-sided loading into the warehouse and, at the same time, have the
    putaways carried out efficiently.
    You can set up cross-line stock putaway for the putaway strategies empty bin and pallets. You can also set up cross-line stock
    putaway for storage types with the putaway strategies addition to existing stock or bulk storage, since the system searches for
    an empty bin if the search for a bin for addition to existing stock is unsuccessful.
    Default settings
    In the SAP standard system, sample entries are preset for warehouse number 001 and storage type 001.
    SAP Recommendation
    If you wish to use the "Cross-line putaway" strategy, you must activate the strategy before adding the storage bins. If you
    activate this strategy after bins have been created, the control fields and indicators for existing storage bins will not be filled properly.
    If you must change the cross-line putaway method for storage types in which storage bins have already been created,
    you must change the affected storage bins using the "multiple processing" function.
    Actions
    1. For all storage types for which you wish to set the cross-line placement strategy, set the sequence of the storage bin number
    positions so that the index can be created.
    2. If you want to change the sequence of the number positions of the storage bins for index creation in a storage type where the
    storage bins have already been generated, you must change the affected storage bins (sort field) afterwards using the "multiple
    processing" function.
    You will find this option in the Warehouse Management menu Master data -> Storage bin -> Change -> Several storage bins.

  • How to use parallel sequence for split the operation qty. urgent or other o

    PP guru
    My scenario is as follows.
    I ve one material suppose…xyz.
    For that material I' ve created bom, routing.
    In routing I' ve mention only one operation. 0010.
    Now I' ve the production order of 1000 kg.
    I want to use two work centers to run this production order. ( e.g.work center a and b)
    In routing I used work center a.
    In short I want split that operation.
    So what I ve to do or use parallel sequence and how???
    or else is there any other option to split the order to two or more machines/work center?
    Pls explain me in brief.
    Regards,
    Ram

    Hi,
      If you want to carry the production with two different work centers , first you need to split the operation qty.
    For this in the order type dependent parameters OPL8
    in the controlling tab page enable the indicator Cost collector
    and set the default rule as PP2.
      Create a Product cost collector with KKF6N.
       Now in the production order , select the operation and choose functions--->>> split.
       Now enter the operation split quantity and execute.
       Now in MD04 you can see two production order.
       In the second production order change the work center in the operation overview as desired and save.
      Regards,
    nandha

  • Use a sequence template multiple times in same project

    I have created a lower-third animated title and saved it as a sequence as it has sound. What I'm confused about it how I import that sequence and use it multiple times in the same project and change the content of the title for each sequence. If I import the sequence and change the title in one instance, it changes the title of all instances. I would like to use the sequence and be able to change each title. I have even tried copying sequences and renaming them but any editing still seems to affect the parent sequence file.
    I know this must be really simple but I'm going round in circles here. Any pointers appreciated.

    Take a look at this thread:
    style sheets for titles?
    I'm not sure if an AFX Live text will bring over the audio, it is not something I have tried.

  • Using Database Sequence in Interface with Union

    Hi Gurus,
    I have Oracle 11gR2 database as my Source and Target.
    When I try to use Database Sequence along with an Interface having set operator like Union , I am getting the following error:
    ODI-1227: Task eSIS_Student_U1_Fact (Export) fails on the source ORACLE connection ESISDW.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-02287: sequence number not allowed here
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
         at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
         at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    Is there any work around to use Database Sequence along with the Interface?
    Regards,
    Sai.

    Hi Arv,
    Thanks for the reply. I tried that also, but still no luck.
    Regards,
    Sai.

  • How to accumlate and use sort in ALV

    Hi
    I am using collect statement for accumalation.
    but it is not working.
    the code is like this:
      IF NOT p_otrstk  IS INITIAL.
        CLEAR it_zresult_tab1.
        LOOP AT it_mard_tab INTO wa_mard_tab.
          l_tabix = sy-tabix.
          READ TABLE it_zresult_tab1 INTO wa_zresult_tab1
            WITH KEY lgort = s_lgort1
                     lgort = s_lgort2
                     werks = s_werks
                     matnr = s_matnr.
          IF sy-subrc EQ 0.
            wa_zresult_tab1-speme = wa_mard_tab-speme.
            wa_zresult_tab1-umlme = wa_mard_tab-umlme.
            wa_zresult_tab1-insme = wa_mard_tab-insme.
            wa_zresult_tab1-retme = wa_mard_tab-retme.
            COLLECT wa_zresult_tab1 INTO it_zresult_tab1.
          ENDIF.
        ENDLOOP.
      ENDIF.
    do i need to use modify? but it is with modify it is giving dump.
    and how to do subtotals in ALV grid?
    the code is like this:
      IF grid1 IS INITIAL .
    Instantiate the grid container.
        CREATE OBJECT g_custom_container
        EXPORTING container_name = 'CCCONTAINER'.
    *Instantiate the grid itself within the container.
        CREATE OBJECT grid1
        EXPORTING
        i_parent = g_custom_container.
       i_appl_events = 'X'.
    Call method of grid1 class object to build/display the grid.
        CALL METHOD grid1->set_table_for_first_display
        EXPORTING
             i_structure_name = 'ZRESULT_TAB'
             is_variant =  variant
            i_save = 'U'
            is_layout = gs_layout
        CHANGING
            it_outtab = it_zresult_tab
            it_fieldcatalog = gt_fcat
            IT_SORT  = VT_SORT
        EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    and in the fieldcatalog
    IF p_some  = 'X'.
      CLEAR: ls_sort.
       t_fcat-no_out     = 'X'.
         ls_sort-fieldname = 'MATNR'.
        ls_sort-subtot    = 'X'.
        APPEND ls_sort TO vt_sort.
    but this is also not working.
    Please help me.....
    Thanks
    Alekhya

    Hi,
    go thru this sample program which uses sort and sums the data
    report  yalv2  .
    declare data areas for listviewer******************
    type-pools:slis.
    data:g_repid like sy-repid,
    gs_layout type slis_layout_alv,
    gt_fieldcat type slis_t_fieldcat_alv,
    fieldcat_ln type slis_fieldcat_alv,
    gt_sort type slis_t_sortinfo_alv,
    gs_sort type slis_sortinfo_alv,
    gt_events type slis_t_event,
    gs_event type slis_alv_event,
    gt_list_top_of_page type slis_t_listheader,
    gs_line type slis_listheader,
    col_pos type i.
    data:begin of itab,
    field1(5) type c,
    field2(5) type c,
    field3(5) type p decimals 2,
    end of itab.
    data:begin of itab1 occurs 0.
            include structure itab.
    data:end of itab1.
    data:begin of itab_fieldcat occurs 0.
            include structure itab.
    data:end of itab_fieldcat.
    initialization.
      g_repid = sy-repid.
    start-of-selection.
      move 'test1' to itab1-field1.
      move 'test1' to itab1-field2.
      move '10.00' to itab1-field3.
      append itab1.
      move 'test2' to itab1-field1.
      move 'test2' to itab1-field2.
      move '20.00' to itab1-field3.
      append itab1.
      do 200 times.
        append itab1.
      enddo.
    end-of-selection.
      <b>perform build_fieldcat.</b> 
      <b>perform build_sortcat.</b>
      perform build_eventcat changing gt_events.
      perform build_commentcat changing gt_list_top_of_page.
      perform call_alv.
    *&      Form  build_fieldcat
          text
    -->  p1        text
    <--  p2        text
    form build_fieldcat .         "data field catalog, explain field desc
                                      "to alv
      fieldcat_ln-fieldname = 'FIELD1'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-key = ' '.                          "subtotal key
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-seltext_l = 'HEAD1'.
      append fieldcat_ln to gt_fieldcat.
      fieldcat_ln-fieldname = 'FIELD2'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-seltext_l = 'HEAD2'.
      append fieldcat_ln to gt_fieldcat.
      fieldcat_ln-fieldname = 'FIELD3'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-ref_tabname = 'MSEG'.
      fieldcat_ln-ref_fieldname = 'MENGE'.
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-do_sum = 'X'.                       "sum upon display
      append fieldcat_ln to gt_fieldcat.
    endform.                    " build_fieldcat
    *&      Form  build_sortcat
          text
    -->  p1        text
    <--  p2        text
    form build_sortcat .           "data sorting and displaying subtotal
      clear gs_sort.
      gs_sort-fieldname = 'FIELD1'.
      gs_sort-spos = '1'.
      gs_sort-up = 'X'.
      append gs_sort to gt_sort.
      clear gs_sort.
      gs_sort-fieldname = 'FIELD2'.
      gs_sort-spos = '2'.
      gs_sort-up = 'X'.
      append gs_sort to gt_sort.
    endform.                    " build_sortcat
    *&      Form  build_eventcat
          text
         <--P_GT_EVENTS  text
    form build_eventcat  changing lt_events type slis_t_event.
    constants:
    gc_formname_top_of_page type slis_formname value 'TOP-OF-PAGE'.
    call function 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = lt_events
    read table lt_events with key name = slis_ev_top_of_page into gs_event.
    if sy-subrc = 0.
    move gc_formname_top_of_page to gs_event-form.
    append gs_event to lt_events.
    endif.
    endform.                    " build_eventcat
    *&      Form  build_commentcat
          text
         <--P_GT_LIST_TOP_OF_PAGE  text
    form build_commentcat  changing gt_top_of_page type slis_t_listheader.
    clear gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'HEADER 1'.
    append gs_line to gt_top_of_page.
    clear gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'INFO 1'.
    append gs_line to gt_top_of_page.
    clear gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'INFO 2'.
    append gs_line to gt_top_of_page.
    endform.                    " build_commentcat
    form top_of_page.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
      exporting
        it_list_commentary       = gt_list_top_of_page.
    write: sy-datum, 'Page no', sy-pagno left-justified.
    endform.
    form end-of-page.
    write at (sy-linsz) sy-pagno centered.
    endform.
    *&      Form  call_alv
          text
    -->  p1        text
    <--  p2        text
    form call_alv .
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM             = g_repid
       I_STRUCTURE_NAME               = 'ITAB1'
       IS_LAYOUT                      = gs_layout
       IT_FIELDCAT                    = gt_fieldcat
       IT_SORT                        = gt_sort
       IT_EVENTS                      = gt_events
      tables
        t_outtab                       = ITAB1
    endform.                    " call_alv
    Regards,
    Sowjanya.
    Message was edited by: sowjanya suggula

  • Error when using sort variant 0005 for RABEWG01 (tcode za353)

    Hi SAP experts,
    I have a problem with program RABEWG01 (tcode za353). When I use sort variant 0005 and execute it, I get this error:
    Table ANLV is not supported in the requested report
    Message no. AB066
    Diagnosis
    You requested sort version 0005 for the current report. The sort version contains a field in table ANLV. However, the report does not process this table. Therefore the sort version cannot access this table and this field.
    System Response
    The report is not executed with sort version 0005.
    Procedure
    Enter a sort version that uses only valid tables. The following tables are supported in the current report:
    ANLAV ANLB
    Can someone help me to explain why ANLV is not supported in the requested report? If we can't use sort variant 0005, why is it there in the first place?
    ==========================================
    Field:
    Company code: 001
    Report date: 30.03.2011
    Dep area: 01
    do I need to add any more entries in the field so that i can use sort variant 0005? thanks!

    Hi,
    note 21719 explains the reason for he error:                                                                               
    " Fields from tables ANLP and ANLV can only be used in a sort version if    
    the same tables are used in the relevant report (currently only the case    
    with reports RAGAFA01 and RAVERS01). If these fields are used in other      
    reports, runtime error GET_WA_NOT_ASSIGNED could occur..."    
    regards Bernhard

  • Using a sequence inside BEFORE TRIGGER

    Hi all,
    I just created a testtable and a sequence to use as a primary key column value for that table.
    I tried to create a BEFORE INSERT trigger on that table and in the trigger i tried to set up the primary key column value using the sequence
    but while compiling i am getting the error "Error(9,30): PLS-00357: Table,View Or Sequence reference 'SEQ_OF_TESTTABLE.NEXTVAL' not allowed in this context"
    My Version:Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    All the objects created with the same user. I would appraciate any help, thanks all
    EDIT
    I solved the problem using the below
    create or replace
    TRIGGER Bef_Ins_On_Testtable
    BEFORE INSERT ON TestTable
    FOR EACH ROW
    declare
    ntemp_id INT;
    BEGIN
    SELECT SEQ_OF_TESTTABLE.NEXTVAL INTO ntemp_id FROM DUAL ;
    DBMS_OUTPUT.PUT_LINE('İNSERTED');
    :NEW.VSURNAME := 'HAKKİ' ;
    :NEW.NID := ntemp_id;
    END;But i wonder why i can use the sequence(just as seqeunce_name.NEXTVAL) in INSERT statement and why cant in trigger?
    Edited by: user9371286 on 31.Tem.2010 04:15
    Edited by: user9371286 on 31.Tem.2010 04:21
    Edited by: user9371286 on 31.Tem.2010 04:27

    Please post your trigger code and your database version ( the result of: select * from v$version; ).
    Put it between tags, so your example will stay formatted.
    (see: http://forums.oracle.com/forums/help.jspa for more examples regarding tags)
    "PLS-00357: Table,View Or Sequence reference "string" not allowed in this context
        Cause: A reference to database table, view, or sequence was found in an inappropriate context. Such references can appear only in SQL statements or (excluding sequences) in %TYPE and %ROWTYPE declarations. Some valid examples follow: SELECT ename, emp.deptno, dname INTO my_ename, my_deptno, my_dept .FROM emp, dept WHERE emp.deptno = dept.deptno; DECLARE last_name emp.ename%TYPE; dept_rec dept%ROWTYPE;
        Action: Remove or relocate the illegal reference."
    +http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/plsus.htm#sthref13592+
    You can find examples of triggers referring to sequences here, by doing a search on this forum or:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ABC1032282                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • WPC: unable to add different resources with the same name into a WPC page

    Hi, I got a WPC problem when adding different KM resources with the same name into a WPC page.  Only one KM resource is able to be added in WPC. For example: There two "article.html" with different content and RID: 1. /company_a/article.html 2. /comp

  • Keyboard problems out of the box with iPhone 3g

    My iPhone 3g is showing strange keyboard behavior, typically starts when launching the SMS app. The "P" and Backspace keys, the keys on the rightmost part of the touch area, are non-responsive. The issue will correct itself after 15 mins or so, but i

  • Pdf with audio files embedded - Acrobat Pro 8 vs Acrobat Reader XI - suggestions?

    Hi, I have a problem with a pdf (containing embedded audio files) created with Acrobat Pro 8. So, two questions for you. 1) When I open it with Acrobat Reader XI, the audio files won't be reproduced. Windows 7 and 8 tell me that there is a codec prob

  • Organizing photos for a search outside of iPhoto

    I have a few hundred family photo prints that I want to scan and restore, with the idea of putting them on a DVD and giving them to siblings so they can print copies as they wish. I need to find a way to make them searchable by date and/or keyword. I

  • What os a system lock pin

    I was watching a movie on my MacBook Pro 13" Early 2011, when the whole display freezed, I tried to force quit but it didn't work and then i held the start button until my laptop switched off. I pushed the start button again and after the laptop swit