Skip to Content

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

performance issue

Hi all my program is going to dump in quality as i am using MSEG table based on ebeln and ebelp.

please check the query below.

data: begin of imseg occurs 0,

mblnr like mseg-mblnr,

mjahr like mseg-mjahr,

menge like mseg-menge,

ERFMG LIKE MSEG-ERFMG,

erfme like mseg-erfme,

ebeln like mseg-ebeln,

ebelp like mseg-ebelp,

end of imseg.

if not ekpo[] is initial.

select mblnr

mjahr

menge

erfmg

erfme

ebeln

ebelp

from mseg into table imseg

for all entries in iekpo

where ebeln = iekpo-ebeln and

ebelp = iekpo-ebelp.

endselect.

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