‎2007 Feb 23 10:06 AM
I have an include within a program that has some code in it. If I put a break point in the code, it never reaches it. I have put a break point in the bit before the include, and it just steps straight over it. Can anybody suggest why this might be happening?
‎2007 Feb 23 10:10 AM
Hello,
write the stmt <b>break-point</b> in the first line of the include and activate the include.
Vasanth
‎2007 Feb 23 10:08 AM
check sy-subrc in debug mode,
also can you be more clear in your question? paste code would be better
‎2007 Feb 23 10:13 AM
Have just checked an sy-subrc is zero.
The code is as follows:-
This is the code that calls the function.
USER EXIT FOR CHANGING EE RELATED DATA (P_CUDTABDAT) '003'
call function 'EXIT_RPCFUDI0_003'
CALL CUSTOMER-FUNCTION '003'
EXPORTING
p_pernr = p_pernr
p_begda = p_begda
p_endda = p_endda
p_defunto = p_defunto
TABLES
p_com_result = p_com_result
p_cudtabdip = p_vartab
p_p0006 = p0006
p_p0021 = p0021
p_p0306 = p0306
EXCEPTIONS
used_user_exit = 1
OTHERS = 2
***********************************
The code within the Function/
FUNCTION EXIT_RPCJUDI0_003.
*"----
""Interfaccia locale:
*" IMPORTING
*" VALUE(P_PERNR) LIKE PERNR-PERNR
*" VALUE(P_BEGDA) LIKE SY-DATUM
*" VALUE(P_ENDDA) LIKE SY-DATUM
*" VALUE(P_DEFUNTO) TYPE C
*" TABLES
*" P_COM_RESULT
*" P_CUDTABDIP
*" P_P0006
*" P_P0021
*" P_P0306
*" EXCEPTIONS
*" USED_USER_EXIT
*"----
INCLUDE ZXJI0U02 .
ENDFUNCTION.
******************************************
Then in the include.
&----
*& Include ZXJI0U02
**BEGIN OF PARTE A - BOX 8 Processing**
INFOTYPES : 0548.
DATA : prev_comp(2) TYPE c. "Box 8, Part A
DATA : found(1) TYPE c. "Pre-existing record flag
DATA : fiscal(1) TYPE c. "Fiscal Address Found flag
DATA : BEGIN OF wa_cudtabdip, "Work Area for personal data
cid(8) TYPE n,
heirf(1) TYPE c,
num(2) TYPE n,
partn(1) TYPE c,
name(4) TYPE c,
repet(2) TYPE n,
filef(1) TYPE c,
value(80) TYPE c,
END OF wa_cudtabdip.
Read Infotype 548
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = p_pernr
infty = '0548'
begda = p_begda
endda = p_endda
TABLES
infty_tab = p0548.
found = ''.
Calculate value of Box 8, Part A (prev_comp)
IF p0548-tpifo = 'ANTE 1993'.
prev_comp = '1'.
ELSEIF p0548-tpifo = 'POST 1993' OR p0548-tpifo = 'P. 1993 1^'.
prev_comp = ''.
ELSE.
prev_comp = '4'.
ENDIF.
*Update company related data
LOOP AT p_cudtabdip INTO wa_cudtabdip.
IF wa_cudtabdip-num = '01' AND wa_cudtabdip-partn = 'A' AND
wa_cudtabdip-name = '0008'.
found = 'X'.
wa_cudtabdip-value = prev_comp.
MOVE-CORRESPONDING wa_cudtabdip TO p_cudtabdip.
MODIFY p_cudtabdip.
ENDIF.
ENDLOOP.
‎2007 Feb 23 10:09 AM
Hi,
Try to put a break point inside the include. also check whether your include is activated or not.
regards
Shiva
‎2007 Feb 23 10:10 AM
Hi,
Try to put breakpoints at the include and inside the include.
Regards,
Sruthi
‎2007 Feb 23 10:10 AM
Hello,
write the stmt <b>break-point</b> in the first line of the include and activate the include.
Vasanth
‎2007 Feb 23 10:15 AM
Have tried to put the break point in the include, but all that happens is the function is called, and goes straight to ENDFUNCTION.
‎2007 Feb 23 10:16 AM
Hello,
This may be due to the project is not activated in <b>CMOD.</b>
Check this
Vasanth
‎2007 Feb 23 10:18 AM
‎2007 Feb 23 10:21 AM
Hi,
Check the attributes of the same and get the package and find the smae in SMOD also use whre used list to find the function module
Regards
Shiva
‎2007 Feb 23 10:25 AM
To find the project :
- goto cmod
- click F4 on project
- click all selection (shift+f7)
- check only function exit box
- give your function module name
- once you got the project check whether it is activated in attributes project status.
Cheers
Manohar
‎2007 Feb 23 10:31 AM
It loooks like no project exists for it. Is this the reason why it isn't working. The weird thing is it works in the Dev system, but not in the test.
‎2007 Feb 23 10:32 AM
So Jez,
Create a project for that exit and activate it.
Vasanth
‎2007 Feb 23 10:20 AM
make some change to this INCLUDE and reacyivate it... and put break-point inside the INCLUDE....i hoep this will work ... try to activate the complete program once again...
bbye tc
Ashwani