Question

I have the following problem: I'm testing many BAPI's and dont want to create a Table with the corosponding types for the rows, each time I call a new BAPI.

Is it possible to generate s.th. like a generic table like:

DATA foo TYPE ANY TABLE.

and use this to put it as the table parameter to get the result of the bapi?

Was it helpful?

Solution

No, this is not possible - you can't declare variables using a generic type. However, you could try to determine the data type (e. g. using RPY_FUNCTIONMODULE_*) and then use CREATE DATA to create the table dynamically using a reference. Check the documentation of CREATE DATA for an example.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top