cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript runtime error

Former Member
0 Kudos

Hi all,

I have the below code.


    CALL FUNCTION 'WRITE_FORM'
        EXPORTING ELEMENT = KOPF_TITLE
                  WINDOW = 'MAIN'.

In SAPSCRIPT

/E KOPF_TITLE

/:BOX YPOS '6' CM WIDTH '20' CM HEIGHT '2' CM FRAME 10 TW

/*

/

/*

/*

/*

Requestor:&LTAK-BNAME&,,,,,,,,Cost Center:&REQ_KOSTL&


However whenever I reached until exporting element = kopf_title, I get the runtime error. I do not understand why this runtime error is occurred as I have already declared KOPF_TITLE in SAPSCRIPT.  

Runtime Errors GETWA_NOT_ASSIGNED

Date and Time 10/10/2008 07:29:33

Short text

Field symbol has not yet been assigned.

Anyone knows why? Please advice.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member585060
Active Contributor
0 Kudos

Hi,

As in your code the Text element is not in single quotes,

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'KOPF_TITLE'

WINDOW = 'MAIN'.

so keep the Text element name in single quote and execute.

Regards

Bala Krishna

Former Member
0 Kudos

Hi Bala,

Thanks for your prompt reply.

The problem still occurring after I added the 'KOPF_TITLE'.

Any other ideas?

former_member585060
Active Contributor
0 Kudos

Hi,

Goto SE71, give the SAPScript name, Menu>Utilities>Activate the debugger.

Execute to print the SAPScript and check for the values of

&LTAK-BNAME& &REQ_KOSTL&

Regards

Bala Krishna

Former Member
0 Kudos

Hi Bala,

You are absolutely right. When I try to get the value for REQ_KOSTL, the runtime error occurred.

How could I switch off the debugger in SE71?

Former Member
0 Kudos

Hi Bala,

I managed to find how to switch off the debugger for SE71.

Thanks alot for your help.

former_member585060
Active Contributor
0 Kudos

Hi,

You can do it through Menu> Exit Debegugger. The debugger will be Activated for only once, next time you execute it won't start the debugger, no need to stop debugger manually. If you want again, you have to do as i said before.

Just check your declarition of the field REQ_KOSTL which is causing the problem.

Regards

Bala Krishna

Answers (0)