Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Includes with SAPConsole

Status
Not open for further replies.

schnut

Programmer
Mar 18, 2003
9
CA
Hi,

I'm trying to use an 'include' statement in my code, and thecode is rejecting it... well, giving me a warning saying 'Statement is not acceptable'. The include is after all declarations and right before my first call screen statememt. Is it possible to use an include statement with SAPConsole, or am I hitting an error I don't know how to solve?

TIA.

Kevin
 
Kevin, Probably the include statement is not formatted correctly. There are special naming conventions for includes in functions. If you don't follow them, syntax check may work in SE38 but fail if you try to execute. Include the code snipet in your post.
Mike
 
Hi Mike...

This is what I had...

...
*----- I N T E R N A L T A B L E -----
* Batch Data Communication table for transactions.
DATA: BEGIN OF bdc_tab OCCURS 0.
INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.

* Table for messages from CALL transaction
DATA: BEGIN OF t_messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF t_messtab.

INCLUDE zhydbdc.

START-OF-SELECTION.
CALL SCREEN '0100'.

END-OF-SELECTION.

*&-------------------------------------------------------*
*& Module initialize_data OUTPUT
*&-------------------------------------------------------*
* text
*--------------------------------------------------------*
MODULE initialize_data OUTPUT.
ltak-tanum = '287848'.
.....

The one thing is that the include file, everything is a form. It seems that you can't have forms and modules working together...

I'm still pretty new to ABAP and am probably going about this the wrong way.

TIA!!

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top