Using Read_text want to print continuous text
Hi,
My requirement is to print continuous text using read_text.
Here we are not supposed to use include text to print continuosly.
For ex:The text in script is like as below
*Firstline
Secondline
Reqirement is to ptint as Firstline Secondline by using read_text only.
Please help.
Thanks & Regards,
Shirisha Kandula
Hi Hari,
If the text is as below the concatenate will not work because for the newline also it will print in the sameline.
Ex:
Firstline
Secondline
*Thirdline
O/P if we concatenate is: Firstline Secondline Thirdline
But my requirement is to print like
Firstline Secondline
Thirdline
Hope u got my point.
Thanks,
Shirisha
Similar Messages
-
Using READ_TEXT to read SO10 (standard texts)
Hi,
When we use READ_TEXT F.M for SO10 texts what are the parameters to pass.
ID - ST
LANGUAGE - EN
NAME - Z_TEL (SO10 text id)
OBJECT - ?
What i should pass to OBJECT & what else i need to input!
Thanks in advance.
Thanks,
Deep.If u r reading text from Purchase Order text then Object ID will be EKKO.It depends what r u reading for.Look at the following code :
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = 'E'
NAME = W_TDNAME
OBJECT = 'EKKO'
TABLES
LINES = IT_F01
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Thanks & Regards,
Rock. -
Printing page number and continu text in sap script
Hi
I have created sapscript to print PO and using standard print program with three pages.
My thrid page called with NEWPAGE <> from Main window of first or sencond page wokign fine but the page number is coming like page 1 of 2, 2 of 2 and 3 of 2
another issue: I want to print continue text if sapscript has more than one page, Not included last above newpage <page>
Please give me some idea how to go about above two
Regrads,
challaHello,
TO print the page number do like this
<b>&Pages& of &SAPSCIPTS-FORMPAGES&</b>
To print continues pages. Put the text in the <b>MAIN</b> Page.
and use <b>PROTECT ..... ENDPROTECT</b>
If useful reward.
Vasanth -
How to use Read_text in Smart Forms for printing Header Texts
Dear ALL,
I want to print Header Texts in SmartForms, For that
I am using T/Code VL02N .. and choosed Header ..
got this details... from Text Header.
Text Name :0080000441
Language :EN
Text ID :Z002
Text Object :VBBK.
So in Smart forms Under Template i have created a text and Program Code .
Inside that I have used this below code .
CALL FUNCTION 'READ_TEXT'
EXPORTING
*CLIENT= SY-MANDT
ID = 'Z002'
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = 'VBBK'
TABLES
LINES = IT_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF SY-SUBRC 0.
CLEAR IT_TLINE.
ENDIF.
Kindly suggest me, Where to declare the variables and loops for using this Read_Text Syntax in Smartforms .
Response to this will be highly appreciated........
Regards ,
Vinoth.hi
good
please check this code
CONSTANTS:
*For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
text_id like thead-tdid value 'MATK',
text_obj like thead-tdobject value 'AUFK '.
data tlines like tline occurs 0 with header line.
data tdname like thead-tdname.
data tdheader like thead.
if not it_proj-ltxsp is initial.
refresh tlines.
tdname = sy-mandt.
tdname+3 = it_proj-rsnum.
tdname+13 = it_proj-rspos.
tdname+17 = it_proj-rsart.
call function 'READ_TEXT'
exporting
id = text_id
language = it_proj-ltxsp
name = tdname
object = text_obj
importing
header = tdheader
tables
lines = tlines.
exceptions
not_found = 01.
thanks
mrutyun^ -
Hi All
I want to print long text of WCD (work clearance document) in smart form (Field name is LTXT). How do i do. I don't know different parameters for function module 'READ_TEXT'. Any suggestion.
Thanx and Regards,
Rajesh VasudevaHi,
Go to the text in the Standard Document and then double Cliick on it. Then Click on the Lens below(Detail). In the new screen, Naviagate Goto---->Header. It will give you the relevant details like Text object, Text ID etc which can be used in the read text FM. Usally the text name is the Document Number and the Text ID and Text Object is Constant for that particular Document type.
Hope this helps
TC -
Printing Standard TEXT with multiple paragraphs in smartform
Hello all,
I have a requirement that, there is a very long standard text stored in a notification of an order in SAP ISU system. The text contains multiple paragraphs with indentations. I want to print this text directly into the smartform WITH SAME INDENTATION AND PARAGRAPH FORMATTING.
First i am reading the entire text using FM READ_TEXT.
My first problem is even if i read the text into a variable of type STRING , it just prints 255 characters of it.
And secondly if i try to printout it using LOOP AT node in smartforms, it prints the entire content but without any formatting .
Please let me know whether it is possible to print standard text in smartforms or not
Thanks
Nilesh PuranikHey ,
Well thanks for that but my replies got posted 2-3 times unknowingly, could'nt help it.
Coming to the problem, i guess you did not get my point when i say dynamic texts for each service order.
In my Report i am using LOOP AT ITAB ..where in itab i am storing a service order no i.e. ITAB-ORDER_NO
Now for every order there is standard text maintained in SO10 starting with order name
so my code goes like this.
LOOP AT ITAB.
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'LTXT'
LANGUAGE = 'E'
NAME = ITAB-order_no
OBJECT = 'QMSM'
TABLES
LINES = LINES .
CALL <SMART FORM Fm>
ENDLOOP.
Hence whatever Standard text maintained for that service order i want to display it as it is in the smartform with same paragraphs formatting and indentation.
IF i use a variable in smartform and pass the entire text after using READ_TEXT , it does not format the text and it just prints only 255 characters even if i define it of type STRING .
Hence i am stuck in this scenario.
Appreciate ur help though.
Thanks
Nilesh -
How to print hardcode text in alv
hi folks,
i am working on a report to display data using ALV.
i want to print some text and its correspodning value. (corresponding value is calculated value).
i am able to print calculated value using fieldcatalog but unable to understand how can i print the text(which is a hardcoded text).
ex:
statement value
select* 0
using macros 1
in my example select* and using macros are hard coded texts so can anyone tell me how can i print do this.
thanks in advance.hi
thanks for the reply.
my report has got 14 stmnts and has 14 error message types.
earlier it text was hardcoded and displayed correspondingly but now we want to remove write statements.
so i am not able to understand how can i send the hardcoded text as the output is not in the desired way.
i want to know how can i add into fieldcatalog record by record i.e. stmnt1, value-1 record
stmnt2,value-2nd record and so on. as this would definitely solve my problem -
Printing vertical text in SMART FORMS
Hi,guys iam fresher to this environment and i just want to print vertical text in SMARTFORMS.Will you please provide any information regarding this.
Hi Raja,
As far as my knowledge its not possible in Smartforms.
I had the same requirement , what I had done is I have created a text in word and saved that as BMP and used that logo inside that window. But the requirement for me was that the TEXT was Static means it was not changing.
Reward points if Helpful
Regards
Avi......... -
Printing standard text with TAB
Hi Folks,
I am very new to SAP Scripts and need some help here. I am printing some text using Standard Text object (using INCLUDE statement in sapscript). But now I want to print the text after a TAB. I tried with below syntax but no luck.
/: ,,INCLUDE ZTEXT OBJECT TEXT ID ST
Request you to please suggest some approach.
Thank you.
Regards,
SudThanks Christian !
Yes, m using SO10 for creating this text.
But as u suggested, I cannot use tab in ZTEXT, because this will affect the alignment for all the other scripts where I am using this ZTEXT.
For every other script, I do not need this extra tab before the ZTEXT. Only for this one script I want to intorduce a Tab before printing this ZTEXT.
Any other approach?
Thanks
Regards,
Sud -
Printing formatted text from an Oracle form
I'm trying to print formatted text from an Oracle form without using the standard menu print. The print button on the menu prints out the text and the actual form. I just want to print the text that is displayed on the form. I would like to add a print button to the form. Is there a print function or event in PL/SQL?
Thanks in advance for any help!!
JasonIf you are interested in the content of the field you can loop over them (next_item built in) and write their content into a file using the TEXT_IO built in.
for nicer outputs check out Oracle Reports on OTN. -
Print a text on last page of smartform rpt
Hi All
I want to print a text on first and last page of report created in smartforms
plz suggest..........Hi,
In a Smart Form, you can use a similar MAIN window approach. For a secondary window, you might wish to use a conditional event such as <b>'Only After End of Main Window'</b>.
Map page FIRST to NEXT and page NEXT to NEXT as you have done; page LAST does not need to be mapped to any other page. Make sure the MAIN window is contained on both page FIRST and page NEXT. Then add a command node within your MAIN window at the very end of this window (outside of any tables or loops). In its general attributes click on the 'Go to new page' and select the LAST page here.
During form output, regardless of whether the MAIN window is completed within page FIRST or NEXT, page LAST will be triggered as your final page.
Note: Any secondary windows on pages FIRST or NEXT with the condition 'only after end of MAIN window' may no longer print, as form output now will advance to the LAST page before this condition is satisfied.
Regards
Sudheer -
How to print long Text & No of page settings in F-58
Dear Gurus,
Can anybody guide me reg. below:
01. user want to print long text also along with document.
02. When user printing F-58 Payment advice..where we can set no of pages
Pls guide me.
REgards,
VenkatHi,
a. Display Document FB03 and change current layout (Ctrl+F8) and choose GL Long Text (SKAT_TXT50).
Rgds. -
Yesterday I wanted to print a text with my printer, but it I was getting the error code b200. What's the problem? How to fix it, any help will be appreciated!
what model?
how many times does it flash orange when you power up? or do you get a green light?
have you upluged at the wall, then left it to sit for a few hours (so with no mains cable in)?
this apparenntly resets it -
hi,
when i went through smart form code ,i found the following code for printing texts for items(me23n-->item--
>texts)
in TEXT node in smartform (for printing item text):
TYPE: INCLUDE TEXT
TEXT NAME : &G_TEXT_KEY&
TEXT OBJECT: EKPO
TEXT ID: F01
LANGUAGE: &SY-LANGU&
How to create text name,text object,text id?
when i gave text name & text id in SO10 &then display it's giving message Text Id F01 for Text Object TEXT does not exist.
how to create text object EKPO instead of TEXT.where can i see this TEXT OBJECT option.
how can i print header texts in ME23N?
please help?hi mustafa,
1. If you want to create text name, text object, text id.. you have to create functionally in spro settings....
spro
> mm
> purchasing
> messages
> texts for messages
> define texts for purchase order
here you can define header texts or item text functionally
If you want to create in you po then go to header text tab and create with respective text
2. if you want to print header texts simply pass only
po number in text_name,
text_object : ekko
text_id : depends up on ur text check i header text tab
language key u know as usual
Don't forget to reward points
praveen -
Printing "Continue.." when report exceeds more than one page
Hi,
I have an invoice report which can prining in 2 or 3 pages too. in that case I want to print "Continue.." at the bottom of the report in the first & second page when the report output contains total of 3 pages.
Please guide me.
Regards
Ashok GThe requirement is to print the invoice details (lines) in the report. if there are 30 lines, first page will have 15 lines and second page has 15 lines. Since this report is of two pages, in the first page, we have to print "Continue..." in the First page bottom-right side (but not in footer) .
Thanks in Advance.
Maybe you are looking for
-
How to call servlet in action of the Form in jsr 286 portlet
HI, We are using Portlet producer application to create JSR 286 Portle. In the View.jsp of a portlet we need to call a servlet by mention it in the action of the form. WHen I run the only view.jsp page , on form submission the servlet gets called. Bu
-
Process Chain Priority Schedule in 3.5
Hi Gurus, Is it possible to schedule jobs with a priority A, B, C like in Netweaver 2004s? If yes, how and where? I have a meta-chain which I scheduled with time and running daily. It is perfectly working fine. However, I am just interested to know i
-
Hi All, Is there any way to use DVM value in BPEL? Regards
-
I am getting a full disk message. When I check I have a large amount of material described as Other and is coded yellow on the information bar.
-
Calling Screen on the comerical different than mine??
Why does the calling screen in the comercial have the contact picture on top of the screen and the wallpaper behind the calling pad?? and on my phone the picture takes up the whole screen??