‎2008 Nov 04 5:58 AM
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
‎2008 Nov 04 6:17 AM
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 =
‎2008 Nov 04 6:48 AM
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