Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Text elements in Enhancement points ?

0 Likes
3,133

Hello Experts,

I have a requirement where I need to maintain text-elements for an enhancement point.

Scenario: I have implemented an enhancement point for QA32 in which there would be a confirmation

               pop-up coming to user, now the message this pop-up would have is to be maintained

               as a text-element, please tell me the procedure.

Note: Constants won't suffice my requirement.

Regards,

Aabid Khan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,804

I think you want to be able to maintain translations.

A custom message class can be used (transaction SE91).

It can then be invoked by MESSAGE ... INTO lv_varname statement. This would give you text in variable without triggering message.

6 REPLIES 6
Read only

Former Member
0 Likes
1,805

I think you want to be able to maintain translations.

A custom message class can be used (transaction SE91).

It can then be invoked by MESSAGE ... INTO lv_varname statement. This would give you text in variable without triggering message.

Read only

Former Member
0 Likes
1,804

Hi Aabid,

As per my knowledge it would not be possible to maintain text-elements for enhancement spots as it would ask you to provide an access key to maintain the text elements.

However, instead of constants you can achieve the same by using the below approach:

1) Maintain a message for your texts in a Z-message class for your project.

2) Within the enhancement implementation, call FM "FORMAT_MESSAGE" with the Message Class and Message ID to get that message as a text within your enhancement implementation.

3) Use that text in your pop-up message to process further.

Thanks,

Arnab

Read only

Former Member
0 Likes
1,804

Hi Aabid,

We cannot maintain text elements for enhancement spots, as it requires access key. Instead of that you maintain messages in se91 and use that message in enhancement spots.

Thanks,

Chandra

Read only

Former Member
0 Likes
1,804

Hi Aabid,

You can not add text element directly in enhancement but you can achieve similar by using one Custom function module like below-

Create one FM as

   FUNCTION ZTEST_FM_1.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  EXPORTING
*"     REFERENCE(EV_TEXT) TYPE  CHAR50
*"----------------------------------------------------------------------
ev_text = text-001.
ENDFUNCTION.

Now double click on text-001 and maintain proper text.

Call above FM in enhancement. EV_TEXT will contain custom text. You can use it in pop uu message.

Regards,

Sujit

Read only

0 Likes
1,804

This message was moderated.

Read only

0 Likes
1,804

A warm thanks to all.

I used message class to meet this requirement but it was asked me to go with text-symbols.

Any ways if its not possible i will go by your suggestions.

Regards,

Aabid Khan