Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Field symbols for fetching ME51N screen data

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

Former Member
Not what you were looking for? View more on this topic or Ask a question