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

SAPScript Error

former_member184495
Active Contributor
0 Likes
678

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.

7 REPLIES 7
Read only

valter_oliveira
Active Contributor
0 Likes
650

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.

Read only

0 Likes
650

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

Read only

Former Member
0 Likes
650

Hi Aditya,

Are u using the READ_TEXT FM in your program.

If yes then just uncomment all the Exceptions to handle it.

Thanks.

Read only

0 Likes
650

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.

Read only

0 Likes
650

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

Read only

0 Likes
650

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.

Read only

former_member184495
Active Contributor
0 Likes
650

answered.

issue was with OutputType in HeaderLevel