Standard text printing in sapscripts in EN & DE Language....
HI All,
My requirement was very simple....
I have some 6-7 Layouts......
i want to replace some hard coded text with some other text in those layout when the layout language is DE .the text will be in german...
for all remaining langauges of the layout i want the text to be displayed in EN.
can i use Standard Text or mormal hard coding will do aa....How....can any one help me out with sample coding or navigation....
Thanks
Ganesh
Hi Kalandar,
The above solution was not working......I'll explain my problem clearly once again.
1. I have 6 layout to be changed in language DE
In the main window with tax text element i have some hard code in german language...that has to be replaced with some other sentence in german only(i have both the Sentences with me)
2. For the same 6 layouts to be changed in other languages(except DE)
same window ,same text element ,same hard code,but in English i have that to be replace with some other english sentence.
Simple to say in those 6 layouts if layout lang is DE then german sentence ,if lang other then DE...English sentence
Please check the possibility to use standard texts for this texts. Do u have to make any changes to program as well...
Plz help me out regarding this ...very important
Thanks
Ganesh
Similar Messages
-
Standard Text printing in SAP Scripts
Hi All,
Iam printing data from Standard Text it is printing
but i need like
Bank ICICI
but the below is giving
Bank
ICICI
AS ,,,,,,,,,,,,,,Bank,,,,,,,,
/: INCLUDE &V_ACC& OBJECT TEXT ID ST LANGUAGE EN
Can you please tel me how to doHi,
How your are creating the Standard text V_ACC in transaction SO10? create it with Contineous text, defailt will be as Command line(/:), thats why all the Standard texts will be printed on New line.
Tcode : SO10
Text Name :- V_ACC
Text Id :- TEXT
Language:- EN
The text should be
ICICI "For Continues text paragraph format will be blank
not as below
/: ICICI "For New line text paragraph format will be /:
Now call the standard text in your Sapscript
AS ,,,,,,,,,,,,,,Bank,,,,,,,,
/: INCLUDE V_ACC OBJECT TEXT ID ST
Just check the tab spaces after Bank statement, if it is more Included text will be in next line.
Regards
Bala Krishna -
Sapscript Standard Text Printing - Format Problem
Heros,
I wanted to print one standard text(Basic Text of Process order) in sapscript.I am using the INCLUDE command instead of Read_text FM , so that I can keep the Paragraphs of that text intact.But I am falling short of two requirements of my client.
1. He has highlighted Some words of the text and underlined some of the text. He wants that character format intact in spascript.How can I do that?
2. The script initaly was using Read_Text and was storing the value in a variable wa_line and was printing in script as
<b>[LI ] DESCRIPTION: &wa_line&</b>
so it was printing like
DESCRIPTION: fasfoihfaishfiahfiafhfihfahfiashfiahfahfiafiasfihahfisahfafasi
But now I am using INCLUDE command as follows
<b>[LI] DESCRIPTION:
[: /] INCLUDE OBJECT BLAH BLAH</b>
So it is printing like
<b>DESCRIPTION:
fasfoihf
aishfiahfiafhfihfa
hfiashfiahfa
hfiafiasfihahfisahfafasi</b>
I want to get them in same line.
I mean
<b>DESCRIPTION: fasfoihf
aishfiahfiafhfihfa
hfiashfiahfa
hfiafiasfihahfisahfafasi</b>
Is that possible?
<b>Reward Point Guranteed.</b>Hi Anid,
When you are creating your standard text the default value in the tag column is *. If you change this value to = (Extended line) the display of standard text will start in the same line as the previous value (in your case it will display the standard text in the same line as DESCRIPTION:).
Hope this solves your problem!
Regards,
Saurabh -
Print standard text in a sapscript
hi,
I have want to include standard text by ME32k in a sapscript. I need to include the text and the particular format. For example if I use FM READ_TEXT for text object EKKO id F02 for a particular EKKO-EBELN, the FM give me the table LINES with this text:
TD TDLINE
C K02:HAEDER NOTE
I need to print the text "K02: HAEDER NOT" with the format C ( Centered).
Can you help me, please?
Thank's.Hi,
Tcode SO10 can be used to attach standard text in sapscript.
For formatting, plz check the below link
Standard text editor SO10 -
Standard text printing missing on Smartform
Hi All,
I am using standard text in Smartform.
Standard text contains 'terms and conditions' hence it's used for printing in second page.
For printing standard text one window other than Main window has been created in second page.
Now when I am taking print preview of smartform only two pages are visible and on second page complete standard text is not displayed. As standard text is of two pages then rest missing text should come on third page as a continuity.
But missing standard text is not getting diplayed.
Any suggestion what shall we do to print complete standard text.
Regards,
Amit
Edited by: Amit Singh on Nov 25, 2010 11:38 AM
Edited by: Amit Singh on Nov 25, 2010 11:39 AM
Edited by: Amit Singh on Nov 25, 2010 11:39 AMI tried to use the 2nd option provided by you but still this prolem is not resolved.
Missing Standard text is not going in a new page.
I tried to expand the window size and now entire text is coming in a single page. But by this way page window is not same as in a first page.
Is there any otherway to print the rest missing text in next page of the smartform.
Regards,
Amit -
Standard text printed only on one line
Hi experts,
I have a standard text in several lines:
Line 1
Line 2
Line 3
but in the pdf form it's printing in the same line:
Line 1 Line 2 Line 3...
Any suggestions ?
/KiehnHello!
1) When you say you have Standard text is several line that does not mean, that system have is in several lines.
I don't know if you are aware or not, but while SAP system always stores long texts in 70 (or about so) char segments the fact that they are printed on one or several lines is controlled solely by formatting column that precedes each line in TLINES table. So, does your text has line breaks or new paragraph marks before those lines?
2) If everything in above is correct, than maybe you have to check the format you use to transfer text from SAP to Adobe (in interface/context). Please, recheck what is stated [here at SAP Library|http://help.sap.com/saphelp_nw70/helpdata/en/04/ecfab99fc345f8826490df387aaf82/frameset.htm]. All this together with correct format for field (Rich text or Plain text) plus (as stated by poster above) "Allow multiple lines" and "Expand to Fit" (vertically) formatting should do the trick.
Regards,
Petr Perstnev -
How to compare standard texts used in Sapscripts different Environments
Hello Gurus,
I need to compare the standards texts found in different environments.
1. I would like to know if there is a program /Tcode that does this.
2. In what table are the standard texts kept?
3. How can I access the contents of another environment?
Thanks gurus.
Parvezhii parvez
standard tables are stored in the table so10
u can access throu standard prog RSTXFCOM
RSTXR3TR to transport
reward points if useful
regards
Jaipal -
Hi Abapers,
I am chaniging an existing SapScript that was not working properly. Client wants to print "Item Text" in output which is of 3 to 4 page. where as there is only one line item in PO. Also there is "Header Text" of 1 page. Client wants to display all line items then "Item Text" should displayed. and at last the "eader Text". The Format is Like as Follows:-
PO No. 12.12.2006
Vendor Name
Country
S.No. Mat. Desc. Qty. ...............and so on..........
1 abc 11 .....................
Item Text starts from here........................
Problem is here
This text is of 3 page (say).
So text starts from here and est of text goes to next page.
Only 4 Lines are printed properly and rest of lines are not printed.
I also checked in debuging mode.
so attachibng the code for reference kindly go through this.
Header Text Starts from here
Total amt. in words......
FORM READ_TEXTSLO1 TABLES IN_TAB200 STRUCTURE ITCSY
OUT_TAB200 STRUCTURE ITCSY.
READ TABLE IN_TAB200 INDEX 1.
EBELN1 = IN_TAB200-VALUE.
READ TABLE IN_TAB200 INDEX 2.
EBELP = IN_TAB200-VALUE.
CONCATENATE EBELN1 EBELP INTO OBJNAME.
CLEAR WRK_IT1.
CLEAR WRK_IT2.
CLEAR WRK_IT3.
CLEAR WRK_IT4.
CLEAR WRK_IT5.
Repeated Code
SELECT SINGLE TDNAME INTO WRK_TDNAME FROM STXH
WHERE TDOBJECT = 'EKPO'
AND TDNAME = OBJNAME
AND TDID EQ 'F01'.
IF SY-SUBRC = 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = 'E'
NAME = OBJNAME
OBJECT = 'EKPO'
TABLES
LINES = IT_LINE.
IF SY-SUBRC = 0.
delete it_line where tdline EQ ' '.
BREAK ABAP7.
DESCRIBE TABLE it_line LINES wrk_lines1.
LOOP AT IT_LINE.
CLEAR WRK_TABIX.
WRK_TABIX = SY-TABIX.
IF WRK_TDLINE EQ ' '.
WRK_TDLINE = IT_LINE-TDLINE.
ELSE.
CONCATENATE WRK_TDLINE IT_LINE-TDLINE INTO WRK_TDLINE
SEPARATED BY SPACE.
ENDIF.
Y = STRLEN( WRK_TDLINE ).
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = WRK_TDLINE
DELIMITER = ' '
OUTPUTLEN = 100
IMPORTING
OUT_LINE1 = OUT_LINE1
OUT_LINE2 = OUT_LINE2
OUT_LINE3 = OUT_LINE3
OUT_LINE3 =
TABLES
OUT_LINES =
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*break abap7.
CASE WRK_TABIX.
WHEN 1 .
WRK_IT1 = OUT_LINE1.
WHEN 2 .
WRK_IT2 = OUT_LINE1.
WHEN 3 .
WRK_IT3 = OUT_LINE1.
WHEN 4 .
WRK_IT4 = OUT_LINE1.
ENDCASE.
IF OUT_LINE3 EQ ' '.
WRK_TDLINE = OUT_LINE2.
ELSE.
CONCATENATE OUT_LINE2 OUT_LINE3 INTO WRK_TDLINE
SEPARATED BY SPACE.
ENDIF.
ENDLOOP.
IF WRK_IT4 NE ' '.
Y = STRLEN( WRK_TDLINE ).
IF Y GT 50.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = WRK_TDLINE
DELIMITER = ' '
OUTPUTLEN = 50
IMPORTING
OUT_LINE1 = OUT_LINE1
OUT_LINE2 = OUT_LINE2
OUT_LINE3 = OUT_LINE3
OUT_LINE3 =
TABLES
OUT_LINES =
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
wrk_it4 = out_line1. " Change Uncommented"
WRK_ITA = OUT_LINE1.
WRK_ITA4 = OUT_LINE2.
ELSE.
WRK_ITA = WRK_TDLINE.
ENDIF.
ENDIF.
ENDIF.
CLEAR WRK_TDLINE.
CLEAR OUT_LINE1.
CLEAR OUT_LINE2.
CLEAR OUT_LINE3.
OUT_TAB200-VALUE = WRK_IT1.
MODIFY OUT_TAB200 INDEX 1 TRANSPORTING VALUE.
OUT_TAB200-VALUE = WRK_IT2.
MODIFY OUT_TAB200 INDEX 2 TRANSPORTING VALUE.
OUT_TAB200-VALUE = WRK_IT3.
MODIFY OUT_TAB200 INDEX 3 TRANSPORTING VALUE.
OUT_TAB200-VALUE = WRK_IT4.
MODIFY OUT_TAB200 INDEX 4 TRANSPORTING VALUE.
ENDIF.
*****************************************************************Repeated code
Again the same code is repeated but now the TDID eq F02 in Select Query and also in READ_TEXT Fun. Module. and now in the CASE statement next 4 lines coded as
WHEN 1 .
WRK_IT5 = OUT_LINE1.
WHEN 2 .
WRK_IT6 = OUT_LINE1.
WHEN 3 .
WRK_IT7 = OUT_LINE1.
WHEN 4 .
WRK_IT8 = OUT_LINE1.
and also these 4 rows modified as follows
OUT_TAB200-VALUE = WRK_IT5.
MODIFY OUT_TAB200 INDEX 5 TRANSPORTING VALUE.
Now each time 4 - 4 rows coded as like as above.
upto TDID = F05
So there are total of 20 lines.
Now the text is of 4 to 5 page then its not printed. even 5th line is not printed. control not goes to 2nd Select Query cause the OBJECTNAME does not exist.
<b>for more information write your Email ID . So that i can explain more.</b>
So kindly review this and let me know what should i do ?
Helpful answer rewarded.
Regards
Robinhi,
<b>SAP SCRIPTS TUTORIALS</b>
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
SAP Script From the Scratch
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
http://sapbrain.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://www.esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://www.esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://www.esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
Rgds
Anver
<b><i>if hlped pls mark points</i></b> -
Long Text Printing in SAPSCRIPT
Hi Experts,
I got one requirement that i the long text which user will enter that
has to be displayed on the layout of one window not main.
The text comes from FB03 application, that has to be displayed.
I want to know how to do this, i tried to use the hardcoded RSTXT-TDNAME text in my script as define &x& = 'AU1018000010152008001'
and then include command i used.
It will be okay for one item, if there are multiple items then it will not be worked.
so please give me an idea to proceed.
Regards,
sivananda P.hi,
it_tline like tline occurs 0 with header line,
v_info(50), "#EC
clear it_tline.
refresh it_tline.
clear v_info.
v_name = it_out-ebeln.
call function 'READ_TEXT'
exporting
client = sy-mandt
id = 'F05'
language = sy-langu
name = v_name
object = 'EKKO'
tables
lines = it_tline
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
if sy-subrc eq 0.
read table it_tline. "#EC *
v_info = it_tline-tdline(50).
endif.
if helpful give the points,
Regards,
Venkat -
How to define & read Standard Text in SAPScript? Urgent Please
Hi Experts,
How to define & read Standard Text in SAPScript? Urgent Please..
Thanks in advance
good answer will points gud marks.
sekharHi
U can't define a standard text in a SAPScript, you call call it only by statament INCLUDE
/: INCLUDE <ST TEXT NAME> OBJECT TEXT ID ST LANGUAGE <LANGUAGE>
U can define it by trx SO10.
If you need to know the text without to print it, you need to use a routine where u can use the fm READ_TEXT in order to find out the text.
Max
Message was edited by:
max bianchi -
Standard text having '&ULINE&' not printed in adobe form????
I have a standard text in so10 which is to be used in my adobe form .
The standard text uses '&ULINE&' to print a line . This when used by script was interpreted and a line is being printed.
But when the same standard text is inluded in the adobe form , it throws a runtime
error saying that " Field '&ULINE&' does not exist".
Could some one help me out how to get this standard text printed in adobe form.
Thanks and Regards
Tejaswi SurapaneniHi Tejaswi,
Have you checked this wikilink:
http://wiki.sdn.sap.com/wiki/display/ABAP/UsingofStandardText%28SO10%29+inAdobe+Form
Regards,
Vaibhav -
How to add standard text in PO and how it is maintained ?
How to add standard text (paragraph) in PO and how it is maintained ?
Hi
Please go through this document.which has a step by step
Working with Frequently Used Texts
Use
You can copy texts from various sources to create PO texts:
Standard texts
Certain standard texts are supplied with the system and can be assigned to a purchasing document in Customizing.
The content of some standard texts is predefined by your system administrator.
You can also create standard texts yourself and copy them into purchasing documents.
Master records
Database fields
Activities
Creating Standard Texts
You can create your own standard texts via Tools ® SAPscript ® Standard text.
Inserting Standard Texts
You can insert your standard text on the long text screen via Insert ® Text ® Standard.
For more information, refer to the Basis documentation under BC Word Processing with the SAPscript Editor: Including Texts.
You can display the print preview via Text ® Print ® Print preview.
Inserting Texts from the Master Record
There are three ways of linking texts from a master record with a purchasing document. The relevant settings are made for each text type in Customizing for Purchasing. The indicator in the status column shows the nature of the linkage.
Option Indicator in status column
The text is copied:
It is then independent of the text None
in the master record. Changes to
the text in the material master record
have no influence on the text in the document.
The text is displayed only:
It cannot be adopted. N
The text is offered for copying:
It can be copied via Header or Item ® Texts ® Adopt text. (In requisitions: Goto ® Texts ® Adopt text.) Changes made in the master record will also be adopted in the document until such time as you copy the text.
Inserting Texts from Database Fields
You can include the content of a database field at any point in the text on the long text screen. A value specific to the relevant document is displayed in the printed document.
Choose Insert ® Symbols ® Program symbols.
Choose DDIC fields.
Search for the relevant table/structure (in the case of PO items, this is EKPO) and then choose ENTER .
Choose the relevant table field.
Choose Text ® Print preview to see the print preview.
Reward if useful
Aasif -
How to include the STANDARD TEXT Logo in SMARTFORM???
Hai experts,
Im able to get the standard text logo in SAPSCRIPT used follwing command in text editor.
v_logo is dynamic variable.
/:INCLUDE &V_LOGO& OBJECT TEXT ID ST LANGUAGE EN
But in smartforms im unable to get the Standard text logo used following steps...
in Include text node
A) Text name : &V_LOGO& <
B) Text object : TEXT >
C) Text ID : ST >
D) Text Language : EN >
Why????
What are the further steps needed??
Rewards helpful answer is very useful..
Thanks & rgds,
Muru.P.HI
http://www.sapmaterial.com/smartform_example.html
http://www.sap-press.com/product.cfm?account=&product=H955&shoppingcart=003
Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
in the BDS (business transaction server) and then it can be displayed in the form.
· To create the graphic node , call the context menu for that node in the tree structure and choose create-
>graphic
· Enter a name (LOGO) for the node and the description (Logo Graphic)
· On the general attributes determine whether a colored or a black and white
· On General Attributes use the fields object - GRPAHIC, id u2013 BMAP and name - &G_LOGO& to identify the
graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
the graphic is required.
Regards
Pavan -
How to use Standard text in SAP SCRIPTS
Hi all,
Please tell me how can we use the standard text what we have created in SO10 with sap scripts.Hi Gaurav
You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPScript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
Alternatively, you can display standard texts in your SAP Scripts using the command:
INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
where ZSTEXT refers to the Standard Text name.
Reward pts if found usefull
Regards
Sathish:) -
Standard Text Correspondence emailed
Hi,
I hope this is the correct forum for this question.
I've created some standard texts (via SO10) for correspondence in the recruitment module (PA-RC), when I send this to a candidate it produces an email with a PDF document which has the correspondence but the body of the email is empty (other than the attachment). Does anyone know how, or have any suggestions on how to either input the content of the PDF into the body of the email, or how to generate some text in the body?
I've had a look through the forums and can only see this question asked by others, but with no resoultion.
Thanks
TomHi,
Standard text is "<b>client depedent</b>". ( so is SAPScript )
You can transport it with two different ways.
[1]. Program <b>RSTXTCPY</b>
[2]. Create a manual transport of standard text. For this follow these steps.
- Go to transaction SE10. Create a transport request ( workbench ) and task under it.
- Select task and hit button "Disply object list (Shift + F11)".
- On the next screen, switch to change mode.
- Hit button "New entries".
- Now create entry with these values
PgmID = R3TR
Obj = TEXT
Object Name = TEXT,MY_TEXT_NAME,ST,E
here, MY_TEXT_NAME is your standard text created in SO10 and 'E' is language. ( i assume the text is in english ).
Let me know if you have any question.
Regards,
RS
Maybe you are looking for
-
I have been told by the apple store that I have a software problem but have not been given any assistance on how to resolve the issue. Even with a full charge the device will power off, most of the time stating that the battery is dead. However, wh
-
Drop Box or Public folder?
What is the difference between the Drop Box and Public folders? Which is easier for getting files to other users?
-
Podcast cover looks fine in app, won't update in store?
Hi all, I have been lurking on this forum for a while, and I'm sorry to say I have yet another podcast cover issue to throw on the pile! Background: I created a podcast last summer. At first, the cover image I submitted was a bit of a placeholder. A
-
[Q] Loading one external JPG file into different MCs & Downloading
Hi, I was wondering if I set few MCs to load the same external JPG file, would users need to download thme few times? Or only need to download once? I am having trouble loading long 700*8000 jpg files due to limited pixel size of 2300(?). I was thkin
-
Ipod and facetime not working :(
I just got my ipod, but facetime and imessage isnt working. It goes back to the log in page after verifying but when my friend tried logging on with his ipad, it worked. how can i fix it?