Text Elements
Hi,
I have created a report in English language.
I have translated the text elements of Selection screen to German.
Original languge of the program is showing as EN.
But when I login in to Italian language (Say any language where text elements are not translated), text elements of selection screen are displayed in GERMAN Language. But the original language of the report is ENGLISH. As no translation of text elements in italian, Selection screen text elements should be displayed in ENGLISH language.
But here it is displaying as GERMAN Language.
Why this is happening?
Thanks and Regards,
Shravan.
Hello Shravan,
There 2 Possiblities
1. If the text elements on the selection screen are only translated in DE then it will always display it in DE as SAP treats if no lang translation found in that logon lang then it goes to DE Lang
2. If for e.g, if you do not translate it in DE and then Logon in Italian then it will display in EN , I mean Only EN Language Maintained
no translation at all then it will be seen in EN, but if you maintain it in DE then even if you logon in any other lang with no translation in that lang then it will be shown in DE only
Similar Messages
-
In Footer text elements are spliting in smartform
Hi,
In smartform, I am using text elements for printing gross / net totals in the Main window -> Table -> Footer. Now problem I am facing is all the set of elements are breaking from page to page. I want it print in one page with out any page break. How should I do that. Please suggest.
Thanks
RamHi,
In the footer text , in the output options tab ..there is a check box "Page protection".. Check that..
Documentation for "Page protection"
In some cases you may want to avoid that text is divided by a page
break. Therefore, you can protect text sections with a page protection.
Thanks,
Naren -
Issue with if condition in smartform text elements
Hi all.
iam having a problem in smart forms
itab has 3 fields
id matnr werks
1 a p1
1 b p2
1 c p3
2 b l1
2 c l2
3 q u1
3 l u2
i neead output like in the smart form
-id = 1-
a p1
b p2
c p3
-id = 2-
b l1
c l2
-id = 3-
q u1
l u2
I have aloop in main window
itab into wa_itab.
then i have program lines
iam writing any perform statment insted iam write the code in here
input paramters wa_itab-id
output paramters id
i declared id type zabc-id under global data in global definations
CLEAR : ID.
ON CHANGE OF WA_itab-ID.
*BREAK point.
ID = WA_ITab-iD.
ENDON.
after the program lines i have a text
/: if &id& ne ' '.
---id = &id& ---
/: endif
&wa_itab-matnr& &wa_itab-werks&
now i see the output
-id = 1-
a p1
-id=- i don't need this (&id& has no value)
b p2
-id=- i don't need this
c p3
-id = 2-
b l1
-id=- i don't need this
c l2
-id = 3-
q u1
-id=- i don't need this
l u2
I checked my code if two items have same id the id has no value and you can see the output also
but for some reason its still goinng into the if condition
And also is there away that i can debugg my text elements like in scripts. my break point doesn't take me to the text elements
Thanks1. Move only the ID into one internal table say i_id,
2. Now in your smartform, create a table and loop at i_id into wa_id.
3.Print your ID in a text, &wa_id-id&
3. Now in main area of the table Create a loop with the internal table you mentioned above with 3 elements, say, i_data into wa_data give CONDITION as wa_data-id = wa_id-id.
4. Print your other values &wa_data-matnr& &wa_data-werks&
5. outside main area, clear the work areas.
This should work fine as i use the same logic in one of my current developments!!! -
Text element is not getting printed in the output
Hi all,
I'm trying to print address from table KNA1in address window through a text element.
The corresponding code being :
In Delivery Prg,
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DELIVERY_ADDRESS'
WINDOW = 'DELIVADR'
and calling the same text element 'DELIVERY_ADDRESS' as follows in the Script:
/E DELIVERY_ADDRESS
/: IF &LV_KNA1-TELF1& <> &SPACE&
IL Tel.: &LV_KNA1-TELF1&
/: ENDIF
/: IF &LV_KNA1-TELFX& <> &SPACE&
IL Fax : &LV_KNA1-TELFX&
/: ENDIF
/: IF &LV_ADR6-SMTP_ADDR& <> &SPACE&
IL E-mail : &LV_ADR6-SMTP_ADDR&
/: ENDIF
But,this text element is not printing in the output.
Any pointer on this would be of great help.
Regards,
Vamsee Priya.yes, it is.
I'm trying to get the e-mail address from adr6 table with the corresponding address number from table kna1.
so I created two tables as below:
Data : lv_kna1 type STANDARD TABLE OF kna1,
lv_adr6 type STANDARD TABLE OF adr6.
DATA : WA_ADR6 TYPE ADR6.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
now, I'm trying to fill e-mail adress from lv_adr6. but the problem is lv_adr6 is not getting filled.
data is coming to work area wa_adr6.
SAP is not allowing me to write the below statement:
SELECT SINGLE * FROM ADR6 INTO LV_ADR6 where ADDRNUMBER = kna1-adrnr.
Now, will any move-corresponding statement from work area to its table works?? Is that logically correct?? -
Text element not gettin refreshed in smart form
Hi
Text element does not get refreshed in the smart form preview.
I have a selection screen on which i have a few selection parameters and three application
toolbar buttons. "Save" , "Preview" and "Print". At the end of selection screen I have a
button "text" which when clicked takes me to the text element editor(FM 'TEXT_EDIT' )
I have to enter a project number on the selection screen, enter all other details and
then click on the "Text" button. I would then change /edit some text etc and come back
to sel screen. Now i click on preview , the smart form shows up and the text gets dispalyed
with the modified text.
I am passing the text name by appending "sometext" + project number to the TEXT_EDIT
and while eiditing and as a parameter to the smart form. In the smart form i have given the variable in the "include text".
Now Herez the problem.
I am still in selection screen and clik on the "text" button and it takes me to the
text editor. Now i add more lines, save and come back. Now i clik on preview
button and it displays the old text data.
When i come out of the transaction and renter , clik on the preview it displays data
correctly. Now if i repeat the steps
1.edit text button , add a few lines
2.preview button, shows data as entered in step 1.
3.edit text button, add few more lines
4.preview button .. the text displays is from step 1 and not 3.
I am not sure if this is lot of info for anybody to write an answer straight away but
if u need more info i can provide. I can do a read_text in the smart form but its toooooo
much of a pain for the data i need to display. million adjustments to be taken care of.
What could be the problem ? I have given all the basic settings like save parameter
in edit_text fm , checked all the print preview options in sdn.
Here are my questions
1. Why is the text element not getting refreshed.
2. After a form is displayed for preview , will it store anywhere in the buffer ? if yes
is there any method to clear it ?Hi,
The problem is not with text elements, it might be your size of window which you are using to display the text elements. Check your window size and modify that accordingly.
Cheers,
Bujji -
Text element assigned to select options not showing
Hi guys,
We have a problem in shaowing the text assigned to the select-options...
When we run the program the text element ssigned to the select options is not showing instead the element name is shown.
The original language is german, and it wont show the english word we appended to as text element for select-options.
example:
AUART insteat od blocked order
How can we show the text elemen when we run the program?
Thanks!Hi Mark,
Go to the program text elements and select the Selection Texts tab,
There you fill find the select option for AUART and the corresponding text maintained.
You need to maintain translations for this text entered.
Chose Goto (in menu bar) -> Translation
Then maintain translation in English.
Regards,
Aditya -
Text elements not centered anymore once project goes live
Hi guys,
I've discovered Edge Animate a few days ago and I really love that it looks and feels a lot like After Effects - you should exchange and implement some functions of EA to AE (i.e. the curves easing options) & vice versa though
What I went through, until know
First of all, I am a Worpdress user using a responsive theme and the Edge Suite plug in.
I've created a typo animation using a custom licensed web font and it took me a while to get it to work properly - the web-kit generated by the myfonts.com kit builder didnt' work with EA, so I had to let fontsquirrel create one instead. Now, the SVG font file gets exported upon export, but the EOT, WOFF and TTF files don't - not sure if it's a bug, but it's an easy thing to copy the files via FTP to the "../uploads/edge_suite/project/..." folder in order to fix this.
My Problem
After uploading the animation to my server via the Edge Suite plug in, approx. 50% of the text elements are not in the right place anymore. The affected elements are all offset by a fixed amount of pixels vertically, while they actually should be centered. When I run the HTML file of the exported web animation locally, everything's fine though.
The problem occurs in Chrome, Safari, Firefox and on the iPhone.
Has anyone experienced a similar issue?
WillIt seems like it is related to Wordpress or the Edge Suite plug in.
HTML
I've uploaded the animation (using web publishing) to a folder on my server, and everything is fine.
Wordpress
I have analysed the code of the animation being rendered on my Wordpress site, but the CSS coordinates all correspond to the parameters inside EA.
I've also installed the Edge Suite plug on a different Wordpress installation (a complete different site) of mine, and the results are even worse. It seems like the origin of some elements is being tossed around space.
That said, I'm clueless. -
How to call new window and text element without changing print program
Hi Friends,
I have requirement like this . i have a standard print prog and custom form. i want add 2 to 3 extra windows in the form and i have to print some data. but how can v do this with out changing the print program. i know that to pick new fields through subroutines. but how can v call new windows and new text elements with out changing the print program.
usually in the print program we write as follows.
write_form
window = 'HEADER'
textelemtn = 'HEADER'
can we accomplish this one also through subroutines or any other way is there.
can any one pls suggest this.
Thanks in advance.
Rahulu copy the standard print program and make custom program.
write your own codes in it.
assign this program in the place of standard print program.
Reward points, if helpful. -
E-Recruiting: New Text element on WebDynpro page of External candidate
Hi,
I have a requirement to add a new text element on the personal data tab of the candidate profile. I have tried this through application configuration method, but the existing Text elements are not sufficient to accomodate the text matter that i need to insert.
I want some additional elements where they can accomodate my new text.
Is there a possibility of doing this without making the compeonent a 'Z' one?
Thanks,
SureshHi Suresh,
Yes there is one possibility to do this .After you accomodated the new text thru the component config and
if you are still left with the text which needs to be added then create an enhancement and add an text element and bind it to the attribute just below the text element required and in the modify view method of the view bind the text to the attribute.
All this has to be done thru enhancement in the std component.
Thanks & Regards,
Dipu.B -
Smartforms,How to display different standard Text in a Text element.
In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all maintained in SO10 in a same text element,how to do it?
if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
Is there anyone can tell me?
thanks.use Alternative to control it no problem
for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
TEMPLATE1
Alternative case1
YES
INCLUDE TEXT1(display SO10) [set output option line1 column2]
NO
Alternative case2
YES
INCLUDE TEXT2(display SO10) [set output option line1 column2]
NO
Alternative case3
every case your SO10's text is always display at line2 column2
just try to test it ,you can know -
How to print a text of type text element and include text in same line
hi,
I am working on forms,
i have to display like this in the form
1.RFQ number, 2.Header text
explanation for numbers
1. The RFQ number is displayed using a variable so the text type is Text Element
2. Header text, has to be got form the standard text , so the text type is include text.
how can i print both in the same line.Hi ,
You can use a charecter variable whos length >= length of RFQ no + Length of Header string .
Concatenate both in this variable. And print the variable.
Pls reward if useful.
Laxman -
How to color the text elements in script?
how to color the text elements in script?
byeeeee
plz send the answersHi,
Please go through my blog to know how to do color printing in SAP scripts.
White Paper on 'Color Printing in SAP Scripts'
Regards,
Sireesha Ch -
How to translate text elements in forms from type : pdf
does anybody know how to translate text elements
in pdf from english to other languages.
i tried the tran. se63 and filled in the desired language,
but there was no effect on the output ,
thanks,
amicall this funcation. crate_text.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID =
FLANGUAGE =
FNAME =
FOBJECT =
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES =
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to end text element in sap script
how to end an text element in sap script
this is the format.
/E text element name
&tablename-fieldname&
text-text-text-text
now if i do not end that text element it is not displayiny my below text , so what to do in this caseGo through the links mentioned below.
http://www.****************/Tutorials/Smartforms/SFMain.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
http://www.sapmaterial.com/smartform_example.html
Re: Hands on SAP Smart Forms
smartforms
Reward points if useful. -
Dump error when clicked on text elements in SAP Script window
Hi All,
There is an inclusion in SAP Script. I have written the code in driver program. I need to pass the value to SAP Script in the requested position. But when I go to SE71 > Form Name > Change or Display > MAIN Window > Text Elements > I get a dump error.
Category ABAP Programming Error
Runtime Errors DATA_LENGTH_TOO_LARGE
Except. CX_SY_RANGE_OUT_OF_BOUNDS
ABAP Program SAPLSTXK
Application Component BC-SRV-SCR
Date and Time 30.04.2014 20:00:08
Short text
Invalid partial field access: Length is too large
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLSTXK" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_RANGE_OUT_OF_BOUNDS', was not
caught in
procedure "TOKEN_COMMENT" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
In the executed program "SAPLSTXK", the system attempted to access the field
"ITF_TOKEN" of the type "C" and with the length 255 using the length 272.
However, a partial field access with a length specification that is
larger than the field length is not allowed.
How to correct the error
Reduce the length used to access the field.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DATA_LENGTH_TOO_LARGE" "CX_SY_RANGE_OUT_OF_BOUNDS"
"SAPLSTXK" or "LSTXKFRN"
"TOKEN_COMMENT"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
2937 * todo empty comment ???
2938 if g_tm_open eq true or " Section
2939 g_tm_b_close eq true.
2940 l_token = '\chcbpat0'.
2941 l_len = strlen( l_token ).
2942 token_control = true.
2943 assign l_token to <itf1>.
2944 perform put_itf1_new using l_len.
2945 perform token_line_begin changing l_next_token.
2946 else. " without section
2947 concatenate '\chcbpat0\line' g_cf_string l_cbpat_token into l_token.
2948 l_len = strlen( l_token ).
2949 token_control = true.
2950 assign l_token to <itf1>.
2951 perform put_itf1_new using l_len.
2952 endif.
2953 elseif l_next_token-code eq ')L'. " \par
2954 l_token = '\par'.
2955 l_len = strlen( l_token ).
2956 token_control = true.
2957 assign l_token to <itf1>.
2958 perform put_itf1_new using l_len.
2959 elseif l_next_token-code eq '(C' or " \par + format
2960 l_next_token-code eq ')C' or
2961 l_next_token-code eq '(&' or
2962 l_next_token-code eq 'TA' or
2963 l_next_token-code eq 'SC' or
2964 l_next_token-code eq 'ST'.
2965 concatenate '\chcbpat0\par' g_pf_string g_cf_string l_cbpat_token into l_token.
2966 l_len = strlen( l_token ).
>>>>> itf_token(l_len) = l_token.
2968 token_control = true.
2969 assign l_token to <itf1>.
2970 perform put_itf1_new using l_len.
2971 endif.
2972
2973 * Step 7: (L to disarm
2974 if g_compose eq true and
2975 l_next_token-code eq '(L'.
2976 perform read_next_itf_token(rstxscan) using p_token.
2977 endif.
2978
2979 ENDFORM. " token_comment
2980 *&---------------------------------------------------------------------*
2981 *& Form create_lang_info
2982 *&---------------------------------------------------------------------*
2983 * add default language to rtf
2984 *----------------------------------------------------------------------*
2985 * -->P_HEADER text
2986 * <--P_RESULT text
How do I open the text elements? I need to pass the variable inside SAP Script.
Please Help. The requirement is pending from very long. Not able to rectify this issue.
Regards,
RekhaHi,
There is a SAP Note about this problem
566794 - Runtime error: STRING_OFFSET_TOO_LARGE during conversion
Correction Instructions
Correction Instructions
Software Component
Valid from
Valid to
Number
SAP_BASIS
46B
46D
473267
SAP_BASIS
610
620
473185
Support Packages & Patches
Support Packages
Software Component
Release
Support Package
SAP_BASIS
46B
SAPKB46B48
46C
SAPKB46C39
46D
SAPKB46D28
610
SAPKB61027
620
SAPKB62014
Regards
Miguel -
hi experts,
I am changing a standard smartform. The new requirment is I have to display a new text element for which the value come from a table depending on the input.
I worte a fm to get the value and i am catching the export param of the fm into a variable which I am catching into a text element. The FM is returning the correct value but I am not able to display it on the smartfomr out put. Please help me.Check your text element's output options:
Select your text element... Go to Output Options... in the frame at last "Output Structure" you can see the line and columns. Check if this lines and columns are being used by anyother text element.
Regards,
Naimesh Patel
Maybe you are looking for
-
Hi, I am reading image from client system using the below code CLIENT_IMAGE.READ_IMAGE_FILE(v_rd_file_name, 'JPG', 'CTRL_BLK.ADD_IMAGE'); But this image is not displaying in the image item, this is happening for some particular images only. While wri
-
My os is 10.5.8. How do I update to latest os?
Hi fellow Mac users, I have a 2009 Mac Book Pro OS 10.5.8. How can I update to the latest OS? Thank you very much, Patrice
-
ITunes 9.0 Will Not Install
hey guys can u plz plz help me.....mah new itunes won't install nt the older one stopped workin too. ~~~ wen i install i tunes is shows d error msg ""Servie 'iPod Service' (iPod Service) failed to start. verify that u have sufficient privileges to st
-
Problems when trying to get a connection
Hi, i'm doing some tests with Hibernate but i'm getting an error when Hibernate tries to get a connection from a pooled datasource. Here is my session factory configuration: <session-factory> <property name="transaction.factory_class">org.hiber
-
Hello all: Anybody have try F.19 twice , it 's double adjustments and double create liabilities. anybody experience this. Best Regards, Manthana