‎2007 May 07 3:37 PM
Hi,
i have a 'Y' form already existing,
i added a new text element in the Form,
made similar changes to its print-program.
on running VF02, on previewing the Form i get error 'Update was terminated'.
in SM14 it states that the textelement that i created doesnt exist for that Form.
Assist plz.
Aditya.
‎2007 May 07 3:45 PM
Hi.
Ate the variables filled in the moment that the text is displayied? You should verify it before trying to write the text.
Hope this helps.
Reward helpfull ideas.
Best regards.
Valter Oliveira.
‎2007 May 07 4:02 PM
Hi,
could you elaborate on it, plz.
i have limited knowledge on SAPScript.
additional info:
I have 2 text elements ABC_TEXT and XYZ_TEXT, my above problem is for XYZ_TEXT which gives me the 'update terminated' error.
Now in my print program,
ABC_TEXT was already there which had PROTECT ENDPROTECT,
i added my XYZ_TEXT after ABC_TEXT in my code in SAPScript.
Does that really make a difference ?
Aditya
Message was edited by:
Aditya Varrier
‎2007 May 07 3:59 PM
Hi Aditya,
Are u using the READ_TEXT FM in your program.
If yes then just uncomment all the Exceptions to handle it.
Thanks.
‎2007 May 08 11:28 AM
Hi again.
The insertion of a new text element requires 2 actions.
<b>First:</b>
Insert it in a window in the Sapscript (don't forget the "/E" prefix in the paragraphs colum inside the window:
<b>/E XYZ_TEXT (this line should be in RED)
bla bla bla</b>
<b>Second:</b>
In the print program you must declare it like this:
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'XYZ_TEXT'
window = 'YOUR_WINDOW'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
OTHERS = 9.Hope this helps.
Reward helpfull ideas.
Best regards.
Valter Olivera.
‎2007 May 08 12:41 PM
Hi VO,
tx for response, but this similar the way that i have coded.
but dont knw why error.
am still figuring out the problem.
Aditya
‎2007 May 08 1:22 PM
Hi Aditya.
Do the following:
-> Go to SE71
-> Display Your Form
-> Inside Form, chose Form/Check/Texts
-> Check Include Res. checkbox
-> Click continue
-> Mark your print program
-> Click copy
-> See the log.
Best regards.
Valter Oliveira.
‎2007 May 08 4:24 PM