Inner table pointer

Hi all
     I define a structure(not build in database) in program and create a inner table with this structure.
     now, i want to assign a pointer to the inner table and a pointer to a work area.How?
     for example
     data: begin of ty_test1 occur,
               fname type char10,
               fid type char10,
               end of ty_test1.
     data: begin of ty_test2,
               fname2 type char10,
               fid2 type char10,
               end of ty_test2.
I need to define a pointer <fs_table> and assign to the inner table(ty_test1 or ty_test2) according customer select.And process data....
Thanks
Kical

Hi Kical,
Please check the code below:
DATA: BEGIN OF ty_test1 OCCURS 0,
           fname TYPE char10,
           fid TYPE char10,
           END OF ty_test1.
DATA: BEGIN OF ty_test2,
           fname2 TYPE char10,
           fid2 TYPE char10,
           END OF ty_test2.
FIELD-SYMBOLS:<fs1> TYPE ANY TABLE,
               <fs2> LIKE ty_test2.
ASSIGN:ty_test1[] TO <fs1>,
        ty_test2 TO <fs2>.
Sam

Similar Messages

  • When click Previous 10 in inner table it show error Stale Data

    In inner table when it have more than 10 records it will automatic show navigate Previous 10 and Next 10 when click Next 10 don't have any error but when click Previous 10 it error as below (show white page).
    Error: Stale Data
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example).
    Cause:
    The number of displayed records, 10, exceeds the actual number of records, 1, in view object PostFundAM.FaoBudFundSrcsTempVO_FaoBudPeriodsFundTempVL_FaoBudFundSrcsTempVO. Some of the displayed records may have been deleted.
    To proceed, please select the Close Window link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    Could someone help me to solve this problem.
    thanks.

    Yes, there are 2 primary key column, in VO get data from EO.
    I found some solution about navigation as below in dev guid. Is it solution for solve this problem?
    Note: If you have a wide table that requires horizontal scrolling, you can prevent the Next and Previous links from appearing off the screen by setting the Width property of the advancedTable region to 100%.
    Runtime ControlFor event handling, specify the following code in your controller's processFormRequest to check for a navigation event:
    if (GOTO_EVENT.equals(pageContext.getParameter(EVENT_PARAM))
    To check whether the Next link or Previous link is selected:
    if ((tableBean.getName().equals(SOURCE_PARAM)) &&
    (GOTO_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    String value = pageContext.getParameter(VALUE_PARAM);
    if (value != null)
    int val = Integer.parseInt(value);
    int newRangeStart = val - 1;
    if (tableVO.getRangeStart() < newRangeStart)
    // next pressed
    else
    // previous pressed
    thanks.

  • How to transport an inner table to a subroutine with change return content?

    now ,i want to perform a subroutine with a inner table,and i will delete some records from the inner table in the subroutine,but i don't want the change in the subroutine break into my main program.in other words,the content of the inner table which was transported to the subroutine keep no change in the main program after perform the subroutine.is there any way to realize it without announce a new inner table?
    Edited by: p y on Jul 4, 2008 5:33 AM

    SELECT A~EBELN
             B~EBELP
             A~LIFNR
             A~ZTERM
             A~WAERS
             A~KDATB
             A~KDATE
             A~INCO1
             A~INCO2
             B~TXZ01
             B~MATNR
             B~WERKS
             B~LGORT
             B~LOEKZ
             B~KTMNG
             B~NETPR
             B~PEINH
            INTO TABLE T_BODATA
            FROM EKKO AS A
            INNER JOIN EKPO AS B
            ON AEBELN = BEBELN
            FOR ALL ENTRIES IN T_BONUM
            WHERE A~EBELN = T_BONUM-EBELN
              AND A~BUKRS IN R_BUKRS
              AND A~BSTYP = 'K'.
    t_bodata is inner table A,then i will extract vendor info from lfa1 use A-lifnr, and plant address use A-werks ,payment info use A-zterm.every time i have to move the
    corresponding field to a new inner table,delete repeat,and then do select use this inner table.i am boring in announce inner table.but in perform , form we can transfer variant by using and doesn't change it's value,
    is there any method like this by using table?

  • Inner table output to Excel with colored cells?

    Hi!
    I would like to output my inner table into Excel ducoment.
    And it is important to have Excel document with colored cells.
    I have searched for this solution, but could not find...
    Any help will be awarded!
    Kind regards, M.

    Hi,
    You can use function module "XXL_SIMPLE_API"
    or alternatively use "XXL_FULL_API".
    On the import, parameter name "N_KEY_COLS" is used to colour fields. The headings are automatically coloured. 1 is the default value.
    This reply is nearly 1 year after the last post
    Regards,
    Daniel

  • Dynamic table with inner table

    I have the requirement to create a table, where certain table cells contain an inner table and table cells of the master and inner table need to have different background colors. Any suggestions which component I should use (af:table, h:panelGrid, h:dataTable, etc.)? Which component should be used in backing code (RichTable, UIXTable, etc.). Can I use CollectionModel data structure?
    We are using JDEVADF 11.1.1.2.
    |...HEADER_COL1...||.......COL2......||.......COL3......||.......COL4......|
    |row1..............||----------------||.................||.................|
    |.................|||.inner table. |||.................||.................|
    |.................|||---------------|||.................||.................|
    |.................|||inner row 1....|||.................||.................|
    |.................|||inner row 2....|||.................||.................|
    |.................||-----------------||.................||.................|
    |row2..............||................||.................||.................|
    |row3..............||................||.................||.................|
    |row4..............||----------------||.................||.................|
    |.................|||.inner table. |||.................||.................|
    |.................|||---------------|||.................||.................|
    |.................|||inner row 1....|||.................||.................|
    |.................|||inner row 2....|||.................||.................|
    |.................||-----------------||.................||.................|
    ----------------------------------------------------------------------------

    Hi, In ADF 10G there was a ADF Master Table, Inline Detail Table component. Did that get removed in ADF 11G? How do we do inline table in 11G.
    Edited by: user8948183 on Feb 18, 2010 1:50 PM

  • How to make select-option for one inner table

    Hi,
    Who can teach me to  make select-option for a inner table, which let select-option display data from this inner table.
    Thanks in advance.

    Is this what you are looking for?
    report zrich_0002.
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          spras type makt-spras,
          maktx type makt-maktx,
          end of itab.
    select-options: s_matnr for itab-matnr.
    select-options: s_spras for itab-spras.
    start-of-selection.
      select mara~matnr makt~spras makt~maktx
               into corresponding fields of table itab
                      from mara
                            inner join makt
                               on mara~matnr = makt~matnr
                                        where mara~matnr in s_matnr
                                          and makt~spras in s_spras.
      check sy-subrc = 0.
    Regards,
    Rich Heilman

  • Programming insert row VO,but inner-table no data show?

    We have Master-Detail-Detail ViewObject,when programming insert row three ViewObject,why inner-table UI no data show?
    [Source Code ZIP files|http://docs.google.com/leaf?id=0B1l5uiKPTIr_ZTQwYTQ1MTMtZWFlMS00YWQ1LWFiZWQtYzNmODIwNDRlZWJk&hl=zh_TW]
    1.SmpTest0PG.xml click button.
    2.SmpTest0CO.java call MyTestAMImpl.java create Method insert row three ViewObject.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("Test") != null)
    String key = "1";
    Serializable aserializable1[] = { key };
    String quote_id = (String)am.invokeMethod("create", aserializable1);
    if (!quote_id.equals(null))
    pageContext.setForwardURL("OA.jsp?page=/smp/oracle/apps/pos/test/webui/SmpTestPG&Key="+key,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    3.SmpTest0CO.java Forward SmpTestPG.xml.
    4.SmpTestPG.xml Show Data.
    MyTestAMImpl.java
    public String create(String key)
    int vendor_id = 0;
    String vendor_name = null;
    int contact_id = 0;
    int site_id = 0;
    String quote_id = null;
    OADBTransaction trx = (OADBTransaction)((OAApplicationModuleImpl)this).getDBTransaction();
    SmpPoHdVOImpl hdvo = getSmpPoHdVO();
    SmpPoDlVOImpl dlvo = getSmpPoDlVO();
    SmpPoDkVOImpl shvo = getSmpPoDkVO();
    if (!hdvo.isPreparedForExecution())
    hdvo.setWhereClause("1 = 0");
    hdvo.setMaxFetchSize(0);
    hdvo.executeQuery();
    if (!dlvo.isPreparedForExecution())
    dlvo.setWhereClause("1 = 0");
    dlvo.setMaxFetchSize(0);
    dlvo.executeQuery();
    if (!shvo.isPreparedForExecution())
    shvo.setWhereClause("1 = 0");
    shvo.setMaxFetchSize(0);
    shvo.executeQuery();
    String s = key;
    Serializable aserializable[] = { s };
    SmpViewPoHdVOImpl quhdvo = getSmpViewPoHdVO();
    if(quhdvo != null)
    quhdvo.invokeMethod("initQuery", aserializable);
    SmpViewPoDlVOImpl qudlvo = getSmpViewPoDlVO();
    // insert hd
    quhdvo.setRangeSize(-1);
    Row quhdrow[] = quhdvo.getAllRowsInRange();
    for(int i = 0; quhdrow != null && i < quhdrow.length; i++)
    Row hdrow = hdvo.createRow();
    hdrow.setAttribute("DocNum","200");
    hdvo.insertRow(hdrow);
    hdrow.setNewRowState(Row.STATUS_NEW);
    quote_id = hdrow.getAttribute("HEADER_ID").toString();
    // insert dl
    RowIterator dlIter = (RowIterator)quhdrow.getAttribute("SmpViewPoDlVO");
    dlIter.setRangeSize(-1);
    Row qudlrow[] = dlIter.getAllRowsInRange();
    int line_seq = 0;
    for(int j = 0; qudlrow != null && j < qudlrow.length; j++)
    Row dlrow = dlvo.createRow();
    line_seq ++;
    dlrow.setAttribute("LineNum",String.valueOf(line_seq));
    dlrow.setAttribute("ItemNo",qudlrow[j].getAttribute("ItemNo"));
    dlrow.setAttribute("Qty",qudlrow[j].getAttribute("Qty"));
    dlvo.insertRow(dlrow);
    dlrow.setNewRowState(Row.STATUS_NEW);
    // insert shipment
    RowIterator shipIter = (RowIterator)qudlrow[j].getAttribute("SmpViewPoDkVO");
    shipIter.setRangeSize(-1);
    Row shipRow[] = shipIter.getAllRowsInRange();
    int ship_seq = 0;
    for(int k = 0; shipRow != null && k < shipRow.length; k++)
    ship_seq ++;
    Row shrow = shvo.createRow();
    shrow.setAttribute("ShipmentNum",String.valueOf(ship_seq));
    shrow.setAttribute("Qty",shipRow[k].getAttribute("Qty"));
    shvo.insertRow(shrow);
    shrow.setNewRowState(Row.STATUS_NEW);
    return quote_id;
    Edited by: Tony_Huang on Apr 10, 2010 3:59 PM

    public class SmpTestCO extends OAControllerImpl
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OATableBean oatablebean = (OATableBean)webBean.findChildRecursive("SmpPoDlVORN");
    OATableBean oatablebean1 = (OATableBean)webBean.findChildRecursive("SmpPoDkVORN");
    if (oatablebean != null)
    oatablebean.setAttributeValue(UIConstants.ALL_DETAILS_ENABLED_ATTR, ((Object) (Boolean.TRUE)));
    oatablebean.setAttributeValue(OAWebBeanConstants.VIEW_LINK_NAME, "SmpPoDlDkVL1");
    if (oatablebean1 != null)
    oatablebean1.setAttributeValue(OAWebBeanConstants.VIEW_LINK_NAME, "SmpPoDlDkVL1");
    oatablebean1.setInsertable(true);
    oatablebean1.setAutoInsertion(true);
    }

  • Error number assignment table pointer (no.range object HRTABNR)  - LSO_PSV2

    Hi ALL
    On LSO_PSV2, when i create a course:
    Error number assignment table pointer (no.range object HRTABNR)
    Any ideas?
    Thanks in advance
    Sony

    Hi Sony,
    Please go to SNUM t-code and make sure there exists an interval for object HRTABNR.
    Regards,
    Dilek

  • Inner table outer table

    Hi,
    when we join two tables how we decide which is inner table which is out table.
    thanks in advance.

    Not sure what exactly you mean by "inner" table and "out(er?)" table.
    But for Oracle it really doesn't matter if you write a join between EMP and DEPT like this:
    select *
    from emp, dept
    where emp.deptno = dept.deptnoor like this,
    select *
    from dept, emp
    where emp.deptno = dept.deptnoBoth will be executed in the same way.

  • How to get the row reference of inner table of an advance table

    Hi Gurus,
    Using R12.1.3, How to get the handle of inner table row reference of an advance table in controller.
    Regards,
    Zakir

    The javadoc for oracle.jbo.Key is really helpful.
    getAttributeNames()
    getAttributeValues()
    etc

  • LOV inside the inner table not working!!!

    Hi,
    I have a Master Advanced Table and an Inner Detail Table (again Advanced). (I know it is a performance issue, but .. :( )
    I have a customer number LOV in the inner table. But when I select a row from the LOV I am not getting the value returned to my return item. The LOV popup page just stays there without responding to any post request.
    I am on 11.5.10 RUP4.
    Thank you,
    Vin

    Hi,
    Just check if the the View Atrribute of messageLovInput for the inner table
    has updateable property to be set to 'always'.
    Thanks,
    Gaurav

  • READ TABLE pointer ...

    Hi there. How can I assign an itab to pointer to have possibility to make operations on pointer (not itab)?
    [ I ]
    DATA: itab LIKE dbtab OCCURS 0 .
    field-symbols: <ritab> type any table .
    field-symbols: <rline> type any .
    ASSIGN itab TO <ritab> .
    it's ok but now ... when I want to ...
    READ TABLE <ritab> INTO <rline> INDEX G_arow .
    ... I receive You cannot use explicit or implicit index operations on tables with
    types "HASHED TABLE" or "ANY TABLE". "<RITAB>" has the type "ANY TABLE".
    [ II ]
    DATA: itab LIKE dbtab OCCURS 0 .
    field-symbols: <pointer> type standard table .
    field-symbols: <rline> type any .
    ASSIGN (itab) TO <pointer> .
    the ASSIGN statement returns sy-subrc = 4

    Hi,
    change your declaration of
    field-symbols: <pointer> type any table .
    to
    field-symbols: <pointer> type standard table .
    Darren

  • Fixed length outer table with nested repeating group inner table.

    I had to re-create a PDF using tables in an RTF template. It has a fixed 1 page width. However, one of the rows in the template has a nested table with a repeating group. I set the width of the outer table row width to 2". However when I have repeating groups it makes the outer row grow wider than the 2" inches. The option to un-select "automatically resize to fit contents" is grayed out.
    Is there a way to keep the outer table width fixed with an inner repeating group?
    Thanks.
    --Johnnie
    Edited by: Vortex13 on Jun 13, 2012 11:15 AM

    Hi Borris,
    Found the following in the Oracle Documentation under: Oracle8i Application Developer's Guide - Object-Relational Features Release 2 (8.1.6)
    2 Managing Oracle Objects / Using Collections / Collection Unnesting
    URL: http://www.znow.com/sales/oracle/appdev.816/a76976/adobjmng.htm#1002885
    Oracle8i also supports the following syntax to produce outer-join results:
    SELECT d.*, e.* FROM depts d, TABLE(d.emps)(+) e;
    The (+) indicates that the dependent join between DEPTS and D.EMPS should be NULL-augmented. That is, there > will be rows of DEPTS in the output for which D.EMPS is NULL or empty, with NULL values for columns
    corresponding to D.EMPS.

  • Custom Table --Points will be given to your suggestion

    Hi Folks,
    This is a requirment that I have. Any suggestion on where to begin and where to head?
    Create an application that will be used to maintain the custom table.  Read only access of this table to certain user. 
    The custom table maintenance application should allow a user to copy an existing record on the custom table and use this as the basis to create a new record.
    Maintenance application should not allow any records to be deleted.  Instead, use a flag to indicate whether that record is active or inactive.  When adding an asset, the system needs to check the flag on the corresponding record on the custom table to verify it is an active record.
    Maintenance application must verify that any information entered in the new custom table is valid.  The following fields must be validated:
    Company Code
    Asset Class
    evaluation group
    All Depreciation Keys & Lives
    When creating an asset, the input screen requires asset class and company code be entered.   The user should not be allowed to go to the next screen until the combination of asset class and company code has been validated against the custom cross-reference table. 
    When entering the asset class, the lookup should show only the valid asset classes for the entered company code, assuming the company code has been provided by the user.When adding a new record to the custom cross-reference table, the status flag should be defaulted to active. 
    My thinking is I will create a Z table and have the ABAP team create a custom
    T-code that will maintain this table and give the access to the user specified by the business. What user exit, if any would you think that needs to be maintained in the table for populating certain asset class/evaluation group relevant to the company code or vise versa ? My main question is about how do I maintain the table.
    Thanks in Advance for any info you provide and everyone will get points for the relevant info that they provide.
    Rob

    Thanks both of you. As a functional guy, I guess I should only mention what tables and fields will be affected for the creation of the new custom table. And do I need to mention anything about the maintenance application or ABAPers will be well aware what they have to do to create the maintenance application?
    My thinking is I will tell the ABAPers to create the maintenance application (isn't this a custom T-Code ? ) And once they create this custom T-code, I will tell them that it will be used against the custom table to verify the validity of the data in that custom table. Also, 2 sets of role are to be defined and these are to be linked to this custom T-code (probably the role of security). one of the roles maintains the data in the custom table through copying and creating the asset master record from the custom table and the other role has the read only access.
    Also, for example if asset class = 0001 and company code = 0001, my requirement is to make sure that only evaluation group 2 that is valid for the combination of asset class 0001 and company code = 0001 be populated, when a user presses F4 and tries to choose one set of evaluation group 2. Does this make sense? Well, do we need user exit for this? My thinking is because evaluation group is not the function of asset class and company code. so, if someone has to select the evaluation group, they will be shown the list of evaluation group that have been defined in config (as I understand, evaluation groups are not assigned to company code/asset class directly in the config, just like business area is not assigned to company code directly). Any suggestions? let me give you the requirement once again and may be you can figure out a little bit better.
    <b><b>Provide a method to maintain a cross-reference table of valid codes as provided by the business.  Depreciation keys and lives will be determined based on a combination of company code, asset class, and equipment type.  
    Create an application that will be used to maintain the custom table.  The table will be updated by the Centralized Fixed Assets role that will reside in Corporate Accounting.  The Fixed Assets Business role will need read-only access to the table. 
    The custom table maintenance application should allow a user with the Centralized Fixed Assets role to copy an existing record on the custom table and use this as the basis to create a new record.
    Maintenance application should not allow any records to be deleted.  Instead, use a flag to indicate whether that record is active or inactive.  When adding an asset, the system needs to check the flag on the corresponding record on the custom table to verify it is an active record.
    Maintenance application must verify that any information entered in the new custom table is valid.  The following fields must be validated:
    Company Code
    Asset Class
    Equipment Type
    All Depreciation Keys & Lives
    GL Account (If it is determined that this will reside on the custom table)
    If any of the fields are not valid, as determined by the validation above, return a message stating information is not valid.
    When creating an asset, the input screen requires asset class and company code be entered.   The user should not be allowed to go to the next screen until the combination of asset class and company code has been validated against the custom cross-reference table. 
    When entering the asset class, the lookup should show only the valid asset classes for the entered company code, assuming the company code has been provided by the user.
    When selecting the equipment type, only display valid equipment types for the company code and asset class that were previously selected.
    When a depreciation key is assigned to an asset, verify that it is a current valid depreciation key by checking the effective dates of that depreciation key prior to assigning to an asset.
    Exception to standard field value assignments: 
    In addition to company code, asset class, and equipment type, when Asset_Class = RT_CC and Equip_Type = 0201, then the salvage value will be $2500.
    Exception to standard field value assignments: 
    In addition to company code, asset class, and equipment type, when Asset_Class = RT_CC and Equip_Type = 0205, then the depreciation keys for area 10 is ZDYC and area 11 is ZNYC.</b>
    Thanks again for your time to look at my issue, and I really appreciate your suggestions.
    Rob

  • Find out the users who are performing operation on a table - point of time

    Can anyone help me to find out who is performing a table level operation on some table at a time. For ex., table "emp" at a point of time who are all the users connected and accessing this table as i am getting a "resource busy" when i try to drop an index.
    Regards,
    G.Santhoshkumar.

    You could try something like the following :
    SYS@db102 SQL> select username, sid, serial#
      2  from v$session s, v$locked_object l, dba_objects o
      3  where s.sid = l.session_id
      4  and l.object_id = o.object_id
      5  and object_name = 'EMP';

Maybe you are looking for

  • [SOLVED] Optical drive no longer detected

    Edit:This is so stupid. I had it disabled in BIOS. I don't remember doing it. I apologize for the noise. I don't know when this happened, but fairly recently. Maybe with linux-3.2 or kmod. My optical drive is no longer detected. This is what I found

  • How do i do the replacement by reading from a file ?

    The multibyte representation in cloumn 2 in the input file is encoded in UTf8 format. I have the code to get the code point value from a multibyte representation. But i am not sure how to do the same when reading from a file. A better explanation of

  • Calculating the Size(KB) in the explain plan....

    Hi I executed a sql statement in SQL*PLUS and having enabled the tracing in OEM , among others , I read the Size in KiloBytes which the 'TABLE ACCESS FULL' segment of the explain plan returned..... This number is 5.998,193KB I used the vsize built-in

  • Firefox Android Locks Up Samsung GS5

    Cant stop Firefox Android from stopping working or freezing up on my Samsung GS5. Sometimes it hangs so hard i have to remove the battery to reboot my phone. Never had problems with my GS3 or my Tab2 devices. But galaxy S5 just hated this browser. I'

  • How to create segment

    Hi experts, I am getting XML file in that one field is there that is RIGENO. Based on unique field value  i need to create E1EDK03 segment in the under the idoc i tried with the logic RIGENO---->removecontext>splitvalue-- >idoc i am getting unexpecte