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

conflict when 2 sapsripts access same standard text ?

Former Member
0 Likes
311

Hi,

I have a question on standard texts created dynamically in the print program of the sapscript

and accessed in the sapscript using the /: INCLUDE statement.

I have a print program for 2 output types and each one of them deal with different layouts. But both need to display

some textual data related to the material they print.

So say user 1 is printing output 1 which may print materials 20001 and 20002.

And user 2 is printing output 2 which may print materials 20001 and 20003.

Now the print program is same and my logic loops thru the materials and for each material it

forms some textual content and using save_text stores in standard text named 'ztext'. This is included

in the sapscripts.

So my question is on the conflict. When user 1 and 2 simultaneously run the same print program (which

uses the same standard text for all outputs) can I expect conflict ?? How Should this be dealt with ?

I hope my question is clear.

pl advise.

PS: Actually I am trying to pass an internal table of data to the sapscript and rather than passing it

I googled and found that we can use this approach of saving the internal table data in a standard text

and using it in sapscript. Hence followed this approach.

thnks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
287

If I had to use standard texts (not a bad approach), I would serialize them or otherwise make them unique with userid, date/time or something, so that the user would not be trying to write the same name into the text tables. It's possible to construct a text name and use that in the SAPScript, I'd think

Creating with the same name could, as you point out, result in wrong texts appearing in the SAPScripts.... And, you probably need to dump those texts after they're used, unless they're going to be used again, lest you end up iwth a few million rows of standard texts...

1 REPLY 1
Read only

Former Member
0 Likes
288

If I had to use standard texts (not a bad approach), I would serialize them or otherwise make them unique with userid, date/time or something, so that the user would not be trying to write the same name into the text tables. It's possible to construct a text name and use that in the SAPScript, I'd think

Creating with the same name could, as you point out, result in wrong texts appearing in the SAPScripts.... And, you probably need to dump those texts after they're used, unless they're going to be used again, lest you end up iwth a few million rows of standard texts...