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 removing /E text elements from output

Former Member
0 Likes
1,959

Hi there, I created a Z SAPScript from the Standard SAPScript PSFC_STD_LAYOUT. I commented the parts which I didn't require in my output, however I kept all the /E elements in the script, commented the data inside them. Upon output, I find '/E 'Name of text element' ' everywhere in my script. I don't wish to display "/E name of text element" in my output. What can I do?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,383

Hi

If you use the standard program as main program is right to keep the standard text element, now the image you've posted seems to be the print text, so it's right to see "/E <text element name>, but this won't be printed in your print.

Max

6 REPLIES 6
Read only

Former Member
0 Likes
1,384

Hi

If you use the standard program as main program is right to keep the standard text element, now the image you've posted seems to be the print text, so it's right to see "/E <text element name>, but this won't be printed in your print.

Max

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,383

Please excute it via driver program they wont get printed

Read only

Former Member
0 Likes
1,383

Hi Siddharth,

You will see all these in your Print Preview, but these will not appear in actual print.

Regards,

DN.

Read only

Former Member
0 Likes
1,383

Thanks for your answers. I also wanted to ask that when they will print will they occupy the space like they do right now? Will it leave blank spaces? Suppose I have two text elements which I want to display but between them there are many /E displaying in the preview. In the final print will there be space between them or the elements will print one after the other?

Read only

0 Likes
1,383

Text elements are never printed..they are like placeholder as you have subroutines you call them and they do their work. It just like you are telling the sap script in Main Window which portion to print

Read only

0 Likes
1,383

Hi

As Nabheet Madam wrote, The text element definition (/E ......) is never printed, but it can print all thing placed into (under) a text element, blank line too.

If it's used a sapscript copied from standard one but it keeps the standard program as driven program, it's better not to delete the text element not used in order to prevent a dump:

the program could still call the text element and if it was deleted from sapscript a dump will occur.

So you make sure to delete all thing of a text element by * (or you can delete it really), also blank line.

Max