cancel
Showing results for 
Search instead for 
Did you mean: 

USERS_GEN, Modify default email text

Former Member
0 Kudos

Using TXN USERS_GEN to load new users into EBP (SRM 5.5) via a file (template) that includes the user's email address, generates a system email that contains the following default text:

"This is an automatically generated e-mail. Please do not respond!

Dear employee,

Your user ID is: Q7777

Your new password in the procurement system is: eNe\p+gB

Change it as soon as possible."

I would like to modify this default text. (one time not each time) Is this possible? If so, where does this text reside and can it be accessed (or copied and saved as new text) so that the modified version is used?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This text comes from the text elements defined in the std program for the transaction USERS_GEN.

For details refer the foll code:

Include :LBBP_MASS_CREATIONF02

FORM help_form_send_email using p_userid p_password p_email.

  • Variablen für e-Mail Versand

Data: RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,

MAIL_CONTENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,

MAIL_DATA LIKE SODOCCHGI1.

clear: mail_data, mail_content, receivers.

refresh: mail_content, receivers.

MAIL_DATA-OBJ_NAME = 'NewUser'.

MOVE TEXT-b05 TO MAIL_DATA-OBJ_DESCR.

MAIL_DATA-OBJ_LANGU = SY-LANGU.

move TEXT-007 to MAIL_CONTENT-LINE.

APPEND MAIL_CONTENT.

move TEXT-008 to MAIL_CONTENT-LINE.

APPEND MAIL_CONTENT.

concatenate text-011 p_userid

into MAIL_CONTENT-LINE

SEPARATED BY SPACE.

APPEND MAIL_CONTENT.

CONCATENATE TEXT-009 p_password

INTO MAIL_CONTENT-LINE

SEPARATED BY SPACE.

APPEND MAIL_CONTENT.

MOVE TEXT-010 TO MAIL_CONTENT-LINE.

APPEND MAIL_CONTENT.

RECEIVERS-RECEIVER = p_email.

RECEIVERS-REC_TYPE = 'U'.

RECEIVERS-COM_TYPE = 'INT'.

APPEND RECEIVERS.

CALL FUNCTION 'BBPU_COMMIT_AND_WAIT'.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = MAIL_DATA

TABLES

OBJECT_CONTENT = MAIL_CONTENT

RECEIVERS = RECEIVERS

EXCEPTIONS

TOO_MANY_RECEIVERS = 1

DOCUMENT_NOT_SENT = 2

DOCUMENT_TYPE_NOT_EXIST = 3

OPERATION_NO_AUTHORIZATION = 4

PARAMETER_ERROR = 5

X_ERROR = 6

ENQUEUE_ERROR = 7

OTHERS = 8.

commit work.

ENDFORM. " help_form_send_email

The text elements TEXT-007 , TEXT-008, etc contain the static/fixed texts for the email and the dynamic values are populated in the program itself.

The details for the text elements is a s follows;

007-This is an automatically generated e-mail. Please do not respond!

008-Dear employee,

011- Your user ID is:

009-Your new password in the procurement system is:

010-Change it as soon as possible.

BR,

Disha.

Do reward points for useful answers and close the thread if your query is reolved.

Answers (1)

Answers (1)

imthiaz_ahmed
Active Contributor
0 Kudos

Not a std way. You have to make z version of this program. Refer this inlcude LBBP_MASS_CREATIONF02 and subroutine help_form_send_email. Everything is controlled from text symbol.

Regards, IA