cancel
Showing results for 
Search instead for 
Did you mean: 

debugging CIF user exit

Former Member
0 Kudos

I am implementing a cif user exit for material stock . The user exit is in R/3 side, how can i debug the user exit now?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Answered

Former Member
0 Kudos

Hi Deepthi,

Also mostly the CIF user id will be a system user - you need to change it to Dialog user for debugging the queue. So u can use the below code to change the user name.

tables: trfcqin, trfcqstate.

update trfcqin set qrfcuser = 'SIP8KA'

where qrfcuser = 'ALE_USER'

and arfcipid = '0A0B9971'.

and arfctidcnt = '0188'.

write: / sy-dbcnt.

update trfcqstate set arfcuser = 'SIP8KA'

where arfcuser = 'ALE_USER'

and arfcipid = '0A0B9971'.

and arfctidcnt = '0188'.

write: / sy-dbcnt.

Regards,

Siva.

Former Member
0 Kudos

Hi

2 ways of debugging the User exit :

<b>On R3 Side: </b>

Deactivate the Integration model which contains the Product , Location master/transaction data.

Put the break point at various locations in the main Program where the exit is getting called.

Activate the integration model again and say Execute the Data transfer in CFM2 Transaction.It will automatically open the Debugger session.

<b>On APO Side: </b>

Go to /n/sapapo/cq , uncheck the options for SHow Only Blocked Qs and Say F8

For the Q for which u r transferring the data, Right click and then go to SMQ1/SMQ2 ... On this screen, Options GOTO -> Qin Scheduler and Deregister the Q which is there ....

Any data Transfer Now will not post to APO and it will come to Ready state.

The entry will be stuck in the /n/sapapo/cq , goto SMQ1/SMQ2 , select the entry and say debug option on the top . ..