2009 Mar 25 6:34 AM
Hello Gurus,
Please help me to work with this. I'm trying to call a subroutine to a particularly program, but I want it to be flexible/reusable. I tried using field-symbols to pass the name of subroutine and program, but can't make it. Here's the details:
I have 2 paramaters:
PARAMETERS:
prognam LIKE tnapr-pgnam,
formnam(50).
Inside my program, Iwant to make this PERFORM statement to be dynamic:
PERFORM formname IN PROGRAM prognam.
So I don't need to crete several perform statements. Any help is very very much appreciated.
2009 Mar 25 6:38 AM
Hi,
You cannot give the Formname dynamically where as you can give the program name.
PERFORM CALL_549B IN PROGRAM (PROGNAM)
USING BACK
STATUS
STRUC_CONTENT.
Hi,
You cannot give the Formname dynamically where as you can give the program name.
PERFORM CALL_549B IN PROGRAM (PROGNAM)
USING BACK
STATUS
STRUC_CONTENT.
2009 Mar 25 6:38 AM
Hi,
You cannot give the Formname dynamically where as you can give the program name.
PERFORM CALL_549B IN PROGRAM (PROGNAM)
USING BACK
STATUS
STRUC_CONTENT.
2009 Mar 25 6:45 AM
Try this:
PARAMETERS:
prognam LIKE tnapr-pgnam,
formnam(50).
PERFORM (formnam) IN PROGRAM (prognam).
2009 Mar 25 6:48 AM
Hi Vijay,
Bingo! Yes, this what I want. Many many thanks for a great help from you
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |