cancel
Showing results for 
Search instead for 
Did you mean: 

How to do remote debugging in CRM4.0 for IPC

Former Member
0 Kudos
113

Hi Gurus,

I am using NWDS for my custom IPC user exits, and now during the creation of sales order i want to do debug my custom code. For this I followed the below steps:

1. I set the parameter PRC_RFC = 'X' in my user parameter.

2. I create a sales order and after entering one product and some quantity i pressed enter .

3. I am getting debugger , Here I am pressing F5 several time (around 15 times), but I am not getting any popup where I can enter my port number.

I tried to see the options in SM52 but my CRM system is not having SM52 transaction.

Any body of you can suggesst me where I am doing mistake or do I need to follow some other appraoch in CRM4.0.

quick response with the answer will be rewarded by good points.

Thanks and regards

SAndeep

Accepted Solutions (0)

Answers (3)

Answers (3)

p_zweipfenning
Explorer
0 Kudos

Would be nice if you would just share the solution.......

Former Member
0 Kudos

Hi ,

Here are the steps for CRM 4.0 which are required during IPC installation , updation and then debugging :

Installation steps:

1.Download and Install J2SDK 1.4.2_11 from java.sun.com.

2.Download the IPC Zip file from service.sap.com

Software Download  Downloads  SAP Software DC  Support Packages and Patches Entry by application Component ->SAP Application Components SAP CRM SAP CRM 4.0 Entry by Component CRM IPC

3.Extract into a folder  IPC_INSTALL  DVD_SAP_ERP_2004_SR1_Components  IPCSERV  SAPINST  NT  I386  Double Click on sapinst.exe  Run new installation

4.Give a directory path where the installation is to be done : C:\IPC_SERVER

5.Set everything to automatic (data loader, dispatcher etc)

6.Continue

7.start  Programs  Internet Pricing and Configurator  Administrator  set up the settings (instead of local host, give the ip address on which IPC is hosted by removing the localhost word)

8.Make sure sapjco.jar is in the ipc lib directory (download jco connector)

9.Make sure librfc32.dll is in the windows\system32 directory

10.Make sure saprfcjco.dll is in the windors\system32 directory (comes with download for jco connector).

11.In CRM create 2 RFC Destinations (TCP/IP connections) –> don’t forget to change the option from Non Unicode to Unicode

a.One for the dispatcher (IPC_RFC_DISPATCHER_AD)

b.One for the server (IPC_RFC_SERVER_AD_1)

12.These properties should be set in dispatcher.properties file in IPC  Lib  Properties

a.rfcEnabled=true

b.rfcDispatcherProgId="IPC_RFC_DISPATCHER_AD" (its axample)

c.rfcServerCount=1

d.rfcServerProgIdPrefix=IPC_RFC_SERVER_AD_ (its axample)

13.In the parameters.xml change the

a.<Property Name="RFC_IS_UNICODE" Value="true"/>

Default value is “false”

14. In TCODE SU3, specify the destination explicitly as follows: (If there was only one IPC server, nothing needs to be specified here).

15. To test the connection, in SE37 use the function module COM_IPC_SESSION_BEGIN. Execute it with the values as follows and give space for IV_USER_LOCATION

When a session Id is received from the host on which IPC server is installed, that validates the connections.

16.Test 2 with a different function module : Just execute com_ipc_show_servers .

to validate tes test check dispatcher structure.

Upgradation steps:

1.Download SP11 From service.sap.com

2.Close all the window programs before running the installation.

3.Run <InstallationFiles>\SAPINST\NT\I386\sapinst.exe to start the installation. The System Landscape Implementation Manager (SAPinst) is started.

4.Press Agree on the license.

5.Select “Run a new Installation”.

6.Select Upgrade to new IPC version.

7.If you want to rename your old service name then do it otherwise go ahead with the old service names.

8.Now installation is ready to start so press “Start”

9.Once Installation is finished restart IPC services once again from Control Panel->Administrative tools->services.

10.Run the program IPC_MON_TOOL in transaction se38 and check for the version parameter it should be the updated one check in the below screen.

How to Debug:

1.Set the break-point in java code before compilation and then put the compiled java file in the IPC server .

2.Stop all the IPC services from administrative tools->services

3.Set the parameter PRC_RFC = ‘X’ in the transaction su3 (this will enable the debugger only for a particular user).

4.Start server.bat and then dispatcher.bat from <IPC_INST>/ipc/bin/ (remember first we need to start server.bat and then dispatcher.bat)

5.Create a document type with some product and quantity and press Enter

6.SAP will popup the debugger press F5 two times.

7.Open NWDS and set the debug from the menu run->debug ->Runtime Java Application with the parameter:

Host : localhost

Port : 8000 (if you have not done any changes in server.bat)

8.If there is no error in step 7 then come to the SAP debugger which came in step5.

9.Press F8 , here debugger will hang up in eclipse (this is what we want).

I hope most of the time you will be doing this.

So anytime if it helps then don't forget to reward the points.

Thanks and regards

Sandeep

Former Member
0 Kudos

If anbody is having some problem then start this thread on my name.

Former Member
0 Kudos

Hi Gurus,

I have done it.

Thanks and regards

Sandeep