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

Include not being inclded

Former Member
0 Likes
1,617

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,591

Hello,

write the stmt <b>break-point</b> in the first line of the include and activate the include.

Vasanth

13 REPLIES 13
Read only

Former Member
0 Likes
1,591

check sy-subrc in debug mode,

also can you be more clear in your question? paste code would be better

Read only

0 Likes
1,591

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.

Read only

Former Member
0 Likes
1,591

Hi,

Try to put a break point inside the include. also check whether your include is activated or not.

regards

Shiva

Read only

Former Member
0 Likes
1,591

Hi,

Try to put breakpoints at the include and inside the include.

Regards,

Sruthi

Read only

Former Member
0 Likes
1,592

Hello,

write the stmt <b>break-point</b> in the first line of the include and activate the include.

Vasanth

Read only

0 Likes
1,591

Have tried to put the break point in the include, but all that happens is the function is called, and goes straight to ENDFUNCTION.

Read only

0 Likes
1,591

Hello,

This may be due to the project is not activated in <b>CMOD.</b>

Check this

Vasanth

Read only

0 Likes
1,591

How can I find out which project it is in?

Read only

0 Likes
1,591

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

Read only

0 Likes
1,591

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

Read only

0 Likes
1,591

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.

Read only

0 Likes
1,591

So Jez,

Create a project for that exit and activate it.

Vasanth

Read only

Former Member
0 Likes
1,591

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