Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

include form--endform

i put in include

form xxxx

endform.

and i get error why?

what should i do?

Tags:
replied

I don't think that you can do that, have an INCLUDE inside of a FORM. Put the INCLUDE statement at the end of your program outside the FORMS, you can include your code by wrapping it in a another FORM which is in the INCLUDE.

FORM XX.
   perform call_alv_grid.
ENDFORM.

include YY.

Now in the include source, have a FORM.

**include  YY.

form call_alv_Grid.
* Do whatever.

endform.

Also you can call the FORM directly instead of going thru the FORM XX.

Make sense?

Regards,

Rich Heilman

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question