Skip to Content
0
Former Member
Feb 07, 2008 at 01:57 PM

Run Include dynamically

300 Views

Is there any possibility to call „INCLUDE“ in my ABAP program dynamically. I have many Includes which I call in Case-when-statement. I want to avoid this 20 whens.

Codes looks like this :

case obj.

when ‘Z001’.

Include z001.

When ‘Z002’

Include z002.

.

.

.

etc.

endcase.

I know it possibly for “SUBMIT” Report name and for “CALL” FM. So why not for includes?

Edited by: Saila on Feb 7, 2008 2:57 PM