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: 

Field symbols for fetching ME51N screen data

former_member302911
Active Participant
0 Kudos

Hi,

I need to fetch ME51N or ME52N screen data.

In old Transaction (ME51,ME52) there is this code that work:

. 

data:wa_eban like eban.
data:wa_rm06b like rm06b.

data:va_epstp like rm06b-epstp.
data:va_knttp like eban-knttp.

field-symbols <va_eban> structure eban default  wa_eban.
field-symbols <va_rm06b> structure rm06b default wa_rm06b.

assign ('(SAPMM06B)EBAN') to <va_eban>.
assign ('(SAPMM06B)RM06B')  to <va_rm06b>.
move <va_rm06b>-epstp to va_epstp.
move <va_eban>-knttp to va_knttp.
if not <va_eban>-loekz  is initial.
      exit.
endif. 

.

This code is used in a FIELD EXIT for compare Data in some Fields.

In the New Transaction i can't use this code because EBAN and RM06B is empty and return null.

Can any one tell me if there are Program/Structure combination that return EBAN and RM06B Data?

Or alternatively whether any better method available for fetching screen data?

Thanks & Regards

Angelo

1 REPLY 1

former_member302911
Active Participant
0 Kudos

For more Info see this thread, similar problem is solved, but in ME52N change some things.

Thanks & Regards

Angelo