Skip to Content
avatar image
Former Member

Load data from application server into internal dynamic table using the fields of a table.

Hi,

I have a user maintained internal table, in which I have the OpenHub name, field and type(say T1).

Now I want to fetch data from application server based on the data in the internal table T1 and store it in a dynamic internal table T2.

So from the internal table T,1 I'll get all the fields for a particular user entered openhub.

I am not able to understand how to write code for fetching data from application server based on the data present in internal Table T1.

Can anyone please help me with this.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • I have no idea what openhub is, please can you clarify your question. Are you trying to dynamically specify which fields should be selected from a table, or trying to use dynamic conditions, or ...?

  • Former Member

    Hi Mike,

    Yes I am trying to dynamically specify the field from a table.

    So for this I believe I have to create a dynamic structure.

  • Get RSS Feed

2 Answers

  • Best Answer
    May 26, 2017 at 08:45 AM

    OK, for dynamic selection fields I can suggest two options:

    1. Specify a table of field names as your select field list - a simple table of strings should work

    select (field_table) from blah into table @data(my_result_table).

    2. Create your result table dynamically beforehand and then do:

    select * from blah into corresponding fields of table my_dynamic_table. 
    Add comment
    10|10000 characters needed characters exceeded

  • May 26, 2017 at 07:10 AM

    Are you talking about Black Duck Open Hub (used to be Ohio ?)

    Rich

    Add comment
    10|10000 characters needed characters exceeded