‎2017 Jan 02 12:46 PM
Hi All,
In my script I have only PAGE1 and Next page as PAGE1. In my print program in internal table I have 6 records. I am getting the output if I have single record in my itab. If I have multiple records I am getting error "WRITE_FORM invalid, START_FORM missing". I have not used START_FORM in my print program.
Below is my code:
* Header details
call function 'WRITE_FORM'
exporting
element = 'HEADER_DET'
window = 'HEADER'.
* Item Data - MAIN Window
loop at t_final into wa_final.
call function 'WRITE_FORM'
exporting
element = 'MAIN_DATA'
window = 'MAIN'.
endloop.
call function 'WRITE_FORM'
exporting element = 'FOOTER_DET'
window = 'FOOTER'.
Please help me if I am missing anything.
Thanks,
HT
‎2017 Jan 02 12:58 PM
Dear Haritha,
Check whether you are testing the script in same client. If you are testing in different client, then you have to use client copy.
‎2017 Jan 03 6:54 AM
What did you pass to OPEN_FORM, in some case START_FORM will be required (e.g. If you omit the form name in open call)
Regards,
Raymond