Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

printing multiple forms

Former Member
0 Likes
545

Hi All ,

I have the below code written for printing the two forms in sequence without having the open form window pop up twice.it should pop up only once.

  • Print Invoice

SET PARAMETER ID 'VKO' FIELD IN_VKORG.

SET PARAMETER ID 'VF' FIELD IN_NO.

CALL TRANSACTION 'ZU73_71_A' AND SKIP FIRST SCREEN.

PERFORM OPEN_FORM.

PERFORM START_FORM.

PERFORM PRINT_FORM.

PERFORM END_FORM.

  • Print Packing List

SET PARAMETER ID 'VKO' FIELD IN_VKORG.

SET PARAMETER ID 'VF' FIELD IN_NO.

CALL TRANSACTION 'ZU158_71_A' AND SKIP FIRST SCREEN.

PERFORM START_FORM_158.

PERFORM PRINT_FORM_158.

PERFORM END_FORM_158.

PERFORM CLOSE_FORM.

But as a result only the firm form is printed the second one doen not get printed.Is multiple form printing

possible at the first place ?if yes please comment on the above code as to what have gone wrong .

Thanks in advance.

Swati

2 REPLIES 2
Read only

Former Member
0 Likes
447

Hi,

Try this....

In the Second OPEN_FORM ..Pass the Value for DIALOG as SPACE.

For Eg:

CALL FUNCTION 'OPEN_FORM'

EXPORTING FORM = SPACE

LANGUAGE = SY-LANGU

DEVICE = 'PRINTER'

DIALOG = SPACE

OPTIONS = SPACE

APPLICATION = 'TX'

ARCHIVE_INDEX = SPACE

ARCHIVE_PARAMS = SPACE

IMPORTING LANGUAGE =

RESULT =

NEW_ARCHIVE_PARAMS =

EXCEPTIONS CANCELED =

DEVICE =

FORM =

OPTIONS =

UNCLOSED =

Read only

0 Likes
447

Hi Ajay,

This option does not work ,i have already tried it.even if the second form dialog field is set space ,it pops up the open form window.I do not want ot to show up for the second form.

Thanks,

Swati