Printing Form Header Text in Smartforms
Hi,
I have created smartform for SD module.I am printing Form header text in a window by using loop.I am getting the text with the help of READ_TEXT function module.It comes as we type in Form header.But the problem is if they type more than 15 lines it is not printing.I want to print the rest of the lines in next page.How to do this?
Hi,
In smartforms, only the main window is a dynamically varying one.
So give your include text concept in the main window..
so that if your text increases more than a page, it will be printed in the next line..
You can maintain your text in so10 transaction.. with text id and text name..
using include text u can simply give the Id and text name in forms, you will get the enetered text.
regards,
vijay.R
Similar Messages
-
Print Invoice Header Text In Main Window of Smartforms
Helo Gurus !!!
I want to print Invoice header text in main window of smartform.
There are total 5 columns.
Item Quantity Description UnitPrice Amount
Now what I want is to print header text below Description column, there is a loop on the table in main window.
This header text will be printed only once. This is a standard header text
How to get this?
Points are assured !!!Hi Anay Kulkarni,
I understood that u need to print this header text
Item Quantity Description UnitPrice Amount
So please use TABLE instead of LOOP in the table we can prin header, main area, footer.
place the header text in header area in table... i am sure this can resolve it.....
feel free to contact me if issue is not resolved/.....
dont forget to reward points....
all the best...
Regards,
Sreeniasa Sarma K. -
HI:
I would like to do query to print PO header text.
I have try STXH but no PO number to link to and no text line.
Pls advise.
Moderator message: Basic frequently asked question - Please search forum for answers and read the docu in help.sap.com
See as well our rules of engagement: http://scn.sap.com/docs/DOC-19331
A good way to search the forum is with google. See this blog with details for a good search
http://scn.sap.com/community/support/blog/2012/04/16/getting-the-most-out-of-google-optimizing-your-search-queries
This blog describes how to use the SCN search: http://scn.sap.com/community/about/blog/2012/12/04/how-to-use-scn-search
Thread locked
Message was edited by: Jürgen LHi,
It wil be easy with an abap report using Function Module READ_TEXT.
Regards,
AKPT -
Printing of header text msgof billing doc in Invoice.
Hello Gurus,
Goodevening,
I have requirement from client.
This is the requirement ,
He will give the text in billing docment header in billing document but when takes the invoice the header text to be printed in invoice.
Is it possible ? looking for your inputs
Thanks & Regards
Venkat.
Edited by: K.Venkata Chalapathi on Jul 15, 2010 5:08 PMHiii
Billing Header text can be print in your billing document, If it is developed smartform then you can take the help the ABAPer to print the text. For the same you have to create the text ID whichever you want to print in smart form then ABAPer will mapped the ID in his smartfrom on required place.
Regards
Shambhu Sarkar -
how to get header text in any smartform with function module
''READ_TEXT'' having some text id i.e. z102.PERFORM READ_TEXT TABLES ITEXT
USING 'EX05' 'VBBK' text_del.
READ TABLE ITEXT into witext INDEX 1.
IF SY-SUBRC EQ 0. MODEOFTRN = wITEXT-TDLINE. ENDIF.
REFRESH ITEXT.
FORM READ_TEXT TABLES ITEXT STRUCTURE TLINE
USING P_ID P_OBJ P_NAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = P_ID----
text id
LANGUAGE = SY-LANGU
NAME = P_NAME---- (po, so , invoice no)
OBJECT = P_OBJ
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
TABLES
LINES = ITEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
endform. -
How to Print Sales header text at the end of last page of Main Window
Dear All,
I have a requirement to print Sales order header text at the end of Main of last page. I don't have footer window.When i use Bottom-End bottom.Only one line is printing.The header has 5 lines.
Request you to provide <b>code</b>to handle this situation. Your response is highly appreciated
Best Regards
PraveenHi,
If u r using standard layout set RVORDER01.
U can print that sales order header text in the following text element.
/E SUPPLEMENT_TEXT.
U can include ur text objects here.
Then it gets printed.
Regards,
Veda Kumar -
Issue with printing of header text
hii frnds ,
my problem is i am getting the header text printed properly but the text is not getting displayed whenever the user enters a numeric value without any gaps ... i have seen while debuging that the text is properly getting fetched and the cursor is also passing through the text field but the text is not getting printed in my layout . i am using a script for this .
thanking you
rohit guptaUse Below code to get your text..
data: begin of int_rtline occurs 0.
include structure tline.
data: end of int_rtline.
data : rheat type string.
data : itab_r like swastrtab occurs 0 with header line.
Get the Heating and Cooking Instruction
get material heating instructions from material master
call function 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'IVER'
language = sy-langu
name = tdname
object = 'MATERIAL'
TABLES
lines = int_rtline
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
loop at int_rtline.
if rheat = space.
concatenate 'COOKING INSTRUCTIONS: '
rheat int_rtline-tdline
into rheat.
else.
concatenate rheat int_rtline-tdline
into rheat separated by space.
endif.
endloop.
Depends on ur Layout Width for each line print number of charcter,here i mentioned 92 char.
IF NOT rheat IS INITIAL.
CALL FUNCTION 'SWA_STRING_SPLIT'
EXPORTING
input_string = rheat
max_component_length = 92
TABLES
string_components = itab_r
EXCEPTIONS
max_component_length_invalid = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
LOOP AT itab_r.
Print ur data.
Endloop.
Reward Points if it is helpful
Thanks
Seshu -
I have a link in a report that calls another report. The link information being passed to the report is :ename, :emp_id. I would like to print these values on the report header text.
Emp Name: bob Emp ID: 10000
field1 field2 field3
1
2
3Hi,
You can do it in the additional plsql code section.
Say department is being passed to the report. Here is a sample code to print the deparment being passed.
for i in 1..p_arg_names.count
loop
if p_arg_names(i) = 'department' then
htp.p('Department :'||p_arg_values(i));
end if;
end loop;
Thanks,
Sharmila -
Printing symbol in text of smartform
Hi All,
I need to write a symbol (tick mark) in text of smartform.
Can anyone help me?
Thanks,
BipenHi
You can use the table ICON and the field ICON_OKAY
or copy the icon from Word and try to paste the same
or type <709> in change editor
Regards
Shiva -
Print the head text in a Smartforms - READ_TEXT Function
Hello,
I have a huge problem to print a MM document's. I need show the text head in the footer of the document. For this i use the READ_TEXT function. To use this function i enter to vl03n transaction, enter the document number, go to the text head, double click, and i see the parameters = Name (document number), language (ES), id (0001), object (VBBK)...
In the smartform code I write this:
<b>DATA: leng TYPE thead-tdspras,
l_fname TYPE thead-tdname.
DATA: il_tline LIKE tline OCCURS 0 WITH HEADER LINE.
leng = 'ES'.
l_fname = is_dlv_delnote-hd_gen-deliv_numb.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = leng
name = l_fname
object = 'VBBK'
TABLES
lines = il_tline.
comentario = ''.
LOOP AT il_tline.
CONCATENATE comentario il_tline-tdline INTO comentario SEPARATED BY space.
ENDLOOP.</b>
But to try print a document with number 0012345678 through to the IDCP transaction return me the follow error:
Text 0012345678 ID 0001 language <b>EN</b> no exist
why change the language?
i see the STXH table, and i found this register:
MANDT TDOBJECT TDNAME TDID TDSPRAS
200 VBBK 0012345678 0001 S
Where is my problem?
Please, help me!!!
Regards.Hi rudiRocket,
Welcome to Numbers discussions.
Yes I see what you're talking about, never noticed it. To remove the shadow I tried numerous fonts but, still the shadow. Let's hope someone else has a better answer. Be aware folks on these Discussion boards are, as yourself end users not Apple employees.
In the mean time please read the below instructions:
Send feedback directly to the Numbers team for enhancement requests: at the top of your screen to the right of the blue Apple please click "Numbers" > "Provide Numbers Feedback". Explain in detailed what you've found. This makes your request known to the Numbers team directly; don't expect to hear back from them. I've sent many as well.
Let's hope the next version of iWork incorporates many of the requested enhancements.
Thank you in advance for doing that.
Again, welcome to Numbers Discussions, have fun here.
Sincerely,
RicD -
Print the Long text in Smartform
Hi all,
I designed a Work order document using Smartform for the T-Code 'IW32'.
I am able to print the Operation short text, but there is one more provision for the user to enter long text also.
I am not getting where this text gets stored in the database.
Any one can give me some solution to over come this problem.
Regards,
Ravi Shankarhi Ravi,
check this link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/faq
here in FAQ , you will know abiut how longtext is created and where it is stored
it might be helpful to you.
thanks
Sachin -
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^ -
Smartforms - printing header text for a PO
Hi,
I need to print the header text from a PO. To do this I'm using the function Module READ_TEXT.
While entering the header text if they make it bold or underlined then the Output is having html tags. How to get rid of these tags?? (Ex: <B> Header Text </>)
Thank you,
RenuUse REPLACE or TRANSLATE to replace the tags with spaces or to just remove them, i.e. "replace with nothing" (not sure about this option though - never tried it myself). You might need to do SHIFT or CONDENSE afterwards to get rid of extra spaces, if necesary.
-
SAP SCRIPT Header text and Item text not printing in customized PO
Hello Experts,
I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
I want to print the header text and Item text in my form.
For Header text I have used :
/: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
Problem 2: For item text the field is concatenation of EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.Hi,
Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
PROGRAM ZMEDRUCK_SUBP1.
TABLES: EKPO, EKKO.
FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
data xname like THEAD-TDNAME.
data i_xtline like xtline.
clear i_xtline.
refresh i_xtline.
CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
MOVE v_item_text to ITEMTXT.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = F01
language = EN
name = ITEMTXT
object = EKPO
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_xtline
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. -
Tables where header text of sale document and bill document is stored
dear all,
i need a table and field in which header text of sale docu is stored .i need to print a text entered by user at the tie of vf01 .
so plz tell me the table and way how to print that text in print of invoice
if any function is there for that please also tell me
waiting for positive response
regards & thanksTake a look at OSS <a href="hhttps://service.sap.com/sap/support/notes/600408">Note 600408 - Smart Forms: header texts and item texts</a>, it may be useful for you
<i>Symptom
The system does not print header texts and item texts of the billing document in the Smart Form standard form LB_BIL_INVOICE.
Other terms
SMARTFORMS, print, text, completion note, invoice
Solution
The following solution describes how to include a 'header note' on header level and an 'item note' on item level in the form.
If you want to insert other texts into your form, you must adjust the access key (text name, text object, text ID) which you create under point 4 or 11 correspondingly.
The formatting characteristics of the text are transferred from the billing document to the output. That is, you can change the character format only in the document.
to correct the form, proceed as follows:
1. Display form LB_BIL_INVOICE in the change mode of Transaction SMARTFORMS.
2. Expand the navigation tree on the left side and choose the following path: 'Pages and Windows -> FIRST -> MAIN'.
3. After text node TITLEINVOICEDETAILS, insert text node HDTEXT with description 'Header text'.
4. Maintain the general attributes of this node as follows:
o Text Type: Include Text
o Text Name:
o Text Object: VBBK
o Text ID: 0001
o Language:
o No error if no text exists: X
5. Create the following variable under 'Global Definitions':
Variable name Reference type
GD_IT_TXT_KEY TYPE TDOBNAME
6. Choose the following path: 'Pages and Windows -> FIRST -> MAIN -> TABLEITEM'. Expand the 'TABLEITEM' table node.
7. Below the 'TABLEITEM' node (after node IT_REFVG2_COL2_A), insert program line node ITEM_TEXT_KEY with description 'Key for item text'.
8. Maintain the following parameters for the node:
o Input parameter: GS_IT_GEN
o Output parameter: GD_IT_TXT_KEY
9. Insert the following program lines:
clear gd_it_txt_key.
move gs_it_gen-bil_number to gd_it_txt_key.
move gs_it_gen-itm_number to gd_it_txt_key+10.
10. After the new program line node ITEM_TEXT_KEY, insert text node ITEM_TEXT with description 'Item text'.
11. Maintain the following general attributes of the node:
o Text Type: Include Text
o Text Name:
o Text Object: VBBP
o Text ID: 0002
o Language:
o No error if no text exists: X
12. Make the following settings under 'Output Options':
o New Line: X
o Line Type: IT_DESC
o New Cell: X, 1 Skip Cells
13. Activate your form.</i>
Regards
Maybe you are looking for
-
Am I the only person who is struggling to use the CSS panel in DW CC?!
I'm new to Dreamweaver CC this week (CS5 previously and CS2 before that ... total of 7 years use) ... was looking forward to the upgrades (and I can see there are lots which is great), but I'm finding the new CSS panel totally frustrating! It's so m
-
Creative Cloud wont open, uninstall or reinstall.
Mac wont open creative cloud or allow uninstall of creative cloud. Prior to this i mananged to get creative cloud open and was trying to install the adobe premiere pro CC trial but no apps were showing up in the creating cloud section. Just the spinn
-
Built-in speakers not showing in sounds or System profiler
Hi all, I've just bought a 2nd hand eMac 1Ghz model. Having logged in and checked over the installed software (just the basics) and connected to my home network, I tried starting up iTunes to listen to internet radio. I noticed that there was no soun
-
A Simple JMS Client ... doesnt seems to work
Hi , I trying my first baby steps on JMS and your help is needed. I have setup the ConnectionFactory & TopicConnection in the GlassFish server. Following is the simple client code which I am writing in Netbeans IDE, public class TopicSender { pub
-
Cost Center, Org.unit is wiped out
Hi All, When i terminate any employee using PA30 or PA40 transaction then it wiped out cost center and Org.Unit. We need this details. Kindly let me know if you know the solution to keep the cost center and Org.unit when you terminate the employee