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

Modulpool help

Former Member
0 Likes
432

Hi!!

I'm new doing dialog programming, I've already created my screen painter but I have to fill my internal table... my select have to be delimited for a value of my textbox, but I don't know if I can get that value directly of the name of my textbox or there are a sentence for that??

I mean:

I want to know how get the textbox values for use in my program.

ex.

Textbox name = "PLANT".

user type "0301".

In my program POB section.

select * from zubic where werks = PLANT.??

Thanks for your comments.

Good day.

2 REPLIES 2
Read only

alejandro_bindi
Active Contributor
0 Likes
411

- Define a field on the screen painter, named Plant (following your example)

- Define a variable in your top include code, which has the same type and lenght as the screen field (if it references data dictionary, the variable must do so also). It also must be named Plant.

- You can use now your variable for the select:

SELECT *

FROM ztable

WHERE werks = Plant.

because any time the screen field gets populated or modified, the variable is also updated. (and vice versa).

Regards

Please reward points if helpful.

Read only

0 Likes
411

wow Thanks a lot!!!