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

Shared enhancement point problem.

aditya_niyogi
Participant
0 Likes
828

Hi Experts,

I am facing a complex problem:

(1) I have a requirement to make a specific enhancement for a specific transaction.

(2) In the primary program of the transaction I have placed all my custom subroutines.

(3) Now in one of the INCLUDE's of the program the above subroutines are being accessed.

The problem is that the INCLUDE discussed in point 3 is being shared by many other transactions. So when I am running the other transactions - they are giving me a dump saying that the SAP standard program is now syntactically incorrect. I think this is arising since the other transactions cannot find the custom subroutine that I had made in the main program discussed in point 1. Can anyone help me with the solution to this problem??

6 REPLIES 6
Read only

Former Member
0 Likes
769

Hi ,

ref. to ur prev. Post , u need to filter based on the sy-tcode , put a condition in that include program.

regards

Prabhu

Read only

0 Likes
769

Hi,

I tried that but this is a new problem. I am getting a dump all programs which is sharing the INCLUDE program that I had enhanced. For the original transaction it is working but all shared trasactions are showing dumps.

Regards,

Aditya.

Read only

0 Likes
769

dude ,

paster ur code , and enhancement spot code as well.

regards

prabhu

Read only

0 Likes
769

Hi Prabhu,

See the code below:

ENHANCEMENT-POINT create_fieldgroups_l_01 SPOTS es_miolvc20 INCLUDE BOUND.

$$-Start: CREATE_FIELDGROUPS_L_01----


$$

ENHANCEMENT 27 OIO_MIOLVC20. "active version

CASE h_fieldcat_wa-fieldname.

when 'OIO_HOLD'. "SOGK004254 AN

h_fieldcat_wa-sp_group = 'B'. "SOGK004254 AN

h_fieldcat_wa-just = 'C'. "SOGK004254 AN

h_fieldcat_wa-seltext_s = 'H'. "SOGK004254 AN

ENDCASE.

ENDENHANCEMENT.

ENHANCEMENT 28 Z_CUSTOM_WO. "active version

IF sy-tcode = 'IW37'.

PERFORM zinitstat.

ENDIF.

ENDENHANCEMENT.

Require a solutions ASAP. Thanks in advance.

Edited by: Aditya Niyogi on Aug 22, 2008 12:40 PM

Read only

Former Member
0 Likes
769

Hi Aditya,

First of all we need to check if the code in the include is consistent and active..the code needs to be activated without errors in the main program....activate the entire program once again..just to be sure

One option is to click on the 'Debugger' button when the shortdump has occured and see the exact code where the dump occurs..this may give an insight as to why it dumps for original transactions and doesn't for others and which fields or variables are causing the dump

Please check and revert

Regards

Byju

Read only

0 Likes
769

Hi Byju,

I managed to solve the issue. The problem was that when I checked the program - RIAFVC20 it was syntactically correct. However when I checked the program RIAFVC10 - which runs the transaction IW48 - the program was syntactically incorrect as the subroutine that I had included was defined in program RIAFVC20 and not in RIAFVC10. Hence I was getting a dump in IW48 - it seems that SAP will first dynamically check if a program is syntactically correct and then only execute it.

Anyway I have managed to write a dummy subroutine for IW48. If you have any other way to do this - please inform me.