How to declare a field in a structure and table

Hi, I have a doubt in declaring a field inside a structure.
types: BEGIN OF mrm_rbkpv.
        INCLUDE STRUCTURE rbkp_v.
types: h_rbws LIKE rbws OCCURS 0,
       end of mrm_rbkpv.
data : e_rbkp_v type mrm_rbkpv.
Now I want I to refer to field WT_WITHCD inside table H_RBWS.
eg : if e_ebkp_v-h_rbws-wt_withcd = 'X ' is right or wrong??????
POints will rewarded
Thanks in advance

hi jaysree,
types: BEGIN OF mrm_rbkpv.
INCLUDE STRUCTURE rbkp_v.
types: h_rbws LIKE rbws OCCURS 0,
end of mrm_rbkpv.
data : e_rbkp_v type mrm_rbkpv.
if e_ebkp_v-h_rbws-wt_withcd = 'X '  - > this will work perfectly.
rgds
anver
if hlped mark points

Similar Messages

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • How to declare the field if i want the output as 300.12,00

    How to declare the fields if i want the output as 300.12,00
    i have a quantity field so i need to place . in place of , and , inplace of .
    please help me

    hi,
    declare its as
    CURR
    field.
    Regards
    Anver

  • How to get the field name of an internal table during runtime?

    How to get the field name of an internal table during runtime?

    Hi  Sudhir,
    Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
    Example Code:
        <b>  DATA: v_field(60).                        " Insert this code.
         GET CURSOR FIELD v_field.        " Insert this code.</b>
         <b>CHECK v_field = 'ITAB-KUNNR'.    " Insert this code. (or)
    Write: v_field.</b>
    Regards,
    Ramganesan K.

  • Differrences between structure and table in data dictionary in ABAP?

    What is the differrences between structure and table in data dictionary in ABAP?
    are they same?

    Tables :
    1. The place where the data is stored so that you can retrieve at any time.
    2. There can be more than one record stored
    Structures :
    1. The data / info stays only during the runtime of the application and will not get stored at all during the run time ....
    2. Only one record can be stored at the runtime .....
    A structure forms the skeleton of the table.
    A structure comprises components i.e., fields. Types are defined for the components A component can refer to an elementary type (via a data element or by directly specifying the data type and length in the structure definition), another structure or a table type. A structure can therefore be nested to any depth
    Tables can be defined independently of the database in the ABAP Dictionary. The fields of the table are defined with their (database-independent) data types and lengths.
    When the table is activated, a physical table definition is created in the database for the table definition stored in the ABAP Dictionary. The table definition is translated from the ABAP Dictionary to a definition of the particular database.

  • How to understand on hand in user guide and table MTL_ONHAND_QUANTITIES

    version:12.1.1
    IS on hand in user guide from table MTL_ONHAND_QUANTITIES?
    How to understand on hand in user guide and table MTL_ONHAND_QUANTITIES?
    http://etrm.oracle.com/pls/et1211d9/etrm_fndnav.show_object?n_appid=401&n_tabid=52063&c_type=TABLE
    What does "Not implemented in this database" mean?

    What the page is saying that MTL_ONHAND_QUANTITIES is not a table. It is a view.
    The main table underlying the view is mtl_onhand_quantities_detail.
    After you perform a transaction, the data in this table (and view) is updated automatically.
    You don't have to do anything.
    Sandeep Gandhi

  • Calrification of structure and table type

    hai experts,
    what is the difference between STRUCTURE AND TABLE TYPE?

    Refer this for TABLE TYPE
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
    STRUCTURE
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm
    SE11, In structre u <b>cant maintain any values</b>. Its just used as a refernce.
    In tables u can maintain values.

  • Extractor andExtract structure and table Relation

    Hi All,
    Is there any system table which provides the Datasource/Extractor/ Extract
    structure and table Relation Information.
    For ex:
    Data source 2LIS_02_ITM uses following tables for data
    EKKO
    EKPO

    Hi Murali,
    I'm not really sure if there exists a table to give the information that you've asked for...
    Let me to tell you something to find out the tables referred in a datasource.
    Execute your datasource in RSA3 in Debug mode. This will give you the details of the tables used by that datasource.
    assign points if useful ***
    Thanks,
    Raj

  • Difference between Info structure and Table

    Hi Friends
    I need to know difference between info structure and table (updating a table using a scheduled program),Which one of this is better and why?
    Please help me to get the Pros and Cons of the two available approach.
    Thanks
       Mitesh

    Hi,
         No different, these are just transparent tables like any other. You can select data from them the same as any other transparent table.
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4342729&messageID=1424611
    https://forums.sdn.sap.com/click.jspa?searchID=4342729&messageID=3609095
    Regards

  • How can i point to a specific field in DEEP structure and populate it?

    Hello,
    I have declared a internal table as below,
    DATA: BEGIN OF wa_data,
                  vkorg TYPE vkorg
                  vtweg TYPE vtweg
                  spartTYPE spart
                  field_name TYPE CHAR30
                   value TYPE CHAR50
                END OF wa_data
    DATA: ls_data TYPE wa_data,
                lt_data TYPE STANDARD TABLE OF wa_data.
    The lt_data is populated as below,
    VKORG-------VTWEG-------SPART-------FIELD_NAME-------VALUE
    1000-----------10-------------01------------KALKS---------------ZP00 "Pricing procedure
    1000-----------10-------------01------------ZTERM---------------15 days "Payment terms
    1000-----------10-------------01------------MAHNA---------------09 "Dunning
    Fine.
    Now, i have a DEEP DEEP DEEP structure as belowm
    DATA: ls_deep TYPE cmds_ei_extern. "Pls. see this deep structure 'cmds_ei_extern' in SAP DDIC / SE11
    This deep structure is part of Customer master creation. Now, i would like to POPULATE this deep structure from my lt_data itab DYNAMICALLy, i mean, with out mentioning the field names (like, ZTERM, KALKS, MAHNA etc etc), bcz its these i am pulling this lt_data from a custom table, so going further business may also ADD a new record / field like BUSAB (Accouting clerk) with a value of AL (Allen Christi), hence i want to hv dynamic and its less tediuos also bcz,
    We can LOOP lt_data INTO ls_data (for example, the ls_data-field_name = KALKS)
    Now, point the KALKS in the deep deep deep structure and populate it with a value of ls_data-value (= 15 days)
    ENDLLOOP.
    Pls. let me know How can i do this, i guess, we need to use field symbols, pls. let me know the code to achieve my requirement
    Thank you

    Hi,
    Please refer below code.This will populate field kunnr of the deep structure. Once you select the data as per your requirement,you can write similar code to populate rest of the fields in the deep strucure.
    TYPES : BEGIN OF ty_data,
                 kunnr TYPE kunnr,
                 END OF ty_data.
    FIELD-SYMBOLS : <lfs_cmds_ei_header>   TYPE cmds_ei_header,
                    <lfs_cmds_ei_instance>              TYPE cmds_ei_instance,
                    <lfs_kunnr>                                   TYPE kunnr.
    DATA:  lfs_cmds_ei_extern  TYPE cmds_ei_extern,
                 lr_dytable                  TYPE REF TO data,
                 lr_dytable_wa           TYPE REF TO data,
                 lt_data                       TYPE STANDARD TABLE of ty_data ,
                 wa_data                   TYPE ty_data.
      SELECT kunnr
      FROM yalb_kunde
      UP TO 1 ROWS
      INTO TABLE lt_data.
      IF sy-subrc = 0.
        LOOP AT lt_data INTO lwa_data.
          ASSIGN COMPONENT 'HEADER' OF STRUCTURE lfs_cmds_ei_extern TO <lfs_cmds_ei_header>.
          IF sy-subrc = 0.
            ASSIGN COMPONENT 'OBJECT_INSTANCE' OF STRUCTURE <lfs_cmds_ei_header> TO <lfs_cmds_ei_instance>.
            IF sy-subrc = 0.
              ASSIGN COMPONENT 'KUNNR' OF STRUCTURE <lfs_cmds_ei_instance> TO <lfs_kunnr>.
              IF sy-subrc = 0.
                <lfs_kunnr> = lwa_data-kunnr.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Thanks,
    Priya

  • How to access a field of a structure with a field symbol?

    Dear all,
    Currently I'm trying to access the fields of a structure (called "ls_tbl") dynamicly. The code looks as follows (of course the field symbols are defined correctly ;-):
        ASSIGN lv_f1 TO <lv_f1>.
        ASSIGN lv_f2 TO <lv_f2>.
        lv_pp = ls_tbl-(<lv_f1>).
        lv_pt = ls_tbl-(<lv_f2>).
    Unfortunatly I get the following error message:
    <<The data object "LS_TBL" does not have a component called "".>>          
    I really do not understand why ABAP is trying to interpret the field symbol name as a string. Does anybody have a clue how to access the field of ls_tbl with the help of a field symbol?
    Many thanks!!!

    Hi ,
    Please check the below sample code .
    data : begin of st_table,
                myfiledname type c value '1',
                myfiledname1 type c value '2',
           end of st_table .
    data : lv_filedname(11) type c value 'MYFILEDNAME'
    filed-symbols : <fs> type any,
                    <fs_table> type any.
    assign st_table to <fs_table>.
    Assign lv_filedname to <fs> .
    assign component <fs> of structure <fs_table> to lv_pp.
    Regards,
    Ratheesh BS

  • How to declare currency field?

    DATA : V1 TYPE I,
    V2 TYPE I,
    RESULT TYPE P DECIMALS 2.
    how do i declare currency field here?

    In that case,refer to any of the currency fields of any of the database tables and refer to it like this:
    Data : Curr like aufk-waers.
    or from any other database table which contains the currency field.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • How to read fields of a structure or Table.

    Hi,
      I had a requirement where i will send a structure/table name into a Form(Subroutine). This form fills an internal table with all the fields in that structure/table .
          Does any one could suggest any programming method to access the field names of structure/table.
          Please don't suggest any database tables, as the structures iam going to send need not exist in database.
         A quick reply is appreciated.
    Thanks in Advance,
    Anvitha.

    HI Anvitha,
    You can use function REUSE_ALV_FIELDCATALOG_MERGE to get the field names and attributes.
    REPORT test.
    TYPE-POOLS : slis.
    DATA : BEGIN OF itab1,
           f1     LIKE vbak-vbeln,
           f2     LIKE vbap-posnr,
           f3     LIKE vbak-netwr,
           END OF itab1.
    DATA : rep TYPE sy-repid      .
    DATA : fcat TYPE  slis_t_fieldcat_alv.
    rep = sy-repid.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       i_program_name               = rep
       i_internal_tabname           = 'ITAB1'
      I_STRUCTURE_NAME             = 'ITAB1'
       i_client_never_display       = 'X'
       i_inclname                   = rep
      I_BYPASSING_BUFFER           =
      I_BUFFER_ACTIVE              =
      CHANGING
        ct_fieldcat                  = fcat
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    the internal table fcat will have field names and attributes of internal table.
    Reagrds,
    Gagan

  • How do I restore field description in "View Responses" table

    I inadvertendtly deleted the row of text at the top of the View Responses table that is linked to the form field. So now in the View Responses table, I can see the answers but not the questions. Is there a way to restore the link back to the form field without going into the table and typing in all the questions?
    Figured it out. Discovered that by editing one character in the field on thje form, the text reappears in the table.

    So do you not have a question any longer then?  Sounds like you figured out a way to get them back.  Actually a good trick, I'll add it to the related FAQ - thanks.
    Thanks,
    Josh

  • How to find  Payer  field is coming from which table

    when i am pressing F1 in va02 trasaction on payr field it is showing kugrv table kunnr field and data element is kunrg .
    May i know which table payr is coming as per above requirement.

    vbak-kunnr, “CUSTOMER
    vbrk-kunrg. "PAYER
    vrkpa-kunde. "PAYER index on VBPA
    Regards
    Edited by: Raymond Giuseppi on Feb 10, 2008 11:01 AM

Maybe you are looking for

  • String Literal Too Long - error?

    I'm using a CLOB datatype but via an ODBC connection I'm given an error when I insert a value larger than 4000 chars: ODBC Error Code = S1000 (General error) [Oracle][ODBC][Ora]ORA-01704: string literal too long. SQL: insert into TEST2 (ARTICLE,UUID)

  • PDF doesn't open up in IE 6.0 with Adobe Reader 8.1.2

    Hi All We have an app that dynamically generates PDF using FOP deployed on JBoss server running on AIX. My machine has IE 6 and Adobe Reader 8.1.2 with browser plug-in installed on Windows XP SP2. PDF the app generates, doesn't open up within IE usin

  • Xsd validation of an xml.. another program...

    hiii......this is another program .......... please see the problem with the code.. package com.pgs.tma; import java.io.*; import javax.xml.*; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.*; import javax.xml.parsers.DocumentBuil

  • MacBook recognizing harddrive but not starting up

    I've tried using disk utility, tried to boot from disk, but still get same results... It gets to the Apple with the grey pinwheel, but it just keeps on spinning... any suggestions?

  • What's up with USB Ports in Mac OS???

    One of the things I loved about my old TI-PB is that you could plug in any digital device and it would truly be "plug and play" (as opposed to my PC's which were a pain to get working correctly.) In that regard, those "Mac vs. PC" TV ads WERE correct