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

Script...Problem

Hi friends,

In script, my requirement is whenever we enter same item twice keeping all the details of previous one

that should just increment the only quantity on the output.Normally,output shows whatever items you have entered.This is to reduce duplicate items.

How can I achieve this?Can I achieve this w/o modifying print program?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:46 AM

    at first, no you can NOT achieve this in just editing your form. For this requirement it is neccesary to modify the print-program.

    If you do NOT like to modify you could copy it into customer-nameroom (Y) and then edit the copied program. just make sure TNAPR records are getting updated to usage of new print-program.

    PROBLEM when copying, you will NOT benefit of new releases or hotpackeges.

    Another problem is WHEN do you call 2 items identical?

    When matnr = same or matnr = same AND amount = same?

    There can be different items with same material and even same amount while the got a different price or whatever.

    just be a bit more specific.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      uh äh sure that this 16 souldnt be a 8?

      anyway in your print program there probably is a routine item_print.

      this routine is beeing called within a loop over the positions data.

      So one way to achieve the things you want is to:

      BEFORE the loop over position data, do yourself a loop over the positions data.

      if your material is same then sum the values you need to sum.

      once a new material number is beeing populated within the loop, then add your summed record to a new tab of same type.

      Goal is to have the positionsdata-table already condensed.

      then you just need to replace the positionsdata-table around the Perform item_print by the new table you declared.

      got my idea?

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.