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

Field symbols/Data ref - dynamic structure determination

I am creating a class which is used to create idocs within in the system. I want this object to be dynamic so that the same can be reused. As a part of this class, one of the method would create the segments for the idocs. My idea was to pass the segment name to this method and it should dynamically determine the components of the structure. I was hoping to get this done simply via field symbols and data references instead of using the RTTS process.

The last statement obviously throws an error stating " The data object "<FS_SEGMENT>" has no structure and therefore no component called "COMP_CODE" which makes absolute sense but how do I overcome this without using RTTS?

Thanks,

Vikram.M

Capture.JPG (28.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 07, 2016 at 07:36 PM

    Please check the ASSIGN COMPONENT OF... syntax. You will need one more ASSIGN statement.

    Thanks,

    Juwin

    Add a comment
    10|10000 characters needed characters exceeded

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.