Skip to Content

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

How to define the TYPE of the internal table, so that it behaves variantly

hi

i am calling the functiopn module HR_READ_INFOTYPE in a seperate function module.

Every time while calling, i need to pass different infotypes.

So call to the subroutine becomes..

CONSTANTS :c_0000 type CHAR4 value '0000'.

DATA it_p0000 type STANDARD TABLE OF p0000.

PERFORM read_infotype using PERNR c_0000

changing it_p0000.

FORM read_infotype using p_pernr type PERSNO

p_c_nnnn type char4

changing p_it_pnnnn type any.

Here p_pernr will be the PERNR.

p_c_nnnn is a constant which will be having the infotype value. and it_pnnnn will be internal table of type STANDARD TABLE OF 'structure of respective infotype'

Now my question is

p_it_pnnnn will be of different table each time i pass its value with different infotype structures.

so in place of 'any' ( CHANGING p_it_pnnnn type any.) i need to provide a valid type for the Internal table..

What should be its TYPE ?

Thanks & Regards

Manjari

Tags:
Former Member
Former Member replied

Hi manjari,

Instead of any you can also give Standard Table.

Regards

Karthik D

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question