2008 Apr 01 9:26 AM
Hello all,
In order to be able to transport a program from DEV to QAS to PROD (and not getting errors), in my program I would like to be able to do the following:
IF SY-SYSID = PROD.
include /1BCDWB/IQG000000000118DAT. "Generated by SAP QUERY. exists in PROD only
.
.
IF SY-SYSID = QAS.
include /1BCDWB/IQG000000000222DAT. "Generated by SAP QUERY. exists in QAS only
.
.
IF SY-SYSID = DEV.
include /1BCDWB/IQG000000000777DAT. "Generated by SAP QUERY. exists in DEV only
.
.
Syntax check errors prevent me from generating the program as all "include" arguments must exist beforehand.
So I need a way of selecting the right INCLUDE argument dynamically depending on some condition without getting syntax errors.
Your help is greatly appreciated.
Hello all,
In order to be able to transport a program from DEV to QAS to PROD (and not getting errors), in my program I would like to be able to do the following:
IF SY-SYSID = PROD.
include /1BCDWB/IQG000000000118DAT. "Generated by SAP QUERY. exists in PROD only
.
.
IF SY-SYSID = QAS.
include /1BCDWB/IQG000000000222DAT. "Generated by SAP QUERY. exists in QAS only
.
.
IF SY-SYSID = DEV.
include /1BCDWB/IQG000000000777DAT. "Generated by SAP QUERY. exists in DEV only
.
.
Syntax check errors prevent me from generating the program as all "include" arguments must exist beforehand.
So I need a way of selecting the right INCLUDE argument dynamically depending on some condition without getting syntax errors.
Your help is greatly appreciated.
2008 Apr 01 9:27 AM
include can never be dynamic. Either you include something or not.
2008 Apr 01 10:02 AM
hi,
to determie query generated program name dynamically you have to use FM RSAQ_REPORT_NAME in your pogram.
On the other hand why do you want to include a query source code into your program? It does not make any sense (at least for me)...
ec
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |