Skip to Content
Author's profile photo Mark Foley

How to save ABAP test data for SAP CRM WebChannel Function Module

It can be very frustrating when debugging the SAP CRM Web Channel application when the sysem times out during your debugging session. Lately I have found some of the new features in the “New Debugger” very helpful.

The ability to save the test data for a function module to SE37 is the most useful of these. Not alone does it allow you to capture the data but by doing this it means that you do not have to reproduce the issue over and over from the application side. Simply save the test data and you can debug the issue.

 

The simple steps to capture the data are as follows.

  • Set a break point in the Function module.
  • Reproduce the issue in the SAP CRM Web Channel application B2B or B2C.
  • Once the break point has been hit. Select the “service tool” icon

Service tool image

 

 

  • Select “Save Parameters as Test Data (SE37)

Save Paramater as test data

 

  • Save the test data as “SAP Support Message XXXXXX

Save as

 

 

 

 

 

 

 

 

 

 

 

 

Once this has been save the information will be stored in the Test Data section in SE37 for your function module. This will allow you to bug the issue without risk of time outs from the web application side.

Assigned tags

      18 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      thanks Mark. We will use these kind of things for sure....keep the tips coming!

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      No problem 🙂
      Author's profile photo Former Member
      Former Member
      Helpful tip. Saves a lot of time.
      Author's profile photo Former Member
      Former Member
      Well thought out with a  side by side.  External break-points.  And in tlot of pictures.  Just how I like them.  There are some other really cool features I use in the new debugger too!  Like displaying internal tableshe future, the break-point will work with more than one application server.

      Yes,I know outside of the context of your blog.  But fun to look at all the same.

      News in ABAP External Debugging - New User Breakpoint
       

      Michelle

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      Hi Michelle,
      Thanks that makes good reading too :), This would also save a lot of time.

      Thanks
      Mark

      Author's profile photo Kumud Singh
      Kumud Singh
      Hello,

      I feel this is more generalized and can be used at places apart from CRM. Please post in ABAP forums as well.

      Thanks,
      Kumud

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      Thanks for the feed back  Kumud,

      Regards
      Mark

      Author's profile photo Former Member
      Former Member
      I agree, it could easily be added to the ABAP category.  I know I use it for ABAP and not CRM.  I'm not really a CRM person!

      Again thank you - very nice instructions!

      Michelle

      Author's profile photo Former Member
      Former Member
      I agree, it could easily be added to the ABAP category. I know I use it for ABAP and not CRM. I'm not really a CRM person!

      Again thank you - very nice instructions!

      Michelle

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      Thanks, I will look into changing this now, As I work mostly in CRM web application , I found this very helpful is my day to day work. So had targeted this at people in the same area.
      I will try to include both ABAP and CRM catagories if possible.

      Mark

      Author's profile photo Former Member
      Former Member
      What it isn't intutive?  I'm looking forward to the changes to the blogging system.

      Go into your expert blogger home.  You'll find your blog on the first page.  However, that's not where you want to be.  Click on the tab for your weblogs.  Now click on the blog you created.  Then edit.  Once you get to the categories section.  Ctrl - click on each of the categories you want to include.  Then save it and mark it as final!

      You're done.   And it's not that easy to find out.  I've just had to change things before. 🙂

      If you get stuck let me know!

      Michelle

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      Yep done now :),
      I Only ever blogged for CRM in the past, have added the second categorie now.

      Thanks

      Mark

      Author's profile photo Naimesh Patel
      Naimesh Patel
      There are many more features of ABAP Debugger. This blog post
      New ABAP Debugger – Tips and Tricks by Olga Dolinskaja mentions lot of them including one which is being shown here. Look for the heading "How to test a function module in the debugger and pass parameters"

      Regards,
      Naimesh Patel

      Author's profile photo Mark Foley
      Mark Foley
      Blog Post Author
      Thanks so much, some great information there.

      Mark

      Author's profile photo Ashutosh Mishra
      Ashutosh Mishra

      Hi All,

      I m trying to SAVE parameter in Dubug mode while debugging inside FM, i am getting error message.

      'Test Data Could not be Saved'.

      Please help me ASAP.

      Thank you in advance.

      Ashutosh

      Author's profile photo Ashutosh Mishra
      Ashutosh Mishra

      Hi All,

      I m trying to SAVE parameter in Dubug mode while debugging inside FM, i am getting error message.

      'Test Data Could not be Saved'.

      Please help me ASAP.

      Thank you in advance.

      Ashutosh

      Author's profile photo Former Member
      Former Member

      Hi,

      Helpful tip.

      do you have some links to define a test strategy ?

      Thanks.

      Author's profile photo Former Member
      Former Member

      Very helpful