09-10-2007 2:15 PM
I need to extract the EPMEH for every line item from VA03. It is the column Do multiple schedule lines exist? after the col SU in All items under the Sales area. Thanks
09-10-2007 4:16 PM
To compute EPMEH value,
EPMEH is set if multiple schedule lines exist for the item
and if conf qty less than ord qty.
DATA: cnt_sch_lines TYPE i, total_bmeng TYPE i.
LOOP AT i_vbep INTO wa_vbep WHERE vbeln = wa_vbap-vbeln AND posnr = wa_vbap-posnr.
ADD 1 TO cnt_sch_lines.
total_bmeng = total_bmeng + wa_vbep-bmeng.
ENDLOOP.
IF cnt_sch_lines > 1.
wa_zopen_alv-epmeh = 'X'.
ENDIF.
READ TABLE i_vbep INTO wa_vbep WITH KEY vbeln = wa_vbap-vbeln
posnr = wa_vbap-posnr
etenr = '0001' BINARY SEARCH.
IF total_bmeng < wa_vbep-wmeng.
wa_zopen_alv-epmeh = 'X'.
ENDIF.
09-10-2007 4:17 PM
07-09-2019 1:11 PM
Can you please mention the solution here, even I am facing the same issue
07-09-2019 1:19 PM
I doubt very much that someone who is no longer registered, aka 'Former Member', will answer 12 years later. Are you planning to ask your own question?
07-10-2019 5:47 AM