Skip to Content
0
Former Member
Jul 27, 2016 at 05:13 PM

Dynamic Read statement with different key s .

54 Views

Hi Guru,

I would like to write Generic READ statement .which should accept different keys.

I am passing dynamic table , and according to that populating data.

so each time the key fields perhaps change in the READ statement .

Exmple; First I will pass MARA table: and get the data into internal table.

Then I use Read statement with key MATNR .

next time will pass MAKT table and read the data from internal table .

I want use same READ statement for both INTERNAL TABLES dynamically.

First Time(mara) MANTR is the key field

Second time (MAKT) MATNR ,SPRAS are key fields.

So I would like to use same READ STATEMENT for all the Tables.

I have searched in SCN but no proper solution.

Please suggest me How to write GENERIC READ STATEMENT (Means each time Key fields will be changed but I WANT TO use Single Read statement )

Thank you .

Regards,

Shivaji.