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

Error Text command ‪INCLUDE is not defined in SAP Script (TD455)

mohammadaamir_khan
Participant
0 Likes
2,099

Hi,

I am using Z script, which is called form standard program RFKORD80. This script is using Z subroutine pool.

I want to show standard text with variable. I created it through SO10 with value &GV_QR_STRING_1&.

I declared variable GV_QR_STRING_1 in Subroutine pool and in Script, I have given this as &GV_QR_STRING_1& in PERFORM, CHANGING.

I debug, SAP script is showing value of GV_QR_STRING_1 as expected, but when it reached at statement

INCLUDE ZFI_INVOICE_QR OBJECT TEXT ID ST LANGUAGE EN, it is giving error

"The text command ‪INCLUDE is not defined or it contains a mistake." and is not displaying content of standard text.

Is there ay step, i am missing ? Please guide.

Thanks

PS. I even tried keeping standard text ZFI_INVOICE_QR blank, but still getting same error.

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,721

What happens if you remove &GV_QR_STRING_1& from your standard text and print again?

NB: message TD455 "Text command & is not defined" (Diagnosis: The text command &V1& is not defined or it contains a mistake...)

Read only

vijay_hariharan
Contributor
0 Likes
1,721

Hello Mohammad,

If the Standard text is defined correctly with the object and ID as declared then there shouldn't be an issue. A few other things to check would be the Tag Column/Format(left most column) on the Editor where you define the Include Standard Text in the script.
You can also maybe try giving the Language as E instead of EN and see if it has any effect.
Can't think of anything else right now - maybe delete the whole Include statement command line, run your script once to see if it still triggers some error, if not, put the statement back & re-run etc.

Hope this leads you in the right direction.

Regards,
Vijay

Read only

0 Likes
1,721

Hi Vijay,

I added TEXT using tool only. ZTEST_AR is created using SO10. I tried your suggestions but not working. Anything other point to consider ?

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,721

Are you sure you have created the standard text in the client where you run the SAPscript form?