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

An input field in Screen Painter as a variable

Former Member
0 Likes
2,295

Hi Guys,

May I know if i can make an input field in screen painter as a variable which can hold th values inputted to it? Please let me know your thoughts.

Your response will be greatly appreciated.

Thanks!

Mark

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,553

Hi,

when you open the screen,

look at the top right hand corner of that screen.

there will be three buttons, just put the cursor on the buttons to know about them

then select the button, select from program

then select ur variable and click on ok

this will be reflected on the screen

Regards,

Omkar.

Hi Guys,

May I know if i can make an input field in screen painter as a variable which can hold th values inputted to it? Please let me know your thoughts.

Your response will be greatly appreciated.

Thanks!

Mark

8 REPLIES 8
Read only

Former Member
0 Likes
1,553

the input field on the screen are fields which hold values.. these values are storesd till the screen scope...

Read only

Former Member
0 Likes
1,554

Hi,

when you open the screen,

look at the top right hand corner of that screen.

there will be three buttons, just put the cursor on the buttons to know about them

then select the button, select from program

then select ur variable and click on ok

this will be reflected on the screen

Regards,

Omkar.

Read only

Former Member
0 Likes
1,553

it can hold the variable value . with pbi.

Read only

Former Member
0 Likes
1,553

declare the screen fields as say: MARA-MATNR,

in the program u declare : TABLES: MARA

and assign the value to the work area, this will get populated in screen

whatever fields that have same name will get values to screen vice versa

Read only

0 Likes
1,553

Hi,

Tanx for all ur inputs...

Where am i going to declare it? I declare the variable as sy-uname...

After doing all ur suggestions, still the screen input field doesnt hold the value entered into it... when I debug it, there's no value for the said variable...

Thanks a lot!

Read only

0 Likes
1,553

SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

PARAMETERS: p_name LIKE sy-uname.

SELECTION-SCREEN: END OF BLOCK b2.

access the field p_name to get the value entered at selection screen

Read only

0 Likes
1,553

Tanx,,,, But Im using the input field of screen painter...It still doesnt hold the value inputted to it...

Read only

0 Likes
1,553

can you give the definition of the field?