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

problem in copying the function module.

Former Member
0 Likes
1,304

Hi All,

I have to Copy the standard function modules "FI_ITEMS_DISPLAY" and "ITEM_DERIVE_FIELDS".

The Function group for both of above FM is "FI_ITEMS".

What i did is I went to SE80 ,I copied down the Function Group 'FI_ITEMS' to 'ZFI_ITEMS'.

later on i copied the standard function modules 'FI_ITEMS_DISPLAY' and 'ITEM_DERIVE_FIELDS'

to the 'ZFI_ITEMS_DISPLAY' and 'ZITEM_DERIVE_FIELDS' resp.in the same function group 'ZFI_ITEMS'.

Then i made some changes to these copied modules (I did change the structure of it_items from RFPOSXEXT to ZRFPOSXEXT in ZFI_ITEM_ITEM_DISPLAY,and same change in ZITEM_DERIVE_FIELDS but for the parameter s_item).

And finally i activated these FM..and it got activated also.

But later on when i used these FM in my report...error occured saying that -

"The name of the function module to be called is "ZITEM_DERIVE_FIELDS".

but "ZITEM_DERIVE_FIELDS" cannot be found in its function group. "

hence i thought of activating the function group ZFI_ITEMS,which was inactive before to this...but when i tried activatin this FM it was giving hell lot of errors showing conflict occured at diffrent places,I think just because of the change (structure of IT_ITEM chnged from RFPOSEXT to customised ZZRFPOSXEXT).

I am helpless in removing all this errors ...

Can anybody suggest where did i go wrong?

And what is the right way to copy the function module.?

If possible reply me ASAP.

Thanx in advance.

7 REPLIES 7
Read only

naimesh_patel
Active Contributor
0 Likes
990

Hello Sanjay,

First, delete your new function group and

Do like this:

1. copy FI_ITEMS_DISPLAY to zFI_ITEMS_DISPLAY from Se37. here you find a button on the application toolbar to do it. It also asks about the Function group. GIve the FG as

ZFI_ITEMS.

Activate all the related objects

2. same for the other FM. Use the same FG. and activate the related objects.

Regards,

Naimesh

Read only

0 Likes
990

Hi Naimesh,

You are saying to delete my new FG and copy the standard FM with FG name ZFI_ITEMS.

But in my case ZFI_ITEMS itself is the new function group which i copied from the standard FG FI_ITEMS.

I got confused with ur statement..Can u please exaplain it one more time plz.

Read only

vladimir_golovtchiner
Participant
0 Likes
990

Hi,

if you activate FG some times you need to ignor all errors for the first time. if you will activate it second time you will get no errors.

regards

Vladimir

Read only

0 Likes
990

hi Vladimir,

Thanks for response .

while activating first time it eror box appeared i pushed the button ACTIVATE ANYWAY.and activated the function group.

But when i used these FM in my report same errors poped up.

Read only

Former Member
0 Likes
990

pl refer the following thread and uncoment only following include

INCLUDE LZZFI_ITEMSF01.

INCLUDE LZZFI_ITEMSF11.

INCLUDE LZZFI_ITEMSO01

INCLUDE LZZFI_ITEMSTOP. " Global Data

INCLUDE LZZFI_ITEMSUXX.

Read only

Former Member
0 Likes
990

hi

--> Mainly we face two problems when copying the standard to z customized

1) First we need to check the language support and

2) Second one is where we are storing that mean Function Group for this we need to specify the FG name .

Read only

Former Member
0 Likes
990

This message was moderated.