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

Problem in module pool

Former Member
0 Likes
1,017

Dear Experts,

How can i change text dynamically in module pool program.

9 REPLIES 9
Read only

Former Member
0 Likes
908

Hi

U need to set the value (u want to display) in the screen variable for the text.

Max

Read only

0 Likes
908

Dear max,

I am taking a Text Field , that should change dynamically(Plant wise).

How can i get.

Read only

0 Likes
908

Hi,

Name the Label as v_variable then in pbo or pai based on the condtion assign a value to that variable, which will reflect in the screen.

Thanks & Regards,

Navneeth K.

Read only

0 Likes
908

Hi Navneeth,

i am doing the same but i am not getting the output.

I am taking a text field. in the attributes i am giving NAME as V_VARIABLE. and in PBO i am passing some text. but i am not getting the output.

Read only

0 Likes
908

Hi,

you have created a Text-field and based on some Condition yor are passing some value to it in PBO, first check it in debug if that value is coming into that variable successfully but still if you are not able to see it on screen.... Then check this.

In the Attributes of that Screen Element (Double Click on the screen field) and in Display Tab just check if you have Checked INVISIBLE Check Box.

It should Not be Checked.

Read only

0 Likes
908

Hi Danny Bonanza,

It´s not possible do it with text fields. Check the SAP help:

"Text fields provide labels for other elements. Text labels (sometimes called keywords) are display-only elements: neither the user nor the ABAP program can modify them at runtime."

http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801b9e454211d189710000e8322d00/frameset.htm

The name that you give to a text field is only for translation purpose.

But you can do like Hiren Patel said.

Best Regards,

Charles Oliveira

Read only

Former Member
0 Likes
908

Hi,

select the plant name when u pass the werks field in the selection from the table t001w. display the text field on the dialog screen.

Thanks,

BYee

Read only

Former Member
0 Likes
908

Hi

just create a input box with the property 2D display and set the property output only remove input one and you can use this a text in your programm.

Hope this will help

Thankx and Regards,

Hiren Patel

Read only

Former Member
0 Likes
908

1)Instead of using Text Lable, use Input Output box. Let its name be g_box.

2)Make Input Output box, read only i.e. make it output only field.

3)Now in PBO pass any text to g_box.

This is the only possible way. You cannot change the text of Text Lable