Cannot activate

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.

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

Similar Messages

Maybe you are looking for