Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot activate

Former Member
0 Likes
1,189

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,110

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,110

do it in other way....

declare select option in INCLUDE program

subroutine in main program or another include prog.

Read only

kostas_tsioubris
Contributor
0 Likes
1,110

Hi,

make sure you have declared the include program after the select-options, then activate both programs. If necessary press activate anyway.

Kostas

Read only

Former Member
0 Likes
1,111

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.

Read only

0 Likes
1,110

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

Read only

Former Member
0 Likes
1,110

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

Read only

Former Member
0 Likes
1,110

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

Read only

Former Member
0 Likes
1,110

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

Read only

Former Member
0 Likes
1,110

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 .

Read only

Former Member
0 Likes
1,110

points rewarded. thank you very much