‎2009 Jan 07 4:41 AM
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
‎2009 Jan 07 4:54 AM
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
‎2009 Jan 07 6:35 AM
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
‎2009 Jan 07 6:45 AM
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).)
‎2009 Jan 07 6:49 AM
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
‎2009 Jan 10 1:37 PM
hello friends my problem is solved .
Thanks for help .
Thanks And Regards
Shrikant Ambulkar