Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create internal table dynamically for IDoc fields

Hi,

I need to create an internal table dynamically based on the segment field names that are returned in the table pt_fields when calling function 'IDOCTYPE_READ_COMPLETE'. I see many posts suggesting classes such as 'cl_wrf_dynamic_table=>create_dynamic_table', but it does not work for me. The problem I have with the classes is that it doesn't allow you to have the same column name more than once. But in the scenario I am testing, I have some column names that are duplicated, and I cannot remove the duplicates. Are there any functions or classes that I can use to create a dynamic internal table that will not check if a column name is used twice?

Thanks,

Carrie

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question