Application Development 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: 

To get MASSG field value in ZXPADU02 user exit in PA40

Pavithra_madhu
Participant
0 Kudos

Hi.

I want to get MASSG field value inside the ZXPADU02 user exit of PA40 tcode. How can I get that value inside the user exit because MASSG field is not inclue in the parameter values?

2 REPLIES 2

thilakan_t
Participant
0 Kudos

refer below link

https://answers.sap.com/questions/4541145/how-do-i-get-a-variable-or-object-from-abap-stack.html

you have to use main program name and variable name in the exit to get the value into field symbol.

raymond_giuseppi
Active Contributor
0 Kudos

The structure p0000 is defined in top include of transaction, you can check via debug that p00000 values are available.

So you could technically use a dirty assign to main program main data

field = '(SAPMP50A)P0000'.
ASSIGN (field) TO <p0000>.'
IF <p0000> IS ASSIGNED.
"etc.

But you could also notice that P0000 is defined with the TABLES statement in main program.

Try to ADD a TABLES: p0000. in the global area of the Exit Function Group (ZXPADTOP) then debug and look at this structure values from inside the exit FM.