"Empty demarcation" in Text elements item
Hi,
Does someone know if it's possible to change the text "Empty demarcation" in the text elements? If yes, how?
Thanks and regards, Nathalie
Hi Nathalie,
You can do this in SE38 > SAPLRRSV. Click on the Text Elements radio button and display them. Number 301 is for "Empty Demarcation". You can change this text here.
Hope this helps...
Similar Messages
-
How to remove 'Empty Demarcation' in Text Elements.
Dear All,
To remove 'Empty demarcation' in the WAD output, I had modified the standard program - SAPLRSSV (for this i took access key from SAP).
The text element : 301 was changed to blank and it worked.
Recently we had a support package upgrade to SAPKW70018. With this upgrade my previous change to the program got reverted back and so i need to do the change again.
However, I'm not able to retrieve the list of Text elements for this program (SAPLRSSV). I open the program and when i go to Text element, following message is displayed :
"Untranslated texts from master language DE will also be displayed"
But no list (no text elements) is displayed.
My question : How do i retrieve this list and can i use the same acess key again or do i need to take another one from SAP.
Regards,
Nagendra.Sorry, I was referring to the incorrect program SAPLRSSV instead of SAPLRRSV. The problem has been resolved.
Regards,
Nagendra. -
How to ignore empty text element while using DOM to parse xml??
hi everyone,
i am using DOM to parse an xml file. But i dont know how to cinfig the DocumentBuilderFactory to ignore empty text elements.
For example, i have an xml file like this:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<child>Tom</child>
<child>Jerry</child>
</root>I used the following codes to parse:
String fname = "Tom-and-Jerry.xml";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setIgnoringElementContentWhitespace(true);
factory.setIgnoringComments(true);
DocumentBuilder builder = domFactory.newDocumentBuilder();
// Generate a DOM tree from the DOM builder.
org.w3c.dom.Document dom = builder.parse(new File(fname));
org.w3c.dom.NodeList list = dom.getChildNodes();
for (int i=0; i<list.getLength(); i++) {
System.out.println("Child No."+i);
System.out.println("NodeName="+list.item(i).getNodeName());
System.out.println("NodeType="+getType(list.item(i).getNodeType()));
System.out.println("NodeValue="+list.item(i).getNodeValue());
System.out.println();
}The result is not exactly what i want ---- there are 5 children in list!! The 1st, 3rd and 5th are #text and their values are all empty. Only the 2nd and the 4th are the child that i expect.
It is really troublesome to get all these silly empty texts as sub elements. I tried to get rid of them, but i failed. I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.
Anyone can help me? thanks.
Heavy ZHENGI just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.That only does something if the XML has a DTD that enables it to know what whitespace can be ignored and what is significant. The API documentation for the method refers you to this document:
http://www.w3.org/TR/REC-xml#sec-white-space -
Problem in line items(text elements printing) in smartform
Hi all
Here iam printing line item data in invoice form
around 7 fields(text elements) iam having the fileds are displaying one by one
I need to diplay all 7 fields one after another with some gaps in the same line
can u please let me know how to do it with text elements
thank youHi,
create a table. In once line type(Line type 1) create 7 different cells (Columns) for a single row.
For eg:
Line typ1 : cell1 cell2 cell3 cell4 cell5 cell6 cell 7.
cell1 : &mara-matnr&
cell2 : &mara-ersda&.
like soon in 7 different cells.
Br,
Laxmi. -
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 -
How to Customize the Web item " Text Elements"in WAD
Hi All,
Can any one let me know how to customize the web item TEXT ELEMENTS. When we place the web item Text element in the web template, it displays the query details and the info provider details.
I question is I do not want to list all the list that is displayed in the text elements. I want to see only part of the list....can any one whether this is possible or not..if possible how...?
Thanks in Advance,
Hashyes you need to specify the variable name
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TEXTELEMENTS_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value="BORDER"/>
<param name="GENERATE_LINKS" value=""/>
<param name="SHOW_COMMON_ELEMENTS" value=""/>
<b> <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
<param name="ELEMENT_NAME_1" value="0H_CCTR"/></b> ITEM: TEXTELEMENTS_1
</object>
Regards
Raja -
SAP Script - How to check a text element is empty in Script.
Hello Friends,
I like to display a text element when it is not empty, otherwise I like to display some other text.
I know how to read text element in Script, but
How to check a text element is empty in Script
Thank you for your time.
SenthilHi Senthil,
Inside text element, we print the variables.
Variables actually gets printed in the form.
if the variable contains value the variable gets printed on script. if not, then variable not gets printed.
hope this helps. -
How can I remove "Empty Demarcation" in the Text Elements. When I don't pass value(optional variable) to web template it shows "Empty Demarcation" in the report text elements, I want to convert into blank or "ALL".
Should be grateful for any futher information
regards
supriatnaHi Heike,
I had change text 301 become "All" and make SAPLRRSV active but "empty demarcation" is still show in the web,
any other suggestion.
I think the system not directly changes the text in the web after 2 day the changes run correctly,
btw thanks Heike for your post.
thanks
supriatna
Message was edited by: BW - xltrs -
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!!! -
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 -
Display Text Elements in BI 7.0
Hi,
We are now working on BI 7.0. We need to display the text elements for a specific query i.e the values entered by the user in the variables have to be displayed.
I am aware of the Design mode option after executing the query. I did select the Text web item and selected the necessary display items also. My question is do I have to save this web item customization as a workbook or will it reflect when I run the query the next time.
Thanks.Hi Nick,
You will have to save this as a workbook.
Hope this helps... -
Hi,
We currently have a report in BW 3.5 which contains a text element which in turn displays the value of the variable that the user chose in the selection screen of a report.
In BI 7.0 I have found the text item but when I try to display a variable it simply displays the name of the variable and not the contents.
How could I display or at least retrieve the value the user selected in the selection screen? Are there any means of doing so via Javascript?
Thanks in advance,
AleHi Alessandro,
Are you talking about displaying the user selected value in ouput of web template. If that's the case then u need not to go for javascript just follow below steps:
1. Select Information field item present under advanced web items.
2. Make following settings in it property:
2.1 In internal display check 'Display Static Filter value' and 'Display Variables'.
2.2 Provide a data provider to this item which contains this variable.
2.3 In List of Text elements to Display option select: Static filter as your Text element,
In the list of characterstic of static filter click the little button which will open a popup window from where you can select the variable to display.
Make following settings and use the web item.
Hope this solves your problem.
Thanks ! -
Hello.
In my web template I wish to display the Variable Values and also the last time the query was changed (MODTIME) + ROLLUPTIME...
This seems to be tricky, because if I check the SHOW_VARIABLES option, and include MODTIME and ROLLUPTIME as general text elements in the List of Text Elements for the item, only MODTIME and ROLLUPTIME are shown.
Is it possible to show <b>the Variable Values and MODTIME and ROLLUPTIME</b> in the same Text Elements web Item?
Thank you in advance,
JonHi Jon,
Yes, this does not seem to work. Though to overcome this you could do the following
In the 'List of Text Elements', select 'Element Type' as 'Filter value' and specify the technical name of the infoobject on which the variable has been defined, as the element ID.
This shows the values of the entered variables. But maybe SAP should correct the original bug and an OSS might help.
Best Regards,
Dabre -
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. -
How to display standard text element of main window in next page
hi all
In scripts we have standard script medruck for purchase order.
i want to pull text elements ( terms and payment terms ) in to main window of next page.
i have included main window in page windows of next page ,but im unable to print text elements of terms and payment terms in next page...
any one give your valuable inputs.
Thanks
deepika.Hi deepika,
First copy standard MEDRUCK to ZMEDRUCK and do the necessary changes.
Then check in driver program when exactly Terma and condition text element is called. Generaly its after printing all items but just check once to confirm.
If TERMS and condition element is called ate end just put a NEW-PAGE command at end of the text element which is called before terms.
Hope this will help You.
Thanks
Dhiraj.
Maybe you are looking for
-
When I was on App Store I found another game I wanted and then had press it and sent it to iTunes Store for the person can try to help me and I sent it but the message thing was still right there I press cancel so it can get off the screen but it did
-
EventListeners in loaded smp swf
I've successfully set up a shell swf to load the smp.swf. I pass the flashvars to the URLRequest, which works great. Now, I'm trying to do a couple of things. 1) When the first streamed movie (rmtp) finishes, I want to register the event to add some
-
hi guys, while uploading master data e.g. vendor master, customer data which method should we prefer LSMW or BDC and why????? please provide exact reasons. points will be awarded generously..
-
Deauthorizing computers that don't exist
How am I supposed to deauthorize computers that don't exist? Every time I've had to reinstall Windows, iTunes eats up another "authorization". Now all 5 authorizations are taken, and my iTunes purchases are useless. I only have 1 computer, Apple, so
-
Cropping vertically in Ilife 08 help please
I've just spent 30 minutes trying the crop vertically in iphoto 08 - with no luck. In 06 you simply moved the crop square to the top left or right of the photo and pulled down and it switched from horizontal crop to vertical. It doesn't work in 08 an