How can i assign value to the certain field in dynmic table ?

i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
for eg,
<dyn_table> contains fields of  name age ,now i want assign 'jack' to this internal talbe's field name ,

Hi,
try this:
FIELD-SYMBOLS: <GT_ITAB>      TYPE TABLE,
               <GS_ITAB>,
               <FS>, <FS1>.
DATA: GT_DATA   TYPE REF TO DATA.
DATA: GS_DATA   TYPE REF TO DATA.
START-OF-SELECTION.
  CREATE DATA GT_DATA TYPE TABLE OF PA0002.
  ASSIGN GT_DATA->*   TO <GT_ITAB>.
  CREATE DATA GS_DATA    LIKE LINE OF <GT_ITAB>.
  ASSIGN GS_DATA->*      TO <GS_ITAB>.
  ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
  <FS> = 'Smith'.
  ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
  <FS> = 'Paul'.
  APPEND <GS_ITAB> TO <GT_ITAB>.
  ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
  <FS> = 'Jones'.
  ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
  <FS> = 'Martin'.
  APPEND <GS_ITAB> TO <GT_ITAB>.
  LOOP AT <GT_ITAB> INTO <GS_ITAB>.
    ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
    ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
    WRITE: / <FS>, <FS1>.
  ENDLOOP.
Regards, Dieter

Similar Messages

  • How can I center it in the cell (above big sub-table)

    The "Cross Browser marquee II" at
    http://www.pafoscarhire.com/index.php
    how can I center it in the cell (above big sub-table) ?
    I try but layer goes to the center of page rather than center
    of cell , well ?

    Heh - can't imagine what that's about....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Walt F. Schaefer" <[email protected]> wrote in
    message
    news:f53j7t$asj$[email protected]..
    >I got the same error Murray. And, I might add it was not
    centered. ;-)
    >
    > --
    >
    > Walt
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:f53itb$adt$[email protected]..
    >> Internal Server Error
    >> The server encountered an internal error or
    misconfiguration and was
    >> unable to complete your request.
    >> Please contact the server administrator,
    [email protected] and
    >> inform them of the time the error occurred, and
    anything you might have
    >> done that may have caused the error.
    >>
    >> More information about this error may be available
    in the server error
    >> log.
    >>
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "123polis123" <[email protected]>
    wrote in message
    >> news:f539js$9d$[email protected]..
    >>> The "Cross Browser marquee II" at
    http://www.pafoscarhire.com/index.php
    >>> how can
    >>> I center it in the cell (above big sub-table) ?
    >>> I try but layer goes to the center of page
    rather than center of cell ,
    >>> well ?
    >>>
    >>>
    >>
    >>
    >
    >

  • How To select maximum Value in a specifieid field in internal table.

    How To select maximum Value in a specifieid field in internal table?

    Step : 1
    Sort itab by <Field1> descending.
    Just sort the internal table by the field.
    STEP: 2
    Then read the table at index 1.
    Read table itab index 1.               
    ITAB-FIELD = MAX .                  " Max field will come in the first row of the internal table.
    Regards,
    Gurpreet

  • How can we give values to the variable

    Oracle Forms6i
    Hai All
    I am generating an daily attendance regarding shift basis.In that i have written an ifelse condition it work successfull and but it fetches only 350 row out of 800.
    I have declared a variable and i need to know how to assign values to the variable Pls tell the steps to do.I have done correctly but there is an logic error in my coding.Let give me some steps to solve the problem
    My coding is
    declare
    t_in varchar2(25);
    t_out varchar2(25);
    cursor cur_test is
    select * from dail_att where intime=t_in and outtime =t_out;
    --into t_in,t_out from dail_att; 
    begin
    loop
    go_block('TEST_SRI');
    FIRST_RECORD;
    if :bartime between 0145 and 0630 then
         update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :bardate-1 and intime is null and outtime is not null;
    elsif :bartime between 0630 and 0900 or :bartime between 1130 and 1230 or
    :bartime between 1700 and 1800 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
         elsif :bartime > 1645 and t_in is not null and t_out is null then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE and intime is not null and outtime is null;
    end if;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    NEXT_RECORD;
    END LOOP;
    forms_ddl('commit');
    exception
    when others then
    forms_ddl('rollback');
    message(sqlerrm||dbms_error_Text);
    message(sqlerrm||dbms_error_Text);
    end;
    Regards
    Srikkanth.M

    Hai man
    I have generated a daily attendance roll in oracle forms and it executed correctly but while fetching it fetch some of the records. So i have declared a variable in a block and in my coding.
    For those variable i need to pass values from select statement or using cursor.According to that i can use in my ifelse statement.
    If It is clear Or else see the coding
    declare
    bar_code varchar2(25);
    in_time varchar2(25);-------------------------- these are the variable i going to use in select statement to pass values
    out_time varchar2(25); so that i can use in if else statement.
    begin
    loop
    go_block('TEST_SRI');
    FIRST_RECORD;
    select BARCODE,INTIME,OUTTIME into bar_code,in_time,out_time from dail_att where BARCODE= :Barcode
    and ATTEND_DATE = :bardate;
    if :bartime between 0100 and 0630 then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :bardate-1 and in_time is null and out_time is not null;
    elsif :bartime between 0630 and 0900 or :bartime between 1130 and 1230 or
    :bartime between 1700 and 1800 and in_time is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
         elsif :bartime > 1645 then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE and in_time is not null and out_time is null;
    end if;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    NEXT_RECORD;
    message(:barcode);
    END LOOP;

  • How can I assign authorizations for the Flight list data?

    Hello,
    I am doing the Web Dynpro tutorial for calling BAPIs from Web Dynpro.
    I have finished it successfully but I don't get any data back. When I checked this BAPI with SE37 I receive a message "No Authorization" at the RETURN parameter.
    My question is: How can I assign myself these authorizations?
    I am not a BW person so a step-bystep explanation will be very helpful...
    Roy
    Message was edited by:
            Roy Cohen

    hi jaya....
    1. you need generate the table maintenance using the Menu Utilities->Table maintenance generator
    2. give the authorization group, package, function group, overview screen number etc.
    3.create the table maintenance
    4. now go to se93
    5. give custom tcode and say create
    then enter description , and then
    choose the radio button Transaction with parameters
    6. now enter tcode as SM30 and check the check box skip intial screen
    7. Check all gui support buttons
    8. now go down and enter VIEWNAME from F4 help and value as table name
    9. and add UPDATE(choose it from F4) and value as 'X'.
    VIEWNAME ZTABLE
    UPDATE X
    and save it, now check the Tcode.
    or
    use se80...create a transaction...click transaction with parameters and use SM30 as the basis....set VIEWNAME to the table's name and UPDate to X (no quotes)
    If you find it useful mark the points
    ~~Guduri

  • How to maintain default values to the screen fields.

    hi,
    i m creating screen in se51.
    when i press New button the screen is filled with default values
    nrart = 'h' and proz1 = '100' .
    how can i set default values.
    plz give me a response

    HI,
              You can set default values on to screen fields using SET and GET PARAMETER command, You need to assign a PARAMETER ID for that screen field and then use SET PARAMETER before the screen is called or in the PBO of the screen, you can set default values direcly in PBO of the screen but then you have hard code those value or read the data from database.
    You need to have a TABLES statement to create a strucutre that you used to create your screen fields, then when you set value to these strucutre fields these values will get tranported to the screen fields automatically.
    Regards,
    Sesh

  • How can i get value when the field name is user's defined

    Hi,
    I have a one java method:
    public ResultSet countUserDb(String id) {
    ResultSet rs = null;
    con = dbcon.connect();
    String queryString = ("select count as count from
    db_allocation where user_id='"+id+"'");
    Statement stmt = con.createStatement();
    rs = stmt.executeQuery(queryString);
    When i call it in a jsp file.
    ResultSet counter =db.countUserDb(request.getParameter("id"));
    if(counter.next())
    int x=rs.getInt("count");
    Tomcat said incorrect column name.How can i get the result set when the field name is user's defined.
    Best regards
    Ricky

    You should give the user defined name in the ResultSet.getXXX method to retrieve the column value.
    Example
    SQL:
    Select ename as employeename from emp;
    You should say :
    ResultSet.getString("employeename"); to get the value.
    Alternatively you can retrieve it using column number:
    ResultSet.getString(1);
    Chandar

  • How can I assign filename for the Write Table to XL.vi from NI sample?

    The sample from NI (Write Table to XL.vi) works fine, but always it open a "Book1" as defult then askes to save it later!
    I try to modify it and assign a meaningfull filename so that the user does need to save or rename it ... but I failed!
    Is there an easy way to modify this sample for that purpose? Can anyone help me?
    Thanks.
    Attachments:
    Write_Table_to_XL.vi ‏102 KB

    Hi ATC,
    I modified your vi, it creates an XLS file with the filename you assign (no dialog box).
    You get a dialog box only if the file already exists, but this is normal; if you don't want to have it either, simply delete it progammatically before creating the new one.
    Good luck,
    Alberto
    Attachments:
    Write_Table_to_XL.zip ‏34 KB

  • Assign value to the DFF fields in the OA Page

    Hi,
    I have a requirement to copy customer address defined at the customer level to the contact while creating customer contact in Sales User.
    The page has the address fields like - Address1, Address2, county, state etc. when I open the page in JDev, I can't see these fields defined anywhere. But there is a region under a MessageComponentLayout region and under it one flex item, which is having a View Instance.
    This VO includes all the fields from HZ_LOCATIONS table. But on the page only few fields are visible.
    Can anyone tell me how I can assign the customer address to these DFFs that are visible on the Page.
    Thanks.

    Hi,
    The Address section is rendered using the Address DFF of the Receivables applications. Hope you know the navigation to see the details of the DFF.
    I think the ASN is also using the same, by extending the AR region, /oracle/apps/ar/hz/components/address/webui/HzPuiAddressCreateUpdate.
    What you have to do is, in order to get complete handle to this address section, you have to do the controller extension. That is, write a new controller which extends oracle.apps.ar.hz.components.address.webui.HzPuiAddressCreateUpdateCO class. Using the personalization, set your custom controller class to the region /oracle/apps/ar/hz/components/address/webui/HzPuiAddressCreateUpdate.
    Here is the sample code.
    * Procedure to handle Address1 Field.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void handleAddress1Field(OAPageContext pageContext, OAWebBean webBean, String calledFrom)
    OADescriptiveFlexBean flexBean = (OADescriptiveFlexBean)webBean.findChildRecursive("HzAddressStyleFlex");
    if(flexBean!=null)
    DescriptiveFlexfield descriptFlex = (DescriptiveFlexfield)flexBean.getAttributeValue(FLEXFIELD_REFERENCE);
    if(descriptFlex!=null)
    try
    Segment address1Segment = descriptFlex.getSegment(1);
              address1Segment.setValue("TO_BE_REPLACED");
              OAApplicationModuleImpl applicationModule = (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
              OAViewObjectImpl locationVO = (OAViewObjectImpl)applicationModule.findViewObject("HzPuiLocationVO");
              OAViewRowImpl locationRow = (OAViewRowImpl)locationVO.getCurrentRow();
              if(locationRow!=null)
                   locationRow.setAttribute("Address1", valueBuffer.toString());
                   OAEntityImpl locationEO = (OAEntityImpl)locationRow.getEntity(0);
                   locationEO.setAttribute("Address1", valueBuffer.toString());
    }catch(FlexException flexException)
                   throw new OAException(flexException.toString());
    Use this code as reference and modify this based on your requirement. Thanks

  • How to get the values from the input field of a table

    Hello Friends
    I am having table having one column as InputField and rest are the textview fields
    I input the data and click the button that will add them to a node.
    But what is happening is it is adding the current value to all the fields replacing other filelds.
    Like suppose I am having 3 rows
    In column I input 10
    In column 2 input 20
    In column 3 input 30
    Now it is setting the value 30 to all the 3 fields.
    Can any one tell me the code to set 10, 20 and 30 as different value in a node as entered by me.
    Thanks

    Hi
    i am your scernario as follows
    Context
    TN_node (value node of cardinality 0:N)
                 val1 (value attribute under value node)
                 val2 (value attribute under value node)          
    i have binded Tn_node to table and val1 is textview and val2 is inputfield
    public void wdDoInit()
        //@@begin wdDoInit()
        for(int i=0;i<5;i++)
        IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().createTN_nodeElement();
        wdContext.nodeTN_node().addElement(ele);
        ele.setVa1("val"+i);
        //@@end
    i have a button go in which printing all the values
    public void onActionGo(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionGo(ServerEvent)
        for(int j=0;j<wdContext.nodeTN_node().size();j++)
        //IPrivateTestView.ITN_nodeElement
        IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().getTN_nodeElementAt(j);
    wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa1());
    wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa2());
    Hope this helps,
    If your problem is not solved please post your code like this
    Thanks and Regards,
    Arun

  • How to default a value in the tablecontrol field?

    hi
    i have created a maintenance view for a z table and this table has a currency field. So when i go to SM30 to maintain the z table i want that when the user clicks on NEW ENTRIES button the system should automatically default the currency field to 'GBP'.
    Any idea where to set the default value on a field in the table control or in the maintenance view.
    thanks in advance

    Hi
    Use events in SM30 view
    this thread should be useful
    Code in View?
    regards
    vivek

  • QUESTION: How can I locate all instances of a field in mult tables

    Hi all.
    So im just learning Oracle and I have an interesting question.
    I just learned how you can query things from multiple tables by using the tablename.fieldname in the select.
    My question is this. Lets say you have, oh, 100 tables and you have referenced a field like IDNUMBER in ten of the tables.
    Now I want to write a query to pull the ID number from those tables but I dont remember every table I used it in.
    How can you easilly find all instances of where a field is used in multiple tables? Im hoping I explained this right.

    791443 wrote:
    AWESOME!! THANKS!!You should be aware that this solution only works to the degree that columns are consistently named.
    Consider
    CREATE TABLE supplier
    (supplier_id      number       not null,
      supplier_name varchar2(50) not null,
      contact_name      varchar2(50),      
      CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
    CREATE TABLE purchase_order_hdr
      (purchase_order_id      number not null,
       supplier_number      number not null
       CONSTRAINT fk_supplier
       FOREIGN KEY (supplier_number)
       REFERENCES supplier(supplier_id)
    CREATE TABLE purchase_order_line
      (po_number             number not null,
       po_line_item        number not null,
       vendor_product_code number not null,
       CONSTRAINT fk_supplier
       FOREIGN KEY (supplier_number)
       REFERENCES supplier(supplier_id)
        );So, how do you catch that supplier.supplier_id is the same as purchase_order_hdr.supplier_number or purchase_order_line.po_number is the same as purchase_order_hdr.purchase_order_id?
    No, I don't have a solution, just pointing out that you may not be able to depend on a fully automated solution either. It depend on how rigorous your organization is about enforcing naming standards.

  • How Can I do to add new dateu00B4s field in VBEP table ?

    How can I do to show these fields on the screen of the schedule lines ?
    What exactly do I need to do ?

    Hi,
    you can add a field in a table through Append Structure,that it shoud not populated in screen Find Any user exit is avilable
    Regards,
    Phani

  • How can i find duplicate rows in a field of a table

    hi all,
    how can i able to find duplicate values in a field of a table????
    Regards

    test@ORA92>
    test@ORA92> with x as (
      2    select 1 as p, 'a' as q from dual union all
      3    select 1 as p, 'b' as q from dual union all
      4    select 2 as p, 'c' as q from dual union all
      5    select 3 as p, 'd' as q from dual union all
      6    select 3 as p, 'e' as q from dual union all
      7    select 3 as p, 'd' as q from dual
      8  )
      9  select p, q,
    10  case row_number() over (partition by p order by q)
    11    when 1 then null
    12    else 'Duplicate value: '||p||' of column p'
    13  end as msg
    14  from x;
             P Q MSG
             1 a
             1 b Duplicate value: 1 of column p
             2 c
             3 d
             3 d Duplicate value: 3 of column p
             3 e Duplicate value: 3 of column p
    6 rows selected.
    test@ORA92>
    test@ORA92>
    test@ORA92>cheers,
    pratz

  • How can I assign points to the alternatives in a question?

    Hi! I am building my first quiz in Captivate and I have this little problem I haven´t been able to solve. I want a make a test that meassures how stress you are att work. It looks like a survey, I´ll have about 20 or more questions with the same type of alternatives, no right or wrong alternatives, but you choose the one you agree the most with. The thing is that i want to give a value point to each alternative and be able to have a score at the end. See the example.
    How often do you feel stressed att work?
    1. never : 0 points
    2. one a week: 2 points
    3. three times a week: 3 points
    4. Everyday: 4 points
    Att the end, the score you get tells you how stressed you are, but instead of showing a result in term of points, you´ll get a text giving you feedback and recomendations for better health. Can I do that in Captivate? I haven´t been able to find a way to do that yet...
    Thanks for any help you can give me!

    Hello,
    Tried putting something together that could be possible, concentrated on the workflow. There will be some repetitive tasks to be done however, problem is that a click box cannot stay for a whole project, which means that a click box gets its proper ID on each slide. Will try to explain, it is up to you to judge if this is acceptable, or if you'd go better with a Flash app.
    Created (for the moment, perhaps you'll need more if p.e. for Q1-Q10 you need a separate result for A and for B, result for Q11-Q20...) two user variables:
    v_AClick     to store the number of clicks on A-option
    v_BClick     to store the number of clicks on B-option
    The results can then be used later on for a condition (did not write it yet).
    Created a first slide with these objects:
    dummy Text Caption 'Option A' (will be replaced later on with question text)
    click box covering up this Text Caption, named it (ID) ClickA1 (this is the tedious part, has to be done for each CB; ClickA2, ClickA3...)
    dummy Text Caption 'Option B' (will be replaced later on with question text)
    click box covering up this Text Caption, named it (ID) ClickB1 (this is the tedious part, has to be done for each CB; ClickB2, ClickB3...)
    imported a 'sign' to be showed after the user clicked into the Library, and put an instance to the right of each Text Caption, those were labeled VinkA and VinkB. Very important: set those instances to 'Show for the entire project', which avoids to have them duplicated to each slide, we will hide and show them as necessary.
    button 'Next' which on Succes jumps to next slide.
    The blue Text Caption was for me, to check if the actions were functioning, shouldn't be there in the end file.
    I created a first Advanced action, labeled it HideVink (sorry for the Dutch, Vink = the green symbol), to be triggered on entering the slide:
    Hide VinkA
    Hide VinkB
    Second/third action, labeled A_Action1/B_Action1 to be triggered by clicking on the ClickA1/ClickB2 with these actions:
    increment v_AClick/v_BClick with 1
    hide the other clickbox, thus ClickB1/ClickA1 to avoid that the user could click on both options
    show AVink/BVink
    Here is an example, action A_Action1
    Those two actions have to be duplicated for each Question slide (A_Action2, B_Action2,....). What has to be changed in the duplicates is only the number of the Click Box, that is why I labeled them to make the process easier.
    Now I duplicated the slide as many times as necessary. The actions for button and entering slide are OK, but the actions for the click boxes have to be adapted (tedious).
    Why did I use 'dummy' Text Captions: I should export (File menu) the Text Captions to a Word-document, change the dummy texts (left column) to the real captions (much easier in one doc) and re-import them into the CP-file.
    That was my homework, as promised. Hope it helps, even if you choose to go the Flash-way after all.
    Lilybiri

Maybe you are looking for

  • "Broken" images that can't be deleted

    I have a few broken images when I go into the photo application. They appear as a generic strike out "broken" thumbnail. When I try to remove them by selecting them and choose "delete", it first asks me "do you want to delete xxxx.jpg?". After select

  • Ubuntu 13.10 on a T440 - Wifi, Sound, Fingerprint reader and TrackPoint issues

    I recently got my t440 and put Ubuntu 13.10 on it and have had a few problems pop up. Hopefully someone here can help, or I will find solutions and post here as things get working again. Wifi - I have a Thinkpad  11b/g/n 2x2 wireless card. I do not b

  • How do I get iPad to recognize deletion of a email account?

    I deleted an email account because I forgot the password. I just tried to forward an email message and got an error message saying it could not be sent be cause my deleted account needed a Password. I was using another account that has worked up to t

  • Error on "CREATE MATERIALIZED VIEW"

    I tried to create this materialized view: CREATE MATERIALIZED VIEW mv_cost_est BUILD IMMEDIATE REFRESH complete START WITH to_date(sysdate,'dd/mm/yyyy hh24:mi:ss') NEXT sysdate + 60/86400 disable QUERY REWRITE AS SELECT efm_contratti.contratto_id, ef

  • Importing Word Document as Template

    I would like to use a Word or PDF document as a template for designing of SSRS report. Design and Document layout is better in Word, the canvas in BIDS is not design friendly. So, does anyone know if importing Word or PDF is allowed in BIDS? Regards,