‎2006 Jun 30 6:43 PM
Friends,
I am trying to copy Function Group STXW into Z_STXW with one function module CONVERT_ABAPSPOOLJOB_2_PDF.
But I am not able to activate the main program SAPLZ_STXW. I get an error 'Field OTF is unknown'. But OTF is an internal table already defined in the function module CONVERT_ABAPSPOOLJOB_2_PDF (I have activated this FM). I also have activated all other includes.
Please resolve. Thanks in advance.
Warm Regards
Sagar
‎2006 Jun 30 8:48 PM
<u>Scenario 1(when you copied only 1 function module).</u>
If you are able to successfully activate, then the problem may be with navigation index not being regenerated correctly. To do that, go to your function module display in SE37. Once inside the source code, in the menu, 'Utilities--> update navigation index' will do the trick.
<u>Scenario 2(where you copied all the function modules)</u>
Here the error is coming because the function module in question has its parameters declared as global. Probably when you copied yours are not. You can check that in attributes tab of the function module. To globalize your function module's parameters, you have to be in change mode. In the menu, 'Edit>Interface> Globalize parameter' will do the trick.
‎2006 Jun 30 6:47 PM
Hmm..as you have copied it should not have given error.
Can you also check whether STXW also shows error message?
If possible compare the code with STXW FG.
Regds
Manohar
‎2006 Jun 30 6:53 PM
STXW does not show error. There is no difference when we compare the code.
Warm Regards,
Sagar..
‎2006 Jun 30 6:52 PM
‎2006 Jun 30 6:54 PM
‎2006 Jun 30 7:09 PM
Rich,
I tried copying all the function modules, the error persists. This time the message is 'The field POSTSCRIPT is unknown' in FM Z_DISPLAY_POSTSCRIPT. But this FM is very much active.
Warm Regards,
Sagar
‎2006 Jun 30 8:48 PM
<u>Scenario 1(when you copied only 1 function module).</u>
If you are able to successfully activate, then the problem may be with navigation index not being regenerated correctly. To do that, go to your function module display in SE37. Once inside the source code, in the menu, 'Utilities--> update navigation index' will do the trick.
<u>Scenario 2(where you copied all the function modules)</u>
Here the error is coming because the function module in question has its parameters declared as global. Probably when you copied yours are not. You can check that in attributes tab of the function module. To globalize your function module's parameters, you have to be in change mode. In the menu, 'Edit>Interface> Globalize parameter' will do the trick.
‎2006 Jul 06 10:22 AM