2013 Jul 23 6:28 AM
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
2013 Jul 23 12:17 PM
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.
2013 Jul 23 12:17 PM
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.
2013 Jul 23 12:17 PM
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
2013 Jul 23 12:37 PM
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
2013 Jul 23 2:55 PM
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
2013 Jul 24 8:14 AM
2013 Jul 24 8:14 AM
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