Finding text element?
hi experts,
i have a need to pull a horizontal line one step down in ascript.but as i am on dev please let me know how to find the line in the text element of the main window where the line items are displayed.
In the main window, whereever you need the space Give the format as / and do not give anything in that and next you can select your own format and can code.
Thanks,
Srinivas
Similar Messages
-
Not able to find text element in layout
Hi guys,
in a layout ZABC print prgrm following write statement is coded..
call function 'WRITE_FORM' "Deactivate Header
exporting element = 'ITEM_HEADER'
function = 'DELETE'
type = 'TOP'.
then calling follwong fm...
call function 'WRITE_FORM'
exporting element = 'PRINT_TAX'.
i m not able to find PRINT_TAX elment in layout ZABC in MAIN window.
where could it be called??
thnx in advance...
regards.Hi,
In SE71 after displaying the form...go to utilities-> forminfo..there search for the text element...and you will know in which window the text element is being used..
THanks
Naren -
How to pass selection screen parameters in text elements?
how to pass selection screen parameters in text elements?
don't you mean he other way around. Assign text-elements (selection texts) to select options?
This you do in the menu where you can find text-elements, selection texts.
menu Goto->text elements->selection texts.
Edited by: Micky Oestreich on May 10, 2008 2:45 PM -
How to find out all the text elements in the report using Java?
How to trace the contents of an rpt file?
I am able to open the rpt file in my report viewer but can not trace it using the JAVA code.
Actually, I need to find out all the text elements of rpt (Report) file and replace them with the contents of resource bundle.
My Java code to open a report is given below:
import com.crystaldecisions.reports.sdk.ISubreportClientDocument;
import com.crystaldecisions.reports.sdk.ParameterFieldController;
import com.crystaldecisions.reports.sdk.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.data.ConnectionInfo;
import com.crystaldecisions.sdk.occa.report.data.ConnectionInfos;
import com.crystaldecisions.sdk.occa.report.data.Fields;
import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
import com.crystaldecisions.sdk.occa.report.data.ParameterField;
import com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue;
import com.crystaldecisions.sdk.occa.report.data.Values;
import com.crystaldecisions.sdk.occa.report.lib.IStrings;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBagHelper;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
public String viewRpt()
//1.) Setting Database Infos
IConnectionInfo iConnectionInfoObj=setDatabaseConnectionInfos();
//2.) Setting Report Path
String reportPath=u201DE:
was60
rptFilesLocation
u201D;
reportPath=(reportPath!=null)? reportPath:AppConstants.CONSTANTS.BLANK;
String reportName="report1.rpt";
String reportFullPath = reportPath + rptName;
//3.) Setting Report Source
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(reportPath, 0);
IReportSource reportSource = reportClientDoc.getReportSource();
setReportSource(reportSource);
reportClientDoc.close();
//4.) Setting the Fields Starts
setFieldsCrystal(null);
Fields fields = new Fields();
ParameterField pfield1 = new ParameterField();
Values vals1 = new Values();
ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
pfield1.setName("@parameter1");
pfieldDV1.setValue(u201Cvalue1u201D);
vals1.add(pfieldDV1);
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
pfield1 = new ParameterField();
vals1 = new Values();
pfieldDV1 = new ParameterFieldDiscreteValue();
pfield1.setName("@parameter2");
pfieldDV1.setValue(u201Cvalue2u201D);
vals1.add(pfieldDV1);
pfield1.setCurrentValues(vals1);
fields.add(pfield1);
setFieldsCrystal(fields);
//Setting the Fields Ends
The sample jsp code to view the report is as follows:
<%@taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers"
prefix="bocrv"%>
<bocrv:reportPageViewer viewerName="CrystalViewer"
reportSource="#{CrystalReportBeanObject.reportSource}"
displayToolbarRefreshButton="false"
allowDatabaseLogonPrompting="false"
allowParameterPrompting="false"
databaseLogonInfos="#{CrystalReportBeanObject.connectionInfosCrystal}"
parameterFields="#{CrystalReportBeanObject.fieldsCrystal}"
displayGroupTree="false" displayToolbarLogo="false"
displayToolbarToggleTreeButton="false"
enablePageToGrow="false" height="540"
zoomPercentage="100" width="750"
allowDrillDown="false"
displayToolbarPrintButton="true"
printMode="PDF"
></bocrv:reportPageViewer>
Edited by: JayKumarSharma on Mar 23, 2011 12:42 PMThis is how you retrieve all the text fields in the reort:
ReportObjects reportObjects = (ITextObject) oReportClientDocument.getReportDefController().getReportObjectController().getReportObjectsByKind(ReportObjectKind.text);
for(int i=0; i< reportObjects.size();i++)
ITextObject textObject = (ITextObject)reportObjects.get(i);
// use ReportObjectController to modify the text object.
If you want to modify the contents of the text element, you can do it as follows:
TextObject oTextObject = new TextObject();
Paragraphs oParagraphs = new Paragraphs();
Paragraph oParagraph = new Paragraph();
ParagraphElements oParagraphElements = new ParagraphElements();
ParagraphTextElement oParagraphTextElement = new ParagraphTextElement();
oParagraphTextElement.setText("This is the new text field");
oParagraphTextElement.setKind(ParagraphElementKind.text);
oReportClientDocument.getReportDefController().getReportObjectController().modify(textObject, oTextObject);
oReportClientDocument.save(); -
How to find the languages of text elements.
Hi,
I wanted to know for a object(ex:report,prog),in how many languages text elements are maintained.
In which table we find hte info.
Appreciate your inputs.
Regards,
RamHello,
In you report/object go to the menu GO TO->Translation select any language and in the translation screen go to the menu Go to -> Display All Available Languages . Will be showed all languages that the object is translated until now.
Regards. -
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 -
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 -
Text elements and key figures with multiple restrictions
Hi,
I'd like to display text elements in my query according to the restricted key figures in it. There is a restricted key figure used multiple times with different base of restriction. (For exmple Sales in the past week and yesterday.)
KF restricted by <i>actual calendar week</i>, and
KF restricted by <i>actual calendar day</i>
When displaying text elements, only calendar week appears, however, if KF restricted by calendar week is removed from the query, calendar day is being displayed. (I suppose that both time characteristics are taken as filter values.)
Is that possible to display both filter values at once? Or at least calendar day meanwhile still having the week-based restriction in the query?
Thanx in advance,
GaborOne option would be to not use the *MVAL keyword and load the amount and quantity in separate Data Manager package imports wherby you can easily assign the NA to the appropriate dimension. When you import amount -- assign NA to P_UNIT and when you import quantity -- assign NA to P_CURRENCY.
However I suppose you would prefer to have one import process. Unfortunately I think you will have to find an ABAP custom solution by calling the END_Routine BADI from the transformation file to deal with the currency and unit dimensions.
Best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Applications Regional Implementation Group (RIG) -
TEXT ELEMENTS - Where are they saved???
Hi!!!
I have a question for you.
I have a text string and I need to find in which program is used. I tried with those Z programs that search in the code, but I didn't find anythig.
I think that that text might be in a text element.
So, the question is:
Where or how I can see the reports text elements. I don't know the report name, so I need to look through all those texts to find my string.
Thanks in advance.
BettinaHello,
You have to use the READ TEXTPOOL statement for this.
BR,
Suhas -
Hii Friends....
I am currently working for a smartform where i want to fetch text elements from IW32 .In IW32 the user enters texts in every components or materials .My requirement is to fetch those text. I tried it using READ_TEXT_ELEMENTS function module but could not fetch it..
Can anyone know any other alternative to fetch the data.
Regards,
Sany.Use FM READ_TEXT to read texts.
Text Name 020100000004100000001(client order, item)
Language EN
Text ID AVOT Transaction text
Text object AUFK Order text
You can find more about text id and text object by selecting the text button. Now in the sap script editor choose the GoTo Menu button on top and select header. A popup has all the details which can be used in the READ_TEXT FM. -
Please let me know in which table/tables text elements, selection texts of ABAP program are saved in.
And is there any link wherein we can find out to which program they are associated with.
Need answer urgently. Replies will be rewarded with points.
Kartavyahi,
table name - RS38M (take se11 and give this, u can confirm)
field name - STEXTT
<i>You can try this function: RS_TEXTPOOL_READ. Only provide the program name, you will get the text-symbols and selection texts
use abap command:
READ TEXTPOOL P_REP LANGUAGE SY-LANGU INTO ITAB.</i>
rgds
anver
if hlped pls rwrd points
Message was edited by: Anversha s -
Text element with line item content and include text
Hi All,
How to write in smartform in single text element with line item content and include text.I am using this text element in table . Pls help me out. i am writing the include command in text element ,but this command is not enough for single line of text editor.
thanks ,
Rakesh singhI have been pulling my hair out for a few days trying to find
this solution. This fixed my problems as well.
I was getting ready to scrap the Report Builder altogether
and move to SQL Server Reporting Services over this issue.
I'm running 7.0.2 also, that version alone fixed many small
issues like creating borders and such.
Thanks -
I need to develop a plugin that search for some text into the document, then when I found a particular string I need to examine the page where the text is found, and I need to export all the page as TIFF and also exporting all text in a text file.
I suppose that I use the PD Layer. Anyone can give me a brief list of the function I have to use?
Alk.The PDE layer is not recommended for finding text because
* it is not broken into words
* it may not be in reading order
* there is no encoding conversion
This means that you will only sometimes find text based on a simple
scan of PDEText elements.
In reading about AVConversion realise that there are two things being
documented.
1. How a plug-in can provide new formats for conversion to or from
PDF. You do not want this.
2. How a plug-in can use an existing AVConversion handler to convert
to or from PDF. This is what you want.
Aandi Inston -
Purpose of text element in scripts
1. What is the purpose of text element in scripts. When do we use it ?
2. Is text element window specific or only pertaning to main window ?Hi,
text elements control the output of all data in sapscript forms windows.
A text element starts with /E in the format column (switch to 'old' non-visual tect-editor to see) and has a name in the text line.
The print program will fill the variables used as &symbols& in sapacript and then call the function WRITE_FORM for the element.
In the main window, elements can be called repeatedly to output table-like data - usually the text elements are called something like ITEM_LINE then.
Every window has a so-called default text element that has no name and is triggered without function call when the window is displayed. The default text element is the first one in the window. It is not preceded by /E. In other words: What you find on top of the window, before the first /E text element, is the default text element and is output without WRITE_FORM function call.
It is quite well explained in documentation
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/d6/0db44e494511d182b70000e829fbfe/frameset.htm">BC SAPscript: Printing with Forms</a>
Regards,
Clemens -
How the text elements of the SMARTFORMS can generate a field?
Hello guys
I have got this problem of not getting the value of the fields from the smartform. i wrote the text element to populate the field by inserting as the following &IV_BID_HEADER-PROCESS_TYPE& first it comes with the shaded background but after i activate the smartform the shaded part will gone and it remain as &IV_BID_HEADER-PROCESS_TYPE& which basically cannot populate any value.
can anyone help me on this,to keep the field remain shaded at the background which basicallly can populate the values of the fields.
ThanksHello,
Please click on "FIELD LIST on/off" or ctrlshiftf4 and then drag and drop the same from the left bar.
First find whether you have declared the value in Global Variables OR in Import/Export Interfaces.
Hope this was helpful.
Cheers,
Suvendu
Maybe you are looking for
-
Hi Masters, Can you please let me know the perfect reason for infotypes concept in HR-ABAP. 1 Why we are using infotypes and exactly what is purpose? 2.Why we are using LDB's why cannot we extract data directly from database ta
-
Setting a tab order for forms (AS3)
Hi all, When I press the Tab key to jump to the next text box on my form, it jumps to the 4th text box and then to the 7th and so on. There is no order what so ever. Does anyone know I can set this order?
-
Finder Window won't open since 10.6.6 update
I recently did a software update on my Macbook Pro to get the App Store. It worked great for a day. Now my time & date, and battery life icons will not show up on the top right of the screen. Also I cannot open any Finder windows. I can still open ap
-
I am hoping somebody can assist me in solving an issue I have with the visitor counter on my iWeb site. The site is posted on .Mac, and the counters are working fine with one exception. After registering for a forwarding domain, the masking feature o
-
Update an infotype depending uponthe changes in another infotype
Hi All, I have a requirement in which i have to do the following: On Updation of BEGDA, ENDDA and ZSALOP IT9051 for a pernr, a new record is to be created in IT2001 of home country with the same BEGDA, ENDDA and AWART for the same pernr. I am writi