Dear all,
I am writing a program which includes different routines; it will be the best for me to separate different routines into different sub-routines for calling. However, it depends different parameters that I passed in, can I use a field symbol as the subroutine name for calling?
In the following sample:
DATA: program_name(20) TYPE C. FIELD-SYMBOLS: <BDC_NAME> TYPE ANY. CONCATENATE 'ZBDC_' i_program_name INTO program_name. ASSIGN program_name TO <BDC_NAME>. PERFORM <BDC_NAME> .
The error of the above code is <The FORM "<BDC_NAME>" does not exist> I think the problem may be the type of field-symbol, since I am assigning a parameter with type = C. SAP may not be able to recognize and convert it into a subroutine name. Is there any possible solution in doing this?
Regards,
Mandy Au