The fields of an structure

Sometimes in a function and in an user-exit there are some parameters that are not defined, it appears only the name in the definition parameters, how can i know the fields of the structure without debugging?,
Thanks in advance

You are absolutely right Rich if you are talking in general terms. But in this specific case, if you give an internal table with any structure other than the structure of the table in the table parameter, it will dump.
It looks like that when you define your operating concern in COPA and define its structure, systems internally generates several tables and structures. Since each company uses different structure, system has no way of passing the structure information to the function module other than the way it did in this function module.
But, if this is not the case and the internal table parameter has no structure, you can pass any internal table to it. It will not give you a systax error but it will give you a dump if internally in the code somewhere, it assumes a particular structure.
Regards,
Srinivas

Similar Messages

  • Capture the field names of structure

    TYPES: BEGIN OF I_EKKO,
           EBELN LIKE EKKO-EBELN,
           AEDAT LIKE EKKO-AEDAT,
           BUKRS LIKE EKKO-BUKRS,
           BSART LIKE EKKO-BSART,
           LIFNR LIKE EKKO-LIFNR,
           END OF I_EKKO.
    how to capture ebeln,aedat in the variables.
    pls help
    rajeev

    TYPES: BEGIN OF i_ekko,
    ebeln LIKE ekko-ebeln,
    aedat LIKE ekko-aedat,
    bukrs LIKE ekko-bukrs,
    bsart LIKE ekko-bsart,
    lifnr LIKE ekko-lifnr,
    END OF i_ekko.
    DATA: obj_type TYPE REF TO cl_abap_structdescr,
    t_components TYPE STANDARD TABLE OF abap_componentdescr.
    obj_type ?= cl_abap_typedescr=>describe_by_name( 'I_EKKO' ).
    CALL METHOD obj_type->get_components
      RECEIVING
        p_result = t_components.
    in t_components you can see the components of the structure, i mean all the fields of it.

  • Structure changes in the LBWE, where does the field pool come from MCVBUK

    Example:  Customising Cockpit, lbwe > 2lis_11_vascl > Maintain structure
    In lbwe the field 'pool' for MCVBUK does not have all the fields that I can see if I look at Structure          MCVBUK using se11 such as FKSTK, FKSAK.
    What does this depend on ?  Is it to do with the events ?
    Yet OSS Notes say to choose the fields from lbwe:
    structure changes in the LBWE SAP Note Number: 762951
    Note 576886 - Change to user-defined fields not extracted

    But enhancing extract structures, you don't get the delta capability on the  sepcific field (if you need it) - and there is no simple solution to this.
    I found these OSS notes:
    <b>Note 328255 - Not all fields provided in Customizing Cockpit</b>
    This behavior is wanted. As not all fields of the communication structures can be used in a practical way, some are hidden. Fields are hidden for the following reasons:
              o The field is not filled for this event.
              o The field is only used internally (for example the work center ID - instead, the respective work center name is available).
              o The field should not be used here for reasons of design. Principally, you should select key figures only from the most detailed communication structure (or from the one with the most detailed hierarchy) and only the characteristics from all communication structures.
    <b>Note 351214 - BW extraction SD: Restricted field selection</b>
    This note goes into more detail
    By the way, thanks for the replies, but the question was 'why ?' and I the OSS notes replied to this.
    The whole problem is to do with 'delta' enabling, and I've spent a day researching to find that there is no easy way to delta enable enhanced extract structure fields.

  • DB Table for the field RIMR0-CNTRC , Which is structure

    Hi,
    Help me to find the DBtable where the field RIMR0-CNTRC(Structure) update.the transaction used is ik17.
    I have tried all possible ways , inturn it shows structures.
    Richard

    Goto SE15 -> ABAP Dictionary -> Table fields -> Only specify the field name and  execute.
    It will display all DB tables which has that field.
    Reward if its useful.
    Regards,
    Sail

  • Structures-- to populate the field

    how to populate the fields in the internal table , in which the fields are in structure.

    Use select query to populate the fields in the internal table.
    e.g. -
      Types (ty_)
    TYPES:
            BEGIN OF ty_alv_output,
              vbeln         TYPE vbeln,
              vbtyp         TYPE vbtyp,
              auart         TYPE auart,
              NETWR         TYPE NETWR_ak,
              WAERK         TYPE waerk,
              VKORG         TYPE VKORG,
              VTWEG         TYPE VTWEG,
              SPART         TYPE SPART,
              VKGRP         TYPE VKGRP,
              VKBUR         TYPE VKBUR,
              GSBER         TYPE GSBER,
              matnr         TYPE matnr,
            END OF ty_alv_output,
          ty_table_alv_output   TYPE STANDARD TABLE OF ty_alv_output.
      Internal tables(gt_)
    DATA :
          gt_alv_output   TYPE STANDARD TABLE OF ty_alv_output.
      Work area
    DATA :gs_alv_output   TYPE ty_alv_output.
      Selection screen data
        select-options   (s_)
          parameters     (p_)
          radio buttons  (r_)
          checkboxes     (x_)
          pushbuttons    (b_)
    SELECTION-SCREEN  BEGIN OF BLOCK block1 WITH FRAME TITLE text-f01.
    SELECT-OPTIONS:
    s_vbeln  FOR vbak-vbeln,                       "Sales Document
    s_vbtyp  FOR vbak-vbtyp,                       "SD document category
    s_auart  FOR vbak-auart.                       "Sales Document Type
    SELECTION-SCREEN  END OF BLOCK block1.
    START-OF-SELECTION.
    SELECT  vbeln
              vbtyp
              auart
              netwr
              waerk
              vkorg
              vtweg
              spart
              vkgrp
              vkbur
              gsber
              matnr
         INTO CORRESPONDING FIELDS OF TABLE gt_alv_output
               FROM vbak
                  WHERE vbeln IN s_vbeln
                    AND auart IN s_auart
                    AND vbtyp IN s_vbtyp.
    This selct query will fill the data in internal table.
    Plz reward if found helpful
    Thanks

  • Length of a field in a structure

    Hi,
    Is there any restriction on the length of the field in a structure which is CHAR type ??
    Thanks.

    Sample
    report zrich_0001
           line-size 1023.
    data: begin of s,
          a(65510) type c,
          b(25) type c,
          end of s.
          s-a = 'This is field 1 asdfkljas;dfkja;sldkjf;aslkdjf;alskdjfa' &
                'asdfkajsd;kfjas;dlkfj;aslkdjf;alksjdf;lkasjdf;lasdfasdf' &
                'asdfkljas;dlkfj;askdjf;askjdf;lkasdjf;lkasj  thd end'.
          s-b = 'This is field 2'.
          Write:/ s-a.
          write:/ s-b.
    Regards,
    Rich Heilman

  • Difference among Model node creation, model attribute creation and the field creation in database through AET?

    Hello Friends,
    To display the field on the View, we can create the field via 3 ways:
    1) By creating the model attribute
    2) By creating the model node using the GENIL object and using its attributes in view
    3) Creating the field in Database structure using AET
    But, i am not aware that in exactly what kind of business scenarios we use the above 3 methods to create the field.
    Could you help me out to clarify the same.

    Hi Dev,
    1). By creating the model attribute: we will use this option in case of the field is avaibla in stanadrd sap system. It might be in another under child context nodes and we will use BOL relations to access the attribute.
    2).  By creating the model node using the GENIL object and using its attributes in view: We will use this option incase of there is no standard provision to use. Means you want to create any custom assignment block with custom attributes then you can go for this option. More over we can use AET to create custom genil object. We have an option Create Table in AET.
    3).Creating the field in Database structure using AET: We will use this option incase of there is no attribute in database relevant to your requirement then we will go for AET enhancement.
    Hope this might give you little clarification..
    Best Regards,
    Dharmakasi.

  • 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

  • Adding the fields to VCSD_UPDATE

    Hi all,
    I have to add 3 fields into VCSD_UPDATE structure. I got the user exit EXIT_SAPLCEI0_001 to add the fields into this structure. Can any body tell me the logic how to add the fields in this structure.
    If anybody having the logic please provide...
    Thanks in advance,
    Bala...

    yes.
    Once the enhancement is done for data source in r/3 side, you will have to replicate the datasource in BW.
    Adding new fields will deactivate the update rules. You have to map the same in update rule and activate the same.
    This will require activation of  transformations, update rules, etc for related DSOs. Try to find out the where used list for the DSO where you want to add the new objects. Then check each objects whether these are activate after the changes. If these are inactive, you will have to activate all the objects.
    Cheers
    Chanda

  • Reading a field symbol whose structure is dynamic

    Hi Experts,
    I have used the concept of dynamic internal tables to select data from COSS/COSP for e.g.database tables.Field symbol of type " ANY TABLE" has been used to select data , as the dynamic structure is assigned directly to the field symbol.
    To calculate the values of various fields I need to read the this field symbol for diferent line items , but I get a compilation error saying " Key not Found ". I understand that I am not able to read the field symbol because its structure is of type 'ANY TABLE' .How do I read this field symbol ?
    The field symbol gets the structure of dynamic internal table as formed initially by using class concept.Is their any way in which I could get the structure of this field symbol or any other way to read it?
    Thanks in advance.
    Regards
    Reetwika

    Hi Ritwika,
    Even if u use the concept if dynamic internal table, u can read the each of the field of ur structure,
    if u know the name of the field.
    for example:
    MATNR being one of the field of internal table
    field-symbols : <fs> type any.
    loop at <fs_it> into <fs_wa>.
    ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_wa> to <fs_matnr>.
    " in this case matnr field value will be assigned to the field symbol <fs_matnr>, so it can be used further.
    endloop.
    " do reply if still confused.
    Rohit G
    Edited by: Rohit Gaharwar on Aug 12, 2009 11:51 AM

  • 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 compare and copy the fields from repeating subform to another subform, same structure.

    Dear All,
    I am using LiveCycle Designer 8.2.
    I have the following requirement, and did not figure out the best way to implement it using JavaScript.
    The Form has, say, Subform A with Repeating Inner Subform, say it has the Education History of the Staff.
    I want to put another Subform B, with similar structure to From A, and create a button/function to copy the field data values from A to B.
    Subform A will show the user the fields of education with Read-Only Mode.
    Subform B will show the user the same data values with write-enable mode. This subform will allow the user update his Education Records.
    The fields are:
    0. Staff ID: Text (Key 1) (always read-only and hidden, becuase it is on the main form),
    1. Degree: Text,
    2. Specialization: Text,
    3. Institution: Text,
    4. Start Date: Date (Key 2),
    5. End Date: Date.
    Another function is needed is to compare the same records between form A and Form B.
    (Note: The Education record of a Staff has primary key of Staff ID and Start Date. Meaning, the Staff cannot have tow different degrees in starting on the same date.)
    The user may change the Institution in form B or change the Degree. I need to highlight, on Subform B, the row which was changed or added by the user. This means I need to do lookup against Subform B using the Key Values from Subform A.
    I have already developed the Form, and I have about 5 Subforms to allow updated by Staff: Education, Experience Inside the company, Experience Outside the company, Job Skills, Membership Record, ..etc. One thing I did is that the Field Names I used in Subform A are not the same of the fieldname in Subform B, but the have same suffix, and different prefix. For example, for the Education:
    Subform A - Original Values:
    1. Degree: OrgDegreet,
    2. Specialization: OrgSpecialization,
    3. Institution: OrgInistitution,
    4. Start Date: OrgDateStart (Key),
    5. End Date: OrgDateEnd.
    Subform B - Updated Values:
    1. Degree: UpdDegreet,
    2. Specialization: UpdSpecialization,
    3. Institution: UpdInistitution,
    4. Start Date: UpdDateStart (Key),
    5. End Date: UpdDateEnd.
    I understand if the Key field is updated, then it is like it was deleted, and added a new one.
    I know how to do that in ASP.NET, but need help in Adobe LiveCycle using JavaScript.
    Please help me to write these two functions, as they are very urgent requirement.
    Tarek.

    In the event Exit of the 1st subforum.invoice you will find the code to assign the value to it's "brother" on page4.
    Also, on the add button i added the code to add a record to the page4 subforum.
    To make this work you will have to copy/past the code of the exit event to all fields you want to copy and in the xfa.resolvenode("XXXXXXX[].fieldName") command replace fieldname with the actual name of the field you're at.
    I didnt't do anything to te remove line button because i don't know how you want it to work, but, if you want to control the p4 subform with the p1 subform, you shouldn't allow for lines to be removed directly in the p4 subform.
    Hope this helps.

  • The source and target structure have a different number of fields

    Hi,
    I am new to workflow and I am trying to create an attachment in Workflow (SAP ECC 6.0) and pass it through to a User Decision (User Decision works fine) however the workflow is failing on the attachment step with u2018The source and target structure have a different number of fieldsu2019. The bindings check ok. Please see details below.
    I have used document u2018Creating Attachments to Work Items or to User Decisions in Workflowsu2019 by Ramakanth Reddy for guidance. Thanks in advance.
    1) Workflow containers (SWDD)
    WORKITEMID (import)
    ZSWR_ATT_ID (export)
    SOFM (export)
    2) Task Container (PFTC)
    1 Import parameter defined u2013 WORKITEMID (swr_struct-workitemid)
    2 Export parameters defined
    - SOFM (Ref. obj. type SOFM)
    - ZSWR_ATT_ID  (swr_att_id-doc_id)
    Binding task -> Method
    Binding for 1 parameter (import) defined
    Task <- Method
    Binding for 2 parameters (export) defined
    3) Z  BOR object created with a Method, Method Parameters and Event (SWO1)
    1 import parameter defined
    2 export parameters defined
    Method calls FM SSF_FUNCTION_MODULE_NAME, CONVERT_OTF, SCMS_XSTRING_TO_BINARY and SAP_WAPI_ATTACHMENT_ADD
    Workflow is triggered by FM SAP_WAPI_CREATE_EVENT, Return_code = 0
    Event_id = 00000000000000000001
    Test results
    A) Triggered by ABAP/ FM SAP_WAPI_CREATE_EVENT - SWI2_DIAG results
    Work item  14791: object <z bor object name> method <method name> cannot be executed. The source and target structure have a different number of fields (this message is repeated 3 times). Error handling for work item 14791. No errors occurred -> details in long text (message is repeated 3 times).
    Message no. WL821, OL383, WL050 in long text
    B) Z BOR Test method <execute>
    Enter workitem id.
    Runtime error - Data objects in Unicode programs cannot be converted. The statement "MOVE src TO dst" requires that the operands "dst" and "src" are convertible. Since this statement is in a Unicode program, the special conversion rules for Unicode programs apply.                                        
    In this case, these rules were violated.   
    Program                             SAPLSWCD                
    Include                                LSWCDF00                
    Row                                    475                     
    Module type                        (FORM)                  
    Module Name                      MOVE_CONTAINER_TO_VALUE           
    C) Z BOR Test method <debugging>
    Enter workitem id.
    SAP_WAPI_ATTACHMENT_ADD, return_code = 0, message_lines  = Attachment created            
    both  swc_set_element container work ok
    Runtime error occurs after end_method executed. Data objects in Unicode programs cannot be converted.
    D) Workflow test
    Enter workitem id <execute>
    Task started> Workflow log> Status = Error
    Workflow errors in Attachment step (however Office document can be viewed in details for step).

    Problem has now been resolved. Problem was related to use of swr_att_id structure and swc_set_element statement in BOR program - problem resolved by only setting w/f container to swr_att_id-doc_id.

  • What is the field "INFTY" in the structure P0006 used for?

    Hi HR Experts,
    The PSKEY vs PAKEY is the field INFTY. So what is the field INFTY in the structure P0006 used for?
    Thanks!
    Anthony

    The PSKEY is related to teh PSNNNN structure that is associated with the data of a given info type.  the PSKEY holds INFTY for processing info type data genericaly in background programs through generic structures,  IE: pass any info type structure to a FM.  This INFTY field allowed the programs to know which info type structure is being processed unlike the PAKEY which is used to save infotype data in the back end system at the DB level.
    thanks.
    JB

  • Enchancing the field in But000 and in BAPIBUS1006_CENTRAL_PERSON Structure

    Hi All,
         Please help me to resolve the issue. I have a requiremtent in E-rec, during external candidate creation, I have to include 3 fields along with personal data (Nationality, marital status and Total years of experience). In BUT000, there is placeholder for Marital Status and Nationality fields, so i had enchanced the view V_APPL_DATA in web dynpro component: ERC_C_APPL_MGMT_UI and mapped the field to corresponding fields in BUT000. But for total years of experience there is no placeholder in BUT000, so i have to enchance the BP. I am facing problem in this, when I enchanced the field in CI_EEW_BUT000 manually and checked it but after that I found that in BAPIBUS1006_CENTRAL_PERSON the field should be available to upload the value into BUT000. When i tried to enchance the field it is not allowing to activate and when i tried to append the structure it is appending the same structure. When I surfed I came to know that using EEWB T-code it is achiveable but it is not creating any field in that BAPI structure it is only creating the ZZ field in BUT000.
    And also I came to know about BUPT T-code, whether it satisfies my requirement. Please Advice.

    Dear Ramesh,
    if you use a replication of HR employee (multiple work assignments (P) of a person, e.g. concurrent employment, global employee)  to SRM via ALE (idocs) the business partner integration in SRM will create a single central person and related single business partner covering all position assignments within organizational management.
    In this scenario it is recommended to have a single user assignment for the person in HR, means if more than one active work assignment (P) exist in HR only one user should exist at one of the employees (infotype 0105, subtype 0001).
    Regards,
    Michael

Maybe you are looking for

  • How to export photos from iMac to iPad and iPhone

    How to export photos from iphoto to my iPad and iPhone the easiest way.

  • SAP walking the talk

    In a [blog post|/people/franz.hero/blog/2009/04/14/what-are-they-thinking-part-2-about-sustainability] titled What are they thinking!?! Part 2 about Sustainability, Franz Hero of SAP said: "SAP will reduce CO2 emissions per employee per 60% until 202

  • Pricing recalculation in ECC - how it is done and Exit to change the logic

    Hi all, I have  a issue relatedto PO's created(rather replicted) in ECC system from SRM system.When the PO's are replicated from SRM,the pricing is recalculated in R/3 based on DEAFULT setting.Nw when the tax code is changed in SRM PO,the changes are

  • JPEG in DV50 sequence quality issues in FCP5

    I had been working on graphics in DV50 in 4.5. the graphics were JPEGs that were 150 by 786 and I would crop them and place them over video and other layers of graphics. The type was sharp and there was no problems. When I did the same thin in FCP5 t

  • How do i import a DVD to my MAC

    i am trying to import or copy a DVD of a memorial to my MAcPro but cannot find any help topic for DVDs Please advise