2010 Jan 05 7:35 AM
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.
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.
2010 Jan 05 3:17 PM
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.
2010 Jan 06 4:31 AM
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?
2010 Jan 06 3:51 PM
Did you try DYNP_VALUES_READ with the current step loop count?
2014 Jul 14 5:48 PM
Bingo~
DYNP_VALUES_READ
parameter REQUEST = 'A'
get all details~
thx Brad
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |