Innovative Method to Print Service Ticket Directly in CRM

By Mansoor Ahmed, KESC Limited

Dear ABAPers I am again here and I hope you are doing great. Here is yet another innovative idea in CRM. Function Module that is being used in this article is not even there on Google. Do give that a try.

As the title suggests this article is again related to the printing of duplicate service ticket. But this time the approach is somewhat different. If you read this article regarding printing of duplicate service ticket then you would probably get what is the change.

Steps are almost same but the different comes while using standard function module.


1.     We need a selection screen to get service ticket number as an input.

2.     We need to get the GUID of the entered ticket number

3.     Then, we will call a function module (Standard) to get all the table being used in the Smartform

4.     Finally, we will call the Smartform to give our desired output.


1.     We need a selection screen as shown below. Better make this select option as obligatory.  

2.     Now we need to declare some data which is required for calling Standard function module. Here is how you would do it.

3.     Now we need to get the GUID of the service ticket, can be easily accessed from CRMD_ORDERADM_H (service ticket header table)

4.     Now here is something which you won’t find on Google. Just try Googling this function module CRM_TEMPLATE_SINGLE_READ. I can bet you won’t get any result as shown below.

Now we will use this Function module to extract service ticket information. Only difference between CRM_TEMPLATE_SINGLE_READ and CRM_OUTPUT_SINGLE_READ is the name of the Smartform. All you need to give is the GUID of the ticket and you are done. For example:

This will give us all the data residing in service ticket form. Just a note: This function module can also be used to serve reporting purpose but for the time being I am using it as printing purpose.

5.     Finally, I will call my smartform by passing all the tables and will print it.

6.     This will give me output as follows.

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image