Assignment: Tuple table

Hi SDNers,
I have a main table and a Tuple table is linked to it.
The requirement is to update a field in the Main table with the same value as the record's Tuple member field via assignment. Or any other way.
Thanks,
Priti

Hi Mandeep,
What i understand about the requirement is
Maintable fields
M1 is single value and type tuple
M2 is type text
M3 is type text
Tuple T1
tf1(display field)
tf2  type text
Now  M1 is of type tuple and T1 is assigned to M1.
Requirement is
Assign tf2 value of  M1 record vale to M2 .
I think this is possible as M1 is single valued and if it is single valued then we can access each field of tuple and assign it to other field.
In case of multi valued then  only these field not come in expression.
Please correct me if my understanding is wrong.
Thanks,
Sudhanshu

Similar Messages

  • Problem in assigning check table to a table field

    Hi Champs,
    I have a requirement where I need to assign a check table to POSID field(same as of table PRPS) of my Custom Table. I know there is as such no check table for this field but is there any way to put check for the value entered in this field.
    Regards,
    Nishant

    Hi,
    If you only want to validate the field values then try to use Value Table.
    use that table in the domain (PS_POSID) of this perticuler field.
    Hope this will solve your problem.
    Regards,
    Raj Gupta

  • Assigning Complete Table Structure to a Charcter field.

    Hi All,
               I am working on Upgrade prof (From 4.6b to ECC6.0).
              I have one doubt to ask you.    
              The Data Declaration is as follows.       
              Data: Data (4000) type c.
              Data: IMARA like MARA.    
              Data = IMARA.        
              In the above code "Data" is the field in another table.
              And the error that I am getting is that
              <b>"Data & IMARA are not mutually convertible in Unicode Program”.</b>
              How do I assign the values of IMARA to Data Field?
              Please help / guide me in this regard.
              A sample code would be of great help.
    Thanks & Regards
    Jitendra Gujarathi.

    DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE IMARA TO <fs>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
         concatenate DATA <FS> into DATA.
    ENDDO.
    write : / data.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Assigning allocation table for promotion

    Hi Gurus,
                I am getting problem while creating the allocation table for(va05)  promotion and diagnosis is:
    During supply source determination, the material named in the message, in the plant named in the message, is assigned a source of supply which does not match the item category of the material.
    In the allocation table, the item category of the material controls how the material is procured and delivered to the plants
    can somebdy suggest me where i need to  hit so i may genrate the promotion.
    thanks n regards
    sanjay

    Self answered

  • Assign internal table name passed through routines

    Dear experts,
    How can i pass the name of P_TAB in from fieldcat_init ?.
    i call the method of an object(ob) of class .
    If i call debugger on p_tab in form fieldcat_init ,i can see the data.
    But how to assign it
      wa_fieldcat-tabname      =  P_TAB.
    I tried this but gives me dump.
    CALL METHOD OB->printalv( exporting alv_data = t_excel ).
    method printalv.
    perform printing tables alv_data.
    endmethod.
    form printing tables p_tab like t_excel.
    #  PERFORM fieldcat_init tables p_tab USING gt_fieldcat .
      PERFORM eventtab_build USING gt_events[].
      PERFORM comment_build  USING gt_list_top_of_page[].
      PERFORM disp_rep tables p_tab.
    endform.
    FORM fieldcat_init tables p_tab USING  p_gt_fieldcat .
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname    = 'MATNR'.
      wa_fieldcat-tabname      =  P_TAB.
      wa_fieldcat-seltext_m    = text-001  .
      wa_fieldcat-outputlen = 18.
      wa_fieldcat-emphasize    = 'C410'.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.
    Line with # needs clarification.
    Edited by: aditya  sharma on Jul 22, 2010 9:49 AM

    Hi Aditya,
    You described your "p_tab" in TABLES section
    describe your form like that :
    FORM fieldcat_init  USING  p_tab  p_gt_fieldcat .
    ENDFORM.
    and give the name of your table to this subroutine
    not the table itself :
    PERFORM fieldcat_init USING 'ITAB' p_gt_fieldcat.
    wrong :  PERFORM fieldcat_init USING ITAB p_gt_fieldcat.
    I hope it helps.

  • No tablespace assigned to table

    select table_name, tablespace_name from user_tables order by table_name;
    Running this query gives a few tables with no assigned tablespace name. I expected at least the default tablespace to be displayed, since the table has to be somewhere. Any ideas? TIA.
    Note that I tested creating an empty table without specifying any tablespace, and it listed the default tablespace as expected.
    null

    Scott,
    Thanks. USER_SEGMENTS was correct, and also specified the logical reason why the tablespace_name was not in USER_TABLES -- these particular tables were partitioned.
    null

  • How to assign custom table entries to request

    Hi,
    I have around 4000+ entries in Z* table(Customized data).
    Now i have to transport to QA system by assigning request no.
    How to assign the above all entries to the request.
    Thanks
    ~KER

    Hi Ramesh,
    That you can do it if you select
    Recording routine  as <u>Standard recording routine</u>       under table maintainance generator.
    But in my case the table has been created with <u>no,or user,recording routine</u>  option and updated all records in dev system.
    So its not possible  at this point of time.
    Thank you
    ~KER

  • Wanted to assign a table type and wanted to print it

    Hi
    I have a object type by the name
    create or replace type emp_ty as object(empno number(10),ename varchar2(100),sal number(10),deptno number(10));
    In this there is a table type the name emp_tab
    create or replace type emp_tab as table of emp_ty;
    Now I have a variable by the name
    declare
    a_input emp_tab;
    begin
    a_input := emp_tab();
    dbms_output.put_line(a_input);
    end;
    This is giving me error
    ORA-06550: line 5, column 1:
    PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
    ORA-06550: line 5, column 1:
    PL/SQL: Statement ignored
    Can you suggest me how to print a value for table types
    Appreciate your help on the above?
    Thanks & Regards
    Thakur Manoj R

    DECLARE
      a_input emp_tab;
    begin
    a_input := emp_tab();
    for i in 1..a_input.count loop
          dbms_output.put_line(a_input(i).empno);
    END LOOP;
    END;
    /

  • Problem in the output when the table name is explicitly assigned.

    hi
    Am using a procedure to copy the information's in a table to a flat file. my aim is to achieve this copy function by assigning the table name from user explicitly.
    this is the program:
    create or replace procedure jk(table_name in varchar2) is
    sel_table varchar2(30);
    l_bool BOOLEAN;
    irows INTEGER := 1;
    buffer LONG;
    f utl_file.file_type;
    BEGIN
    sel_table:='select * from '||table_name;
    f := utl_file.fopen('SAMPLE','tablename.txt','W');
    OWA.cgi_var_name (1) := 1;
    OWA.cgi_var_val (1) := 1;
    OWA.init_cgi_env (1, OWA.cgi_var_name, OWA.cgi_var_val);
    HTP.adddefaulthtmlhdr (FALSE);
    l_bool :=
    OWA_UTIL.tableprint (ctable => sel_table,
    cattributes => '',
    ntable_type => OWA_UTIL.pre_table,
    ccolumns => '*',
    cclauses => '',
    ccol_aliases => '',
    nrow_min => 0,
    nrow_max => 500
    WHILE (irows != 0)
    LOOP
    buffer := HTP.get_line (irows);
    utl_file.put_line(f,buffer);
    /* do whatever you like with the contents of the buffer */
    /* You may write to a file or simply print it out */
    DBMS_OUTPUT.put_line (buffer);
    END LOOP;
    END;
    the error during execution:
    SQL> @for.sql
    Procedure created.
    SQL> exec jk('CUST');
    BEGIN jk('CUST'); END;
    ERROR at line 1:
    ORA-00931: missing identifier
    ORA-06512: at "SYS.DBMS_UTILITY", line 125
    ORA-06512: at line 2
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 1120
    ORA-06512: at "SYS.DBMS_SQL", line 323
    ORA-06512: at "SYS.OWA_UTIL", line 595
    ORA-06512: at "SYS.OWA_UTIL", line 689
    ORA-06512: at "SYS.OWA_UTIL", line 1222
    ORA-06512: at "XMLUSER.JK", line 14
    ORA-06512: at line 1
    thanks in advance
    karthik.J

    You better don't supply the whole select statement to OWA_UTIL.tableprint but only the table name!

  • How to assign table name for select query in loop.

    Hi friends my requirement is count the no of records of all the database table which comes into an internal table ."Check the below coding". Iam  fetching the tables from dd03l table into an internal table .plz give me a sujjesion how to assign a table name in select query  in a loop.
      SELECT tabname FROM dd09l
                INTO TABLE i_dd09l
                WHERE protokoll = 'X'.
      IF sy-subrc = 0.
        SORT i_dd09l BY tabname.
      ENDIF.
      LOOP AT i_dd09l.
        SELECT COUNT(*) INTO val FROM i_dd09l-tabname.
        IF sy-subrc = 0.
          i_dd09l-count = val.
        ENDIF.
        MODIFY i_dd09l INDEX sy-index.
        CLEAR val.
      ENDLOOP.
    error : 'I_DD09L-TABNAME' is not defined in the abap dictionary as a table.

    data: dy_table type ref to data,
          dy_line type ref to data,
          xfc type lvc_s_fcat,
          ifc type lvc_t_fcat,
          dy_field type ref to data.
    LOOP AT i_dd09l.
    perform get_structure using i_dd09l-tabname .
    CREATE DATA dy_table TYPE TABLE OF (_dd09l-tab_name).
        UNASSIGN <dyn_table>.
        ASSIGN dy_table->* TO <dyn_table>.
    SELECT COUNT(*) INTO val FROM <dyn_table>.
    IF sy-subrc = 0.
    i_dd09l-count = val.
    ENDIF.
    MODIFY i_dd09l INDEX sy-index.
    CLEAR val.
    ENDLOOP.
    form get_structure using p_table.
      data : idetails type abap_compdescr_tab,
      xdetails type abap_compdescr.
      data : ref_table_des type ref to cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
      cl_abap_typedescr=>describe_by_name( p_table ).
      idetails = ref_table_des->components.
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    endform.                    "get_structure
    Try like this hope it will work.
    Regards,
    madan.

  • Dynamically assigning table name in select statement

    how can i assign the table name dynamically in Select statement?
    i tried following code
    create or replace procedure proc1
    as
    x varchar2(100);
    y varchar2(10);
    begin
    x='UNIT_MASTER';
    execute immediate 'select unit_code into y from x where
    rownum=1';
    dbms_output.put_line(y);
    end;
    the procedure is created but when i execute the procedure the
    error is shown in the execute immediate statement

    Do the following :
    Create or replace procedure pro1 as
    x varchar2(100);
    y varchar2(10);
    begin
    x := 'UNIT_MASTER';
    EXECUTE IMMEDIATE 'select unit_code from '||x||' where rownum
    = 1' INTO y;
    dbms_output.put_line(y);

  • Assignment between include/Append structures and Database Tables

    Hi All,
    I need to find the list of all Append/Include Structures in my system and Their assignment to Tables.
    (For Each Append/Include structure, to which table it was assigned)
    Is there any way to find it?
    Thanks,
    Krishna.

    Hi,
    Go to se11 - data type - give Z* and press F4.
    Pop-up will come  - click on search for structures - u will get standard structures.
    Then take any structure name and check for where used list ( cont + shift + F3) .
    U will get all the DB tables where and all they have used that include / append structure.
    Regards,
    Kusuma.

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All,
    I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control.
    In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control.
    When i m going to change table control scrren in ---> Condition tab its working fine but not for above case.
    Please guide me to solve this issue.
    Regards,
    Sanket.

    Please provide the solution.
    Regards,
    Sanket.

  • Possible to export Tuple data along with main table data in Excel sheet?

    Hi Expert,
    Wondering is it possible to export tuple table data from data manager along with main table data?
    Regards,
    Rajeev

    Rajeev,
    I am afraid that functionality of exporting tuples data using data manager is not available at the moment till MDM 7.1 SP08. Lets see if coming versions provides this functionality...
    - Shiv

  • Assigning Table/Structure Types using Field-Symbols

    Hello Gurus,
    How can we assign a table or structure type to a particulart internal table?
    What I want to do is to make my data declaration for i_tab reusable.
    i.e.
    DATA: v_tab  TYPE string.
    v_tab = 'MARA'.
    DATA  : i_tab  TYPE STANDARD TABLE OF v_tab.
    The purpose is to make the declaration flexible so program can change v_tab to any table names like LIPS, KNA1...etc making the i_tab flexible and reusable enough. Can anyone help me please? I try to use field-symbols, but I can not achieve what I want. Any bright ideas please?

      DATA: dref TYPE REF TO data.
      FIELD-SYMBOLS: <table> TYPE STANDARD TABLE,
                     <line>  TYPE ANY.
      PARAMETERS: pa_tab TYPE tabname DEFAULT 'BUT000'.
      CREATE DATA dref TYPE STANDARD TABLE OF (pa_tab).
      ASSIGN dref->* TO <table>.
      SELECT * FROM (pa_tab) INTO TABLE <table>
               UP TO 10 ROWS.
    LOOP AT <table> ASSIGNING <line>.
    ENDLOOP.
    <LINE> will take the structure of the table line at runtime.
    This is quite flexible.
    But you can also declare it like this, as we did with the <table>:
    DATA: dref1 TYPE REF TO data.
    CREATE DATA dref1 TYPE (pa_tab).
    ASSIGN dref1->* TO <line>.
    This way <line> will already have the correct structure, even before the <ASSIGNING>.
    Edited by: Micky Oestreich on Mar 24, 2009 8:21 AM

Maybe you are looking for

  • Adobe Flash issues with camera

    I use several web site video chats usually.  Since installing Lion the Flash permissions screens are totally non-responsive.  I am even unable to clear out of them by selecting Deny.  Totally non-functional.  Tried to download a newer version of Flas

  • How to send value into current field in table control ABAP

    Hi every one, Im from VietNam and I dont know much about SAP ABAP. Im find out more about it. I have a problem. I made a table control with a big internal table at input, it about more than 100 field. I can set cursor to the field that I want to send

  • IOS5 podcast tracks in an episode

    I am subscribed to several podcasts that DJs put in tracks from different artists, and i used to be able to see the name of the track and its artist in each segments in each episode of the podcast, After upgrading my iPad to iOS5, I can only see the

  • Adobe creative suite master collection

    I bought my son "Adode Cerative suite 6 Master collection" (academic version) Unfortunately – his laptop was stolen and had to install the second copy on his replacement. He had to take the second copy of CS6 off our main PC so he didn't go over the

  • Server Service Code Execution sig for v4.1 IDS

    Is there an IDS signature release for the 4.1 platform for this vulnerability ? The bulletin only mentions the 5.x platform.