‎2010 Jun 18 3:50 PM
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
‎2010 Jun 18 4:29 PM
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...
‎2010 Jun 18 4:29 PM
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...