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

Which event use to modify report data before printing it

Hi, everybody.

I've made a document layout for the Delivery layout to print in a single document the items & their batch or serial numbers. SAP BO doesn't manage this information together, it prints one document with the items & additional ones for the batch and serial numbers. So, I created one stored procedure that takes the information that I need and inserts it in the DLN1 table from which the information is taken for the report, and another one that deletes that information, at the end I'm leaving the DLN1 table as it was before I run the stored procedures.

I'm using the MenuEvent to catch when the user click the Print or PrintPreview buttons, then when the pVal.BeforeAction=True I run the stored procedure that inserts the information and when it's False I run the one that deletes the info.

The problem is that when I print or preview the document the additional rows I've inserted doesn't appear. I don't know if I'm catching the appropriate event or what event should I catch to make this work.

If someone could help me with this I'll be very thankful.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 08:16 PM

    Ricardo,

    You should NEVER do any Inserts directly on a table, or you'll loose all support privileges from SAP.

    Also, the lines may not be visible, because the original document header actually knows how many lines does it contains.

    You'll have to design a more complex report with a bit more complex queries in order to do what you want right.

    -

    -


    Alfredo Pérez

    www.corponet.com.mx

    SAP Developer & Consultant

    alperal (at) gmail.com

    +52-(81)-137-937-80

    Add a comment
    10|10000 characters needed characters exceeded

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.