Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 23, 2005 at 05:43 PM

    Off the top of my head, I can only think of one function where the "parameter" is not defined. In function GUI_DOWNLOAD, the data_tab parameter under the TABLES has no type associated with it. With this function, the structure of the data_tab takes the structure of the table that you send it.

    Do you have some examples of a IMPORTING or EXPORTING parameters which is not typed? Please post.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 23, 2005 at 06:38 PM

    If you look at the code of the function module COPA_UPDATE_STANDARD_MEASURES, you will find that the parameter I_COPA_LINE_ITEM is ultimately used to fill the feild-symbol which is assigned the structure of the table contained in the table parameter I_TABNAME.

    So in other words, here I_COPA_LINE_ITEM should be of the same structure as that of the table you specify in the other parameter I_TABNAME.

    Hope this helps.

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.