2007 Apr 11 10:23 AM
Hi,
My work unit consist of a main program (Z_MAIN) and an include program (Z_INCLUDE). It looks like this...
in the main program:
report z_main.
...
...
select-options: s_budat for mkpf-budat,
...
...
perform write_date.
in the include program (Z_INCLUDE):
form write_date.
...
...
write: s_budat-low.
...
endform.
My problem is I cannot activate the 2 programs because of the error: "S_BUDAT is unknown, it is not declared in the DATA statement." I would appreciate your help.
2007 Apr 11 10:31 AM
hi Joseph,
I assume that you have written INCLUDE Z_INCLUDE as first line after the report
statement.
change the code as below
report z_main.
select-options: s_budat for mkpf-budat,
include Z_INCLUDE.
perform write_date.
Hope this helps,
Sajan Joseph.
hello,
While activation select both your main program and incude and activate.
if you are activating main program and include simultaneously it will gets activated.
Regards
2007 Apr 11 10:28 AM
do it in other way....
declare select option in INCLUDE program
subroutine in main program or another include prog.
2007 Apr 11 10:31 AM
Hi,
make sure you have declared the include program after the select-options, then activate both programs. If necessary press activate anyway.
Kostas
2007 Apr 11 10:31 AM
hi Joseph,
I assume that you have written INCLUDE Z_INCLUDE as first line after the report
statement.
change the code as below
report z_main.
select-options: s_budat for mkpf-budat,
include Z_INCLUDE.
perform write_date.
Hope this helps,
Sajan Joseph.
2007 Apr 11 10:50 AM
Hi
see you are executing a write statement in include report..
to execute a write statement the report should be executable..
you can try like this..
z_main...
data : v_budat type mkpf-budat.
include znazinclude.
write : s_budat-low.
z_include...
select-options: s_budat for v_budat.
reward points if helpful
Regards
nazeer
2007 Apr 11 10:32 AM
hello,
While activation select both your main program and incude and activate.
if you are activating main program and include simultaneously it will gets activated.
Regards
2007 Apr 11 10:33 AM
did u add the <u><b>tabels</b></u> statement
report z_main.
<b>tables:
mkpf.</b>
selection-options:
s_budat for mkpf-budat.
Message was edited by:
Rajesh
2007 Apr 11 10:34 AM
HI,
be sure that u have placed include after the select-options declaration
try like this
REPORT YH633_TEST_INCLUDE.
TABLES SPFLI.
SELECT-OPTIONS:
S_CARRID FOR SPFLI-CARRID.
PERFORM WRITE_FORM.
INCLUDE YH633_TEST_INCLUDE_WRITE_FOF01.
----
***INCLUDE YH633_TEST_INCLUDE_WRITE_FOF01 .
----
form WRITE_FORM .
WRITE S_CARRID-LOW.
endform. " WRITE_FORM
2007 Apr 11 10:45 AM
Have you included the INCLUDE Z_INCLUDE in main program
report z_main.
select-options: s_budat for mkpf-budat,
perform write_date.
INCLUDE Z_INCLUDE .
2007 Apr 11 10:49 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |