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

Layout changes

Hi Experts,

My print program contains following statements in sequence for printing the data in the layout

PERFORM get-data.

CHECK retcode = 0.

PERFORM form-open USING proc_screen xsend_mail.

CHECK recode = 0.

PERFORM print-main.

CHECK retcode = 0.

PERFORM form-close.

Inside of each perform statement calling text elements using function module WRITE_FORM based on some conditions. I need to print some information at the end of the document. For this I have written the logic in perform get data and I am moving the required data to some local variables. I am not created any text element for this. And I am using those local variables in my layout at the end of main window but it is not printing suppose if I use in between text elements it is working but I need to print at the end of the document. Please tell me where exactly I can place those variables in my layout.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 18, 2007 at 05:18 PM

    To be honest with you, I could not understand anything from your post... What "print program"? What "layout"? What "document"? What are you talking about and what exactly is the question?

    Also the code fragment that you have provided does not make much sense because we wouldn't know what is happening inside those PERFORM routines.

    So if you rephrase the question I'm sure someone will be glad to help.

    Just FYI - if you define local variables inside a routine (FORM) they won't be visible anywhere else in the program. You need to define variables in the main program if you're planning to use them in multiple PERFORMs.

    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.