‎2006 Aug 21 8:31 PM
hi friends,
reg: customer statement (sap script)
error during testing: i copied standard customer print program into my zprogram and developed as per my requirement , i placed my total code in one form and i am calling that form between open from and close form
but i am getting error <b>WRITE FORM INVALID AND OPEN FROM MISSING</b>
PLZ GUIDE ME HOW TO RESOLVE IT
REGARDS,
DIVYA
‎2006 Aug 21 10:07 PM
Chekc if
sap script is activated
in page setting for page1 you have mentioned the next page .
Main window is created as page window
‎2006 Aug 21 10:12 PM
Which program did you copy? RFKORD10? RFKORD11?
Try to use your custom layout set with one of the standard programs listed above.
Some of the print programs have the program name hardcoded (like SAVE_REPID = 'RFKORD11'). Did you change this to your Z program name?
With that error, it sounds like the FORM_OPEN routine is not being called before any WRITE_FORM function calls.
‎2006 Aug 22 12:46 AM
Hi Divya,
Do the steps as mentioned below
1). Place a brak point at OPEN_FORM and check the form name which is passed to this FM.
2). Check if the output configuration is completed with ur custom form name in NACE tcode.
3). Some scripts needs to be maintained in few specific tables, if it is not maintained it will throw a error. Check the discription of the error.
Hope this helps
Cheers
VJ
IF this helps dont forget to mark points.
‎2006 Aug 22 4:48 AM
seems you haven't activated ur script after last change or haven't given next page for page1 of main window
‎2006 Aug 22 5:12 AM
hi
good
check out the parameters that you r passing through the WRITE FORM AND OPEN FORM.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX = ' '
ARCHIVE_PARAMS = ' '
DEVICE = 'PRINTER'
DIALOG = ' '
FORM = 'Z_TESTSCRIPT'
LANGUAGE = SY-LANGU
OPTIONS = ZOPTION
IMPORTING
LANGUAGE = SY-LANGU
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEADER'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'HEADER'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
check with the parameters with your write_form and open_form function module and while you r calling check wheather you need one write_form or more than one write_form to display the data.
thanks
mrutyun
‎2006 Aug 22 5:21 AM
There could be a chance of ovelapping in your Windows design.. Check it out.
-Mohan.
Give points if valid
‎2006 Sep 05 4:44 PM
Hi divya,
How did you dolve this problem.Can you tell I am working on same (customer statements).Please help me
Thanks