‎2008 Aug 27 11:15 AM
Hi
Im trying to copy the bapi BAPI_CUSTOMER_CREATEFROMDATA1 to my own function module in se37 which in in my function group. The Bapi gets copied properly but when i activate my FM it throws an error saying report/program type is missing or program type is include.
Can anyone try this out and tell me what should i do?
‎2008 Aug 27 11:16 AM
you need to copy all the related includes as well and then activate everything together
‎2008 Aug 27 11:39 AM
*******************************************************************
System-defined Include-files. *
*******************************************************************
INCLUDE LZDEXTOP. " Global Data
INCLUDE LZDEXUXX. " Function Modules
It's something to do with these 2 includes . The content inside them is almost blank as opposed to that of the bapi.
Can somebody please try this and tell me if they successful
‎2008 Aug 27 11:42 AM
did you try activating all the includes and the FM together....if not then try it...else first activate the includes and then the FM....if thre are no errors it will activate...
else you will need to resolve the syntax errors...may be some data declarations are missing.
‎2008 Aug 27 11:54 AM
Hi,
Even while copying Function group it does not copy the includes for subroutines.
You will have to create these manually in new function group and then do a copy paste of code .
You have to write the Top include ( Global data )
Thanks
Papiya
‎2008 Aug 27 12:09 PM
How do i copy those subroutines.
Also how do i copy the contents from here(INCLUDE LV02DUXX. " Function Modules)
‎2008 Aug 27 12:14 PM
The problem is i am unable to save this new function module in the function group of the BAPI so i saved it in my own function group. Hence all the functions which are present in the bapi function group are not included in my group.
‎2008 Aug 27 12:26 PM
thanks fellows i seem to have sovled it
I recon that the entire function group has to be copied and not individual function modules
‎2008 Aug 27 11:28 AM
Dear,
Go to SE80
Give Function group name
Expand the Functionmodules icon
select Function Module name and right click on that
U can find the copy option.
Thanks and Regards
‎2008 Aug 27 11:44 AM
Hi,
When you click 'Activate', select all object coming in popup and press enter.
Regards,
Amit