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

How to trak button content?

Former Member
0 Likes
953

Hi Expert!,

in step loop i have created 6 buttons and i'm printing PO number on the button insted of button text(Purchase order is printed as text label).Now i have been asked to retrieve the PO from selected button. I'm unable to retrieve value(PO number),where as if i would have taken input output field, I could retrieve PO number easily through GET and Set CURSOR.

button b1 0000000045 (on button as text in step loop)

button b2 0000000046

button b3 0000000047

Now please help me out .

Thanks In Advance.

4 REPLIES 4
Read only

brad_bohn
Active Contributor
0 Likes
924

It would be better if you used a table control which has long since replaced step loop processing; then the GET CURSOR command would work and you could identify the table control, line, field (button name of clicked button), and value easily. Otherwise, if SY-STEPL has the correct value when the button is clicked, you should be able to use DYNP_VALUES_READ to access the field name and value.

Read only

Former Member
0 Likes
924

Hi Brad,

thanks for reply. Wel my requirement is like that. I have only single field to display and that must be on button.

I think it is impossible to catch the button content in steploop?

Read only

brad_bohn
Active Contributor
0 Likes
924

Did you try DYNP_VALUES_READ with the current step loop count?

Read only

Former Member
0 Likes
924

Bingo~

DYNP_VALUES_READ

parameter REQUEST = 'A'

get all details~


thx Brad