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

bapi , problem while creating function module

Former Member
0 Likes
1,078

Hello Gurus And Friends ,

I got lot of data related to BAPI thanks for that .

I am facing one problem , while creating function module i am getting an error 'REPORT/PROGRAM statement missing, or program type is I (INCLUDE).' , because of which it is inactive and i cannot release it .

If have any helpful answer please reply .

Thanks And Regards

Shrikant Ambulkar

5 REPLIES 5
Read only

Former Member
0 Likes
748

Hi,

Active generated function group program.

eg if function group is ZABC.

then go to se80 enter program name SAPLZABC and then display.

right click on the the left frame and active all includes generated by the function group.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
748

Hi Shrikanth,

The problem is due to the inactive status of the function group. From the function module screen, use the following navigation to go to the Main program which is the function pool.

Use GOTO --> MAIN PROGRAM to navigate to the main program( Fn Pool) , activate the program and come back to the function module. Ensure that all the function modules in this function group are activated , bcoz even if one of the function modules has error or is in iactive status, the function group cannot be activated and hence cannot be released.

Hope this resolves your query.Please let me know if you require any further information.

Regards

Nagaraj T

Read only

0 Likes
748

Hello Friends ,

I tried and my problem is solved thanks for help .

But now facing problem while creating API method , i am facing following two problems because of which API is not crated.

1) BAPI ZBAPIV1: The ref. structure LFA1 of parameter BAPILIFNR does not begin with BAPI

(As data type references BAPI Parameters must use a structure (or the field of a strucure) whose names begins with the prefix "BAPI". You cannot use the same structures used in existing applications because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them.)

2) BAPI : BAPI function module ZBAPIV1 has no return parameter

(The system checks that the RETURN parameter has been defined in both the BOR and in the function module. The parameter must refer to one of the BAPI return structures (all planned reference structures can be used for BAPIs up to and including Release 4.6B; but from Release 4.6C only BAPIRET2 can be used).

The BOR parameter must be type EXPORT (one line or multi-line) and the function module parameter must be type EXPORT (if one line) or type TABLE (if multi-line).)

Read only

Former Member
0 Likes
748

Hi Shrikant,

As you are new to forum, please check this link for asking and answering in forums.

https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/rulesofEngagement

Try to search SDN for such basic questions, check this link for the same:

First activate the function group under which you are creating function module then activate FM.

Sachin

Read only

Former Member
0 Likes
748

hello friends my problem is solved .

Thanks for help .

Thanks And Regards

Shrikant Ambulkar