0

I would like to know if you know a way to find the name of a field after calling a POV.
For example,

A dynpro with this code (Flow logic) :

process on value-request.
  field _field_ module dynpro_pov.

An ABAP program where the module is defined

MODULE dynpro_pov INPUT.
  " How can I get the name of the field "_field_" here ?
ENDMODULE.

Do you know of a way to find the name _field_ dynamically in ABAP code ?

I thought of having a buffer variable which store the value in the dynpro flow logic and retrieve the value in the ABAP code but obviously we cannot write such an ABAP instruction. And then I might have thought that a DYNP * type FM would do the trick with the correct CALL ID. But I didn't find anything.

Thanks

depth1
  • 135
  • 10
  • This sounds a lot like an XY problem. Why would you have the same but different value help for different fields? – Jonas Wilms Jul 28 '21 at 14:51

1 Answers1

3

You can use the statement GET CURSOR to retrieve the field that is currently selected by the user (which is equivalent to the field the user requests the value help on):

DATA field TYPE string.
GET CURSOR FIELD field. 
Jonas Wilms
  • 132,000
  • 20
  • 149
  • 151
u.n
  • 52
  • 4