07-16-2015 2:53 PM
Hello all,
I want to include a dynamic text element in a SAPScript.
But by one or more reasons this text is not showed..
This is my implementation to show the text element in the editor (SE71):
In the other editor it's like this
This is how it's showed now
Normally under 'Executive Summary the text elements must be displayed..
I've check the value of VIQMEL-BAUTL in he debugger:
And yes there is some text:
The given Text name seems correct..
Does anyone know what the problem is and why the text doesn't appear on the SAPScript?
Kind regards,
Pieter
07-16-2015 4:02 PM
Hi,
What happens in Sapscript debugger? Does it show the text?
Maybe you could try with LANGUAGE 'E' .
07-16-2015 4:02 PM
Hi,
What happens in Sapscript debugger? Does it show the text?
Maybe you could try with LANGUAGE 'E' .
07-17-2015 8:26 AM
Hello Piru,
In the SAPScript debugger for the INLUDE line:
The next message is displayed:
And the value of WQMMA-STTXT is empty..
But in the ABAP code this field recieved a value (like I showed in my question).
Why is this field empty again?
Kind regards,
Pieter
07-17-2015 8:59 AM
Hi Pieter,
It might be worth checking the variable you want to use is available from the print program.
If you go into the old version of the text editor (the second screen shot in your question) there will be a menu option something like Goto -> Print Program -> Define Print Program (the wording has changed over the releases, but it's something like that).
From there you can navigate into the variables from the print program that are available in the form.
Regards,
Nick
07-17-2015 8:59 AM
Hi,
usually in order to call that text you would need a text element within the corresponding window:
e.g.
/E LAST
/: INCLUDE &VIQMEL-BAUTL& OBJECT QMFE ID LTQM LANGUAGE EN
This element should be called within the print program:
e.g.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'LAST'
window = 'MAIN'.
Make sure you have both of them.
Best regards.
07-17-2015 9:45 AM
Hi Pablo,
Thanks for your answer.
I created like you said, now VIQMEL-BAUTL has the correct value but still the same message underneath the screen is displayed with the value..
Kind regards,
Pieter
07-17-2015 9:55 AM
Hi,
even the WRITE_FORM in the print program?.
Put a break-point there and see what is going on.
(generate and activate frequently, sometimes its tricky)
Best regards.
07-17-2015 11:33 AM
Hi,
not every field in the ABAP print program can be retrieved and output in SAPscript. Only GLOBAL variables can be accessed by SAPscript. Are you sure your field is a global variable in your print program (e.g compare its location in the program to some other, working, variables in the form)?
Regards,
Alex
07-17-2015 8:58 AM
07-17-2015 10:50 AM
Hello Pieter,
Did you write the command by yourself or used the below insert option.
There might be chances that you have missed one space or added while writing.
Just try to add it by the provision available as below.
Go to the line editor of the window then in menu Insert --> Text --> Standard.
Specify the text name, ID and language.
Regards,
TP