質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top