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

Similar Messages

  • Open Hub Destination table structure update

    Hi,
         I created a open Hub detsination and activation created the table  and populated the data in the table and have a view over the table.
         I need to add few more fields in the open hub and when I did that and activated again , it is supposed to change the table structure adding the new fields that were added in the open hub.
       The activation was successful but the table structure still stays the same.I didn't see the new fields in the generated table.
       Anyone having similar issues.
      Thanks in advance

    We deleted all the related objects from Staging and production and re transported them from Development as though they are being sent for the first time and that works.Tough this approach is not good we need to use it as I didn't find any other solution

  • RFEBKA00 multiple file postings - modifying TVARVC table structure

    All
    I have requirement to write a bespoke program that will pick up multiple MT940 files from a directory AL11 and submit them to the report RFEBKA00.
    I am doing this by putting the file path and file name into a TVARVC variable and using this in the RFEBKA00 variant.
    However the TVARVC-LOW can only handle 45 characters where my file path including the name is more like 70-80 characters long so the TVARVC variable is being truncated to 45 characters.
    I do not really want to bespoke the receiving program (RFEBKA00) to handle multiple TVARVC entries and concatenate the strings together. The only other option I have thought about is modifying the TVARVC structure.
    My question is:
    What would be the implication of modifying the TVARVC table structure to increase the field lengths of the low/high to say 100 characters to handle the filepaths needed in this case?
    Thanks in advance
    David

    You should not modify the standard SAP DDIC objects.
    Also, the table will be used in so many reports/programs,etc. and it may happen these objects iwll not work after your changes.
    the first approach is quite safe though or you may create a new custom table

  • AET : How do I enhance a table structure

    How do I enhance a table structure (not just one field), using the AET. Is this possible?
    All I have seen so far from you and other blogs (demos) is adding single fields to a header view like that. Now, I would like to add a add custom field (column) to a item list (for eg in a service order) which is a table structure.
    Please advise.
    Thanks in advance.

    Hi Satish,
    You mean you want to add additional column in result list right?
    Please make sure you have below things in place:
    1. Add a custom filed to object you want using AET.
    2. This field would be added to your structure for context of this view. Make sure that this field is added in view context (In case it is not automatically added)
    3. Make sure that this field in present in GET_TABLE_LINE_SAMPLE of your context(which is displayed as table). If not then please enhance this method and add this field.
    Your custom field would be displayed in available fields in view configuration. In case it is not then have a look at design layer of the object you want to enhance. This field should be present there (Your functional consultant should help you in adding this field in design layer). Please find my responses on below forum to add field in design layer:
    Re: New Column can not be added in chtmlb:configTable
    Please let me know if you face any difficulties.
    Regards,
    Bhushan

  • 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

  • ABAP-command to check wheather a field in existing in a spec.table/structur

    Hello together,
    we have a tool to do corrections to CO-PA-transaction data.
    Because we have different structures for different operating concerns (and therefore different dynpros for those different operating concerns) we now want to dynamize this tool.
    The idea is to have one dynpro with the maximum number of CO-PA-fields and to control via a functional-module which vields are existing for one operating concern and those are not existing for that operating concern to change the attributes to non-changeable.
    Is there any command in ABAP to check if one field (e.g. one valuefield) is contained in one table-structure (e.g. table-structure CE1xxxx) ?
    Kind regards
    Udo

    *--Verfy infoobject exit or not
      call function 'DDIF_FIELDINFO_GET'
        exporting
          tabname        = KNA1   <--here you pass structure
        tables
          DFIES_TAB = <itab>    <--get list of fields in the table
        exceptions
          not_found      = 1
          internal_error = 2
          others         = 3.
      if sy-subrc <> 0.
        message  text-005 type 'E' .
      endif.
    loop at  <itab> assigning <field>.
    *here you validate wether field is available in the structure or not
    assign component 'SIGNCH'  of structure <field> to <f_sign>.
      if sy-subrc ne 0.
        message  'SIGNCH field is not available in table KNA1'  type  'E' .
      endif.
    endloop.
    Regards,
    Peranandam

  • Creating/Copying Z Objects and assign them to Tables/Structures/Programs...

    Dear Colleagues,
    I am failry new to ABAP,as I have mainly functional MM/SD/WM/
    I need to be creating a fileld such as the one seen below( ZZLOOM).This is already showing on the transactions CO02/CO03(production orders).
    Can you please therefore give me step by step rough guide how to create this field and assign it to the program and the table/structure?To which program needs this to be assigned on SE38? Is it the screen data program SAPLXCO1 or the field desciption for batch input program SAPLCOKO1-please see below.
    Can I create the new (ZRAL) object by copying from the above (ZZLOOM) and on which Tcode I can do this?The program SAPLCOK01 is used(according to se38) on programs,ckasses and BSP applications.
    Program Name SAPLXCO1
    Screen number 0100
    Program Name SAPLCOCU
    Status VVKOPF
    Table Name ZWRK_CI_AUFK
    Field Name ZZLOOM
    Data Element ZZLOOM
    DE Supplement 0
    Screen Field ZWRK_CI_AUFK-ZZLOOM
    Program Name SAPLCOKO1
    Screen Number 0115
    All help appreciated,
    PAPJ1.

    Hi Archana,
    I'm simply trying to add a field such as the existing ones showing up on the customer screen tab of CO02/CO03,so I copied ZZNESTNO (shown as NEST below) into a new field called ZZRALNO.
    Mec MBW Start 18.05.2011
            End   18.05.2011
    Ele SS  Start 23.05.2011
            End   23.05.2011
    Nest          17c
    CoilNest
    Pipe          16/05
    Loom
    COIL WIP
    COIL DATE
    Through F1,I found out the field details of ZZNESTNO,shown below:
    Program Name     SAPLXCO1
    Screen number    0100
    Program Name     SAPLCOCU
    Status           VVKOPF
    Table Name       ZWRK_CI_AUFK
    Field Name       ZZNESTNO
    Data Element     ZZNESTNO
    DE Supplement    0
    Screen Field     ZWRK_CI_AUFK-ZZNESTNO
    Program Name     SAPLCOKO1
    Screen Number    0115
    This is what I am trying to achieve-Is this any clearer?
    Thanks a million for your help.
    PAPJ1.
    Edited by: PAPJ1 on Jun 8, 2011 4:37 PM

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Add fields to reporting table/structure CCSS

    My customer has defined some new fields (Z......) for WBS reporting in table PRPS. They would like to use these fields in report painter reports, but we have not managed to make them available in the library used (6P3). In order to make that happen they must show in the reporting table/structure used (CCSS) I guess? According to SAP there's no "easy way" of doing this, but obviously it should be possible.
    Can somebody give ma an idea how this can be done?

    Eventually we manage to get the customer defined field to show up as a characteristic in the relevant library. The reason we struggled with this was the defined length of the field. SAP does not accept a characteristic with a defined field length of more than 24 characters (we had 30). We ended up redefining the length of the field directly in include CI_CC1Z.
    Edited by: Roar Sørli on Feb 5, 2009 2:52 PM

  • Determining internal table structure dynamically

    Hi,
    I have a number of internal tables in my program which I declare using types. As an example:
    TYPES: begin of ty_hierarchy,
                   control_id(6)   type c,
                   node_id(10)     type c,
                   node_name       type bezei40,
                   material        type matnr,
                   node_level      type prodh_stuf,
                   node_parent(10) type c,
                end of ty_hierarchy.
    DATA: it_hierarchy type ty_hierarchy occurs 0.
    Further down my program I need to determine the structure of internal table IT_HIERARCHY dynamically. Because I have a number of internal tables, I need to determine which internal table is being processed. Therefore it's important that I know the structure of the table that I'm currently processing.
    I am aware of CL_ABAP* classes and functions like GET_COMPONENT_LIST. However because I have declared my tables using the TYPE statement the method/function cannot read my table structure correctly. If I changed my declaration to be as below, the method/function work! However I don't want to do this as I use field symbols to reference my internal tables and need to use the TYPE statement.
    DATA: begin of ty_hierarchy,
                   control_id(6)   type c,
                   node_id(10)     type c,
                   node_name       type bezei40,
                   material        type matnr,
                   node_level      type prodh_stuf,
                   node_parent(10) type c,
                end of ty_hierarchy.
    DATA: begin of it_hierarchy occurs 0.
                 include structure ty_hierarchy
    DATA: end of it_hierarchy.
    Does anyone know on how I can determine my  internal table structure dynamically but still keeping my internal table declarations using TYPE statement?
    Any help would be greatly appreciated with reward points .....
    Thanks
    Liam

    Hello Liam
    Both the ABAP-OO as well as the FM-based approach described by Eswar work well with your way of defining the itabs. I described three different ways how to get the structure of your itab dynamically:
    - directly using the itab
    - using a field symbol
    - using a data reference
    REPORT  zus_sdn_dynamic_itabs.
    TYPE-POOLS: abap.
    TYPES: BEGIN OF ty_hierarchy,
    control_id(6) TYPE c,
    node_id(10) TYPE c,
    node_name TYPE bezei40,
    material TYPE matnr,
    node_level TYPE prodh_stuf,
    node_parent(10) TYPE c,
    END OF ty_hierarchy.
    DATA:
      gs_hierarchy    TYPE ty_hierarchy,
      it_hierarchy    TYPE ty_hierarchy OCCURS 0.
    DATA:
      gt_comp         TYPE abap_compdescr_tab,
      gs_comp_a       LIKE LINE OF gt_comp,
      gd_type         TYPE abap_typekind,
      gs_comp    TYPE rstrucinfo,
      it_comp TYPE TABLE OF rstrucinfo.
    DATA:
      go_struct    TYPE REF TO cl_abap_structdescr,
      go_table     TYPE REF TO cl_abap_tabledescr,
      gdo_data     TYPE REF TO data.
    FIELD-SYMBOLS:
      <gt_itab>    TYPE table.
    START-OF-SELECTION.
      GET REFERENCE OF it_hierarchy INTO gdo_data.
      ASSIGN gdo_data->* TO <gt_itab>.
    * (1) Describe directly by using the itab
    *  go_table  ?= cl_abap_structdescr=>describe_by_data( it_hierarchy ).
    * (2) Describe indirectly by using field symbol
    *  go_table  ?= cl_abap_structdescr=>describe_by_data( <gt_itab> ).
    * (3) Describe by data reference to itab
      go_table  ?= cl_abap_structdescr=>describe_by_data_ref( gdo_data ).
      go_struct ?= go_table->get_table_line_type( ).
      WRITE: / 'ABAP-OO Version:'.
      gt_comp = go_struct->components.
      LOOP AT gt_comp INTO gs_comp_a.
        WRITE: / gs_comp_a-name,
                 gs_comp_a-length,
                 gs_comp_a-type_kind,
                 gs_comp_a-decimals.
      ENDLOOP.
      SKIP 2.
      CALL FUNCTION 'GET_COMPONENT_LIST'
        EXPORTING
          program    = sy-repid
          fieldname  = 'GS_HIERARCHY'
        TABLES
          components = it_comp.
      WRITE: / 'Function Module Version:'.
      LOOP AT it_comp INTO gs_comp.
        WRITE: / gs_comp-compname,
                 gs_comp-level,
                 gs_comp-leng,
                 gs_comp-type,
                 gs_comp-olen,
                 gs_comp-decs.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • VBMTV-PREIS2; in which table can I find this field?

    Hi,
    Does anyone know in which table I can find the field PREIS2 that is used in structure VBMTV?
    Thanks!
    BR,
    Linda

    Check in the table DD03L.. You will get the table name.. just give this field name in the contents of the table...
    Assign points if it helps...
    Khaja

  • Dynamic internal table structure

    pl. give the solution to create dynamically internal table structure with respective of different table.

    Hi and welcome to the SDN,
    this topic is more related to abap, but anyway:
    data: l_tabname(30) type c value 'MARA',
          ref_data type ref to data.
    field-symbols: <fs_tab> type table.
    create data ref_data type standard table of (l_tabname).
    assign ref_data->* to <fs_tab>.
    Now <fs_tab> is a internal table with structure of table mara.
    Hope this helps!
    regards
    Siggi

  • BI 7 : Command to export a table structure of SAP R/3 into a script/text ?

    Hi All.
    Greetings.
    Am New to SAP R/3 system.  And request help.
    We are trying to pull data from SAP R/3 thro Bussiness Objects Data Services into Oracle.
    For now : we create a target oracle table looking at the table structure of SAP R/3 from SE 11.
    In BODS, We then do the query transformation, and use the oracle target table created by us manually.
    This works absolutely fine.
    We would like to know the command by which we could export the table structure of any existing table
    in SAP R/3 into a script / or to text file,
    which we could use to create the same table structure in oracle.
    Rather than manually typing some 200 field names for each tables.
    Can anyone advise on this.
    Thanks
    Indu

    Hello,
    The problem is caused due to the spaces in your directories
    C:\SAP Dumps\Core Release SR1 Export_CD1_51019634/DB/ADA/DBSIZE.XML
    Replace the spaces with underscores and restart the installation from from scratch.
    Cheers
    Bert

  • Union two tables with diffrent count of fields with null and float value

    Hello,
    i want to union two tables, first one with 3 fields and second one with 4 fields (diffrent count of fields).
    I can add null value at end of first select but it does not work with float values in second table. Value form second table is convert to integer.
    For example:
    select null v1 from sessions
    union
    select 0.05 v1 from sessions
    result is set of null and 0 value.
    As workaround i can type:
    select null+0.0 v1 from sessions
    union
    select 0.05 v1 from sessions
    or simple change select's order.
    Is any better/proper way to do this? Can I somehow set float field type in first select?
    Best regards,
    Lukasz.
    WIN XP, MAXDB 7.6.03

    Hi Lukasz,
    in a UNION statement the first statement defines the structure (number, names and types of fields) of the resultset.
    Therefore you have to define a FLOAT field in the first SELECT statement in order to avoid conversion to VARCHAR.
    Be aware that NULL and 0.0 are not the same thus NULL+0.0 does not equal NULL.
    In fact NULL cannot equal to any number or character value at all.
    BTW: you may want to use UNION ALL to avoid the search and removal of duplicates - looks like your datasets won't contain duplicates anyhow...
    Regards,
    Lars

  • Message no. KD503 - Complete allocation structure K1 for Internal Order

    Hi,
    During Internal order settlement through KO88 I am getting this error as :
    Message no. KD503 - Complete allocation structure K1
    Diagnosis :
    During settlement, the system puts the sender debits into groups  (assignments), which are settled using the same settlement cost element. The settlement assignment is made in the allocation structure, which is stored in the settlement rule for the sender (under settlement parameters). Cost element 430500 cannot be assigned to a settlement cost assignment in allocation structure K1, and therefore it cannot be assigned to a  settlement cost element.
    Procedure :
        Possible solutions are as follows:
        o   If the posting under cost element 430500 was made to the sender because of an incorrect entry, and you can reverse the posting, and do not need to update the allocation structure. You only need to reverse the incorrectly assigned posting before repeating the settlement. Exception: For an investment measure with a line item settlement, you need to extend the allocation structure, even after the reversal.
        o   If the posting was made correctly, you can do the following:
    a)  You can assign a different allocation structure to the sender: In the master data maintenance for the sender, choose
        "Settlement rule -> Goto -> Settlement parameters" and then enter a different allocation structure.  If necessary, also check whether the correct allocation structure is entered in the settlement profile. The allocation structure is defaulted  in the settlement profile when you create sender master data or when you maintain the settlement  rule.
    -   You can update allocation structure K1
    The same configuration in  Development Server there is no error but problem occurs in Quality server. Here the process is Internal Order creation - Creation of Reservation through MB21- Goods Issue against reservation  through MB1A and finally settlement through KO88.  During settlement this error occur. In configuration setting of allocation structure under Internal Order I have mentioned only revenue settlement (as per business) against assignments. Under source mentioned cost element group and under settlement cost elment Receiver Cat is "CTR" and tick "By Cost Element".
    During MB1A i.e, goods issue accounting entry is generated as
    81(Dr). 430500 Constimptuion Saprae and Stores
    99(Cr). 310411 Inventory Machinery and Spare.
    During settlement this debit figure should credit. But not allowiing to credit. Even in configuration under settlement cost element if I remove the tick of "By cost element" and mention secondary gl account whose cost element category is 21, still showing the same error in QA server. What may be the probabale solution ? Even if i remove allocation structure K1 from settlement profile 20 still same error exist. How this link gets during settlment inspite of removing allocation structure from settlement profile...
    NB.. COPA is not implemented in our company. So PA structure should not arrise here....
    Thanks & regards,
    Samrat
    Edited by: Samrat Roy on Aug 30, 2010 7:28 PM

    Hi Samrat,
    The issue is very simple.. Cost element 430500  is posted in your IO...
    While settling you have 2 options... Either you can credit the original GL account 430500.. This happens when you tick "By Cost element".. This you have done already...
    2nd option is not to tick "By Cost element" and assign a secondary cost ele category 21...
    But for any of these options to work, you have to include GL 430500 in the "source"... The above 2 options apply only to those GL accounts which are mentioned in the "Source".... for rest of the GL accounts, system gives this error
    Include 430500 in your "source" cost ele group.. Error will be resolved
    Regards
    Ajay M

Maybe you are looking for