Monday, January 26, 2015

ABAP Tip-SRDEBUG(Debugging with external environment)



Chapter 078
SRDEBUG(Debugging with external environment)
Source : http://abapjoy.blogspot.com

We sometimes meet the situation, which is need to check the data passed from the external environment(JAVA, C programs..). SBDEBUG tools enables us to work on a ABAP debugger when ABAP program is called by external program via interface.

First of all, you should change the SAP IDs User Type to A Dialog. Generally, The id for external access is set to C:Commnuicationts Data'.
[Figure 1 Maintain User Change User Type]

[Figure 1] T-CODE:SU01 can change the user information, It could be different with the SAP version.

And move to RFC(Remote Function Call) function in T-CODE:SE37 and set a External Breakpoint. You can chose the  icon in application toolbar.
External Breakpoint activate debugging with same ID logged in SAP. That is, If ABC01 id is logged in server pc, debugging would be activated with all PC.

[Figure 2 set a external breakpiont]

Now, perform T-CODE:SRDEBUG to activate external debug function. If you execute SRDEBUG, the popup screen will open like [figure 3]. Leave the default value and just click the  icon.

[Figure 3 SRDEBUG activation]

You can see the popup message and external debugging start to be activated.
When program from external environment(JAVA, C program), the call is moved to ABAP debugger. IF you want to stop the debugging, just click Yes in popup screen.



No comments:

Post a Comment