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

Copying a BApi to a function module

Former Member
0 Likes
1,313

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?

9 REPLIES 9
Read only

Former Member
0 Likes
1,155

you need to copy all the related includes as well and then activate everything together

Read only

0 Likes
1,155

*******************************************************************

  • 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

Read only

0 Likes
1,155

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.

Read only

0 Likes
1,155

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

Read only

0 Likes
1,155

How do i copy those subroutines.

Also how do i copy the contents from here(INCLUDE LV02DUXX. " Function Modules)

Read only

0 Likes
1,155

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.

Read only

0 Likes
1,155

thanks fellows i seem to have sovled it

I recon that the entire function group has to be copied and not individual function modules

Read only

Former Member
0 Likes
1,155

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

Read only

Former Member
0 Likes
1,155

Hi,

When you click 'Activate', select all object coming in popup and press enter.

Regards,

Amit