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: 

EPMEH from VA03

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos
  • 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.

Former Member
0 Kudos

Found solution

0 Kudos

Can you please mention the solution here, even I am facing the same issue

0 Kudos

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?

0 Kudos

I was thinking, anyone who knows solution, may answer here.