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 creation in user exit

Former Member
0 Likes
1,317

Hi All,

I have written code in user exit MV45AFZZ(include program ) ,now i need to create text elements.

The above include is in standard program SAPMV45A,which will ask access key for creating text elements.

Can any one give me some inputs,like,can i go ahead using accesskey or any alternative procedure exists for enhancing text elements without accesskey?

Thanks & Regards

Seshagiri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
854

Hi

Create one message class or use any created message class(custom). In that write ur text elements and use that in include.

In same program and same include which u r telling, we created one message class called Z_SDRQC and using text elements from this message class in this include. check below sample code for that.

Reward if it is helpful.

Thanks

Siva Kumar

IF SY-TCODE = c_tcode1.

MESSAGE a006(z_sdrqc).

ELSEIF SY-TCODE = c_tcode2 OR SY-TCODE = c_tcode3.

4 REPLIES 4
Read only

Former Member
0 Likes
855

Hi

Create one message class or use any created message class(custom). In that write ur text elements and use that in include.

In same program and same include which u r telling, we created one message class called Z_SDRQC and using text elements from this message class in this include. check below sample code for that.

Reward if it is helpful.

Thanks

Siva Kumar

IF SY-TCODE = c_tcode1.

MESSAGE a006(z_sdrqc).

ELSEIF SY-TCODE = c_tcode2 OR SY-TCODE = c_tcode3.

Read only

0 Likes
854

Hi Siva,

Followed your suggestion and created text elements.

Thanks & Regards

Seshagiri

Read only

Former Member
0 Likes
854

Hi

The text elements belong to main program so SAPMV45A, so or you write the texts directly in to the code (without to use the text elements) or (if you need to manage the translations concept) you can try to use an your own message class: so you replace the text element with a message of your class.

Max

Read only

Former Member
0 Likes
854

Hi Siva and Max,

Thanks for your inputs.

As i was on some other assignment,i haven't yet tried creating message class.

I will go-ahead as per your solution.

Thanks & regards

Seshagiri.