cancel
Showing results for 
Search instead for 
Did you mean: 

Support Desk. Message number in topic of smartform

Former Member
0 Kudos

Hello,

can somebody tell me how to display the message number of support request in the topic of outsended email. Backround: Users wanted to see number in topic in the overview of MS Outlook.

Thanks in advance

Johannes

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello Johannes,

Here is a step-by-step procedure to add status values in the mail smartform.

In the item Form Interface, fill the Import tab with the following values:

STATUS_H TYPE CRMT_OUTPUT_STATUS_H_COMT

In the item Global Definitions, tab Global Data, fill as follows:

STATUS_H_WRK TYPE CRMT_OUTPUT_STATUS_H_COM

SALES_H_WRK TYPE CRMT_OUTPUT_SALES_H_COM

Right-click the MAIN item, under the created page, and execute the menu Create | Flow Logic | Loop.

Rename the loop title to STATUS and fill the fields under tab Data exactly as follows:

Internal Table (flagged): STATUS_H INTO STATUS_H_WRK

Row 0 to 0

WHERE conditions:

ACTIVE = 'X'

USER_STATUS_PROC <> ''

This is needed because the STATUS_H is a complex structure with several lines. The loop will take the line based on the criteria informed in the WHERE Condition box and put the result in the STATUS_H_WRK memory structure.

If you need to read more than one structured table, create one loop inside another (cascade) and put the page itself under (inside) the last loop.

Use the variable in your text (or subject)

Dear user, please check the following document:

Number: &orderadm_h-object_id&

Description: &orderadm_h-description&

Status: &status_h_wrk-TXT30&

Please set the thread as "answered" if this solves your problem.

Best Regards,

Canzone

Former Member
0 Kudos

Hello Canzone,

this is very helpful, but I search for a solution, where the user can see the status of his request in the topic of received email. I dont need it in the emai text position.

Regards

Johannes

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

ok very helpful hints!

Implement in own class and method

CONCATENATE ' ' '&' into ls_output_options-tdtitle.

ls_output_ptions = is_output_options.

ls_output_options-tdtitle = text-xxx.

*Insert >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

REPLACE '&' WITH ls_orderadm_h-object_id

INTO ls_output_options-tdtitle.

this works for number. But how can I add the status in tobic so that I have status and number.

Thanks in advance

Johannes

Former Member
0 Kudos

Hi,

Please check the simple solution provided by Abosi in the below thread

[|]

and do try at my reply also in the same thread.

Thanks,

Jansi

Former Member
0 Kudos

Hi,

Email sending is configured in Action. Class name and smart forms are input to this action configuration.

Logic for the subject/topic of the email is written in the class CL_DOC_PROCESSING_CRM_ORDER method - CRM_ORDER_EXEC_SMART_FORM. You have to create the new Z class & method similar to the CL_DOC_PROCESSING_CRM_ORDER class, and in method you can write logic to change the subject line.

This Z class and method has to be configured in Action for sending email.

thanks-