Requirement details: To call customized (Non SAP Standard) message in program with documentation.

Instead of writing hard coded message in program it is very use full to make customized message class and maintain the message in it, so it will allow maintaining documentation for messages and user can take an action just by checking the documentation of same.

In this document we can see below mention points

  • How to create customized message class
  • How to maintain customized message
  • How to maintain documentation for customized message
  • How to call transaction in customized message documentation
  • How to call customization setting in message documentation

How to create customized message class

Create Customized message class and maintain messages

Enter Transaction code: SE91

Enter Message class name started with ‘Z’ like ‘ZME’

Click on create button

/wp-content/uploads/2016/07/00_992099.png

Maintain short text for message class


/wp-content/uploads/2016/07/0003_992101.png

Save Message class

It will show popup window maintain your package name or save it in local object

How to maintain customized message

To create a message click on change button and on Message Tab


/wp-content/uploads/2016/07/0005_992102.png

Type the message short text which you want message.

How to maintain documentation for customized message

And remove the self-explanatory tick to maintain the documentation for message

Select message line and click on Long Text (Ctrl+F7)


/wp-content/uploads/2016/07/0007_992103.png


System will ask you to save the message: click on Yes

Now here you can able to maintain the Cause (Diagnosis) / System Response / what to do (Procedure) / System admin notes (Procedure for System Administration).

Whatever we maintain here will show in message documentation.


/wp-content/uploads/2016/07/0009_992104.png


Now call this massage in your program code

MESSAGE E000(ZME).

Check this message

To check the message long text click on icon which is shown after message

/wp-content/uploads/2016/07/0011_992105.png



/wp-content/uploads/2016/07/0012_992106.png


How to call transaction in customized message documentation

Now we can also call the transaction in this message itself so that user can process the same and maintain respective data without opening new screen and transaction.

To maintain the same goto message change mode in same long text and click on insert command icon (Ctrl + F9)

Select link radio button

Mention character format which is available or created by ABAPER

In Key field maintain TRAN.Transaction code (i.e. TRAN.MM01) and Text as ‘Process Material Master’

And check the massage long text


/wp-content/uploads/2016/07/0014_992107.png


Click on Process Material Master it will call transaction MM01 and user can able to maintain material master and by just click on back (F3) you can return to your message and to original screen subsequently.

How to call customization setting in message documentation

For example we want to call storage location customization follow below procedure

Goto message change mode and in long text maintenance

Click on insert command (Ctrl + F9)

Select Link radio button

Mention character format

In field Key mention

SIMG.SIMG_CFMENUSAPCOX09

In this CFMENUSAPCOX09 is a technical path/name for customization, it will be different for each customization setting

To check this goto SPRO IMG and to specific customization setting

Click on Additional information – Display Key – IMG Activity

This will activate one raw immediate right to customization setting path and you will get technical name for same.


/wp-content/uploads/2016/07/0017_992108.png


Now check the message long text which has documentation, transaction call for material master maintenance and customization setting call to maintain storage location.


/wp-content/uploads/2016/07/0019_992109.png


Click on Maintain Storage Location for configuration of storage location


/wp-content/uploads/2016/07/0021_992110.png

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply