2021 Nov 09 4:19 PM
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.
2021 Nov 09 4:50 PM
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...)
2021 Nov 10 9:56 AM
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
2021 Nov 10 10:21 AM
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 ?

2021 Nov 12 1:57 PM
Are you sure you have created the standard text in the client where you run the SAPscript form?