Regarding the table type

hi,
this is the requirement
iam selecting a field from a data base table and passing that field to an import parameter of a function module.
the type of the import parameter is table line type.
how to pass data to that variable which of table type.
table type : /SAPAPO/RESID_TAB. "there is a field of type this in FM
DATA : LOC_IT_RESOURCE type /SAPAPO/RESID_TAB .
DATA : L_IT_RESOURCE like /sapapo/res_head-RESUID.
now if i have to pass value from L_IT_RESOURCE  to LOC_IT_RESOURCE
how shd i assign value?
can anyone suggest an answer for this.
thanks in advance

Move individual common values from one table to another table ..
using LOOP .. ENDLOOP.
Some fields will be common in both table...
LOOP AT L_IT_RESOURCE.
move common values to wa of LOC_IT_RESOURCE
append wa to LOC_IT_RESOURCE.
ENDLOOP.
reward if useful
Regards
Prax

Similar Messages

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Which table lists the table types of a system

    Hi!
    I know that DD02L contains which tables there are in the system. But which table contains which table types that are in the system?
    Regards Anders

    DD40L                          Table types (internal tables defined in DD)
    DD40T                          Text on table types
    DD42S                          Key fields for table types (internal tab. define
    DDTYPES                        Table of all Dictionary types and classes
    DDTYPET                        ABAP/4 Dictionary: Texts for type groups

  • How to display name of the table and the description and the table type

    Hi,
    Can you people tell me how to display the name of the table and the description and the table type (View, structure, etc...) used in the program.
    I want to display in a list.
    Kind Regards

    use this program
    TABLES : TSTC, tstct.
    TABLES : DD03l, DD02l.
    DATA : Program like sy-repid.
    DATA : BEGIN OF I_FINAL OCCURS 0,
    tabname LIKE dd02l-tabname,
    TABCLASS LIKE dd02l-tabCLASS,
    TEXT LIKE DD02T-DDTEXT,
    END OF I_FINAL.
    DATA : BEGIN of ITAB Occurs 0,
    name like dd02l-tabname,
    END OF ITAB.
    DATA : TCD(100) TYPE C.
    DATA : var1 LIKE dd02l-tabname.
    DATA : DESC LIKE TSTCT-TTEXT.
    selection-screen skip.
    SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : r1 RADIOBUTTON GROUP r DEFAULT 'X'.
    Parameters : Tcode like sy-tcode.
    selection-screen skip.
    PARAMETERS : r2 RADIOBUTTON GROUP r.
    Parameters : Prog like sy-repid.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.
    select-options : Type for dd02l-tabclass .
    SELECTION-SCREEN END OF BLOCK B1 .
    at selection-screen.
    if r1 = 'X' and Tcode is initial.
    message e001(00) with 'Enter Transaction Code' .
    elseif r2 = 'X' and Prog is initial.
    message e001(00) with 'Enter Program Name' .
    endif.
    START-OF-SELECTION.
    if r1 = 'X'.
    Prog = ' '.
    select single * from TSTC where tcode = tcode.
    if sy-subrc = 0.
    program = TSTC-PGMNA.
    select single TTEXT from tstct into desc where tcode = tcode and SPRSL = 'E'.
    else.
    Write :/ 'Invalid Transaction Code'.
    exit.
    endif.
    elseif r2 = 'X'.
    Tcode = ' '.
    program = Prog.
    endif.
    CALL FUNCTION 'GET_TABLES'
    EXPORTING
    PROGNAME = Program
    TABLES
    TABLES_TAB = itab.
    if itab is initial.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    ELSE.
    PERFORM : categorize.
    endif.
    END-OF-SELECTION.
    LOOP AT I_FINAL.
    WRITE :/4 I_FINAL-tabname COLOR 2 INTENSIFIED OFF NO-GAP HOTSPOT ON, 35 I_FINAL-TABCLASS COLOR 2 INTENSIFIED OFF NO-GAP,
    50 I_FINAL-TEXT COLOR 2 INTENSIFIED OFF NO-GAP.
    ENDLOOP.
    AT LINE-SELECTION.
    TCD = SY-LISEL.
    var1 = TCD+3(30).
    set parameter id 'DTB' FIELD VAR1.
    call transaction 'SE11' and skip first screen.
    TOP-OF-PAGE.
    WRITE :/45 'TABLE DETAILS RELATED TO THE TRANSACTION CODE' COLOR 7 .
    WRITE :/2 'DATE : ' COLOR 1, SY-DATUM COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TRANSACTION CODE : ' COLOR 1, Tcode COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TCODE DESCRIPTION : ' COLOR 1, desc COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'PROGRAM NAME : ' COLOR 1, PROGRAM COLOR 1 INTENSIFIED OFF NO-GAP.
    SKIP 1.
    WRITE :/1(140) SY-ULINE.
    WRITE :/4 'TABLE NAME' COLOR 5 INTENSIFIED OFF NO-GAP,35 'TABLE TYPE' COLOR 5 INTENSIFIED OFF NO-GAP,
    55 'DESCRIPTION' COLOR 5 INTENSIFIED OFF NO-GAP.
    WRITE :/1(140) SY-ULINE.
    *& Form categorize
    text
    --> p1 text
    <-- p2 text
    FORM categorize .
    SELECT dd02ltabname dd02ltabCLASS DD02T~DDTEXT
    FROM dd02l INNER JOIN DD02T ON dd02ltabname = dd02Ttabname
    INTO TABLE I_FINAL
    FOR ALL ENTRIES IN itab
    WHERE DD02L~TABNAME = ITAB-NAME AND TABCLASS IN TYPE AND DDLANGUAGE = 'E'.
    if sy-subrc <> 0.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    endif.

  • Regarding the tables

    hi,
      i am fetching data field from the table.
    it consists of some 10 dates,i want to get the recent date among them.
    can any one help with the code.
    it is very urgent.
    thanks in advance

    Hi,
    Can you be little clear with your problem,
    Not sure if this is what you want but still check this out.
    DATA: itab type table dats with header line.
    APPEND dat1 to itab.
    Append all your dates to ITAB.
    SORT ITAB DESCENDING.
    READ TABLE ITAB INDEX 1.
    write: itab.
    Regards,
    Sesh

  • How to access the table type field in the structure

    Hi All,
    I have a BADI CRM_MKT_ADR_SEARCH and a method CHANGE_SEARCH_RESULTS in this method I have a parameter CT_BP_CP_CHANNEL .This parameter has type CRMT_BP_CP_CHANNEL_TAB(this is table type) this has the line type CRMT_BP_CP_CHANNEL(this is structure) in this line type we have one field addrnumber.How to access this field in my method?Please help me in this regard.

    data lw_tab type CRMT_BP_CP_CHANNEL.
    loop at CRMT_BP_CP_CHANNEL_TAB into lw_tab.
       lv_field = lw_tab-addrnumber.
       <further processing>
    endloop.

  • Regarding the Time type

    Hello,
    I am note able to find, where the value comes in the time Type 9310. HRS field is compared based on this value.
    9310 is attendance bonus time types not able to find where the value puts in and how?
    Can you please put some light on this.
           HRS=CZAB10 Set
           HRS?0      Decision op.     HRS
             >
               VARSTFDYPP 1st day of pay.per?
                 N
                 Y
                   VARSTMOD W ORGMO T510S
                       HRS=O9310  Set
                       HRS?1      Decision op.     HRS
                           ADDDB9320  Add to day balance
                         =
                           ADDDB9321  Add to day balance
                           HRS=1      Set
                           ADDZL 4211 Add to table ZL
                         >
                           ADDDB9321  Add to day balance
                           HRS=1      Set
                           ADDZL 4210 Add to table ZL
                     01
                     03
                     05
       Z
    Thanks & Regards,
    HRM123

    Hi,
    HRS=O9310.   Means 9310 is coming from previous month balance table SALDO.
    To find 9310 there are 2 options
    1. Use RPDASC00 Report: Enter your Schema in the selection screen. Then All the subschemas and Rules will be formatted in one list. In that search '9310' timetype. You may get where it is populated.
    2. V_T555A: Check the other timetypes whether other timetype Period Balance is transferred. 
    Hope this helps.
    Pradeep.

  • Regarding the table control in bdc

    Hi Abap Gurus,
    my requirement is how to extend the table control in bdc? i have searched in the sdn but not found the proper code.
    i think we have to use the =P+ code .  if possible post the sample code.

    Use the search tool, or go to [How to scroll a table control?|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F] in [Batch Input FAQ |http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ] (not every transaction uses the same code)
    Regards,
    Raymond

  • Regarding the Message Type and IDOCS related to IS-Banking

    Hi Gurus,
    can any one provide me the Message Type and IDOCs related to IS-Banking.
    Regards.
    Kiran kumar.

    Hi,
    Refer this link,
    http://www.stylusstudio.com/edifact/d04b/BANSTA.htm
    Hope it helps you.

  • Regarding the table cdhdr

    Hi All,
      i want to see the changes made to the salesorder in CDHDR table how can i see i.e what are the values  need to pass to the CDHDR table and in which fields in table i need to pass,
    Regards
    krishna

    Call transaction SCDO you will get a list of document objects, look for "Sales document" you get the code : VERKBELEG.
    You could also call transaction SE16 on table TCDOB "Objects for change document creation", and select the record with TABNAME = 'VBAK' or 'VBAP'.
    If you look the data in your system, yon can find how to fill the OBJECTID field. Its VBAK-VBELN in internal format (that is with leading zeroes)
    Else go back to SCDO and display "Generation Information", you get the update task function module that updates the database "VERKBELEG_WRITE_DOCUMENT". Go to SE37 and use Where-used you will get the calling programs, here only a routine CHANGE_DOCUMENT_CREATE of program include MV45AF0C_CHANGE_DOCUMENT_CREAT call the function module, double-click on the call  and you find the code
    MOVE VBAK-VBELN TO DA_OBJECTID
    Regards

  • Regarding Table type..

    Hi,
    I used to declare internal table as given below and use them in the program,
    Data : int1 type Mara.
    Data : int2 like Mara.
    But recently i saw a syntax as given below,
    Data: <internal table name> type <Table type>.
    What is table type?
    What is it use when declaring with internal table?
    I saw table type in SE11 and entered MARA in table type but i got information that "No objects correspond to the selection criteria". Please give me example for "table type".

    Hi,
    Check this out......
    You can specify the table type <tabkind> as follows:
    ANY TABLE->
    1.INDEX Table.
    2.Hashed table.
    In INDEX TABLE->
    1.STANDARD TABLE.
    2.SORTED TABLE.
    Generic table types
    INDEX TABLE
    For creating a generic table type with index access.
    ANY TABLE
    For creating a fully-generic table type.
    Data types defined using generic types can currently only be used for field symbols and for interface parameters in procedures . The generic type INDEX TABLE includes standard tables and sorted tables. These are the two table types for which index access is allowed. You cannot pass hashed tables to field symbols or interface parameters defined in this way. The generic type ANY TABLE can represent any table. You can pass tables of all three types to field symbols and interface parameters defined in this way. However, these field symbols and parameters will then only allow operations that are possible for all tables, that is, index operations are not allowed.
    Fully-Specified Table Types
    STANDARD TABLE or TABLE
    For creating standard tables.
    SORTED TABLE
    For creating sorted tables.
    HASHED TABLE
    For creating hashed tables.
    Fully-specified table types determine how the system will access the entries in the table in key operations. It uses a linear search for standard tables, a binary search for sorted tables, and a search using a hash algorithm for hashed tables.
    Regards
    Sujit Pal.

  • What is the maximum rows allowed in PLSQL array table type?

    Hi,
    I have a procedure and it contains the cursor which will fetch more than 500 records. And i have 5 output parameters to store the values coming from the cursor. I don't want to store that into custom table. I want to save it one table type array or something like that. Now i want to know what is the maximum storage of array table type? If i store more than 500 data, how will be the performance? Then is there any other way to achieve this? And that should not decrease the preformace.Let me know your thoughts.
    Thanks

    It really depends on what you are planning to do with the records once you return them from your stored procedure, and what client is on the receiving end of the results.
    One option would be to just return a ref cursor and let the client deal with retreiving the rows themselves, whether one by on or by a bulk collect. Another option would be to declare a table of records matching the result set and do a bulk collect into that table type in your procedure and return the table type to the caller. You could also declare a table type for each field in the resultset, bulk collect the records into thos types and return one for each field.
    Personally, I would likely go with returning a ref cursor. Both of the collect the resultset in your procedure and then return collections to the caller methods require memory on the database server to hold the entire resultset and memeory on the client to hold the entire resultset. While 500 records is probably not going to be too bad on memory, if the result set grows, you will run into memory issues at some point.
    John

  • Information on table type datatypes.

    Hi,
    I am working with the table type composite datatype. After I insert the values to the table type declared variable how will I be able to print that or use it in further DML operations.
    example
    create or replace procedure xxx_proc as
    type u_rec is record
    empno number(5),
    ename varchar2(10));
    type m_tbl is table of u_rec index by binary_integer;
    cursor c1 is select empno, ename from scott.emp;
    nokia m_tbl;
    motorola u_rec;
    i number:=0;
    begin
    for j in c1 loop
    fetch c1 into motorola;
    i := i+1;
    nokia(i) := motorola;
    end loop;
    dbms_output.put_line(nokia.first);
    dbms_output.put_line(nokia.last);
    dbms_output.put_line(nokia(2));
    end;
    I execute this proecedure it returns error at 19, how will I print the values.
    Regards
    Jhansi.

    You are driving me crazy
    y.empno(i) := i;This should be...
    y(i).empno := i;
    SQL> declare
      2     type xx is table of emp%rowtype index by binary_integer;
      3     y xx;
      4     i number :=0;
      5  begin
      6     for j in 1..20 loop
      7             i := i+j;
      8             y(i).empno := i;
      9             y(i).ename := 'Mark';
    10             y(i).job := 'Clerk';
    11             y(i).mgr := i+5;
    12             y(i).hiredate := sysdate;
    13             y(i).sal := i* 100;
    14             y(i).comm := i*10;
    15             y(i).deptno := 10;
    16     end loop;
    17
    18     dbms_output.put_line('20 records inserted successfully');
    19  end;
    20  /
    20 records inserted successfully
    PL/SQL procedure successfully completed.It works but i have no clue what in the world are you trying to do ;)
    Edited by: Karthick_Arp on Feb 18, 2009 9:19 PM

  • Problem with table types

    Hi all!
    I'm using a a structure (created in se11) that contains a field that is a table types.
    I use this structure in a Function Module as exportation parameter. I have no problem filling this parameter in the Function Module but I have some problems when i call this function module in other abap report.
    How I can read the data stored in the "subtables" of the exported parameter??
    I tryed with a "LOOP AT parameter-subtable" but there's the problem that the "subtable" has no headerline.
    Someone can help me please?
    thanks in advance!
    R

    Hi,
               Say you have created the table type(TT) as 'ZTABLETYPE' then at the report where you call the FM with TT declare a table as
    data : itab type ztabletype.
    itab = parameter-subtable.
    loop at itab.
    endloop.
    now you would have the values in itab. Hope this solves your problem.
    Regards,
    Bharathy.

  • Multiline attribute vs. table type based attribute in workflow container

    Hi,
    When we are talking about definition of workflow container attribute, you have to choose a type of attribute from a dictionary and have to decide if it is multiline attribute or single line (flat). If we want to define a multiline string-based attribute, we can do it in the following ways:
    — define an attribute type of string and set checkbox on multiline;
    — define an attribute table type of string and do not set checkbox on multiline.
    My question is:
    Is there any difference between these two approaches, described above (flat type + multiline vs. table type + single line)?
    Thanks.

    I don't think that there is any difference. If you set a table type as container element data type, the multiline checbox is checked automatically (and you cannot change that). So eventually the table type container element is the same as a structure type container element with multiline checkbox checked.
    EDIT: Or does it behave differently for you?
    Regards,
    Karri

Maybe you are looking for

  • Create document with PL/SQL xml parser

    Hello, I'm trying to create a document with PL/SQL package xmldom on 8.1.7 and write to a file. The problem is that my file is empty when it's created. Can anyone send me an example of this simple problem or fullfill my example so it's works. As you

  • Microsoft word not opening

    Hi. my microsoft word 2008 was working fine a few months ago and when i tried to open it it crashed, no error message, no nothing. I can't reinstall because this mac I bought off someone. please help. P.S. all the office apps don't work

  • 9.0.4 to 10.1.2 upgrade text fields moved

    We upgraded from 9.0.4 to 10.1.2 forms. In one application some of the text fields moved up a small amount - 1/10 of an inch or so. This does not present a problem on some forms, but on others text fields begin to overlap with with text. I thought ma

  • System installer disk

    i have heard about using your system installer disk to "clean-up" your mac. i have two disks, is it the first or second? and is this the correct route: 1. start mac using disk: (do i insert the disk as the computers turning on.) 2. run app and check/

  • Email-to-iMessage gateway?

    Is there an email-to-iMessage gateway, i.e. a way to send an email to a special address and have it show up on iMessage? E.g. there are email-to-sms gateways where sending email to [email protected] sends it as an SMS to a Verizon phone. Is there som