Translation in sap script
In my sap script, i am using a standard text. Now I need to maintain this standard text for 2 languages.
I have created two standard text with name name ZCPQM_INSPECTION_RESULT and maintained differerent values for language EN and FR in SO10.
In script, i have to write it as
INCLUDE ZCPQM_INSPECTION_RESULT OBJECT TEXT ID ST LANGUAGE &lv_langu&.
Now I am not sure wher eto declare the variable lv_langu. Please help
Hi Niti,
Do this way,
/: INCLUDE TESTTEXT OBJECT TEXT ID ST LANGUAGE &NAST-SPRAS&
this will include a SO10 Standard text "TESTTEXT" in the corresponding lagnuage in your form.
in SAP-Script you can not use statements like call funtion: edit_text, read_text, save_text, commit_text, delete_text.
to do so you need to jump off to an external perform like following:
/: Perform edit_text in program YSD_PERFORM
/: USING &NAST-SPRAS&
/: CHANGING &VARIABLE&
/: ENDPERFORM
Regards
Abhii...
Similar Messages
-
How can we make language translation in sap script?
Hi expert,
Based on language i have to display text in sap script form.
please i like to know how to maintain language translation in sap script.
manually i am handling the language text in print program.
like below.
if language = 'EN'
text in english.
endif.
if language = 'DE'
text in German.
endif.
good points will be given for proper answer.
Thanks and regards,
Pavan.Hello there!
If those texts are static, you can use the following procedure (to translate your text elements):
Go to SE63, then in the menu follow this path:
Translation->ABAP Objects->Other Long Texts->FS (forms and styles)->FORM (Forms)
This will transport you for a screen where you can choose the script (Object -> field Object Name). Press Enter. If says object not found, it's because the source language is wrong (box below named translation -> field source language --- press F4 to change it)
After this, you'll navigate (after pressing Enter with correct language in source and choosing a correct one in target) to the transaltion screen. You'll have you text elements, original on top, your transalation below.
If those texts are dynamic, I believe you have to do the way you are doing.
Hope this helps. -
Text translation in sap-script
Hi
I am using sapscript for PO printing . I need to translate some texts in the PO depending upon the language . I have the translated text in all languages . How to go about it . putting condition on language would be a tedious job . Is there some better way to perform these translations .
Awaiting response . Would reward any sort of help .
ThanksInstead Create A TExt Element and euate the text element to the corresponding field which u r transferring to the S. Script.
Suppose ur displaying : &VA_DESCRIPTION& in the SAP Script...
Then Do like this:
VA_DESCRIPTION = TEXT-001.
Now using TRANSLATION TOOL LOAD THE TEXT-001 for all useful languages with the description u already have...
Hope this is clear... For any query write back to me....
Lastly: Don't forget to give POINTS.. as we are putting extra efforts by seating late in office and trying to help u...
Darshan Patel -
Translating for SAP Script in ECC 6.0
Hi All ,
How we can do the transalations for SAP Script in ECC6.0? . I was not able to do as we do in 4.7 version where we follow the following path
Translations -> Long texts -> forms .
Can any ody help me inthis regard ?
Thanks ,
Dharma .Hi Anirban,
I tried that way . When I entered Scripti name in the filed " Object Name" , it is giving warning message "Object not found"( actaully it is existing ) . Even i tried to select by F4, No thing I Could find .Transactional area defaultred to 999999( tried wiht blank also) .
Can any body help for any alternative ?
Thanks ,
Dharma . -
Translations of SAP Script from English to Spanish
Hi All,
I need to do translate one of the SAP script from English to Spanish. Could anyone please help me how to achieve this?
Thank you in anticipation.Hi Nikhil,
You can use transaction SE63 to do this: Translation->long Texts->SAPscript->Forms.
Regards,
John. -
Language Translation for SAP Scripts
I was trying to translate the form (F150_DUNN_01) from language EN to ZH through SE63 transaction. But it is not working. Can anyone make it for me please.
Thank You.Instead of trying in se63 transaction try in Se71 by getting in to the form after converting into 'EN' language In the menupath utilities->convert original language.From there in TO ORIGINAL LANGUQAGE give 'ZH'.
Try it. -
Hi All,
Need help in SAP Script translation.
I have to change some hardcoded text from one language to another language.
I went to SE63 and changed the text, but the changes are not added into transport request.
Is there anyway to include the changes into the transport request? Please reply back...Hi,
Other way would be to create a new request all together for the form. SE03----->Include object in tran req..Write click... execute. Click radiobutton Selected Objects. Add a new line at the bottim. FORM give form name in front of it. Tick the sequare box. F8. Click on Save in req.
Transport this request.
Reagards
Raju Chitale -
Transaction SE76 - SAP Script Translations
Hi All!
I'm working with Smart Forms (similar to SAP Script) and I have to make somne translations. Does somebody know how to use transaction SE76?
Thanks!
Ale.this is for translate script to existing language to required language...
this u can also do in se71
se71-> enter form name & existing language name -> change
->utilities -> conver language...
i think...
Regards,
Ramesh -
How to print u0080 in SAP Script
Hi Experts,
I have one small issue, i want to print symbol in sap script. If i puts this an hardcode vallue, but its not accepting this symbol.
Plz anyone guide this, how to display and print the above symbel in script.
This symbol is not available in displayable charactor area also.
Point will be sure.
Regards,
MohanaForm to translate unicode symbol to superscript
you can use this in subroutine i think this may be usefull to you before that you need to select the radio button of super script in charecter format for that perticular format
FORM FORM_NAME TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
*Data Declaration.
DATA : V_TEXT1(320).
DATA: BEGIN OF ITAB OCCURS 0,
WORD(40),
END OF ITAB.
READ TABLE inttab INDEX 1.
V_TEXT1 = inttab-value.
REPLACE ALL OCCURRENCES OF '' IN V_TEXT1 WITH '<SP></>'.
READ TABLE outtab INDEX 1.
IF SY-SUBRC = 0.
MOVE V_TEXT1 TO outtab-value.
MODIFY outtab INDEX 1.
ENDIF.
ENDFORM -
Not able to Export sap script with RSTXSCRP in different languages IT,ES
Hi all,
I am trying to export sap script to local file using this program RSTXSCRP, but it's working fine for English but not other languages like IT,ES and DA. Even if i specify parameter in selection screen Language vector as IT. It's not exporting code from sap script for IT language. By default it's exporting only EN.
Can you please tell me what I have to do to export sap script from different language.
Thank you.Hi!
For Translating you can do it by
Going in transaction SE63 -> Translation -> Abap objects -> Other Long Texts -> FS Forms and Styles.
There you have to enter client and form name source lang. and target lang.
Then you export it with the program RSTXSCRP in the language u have translated....
As you have form created in English and you can download and upload it in only English .
Regards. -
How can I convert Upper case word in Title case in Sap-Script
Hi All,
I have a text 'AAAAA BBBBB CCCCC' in sap-script.
I want to display it as 'Aaaa Bbbbb Ccccc'.Hi,
Another way could be to call the FM <b>SWA_STRING_TO_UPPERCASE</b> from your sapscript for every string that you want in the desired format. It translates first character of each alphabetical substring to upper case. Set the input parameter <b>PRESERVE_EXISTING_CAPITALS</b> = SPACE, if your are receiving the values already in uppercase.
Hope this helps.
Regards
Message was edited by: Shehryar Khan -
ABAP Subroutines in SAP Script forms
Hi Friends,
Can any give an example on using ABAP Subroutines in SAP Scripts
how to call ABAP subroutine IN FORM and how to define form statement in abap program
thanks in advance
Points for sure
Regards
VijayaHi,
you have to write
perform formname in program zprogram
using &var1&
using &var2&
changing &var3&
endperform
in se38 create program zprogram of subroutine pool ttype
and
write the
form
endform there
egcode for a subroutne for changing the amount into indian words
PROGRAM ZFII_SR_PAYMNT_CHCK.
declaring the variables which are necessary
DATA:
G_AMOUNT TYPE PC207-BETRG, " having amount value
G_SPELL_AMOUNT(60) TYPE C, " LIKE SPELL-WORD, " amount in words
G_SPELL_AMOUNT1(60) TYPE C, " spell structure
G_WHTAX TYPE BSAK-QBSHB, "
G_QBSHB TYPE BSAK-QBSHB, " FOR COLLECTING THE WITH HOLDING TAX
G_ZUMSK TYPE BSAK-ZUMSK.
*DECLARING THE INTERNAL TABLES FOR THE OUTPUT TO BE DISPLAYED.
TYPES : BEGIN OF T_INPUT_TABLE.
INCLUDE STRUCTURE ITCSY.
TYPES : END OF T_INPUT_TABLE.
TYPES : BEGIN OF T_OUTPUT_TABLE.
INCLUDE STRUCTURE ITCSY.
TYPES: END OF T_OUTPUT_TABLE.
DATA: GWA_INPUT_TABLE TYPE T_INPUT_TABLE.
DATA: GWA_OUTPUT_TABLE TYPE T_OUTPUT_TABLE.
DATA: GIT_INPUT_TABLE TYPE STANDARD TABLE OF T_INPUT_TABLE.
DATA: GIT_OUTPUT_TABLE TYPE STANDARD TABLE OF T_OUTPUT_TABLE.
TYPES : BEGIN OF T_ITEM,
BUKRS TYPE BUKRS,
BELNR TYPE BELNR_D,
GJAHR TYPE GJAHR,
WT_WITHCD TYPE WT_WITHCD,
WT_QBSHB TYPE WT_WT1,
END OF T_ITEM,
IT_T_ITEM TYPE STANDARD TABLE OF T_ITEM.
DATA : GIT_ITEM TYPE IT_T_ITEM,
GWA_ITEM TYPE T_ITEM.
GET_SPELL_AMOUNT
FORM GET_SPELL_AMOUNT TABLES INPUT STRUCTURE ITCSY
OUTPUT STRUCTURE ITCSY. "#EC CALLED
CLEARING OFF THE VARIABLE USED IN PROGRAM.
CLEAR: G_AMOUNT,
G_SPELL_AMOUNT.
*clearing the internal tables which we have used.
CLEAR:
GIT_INPUT_TABLE,
GIT_OUTPUT_TABLE.
*REFRESHING THE INTERNAL TABLES.
REFRESH:
GIT_INPUT_TABLE,
GIT_OUTPUT_TABLE.
*initially assigning the memory vaules to our internal tables.
GIT_INPUT_TABLE[] = INPUT[].
GIT_OUTPUT_TABLE[] = OUTPUT[].
*reading the table input to get the amount value.
READ TABLE GIT_INPUT_TABLE INTO GWA_INPUT_TABLE INDEX 1.
IF GWA_INPUT_TABLE-VALUE CA 'X'.
REPLACE ALL OCCURRENCES OF 'X' IN GWA_INPUT_TABLE-VALUE WITH '0'.
ENDIF.
*THIS IS IMPORTANT PART AS IT IS CONVERTING THE
*CHARACTER FIELD INTO CURRENCY FIELD.
SHIFT GWA_INPUT_TABLE-VALUE LEFT DELETING LEADING SPACE.
TRANSLATE GWA_INPUT_TABLE-VALUE USING ', '.
CONDENSE GWA_INPUT_TABLE-VALUE NO-GAPS.
G_AMOUNT = GWA_INPUT_TABLE-VALUE.
*calling the function moudle which will
*covert amount into words (indian format ).
*i.e in crores, lakhs, thousands
DATA: L_SPELLAMOUNT(255) TYPE C,
L_ONLY(255) TYPE C.
CLEAR: L_SPELLAMOUNT, L_ONLY.
*here the amount should not be more than
99,99,99,999.99 . if it is greater than
*this amount this function module will not work
*so give the amount which is lessthan or equal to
*above said amount.
IF G_AMOUNT LT '1000000000'.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = G_AMOUNT
IMPORTING
AMT_IN_WORDS = L_SPELLAMOUNT
EXCEPTIONS
DATA_TYPE_MISMATCH = 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.
ENDIF.
CONDENSE L_SPELLAMOUNT.
TRANSLATE L_SPELLAMOUNT TO UPPER CASE.
CONCATENATE L_SPELLAMOUNT 'ONLY' INTO L_ONLY SEPARATED BY SPACE.
*moivng the field name into table field.
GWA_OUTPUT_TABLE-NAME = 'G_SPELL_AMOUNT'.
*assigning the amount in words to the variable.
*the reason behind splitting the word into two parts
*is--- in the scripts the whole string is not getting
*printed. So we are splitting it into two parts so that
*it will print the whole string.
G_SPELL_AMOUNT = L_ONLY+0(60).
G_SPELL_AMOUNT1 = L_ONLY+60(60).
G_SPELL_AMOUNT = L_SPELLAMOUNT.
*MOVING THE AMOUNT IN WORDS TO FINAL WORK AREA.
MOVE G_SPELL_AMOUNT TO GWA_OUTPUT_TABLE-VALUE.
*MODIFYING THE INTERNAL TABLE FORM THE WORK AREA.
MODIFY GIT_OUTPUT_TABLE FROM GWA_OUTPUT_TABLE INDEX 1.
*FOR THE SECOND RECORD I.E FOR THE NEXT 60characters
GWA_OUTPUT_TABLE-NAME = 'G_SPELL_AMOUNT1'.
MOVE G_SPELL_AMOUNT1 TO GWA_OUTPUT_TABLE-VALUE.
MODIFY GIT_OUTPUT_TABLE FROM GWA_OUTPUT_TABLE INDEX 2.
*assigning the total output table to the memory .
OUTPUT[] = GIT_OUTPUT_TABLE[].
ENDFORM. "GET_COMPADDR
thanks & regards,
Venkatesh -
Dear All,
I am working in a Script, I copied a standard Script and tried to Create a new Window but it is not allowing me.
I realised that, I can"t create a new window in English Version, I can do that only in German version.
I feel it is cubersome that every time I have to log into German to do any editing. So Can you guys kidly let me know how can I do editing in English version.
I have tried to Change Original Language into English from utilities -> Convert original language but that Field is Grey (Blanked out. So could not do that.
I even tried to create new window in DE language, but when I tried to logon to English, it say form in English Language is Locked.
Plese advice me .. this is urgent, without this information, I cann"t even start ... Should I contact with my Basis Consultant.
Thanking you.
Regards
Venkat
Thanking you.
Regards
Venkat.Hi there,
the alst answer you got in your previous thread
SAP Script : Editing in EN Version / DE version : Urgent pls
was correct. But you really have to login in language DE first. If you do that, the translation option is enabled. After that follow the instructions again.
try...it wil work
chrs
Hayo -
Hi,
I have got the output from my sap script.
I want to send the output as a mail to the concerned person.
In menu there is a send mail options but it is disabled.
How to send this SAP script output in a mail (either PDF or the same as output format.step1:
use the FM CONVERT_OTF to convert otf to pdf.
step 2:
use the folowing code to convert the PDF to a required format and to move the exact content in g_objbin and g_objpack
LOOP AT t_line.
TRANSLATE t_line USING ' ~'.
CONCATENATE g_buffer t_line INTO g_buffer.
ENDLOOP.
TRANSLATE g_buffer USING '~ '.
DO.
g_message1 = g_buffer.
APPEND g_message1.
SHIFT g_buffer LEFT BY 255 PLACES.
IF g_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
g_objbin [] = g_message1 [] .
DESCRIBE TABLE g_objbin LINES g_lines_bin.
READ TABLE g_objbin INDEX g_lines_bin.
g_objpack-transf_bin = 'X'.
g_objpack-head_start = 1.
g_objpack-head_num = 0.
g_objpack-body_start = 1.
g_objpack-doc_size = ( g_lines_bin - 1 ) * 255 + STRLEN( g_objbin ).
g_objpack-body_num = g_lines_bin.
g_objpack-doc_type ='PDF'.
g_objpack-obj_name = text-009.
APPEND g_objpack.
step 3:
use teh following code to attach the content in mail and send it to a recevier
g_reclist-rec_type = 'F'.
g_reclist-fax = l_faxno.
g_reclist-country = 'USA'.
APPEND g_reclist.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = g_objpack
contents_bin = g_objbin
contents_txt = g_objtxt
receivers = g_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3.
let me know if you need any more help
Edited by: jeevitha krishnaraj on Jul 7, 2009 9:35 AM -
How to transport the sap script
Hi gurus,
I am new to the SAP scripts. I finished the development of my form by usiing SAP Scripts. How can I transport it? Any help is appreciated!
Thx in advance!
Kun Baocheck these links it will be very useful...
How to transport SAPSCRIPT??
SMARTFORMS translate and transport
SAP Scripts are client-dependent objects. Hence, they may often require to be downloaded from or uploaded to SAP system
Following programs can be used to download from/upload to SAP System
RSTXR3TR To EXPORT/IMPORT layout set (FORM) using a Transport Request (CTS)
RSTXSCRP To EXPORT/IMPORT layout set (FORM), Style, Standard Text or Device Type without using a Transport Request
execute the Program 'RSTXSCRP' give the Script name and Export it to u'r system and then log on in different client and Import the script using the same Program.
reward all help full answers.
Maybe you are looking for
-
I have pages with many hyperlinks on it and when I used to open a page in older version it would change color, 4.0 does not, can I enable that somewhere? Thanks Glenn
-
Using second iMac as a second display screen
I have two iMacs (long story :-), one new with thunderbolt port, another much older with mini display port. I would like to use one of them as a second display screen. Is that possible? BTW I can't seem to find thunderbot-t- mini cable either. Please
-
Add Both as an option on protocol binding.
Please consider adding "Both" as an option on protocol binding to allow load balancing specific ports/destinations. It's needed to do things like Bind all IP trafic to ip XXX.XXX.XXX.XXX except traffic on port 80 where you'd put the port 80 > Both ru
-
How can I generate a html page in a servlet-applet connection?
Hello, I have an applet which contains an ok button, when I click this button, I need that servlet generate an html page and view it in browser. How can I do this? Thanks
-
DTM install fails with error 1935
Installing DTM 6.0, downloaded from the web, for the first time on a Windows 7 (64-bit) Lenovo laptop consistently fails with error 1935 well into the install. Tried installing as Administrator, but that did not help. Any ideas? TIA