Skip to Content

smartform print preview problem when using no_open no_close control paramet

Hi experts,

I hv created smartform & driver program for displaying multiple reservation number.

for that i m using no_open & no_close control paramerer.

e.g

loop at t_rkpfh into wa_rkpfh.

  • st_control_parameters-no_open = 'X'.

  • st_control_parameters-no_close = 'X'.

  • at first.

  • st_control_parameters-no_open = space.

  • st_control_parameters-no_close = 'X'.

  • endat.

PERFORM call_smartform.

  • at last.

  • st_control_parameters-no_open = 'X'.

  • st_control_parameters-no_close = space.

  • endat.

endloop.

i need to display print preview for this output but it will be not display.

Regards,

Arpit

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jan 29, 2010 at 02:46 PM

    You must set no_open and no_close flags before callling your subroutine (smart form function module). You forgot that principle for the "at last" section.

    Note: Please use markups for your code (as I do below).

    loop at t_rkpfh into wa_rkpfh.
      st_control_parameters-no_open = 'X'.
      st_control_parameters-no_close = 'X'.
    
      at first.
        st_control_parameters-no_open = space.
        st_control_parameters-no_close = 'X'.
      endat.
    
    *======> block AT LAST has to be before PERFORM
      at last.
        st_control_parameters-no_open = 'X'.
        st_control_parameters-no_close = space.
      endat.
    *<======
    
      PERFORM call_smartform.
    
    endloop.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 30, 2010 at 06:01 AM

    thanks....

    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.