Problem: Text elements inconsistencies
Hi,
I Converted SAP standard query to ABAP program for my requirement. I done the programming. Now the problem is I have to Add some text elements. When i'm trying to add text elemments, some inconsistencies there in standard sap text elements. when i activate,it doesn't allow to activate.It is displaying the message as " Inconsistencies exist,plz correct". it is showing some inconsistencies in text elements. If i remove these textelements, my report header,some texts,so many are missing.So i have to add my textelements without removing standard text elemnts.Can anyone suggest.
Thanks
Arjun
Hi Deepak,
It contains more than 100 text elements. and also the program was developed using query strings.So text elements also developed in that way with % and | . So we cannot create new text elements.So just we have an option to add our text elements to Standard one. Just I'm creating the one block and three checkboxes. for these i have to provide long text more than 8 characters.Is there any other way.Please suggest.
Similar Messages
-
Problem in transporting the text elements for user exit EXIT_SAPLV09A_002
Hi All,
I am facing a problem in transporting the text element (text symbol) for the exit EXIT_SAPLV09A_002. It is implemented and transported but the text elements are not transported and even if I try to delete them and then create them again, on activation it doesn't prompts for TO and it version its shows it as local object. I have tried to manually assign the TO by using limu as id of program and rept as type and SAPLXV09 as the name of the object but still it doesn't allows as an error message comes prompting local object cannot be assigned to TO. Kindly suggest solution this problem.
Regards,
Sachin
Edited by: Sachin Dangayach on Nov 15, 2010 4:21 PMHello ,
In the Quality after you run the report check in the layout option>display text elements> variables and check what value is displayed for the use exit variable , if it is correct then problem may be in the selection you gave when you run the report if the user exit variable value is wrong , then set a break point in the code and run the report from rsrt and check where the error is.
hope it is clear
assign points if useful -
Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 & Head-Text Elements
Hi all,
I hape that sb can help me with my problem.
I have created a ABAP-Program to create sales-orders with the function module:
BAPI_SALESORDER_CREATEFROMDAT2
Everythiunk works fine but I can not create text-elements (from the head) with this bapi.
I know that I have to use the table "ORDER_TEXT" but I do not know how to fill this table.
Can anybody help me?
Best regards,
pb974Hi,
yes, you have to fill the order_text table. The following fields you have to fill:
DOC_NUMBER
-> not to fill, let it blank
ITM_NUMBER
-> if you want to create a header-text then fill ITM_NUMBER with '000000'
-> if you want to create a position-text then fill the related position-number '000010' or '000020'....
TEXT_ID
-> fill this field with the text-id for which you want to create the text.
-> The text-id must be defined in your customizing
LANGU
-> set the language for the text: 'E' or 'D' or......
LANGU_ISO
-> let it blank
FORMAT_COL
-> set a star (*) if you want to have the standard-format. If you have a special format defined in SapScript or in a Style you can set this one.
TEXT_LINE
-> fill in the text
FUNCTION
-> let it blank
see below:
data: i_text LIKE bapisdtext OCCURS 0 WITH HEADER LINE.
Texte...
CLEAR i_text.
i_text-itm_number = '000010'. "Text for Position 10
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 10 - line 2'. "the text
APPEND i_text.
...if your text has more then one row... the same one to do...
i_text-itm_number = '000010'. "Text for Position 10
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 10 - line 2'. "the text
APPEND i_text.
...and so one...
and now text for position 20...
CLEAR i_text.
i_text-itm_number = '000020'. "Text for Position 20
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'Text für Pos. 20 - Zeile 1'. "the text
APPEND i_text.
...and now the text for position in englisch
i_text-itm_number = '000020'. "Text for Position 20
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'E'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 20 - line 1'. "the text
APPEND i_text.
I hope it's a help for you.
Erhard -
A strange problem in text element
Hi,
I developing a smartforms in ECC 6.0.
In this i created a simple text element where i write:
Order numer &LS_VBAK-VBELN&
Then when i save or active the smartforms automatically in the text element the space between has being deleted as so:
Order numer&LS_VBAK-VBELN&
Why?
Thanks lot.
Matteo VernileHi
If u r giving space in between Order numer AND &LS_VBAK-VBELN& then it should come
OTHERWISE
make a template and in that make two colum and
create 2 text element and
put the static data in one text and the dynamic data in another text.
let say
text1------ Order numer
text2----
&LS_VBAK-VBELN&
hope this will solve ur problem
Thanks
Krushna -
SmartForms - Problems with Text Element
Hello guys!
I was adjusting a SF for the BID_INVITATION scenario (SRM) when i stopped in front of a problem.
I included the word "Data" in a Text Element that there was already, but, my new word doesn't appear in the Form.
Anyone know what is happening?
Is there any thing especific in the Text Element to permit that my new word appear?
Thanks in advance.
Hugs.
Danilo CardosoHi
Check If you activated the smartform and also check if there are any conditions in the condition tab of the text element.
Vishwa. -
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. -
Smartform problem with text element
Hi,
In smartforms text element, we have this variable; &V_TEXT2(L)&.
My question is, what does the 'L' means there? what is it's purpose?
when we pass on numeric values into it, it's converted to something else. It does not show the correct output.
example:
v_text2 = 6245183
shown on the report is HEIS57YR18MO3 DY.
thanks!Freishz,
Please refer below link.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
page 72.
Regards,
Anmol Saxena. -
Sapscript text Element Problem
Hi i have this following form AP checks which is not printing one of the line which it used to. I made some changes on other windows but for some reason it stopped print the text line it used to.
Here is the part of the code in the main window that's not printing...
/E 513
/* ------------------ Payment on behalf of --------------------------------
AS Payment is made on behalf of ®UD-ABSTX&,
®UD-ABSOR&.
/E 514
/* ------------------ Signature -------------------------------------------
/: INCLUDE ®UD-TXTUN& OBJECT TEXT ID ADRS
I need to print the line where it says "Payment is made on...."
Can any one tell me what are those /E 513 is?
They have all these numbers infront of a small paragraph.
I am guessing some program is calling the paragraphs by those numbers as the paragraph in the program doesn't appear they way it appears in the printout.
Please help.TEXT ELEMENTS WITH NAMES
You recognize named text elements by the paragraph format /E. Such a paragraph may look like this:
The character string NAME represents the name of the text element. This name can be up to 30 characters long and may consist of letters, digits and/or special characters. The name is followed by the text lines of this text element. The end of a text element definition is marked by the beginning of the next text element (the next /E line).
Note that names of text elements are valid only locally. That is, different windows may contain text elements with the same names.
To output named text elements, you must use the interface function module WRITE_FORM, which is called in the print program.
The example below shows text elements for a column heading within an invoice (AS indicates the standard paragraph format and , , indicates the tab):
You can output named text elements only in the windows, in which they are defined. For this reason, you need in the interface function module WRITE_FORM, apart from the name of the text element, the name of the window in which the text element is defined. You call the interface function module from within the print program.
http://abapprogramming.blogspot.com/2007/10/sap-script-2.html
Regards,
Amit -
Problem using text element with type TEXT INCLUDE in smartforms
Hi,
I am working on smartform.
My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
It works Fine only when I put exact value of TDNAME in Text Name field.
But in my case TDNAME can vary according to value of AENNR from Table AENR.
So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
HELP ME OUT.
ANSWERS WILL BE AWARDED..
TusharHi Tushar,
When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
Deepak Charanyan -
i get the data from text element i.e is from so10 i should display data in the footer window if the exceeds the footer window it should get display in the bottom of the next page how to split according to number of characters
Hi,
You can create secondary window and display after main window on both FIRST and SECOND page( and call pages expicitly if main window data does not cross FIRST page) with minimum height( 5 MM) and that way you can spread the SO10 text across pages.
BR
Dep -
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
Maybe you are looking for
-
Save Data in ALV Report .
Hello, Given below is my code *& Report ZALV_TEST_SA * REPORT ZALV_TEST_SA NO STANDARD PAGE HEADING. *----------------------TYPE POOL OF ALV--------------------------------* TYPE-POOLS: SLIS. *--------
-
Trying to create bookmarks but the text is in all caps
We need to make bookmarks in a pdf. The previous versions of Acrobat (we upgraded to XI Pro) we could highlight text on a pdf, click bookmarks and the bookmark title would appear. Unfortunately the text is in all caps. If it possible to set it up so
-
Problem with call waiting in E90
hi, I am facing problem activating 2nd call using call waiting feature. When second call is coming, i press the call button (green) and nothing seems to happen.. Rather, after that none of the keys seem to work until the other person hangsup or I han
-
IPad (3rd gen) losing wifi connection during BBC iPlayer downloads
Hi, I am having a strange, app-specific problem with my iPad 3rd generation (wifi only, 64GB) running iOS 6.1.3. When I use the BBC iPlayer app (version 2.0.5.33) to download a TV show to watch offline, my iPad almost always loses wifi connection a m
-
311 Movement Type not in Budget
Hi All, At present, we have different storage locations within a plant maintained by different departments like operations and projects. And so, we have made the derivation strategy based on storage locations. But now, when we make an 311 inter-plant