Skip to Content
author's profile photo Former Member
Former Member

Total up PO

hi,

Could any body plz explain me how to do this

A new field could be added to custom table zmm_dscs and total up any po line item which is purchased for material group

74055(ekpo_matkl)

Reward u if useful

anybody plz respond

Edited by: sukruthi raj on Jan 28, 2008 3:51 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 03:03 PM

    Hi,

    You can add a field to the ztable and write a program to sum all the similar records for material group and modify the ztable.

    Thanks,

    Vamshi.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi abaper,

      Actually they are updating the zmm_dscs

      loop at i_zmm_dscs into wa_zmm_dscs.

      select single * from zmm_dscs where kostl = wa_zmm_dscs-kostl

      and zz_dteca = wa_zmm_dscs-zz_dteca.

      if sy-subrc = 0. "update the record.

      update zmm_dscs set: zz_proos = wa_zmm_dscs-zz_proos

      zz_proms = wa_zmm_dscs-zz_proms

      zz_procs = wa_zmm_dscs-zz_procs

      zz_cdate = wa_zmm_dscs-zz_cdate

      zz_ctime = wa_zmm_dscs-zz_ctime

      where kostl = wa_zmm_dscs-kostl

      and zz_dteca = wa_zmm_dscs-zz_dteca.

      else. "insert the record

      insert into zmm_dscs values wa_zmm_dscs.

      endif.

      clear: wa_zmm_dscs.

      endloop.

      but still in the zmm_dscs i have to fill the netpr field for totalling the line items how to fill the netpr field

      and how to display that

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.