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^
Similar Messages
-
How to Generate a complex smart form for the Sales Order different pages h
How to Generate a complex smart form for the Sales Order different pages has different page Layouts explain me?
in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar. -
Replacing Adobe forms with Smart Forms for printing FPM based forms
Hello All,
This pertains to HCM Process and Forms with Floor Plan Manager (FPM) based forms.
SAP has provided Adobe Forms as the standard print option for FPM based forms, as can be seen in the attached screenshot.
We want to use the FPM based forms without using Adobe Document Services (ADS). I am checking the feasibility of replacing the PDF forms with Smart Forms, either through configuration or customization.
System Landscape: ECC 6.0 EhP6
Any inputs or suggestions would be greatly appreciated.
Regards,
Arun.Hi Ketul,
Irrespective of the process or scenario, we would like to use Smart Forms instead of Adobe Forms. As seen in the screenshot, SAP has provided the default option of generating a PDF form. This requires installing and using Adobe Document Services. We would like to remove this dependency on Adobe Document Services.
Instead, we would like to use Smart Forms for printing purposes.
This requirement is not tied to any specific process or scenario, but to any business process implemented using HCM Process and Forms framework.
Let me know if you need any further clarifications.
Regards,
Arun. -
How to use Rstxt in smart forms
hi
how to use Rstxt in smart formsHi Ram,
Go through this hope u can understand.
How to Upload graphics (IMAGE) to your Sapscript?
Command in your Sapscript
/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP
2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and
make it Zoom as 100% and save as *.TIFF
3. Open SE38 and execute program RSTXLDMC
4. Give your TIFF file path name
5. Select Bcol (for Color)
6. TEXT ID will be ZHEX-MACRO-*.
7. Inplace of * write your own logo name (ZCOMPANYLOGO)
8. Execute the program
9. Now Goto SE71 create your ZFORM
10. Create logo window
11. Goto text element of logo window
or
In 4.6x :-
1. Goto SE71 Change the mode to GRAPHICAL
2. Choose the Graph Tabstrips
3. Now type in some name for the LOGO WINDOW
4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP
5. The code will be written automatically. You just need to drag and drop wherever you want
the graphics to be.
/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN
Reward points if help ful.
http://www.sap-img.com/ts001.htm
Sorry i think for Scripts ..
better to go for above post . it definetly works
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
Smart form for different header level data
Hi,
I need to design a smart form,in th samart form i have 2 header records and for each header reocrd again 10 item records.
My form shd print with fst header record and its item records and after ending fst header record details it shd give 2nd header record and its item records.
For example I have Header records A and B
A have 1 2 3 4 5 item records and
B have 7 8 9 10 11 item records
My form shd be
A----
1
2
3
4
5
b----
7
8
9
10
11
Any inputs please
Regards
Rasheed
Edited by: Rasheed salman on Mar 19, 2009 5:33 PMYou can use the SORT to have different header.
You must be having some indicator in your ITEM table to distinguish different set of data.
In the TABLE node, Under the DATA tab, give your field in the Sort Criteria.
Select the check box Event on Sort Begin.
This will create a new node under the HEADER and MAIN area of your table. In this Node, you can put your Header to have it different for different set of records.
Like:
MAIN window
.. TABLE with sort of field1
.... HEADER
.... FIELD1 sort begin "use this for Header
.... MAIN
Regards,
Naimesh Patel -
How do I prepare an Illustrator file for printing white text on a dark t-shirt?
There are no graphics, just text. The finished product is going to be white text on a red t-shirt.
What are the steps in preparing a file in Illustrator for this purpose, and what do I need to do before sending it off to the printer?
Thanks.I would call or email your printer and ask him or her the same question. There are a number of ways to indicate white ink, it would be good to know their preference. My guess is they will ask you to supply a PDF with black type and indicate somewhere that it's to print in white ink. They might prefer an .eps file. An illustration of a red T-shirt with white type in the desired location and size would also help insure you get what you want.
-
Read_text in smart forms
I use read_text in smart form...how to pass object in this fm....actually there is standard table which maintains data according username......from which we can fetch data required for this fm..i am not getting tasble name..plz can u suggest
t_code s010
ABAP READ_TEXT functions to read the SAP Long Text
You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
To check your long text header, go into the long text. Click Goto -> Header
Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
REPORT ZTEXT .
TABLES: PBIM.
stxh, stxl, stxb - trans tables for text
ttxit - text on text-ids
ttxot - Short texts on text objects
Transaction MD63
SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
S_WERKS FOR PBIM-WERKS.
DATA: BEGIN OF HTEXT.
INCLUDE STRUCTURE THEAD.
DATA: END OF HTEXT.
DATA: BEGIN OF LTEXT OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF LTEXT.
DATA: BEGIN OF DTEXT OCCURS 50.
DATA: MATNR LIKE PBIM-MATNR.
INCLUDE STRUCTURE TLINE.
DATA: END OF DTEXT.
DATA: TNAME LIKE THEAD-TDNAME.
SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
MOVE PBIM-BDZEI TO TNAME.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'PB'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'PBPT'
ARCHIVE_HANDLE = 0
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
MOVE PBIM-MATNR TO DTEXT-MATNR.
APPEND DTEXT.
ENDIF.
ENDLOOP.
ENDSELECT.
LOOP AT DTEXT.
WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
ENDLOOP.
http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
Also
*Internal table to store standard texts
DATA: IT_TEXTS like T_LINE occurs o with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
tables
lines = IT_TEXTS "Internal table
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.
<b>save text</b>
Fill out following parameters of SAVE_TEXT function module:
HEADER
TDOBJECT C 10 BUT000
TDNAME C 70 10 digit BP number
TDID C 4 Z001
TDSPRAS C 1 Language
INSERT = X
LINES
TDFORMAT TDLINE
|
|testtttttttttttttttttttttttt( Your text)
I would suggest you to use some other BAPI that would attach your text to BP than SAVE_TEXT.
If you still wanted to use SAVE_TEXT then first make sure how the TDNAME is generated. It depends on the text determination procedure. For examples, it can be guid of BP, GUID followed by date or time or else the BP number itself.
Just go to BP transaction, double click on the text pad, it will open you the SAP Script editor. Click on menu GOTO and select Header which will give you info about your TDID, TDOBJECT, TDNAME....
Hope this helps. -
Dear All,
We have designed a smart form for printing of excise invoice. The invoice is in two pages. The second page printing is not aligned and starts immediately after the finish of the 1st page.
There is no buffer place between two pages.
How can we provide a buffer between two pages so as to print the 2nd page in alignment with the pre printed stationary and the first page?
Regards.
Milind DugadeIt very dificult to give you guidance w/o seeing your smartform config. page format. If you are using custom page format or standard page format. Have define next page properly or not. What are line count in first page etc etc.
-
Hi Experts,
I want to do a smarform for the CRM Survey, is there any standard smart form for this.
How do we trigger the smart form for the same.
Thanks in Advance,
PraveenHi Praveen,
As per my understanding u have to make a custom smartform for CRM.
Try using FM CRM_ORDER_READ with importing Parameters IT_HEADER_GUID and for Bar Code
use standard smartform BC470_FLOWD_LABELS.
Hope This Helps...
Thanks
Ravi -
Hi Technical geeks,
I am right now doing an analysis on Payment advice Print Program. Other than Program RFFOEDI1 isn't there any way by which we can print the form for payment advice. Can't we directly print from F110 transaction.
I need to use Smart forms for printing my Payment Advice. I find only standard SAP Script available for this purpose. this is quite urgent.
Thanks in advance
RamachandranHi, thank you. I'll test.
You mean, comment these loop:
* FORM AVIS *
* Druck Avis *
* Gerufen von END-OF-SELECTION (RFFOxxxz) *
* keine USING-Parameter *
FORM AVIS.
* Abarbeiten der extrahierten Daten *
IF FLG_SORT NE 2.
SORT BY AVIS.
FLG_SORT = 2.
ENDIF.
LOOP. -----------------------------------------------------> THESE LOOP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*-- Neuer zahlender Buchungskreis --------------------------------------
AT NEW REGUH-ZBUKR.
PERFORM BUCHUNGSKREIS_DATEN_LESEN.
ENDAT.
*-- Neuer Zahlweg ------------------------------------------------------
AT NEW REGUH-RZAWE.
then, the "reguh" table, have only the records that I want ( type pay = N) or I have to filter in the smartform?
Thanks you very much.
Marc
PD: is there a easy way to debbug it? I have to execute always F110??? -
Adobe Forms: Printing Header Text - Background as Dark
Hi,
We are upgrading our ECC system to Enahncement Pack 5.
We have Adobe forms for Sales Order, Delivery Notes,... In Border Palatte, we have set 'Solid' as a background fill for our header texts
After applying patches, Adobe forms started printing header texts background very Dark.We are not able to read the texts. If I view the document in the spool then they are displayed correctly. If I save spool document on the desktop and print it then also output is printed as we want. Only when we print it directly through VA01, VA02 ( directly from SAP ) then it gives this error.
I removed the background fill then it prints text correctly but then I loose the separation between header and content.
I will appreciate any help in this regard
Jitendra Pongurlekar
Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
Edited by: Thomas Zloch on Mar 4, 2011 10:55 AMHi mrudul,
as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
~Florian -
How to user Smart form for the BID in SRM 4.0
Hello,
We have SRM 4.0 and we need to send the BID information to the vendor. This is because we have vendors that are not able to get in to our system and we have to send them a print out of the bid information so that they give us back the information. Then our users will insert it in the system.
It could be as an attach to the email or it could be printable in the program SPPS - Selecting and Processing Outputs.
SAP says that there is a smart form BBP_BIDINV_BID and BBP_BID_NOTIFICATION but I am not managing to make them work.
I found some messages to help solving specific problems so I assume it is possible to do this...
Is there someone that can help me?
Thanks very much.
My best regards,
Catarina CamposHi
<u><b>Here is the standard solution to use your own forms:-></b></u>
<u>- copy the smartform BBP_BIDINV_BID to ZBBP_BIDINV_BID (transaction SMARTFORMS) and apply your changes
- use BADI to call your custom form ZBBP_BIDINV_BID</u>
<b>For PDF output form change use BADI BBP_OUTPUT_CHANGE_SF.</b>
<b>For email notification change use BADI BBP_CHANGE_SF_BID instead.</b>
<u>You will find all relevant documentation in SPRO --> Supplier Relationship Management --></u>
SRM Server --> Business Add-Ins (BAdIs) --> Document Output -->
- Change Forms for Document Output
- Change Smart Form for E-Mails Relating to Bids
<u><b>Please go through the links below for more details -></b></u>
Re: how to use cutom smartform instead standard?
Re: Email message customization ?
Re: Bid Invitation Email Subject
Re: Email notification to bidder should reflect start/end date and time
Re: RFQ Smartform in SRM
Re: Standard Text
Do let me know.
Regards
- Atul -
How to Mask URL in Smart forms
Hi,
i wanted to mask the URL in my smartform so that it is concise and readable, like suppose url is like this http://www.myurl.com/pages/abcd&attr=19093 i wanted to create text which is something like click here on clicking click here it should take me to the desired page which the above mentioned URL ( http://www.myurl.com/pages/abcd&attr=19093 ) actually navigates.
How can i achieve this Smart forms??
Please suggest
Edited by: kranthi kumar on Oct 29, 2010 12:56 PM
Edited by: kranthi kumar on Oct 29, 2010 12:59 PMHi Aidan,
Thanks for your answer, Just got an alternative solution, when i got XSF output from smartform function Module, the same XSF output (me->sf_job_output-xmloutput-trfresult-content) i used in below method to convert to string.
CALL METHOD cl_hrrcf_cs_sf=>convert_xsf_html_to_txtstring
EXPORTING
content = me->sf_job_output-xmloutput-trfresult-content
IMPORTING
html_string = me->doc_properties-output_c
html_tab = me->doc_properties-output_c_tab.
later i realised that URLs in the smartform has got corresponding HTML code as below in the (me->doc_properties-output_c_tab).
<a href="https://www.google.com">
<span>
https://www.google.com
</span>
</a>
when i changed the link in the debugger https://www.google.com which was inside
<span> </span>
to "Click Me", the output was as i expected in the E-Mail which showed me Click Me and when i click that it took me to google web site.
so i decided that i would change this table(me->doc_properties-output_c_tab.) for every URL in code, though it did not seem like right solution, as suggested in this forum there is no straight solution for this, i have no other option.
Please comment.
Thanks,
Kranthi.
Edited by: kranthi kumar on Oct 29, 2010 9:43 PM
Edited by: kranthi kumar on Oct 29, 2010 9:44 PM -
Smart form for cutting list---Urgent
Hi Experts,
I have to create a smart form for cutting list in PP module.
Selection criteria are:
1.) select all orders(AFKO-AUFNR) wiht AFVU-USR00 = 'CUT' where AFVU-AUFPL = AFKO-AUFPL
2.) Group according to material no.(AFKO-PLNBEZ)
Form fields are as follows:
Name : MARC-MATGR
Cut & Process date: AFVV-FSAVD where AFVV-AUFPL=AFKO0AUFPL
Ref Packing date: AFVU-USR00= ASSY_GAL of th superior order(AFKO-MAUFNR,where AFVU- AUFPL = AFKO-AUFPL)
Order : AFKO-AUFNR
Sales Order: AFPO-KDAUF of superior order(AFKO-MAUFNR,where AFVU-AUFPL = AFKO-AUFPL)
Item Number :
Qty: AFVV-MGVRG where AFVU-USR00='CUT' & AFVU--AUFPL = AFKO-AUFPL
& co many other fields form AFKO table.
I am bit confused what will be the fields & tabels i have to declare in Form interface & Global parameters.
What will be the internal table for the table which display data.
In the main page i have to show 10 colums i dont no how to define table for those 10 columns
As per the requirement can anywone please tell me in detail to solve these problems. like which r te tables i have to use in interface parameters & which wil be in global paramenters.
Which itab i will use to create the table in main window
& how i can declare 10 columns in that table.
Regards,
Nikhi nikil.
I use to follow this procedure.
1) Based on the select criteria.fetch values in to differnet itab's from differnet tables.
2) then try to put the selected rows based on condition into a single internal table.
3)u can send that final internal table from program and u have to use that internal table in form interrface.
4)design the smartforms and call the fields accordingly from the final inetrnal table .
5)u should be good in using select query ,read table statement etc.
check this with other and take a decision.some of them use to write codes then and there before using the fields using progarm lines.
but i am comfortable in my method.
mani -
Smart form for physical inventory doc
Dear Experts,
Is there any standard smart form for physical inventory doc? In SAP, the standard sapscript is INVENT, but this form is in sapscript, can I develop using smart forms? how to link the smart form to the print program?The transaction MI21 prints inventory using a SAPscript through INVENT.
Maybe you are looking for
-
Hello all, I am getting error while running below sql loader command... load data infile * into TABLE AP_SUPPLIER_SITES_INT REPLACE fields terminated by "," OPTIONALLY ENCLOSED BY '"' VENDOR_INTERFACE_ID expression "to_char('select VENDOR_INTERFACE_I
-
Mail the internet address when alert occured
Hi,gurus: I want to mail the internet address after the alert trigger,but it throws exception "CL_SMTP_RESPONSE ESMTP " and the error "530 530 5.7.0 No AUTH command".I think it is the cause of the authentication of the mail server.What do you thin
-
Error status 26:Syntax error in IDoc (segment cannot be identified)
Hi Experts, i extended one idoc which has the following structure A(this is the parent segment) z1 zz1.1 zz1.2
-
Repair a Captivate corrupt file
Hello I work with Captivate V5 I can't open my Captivate project. He told me that my file is damaged. I have no backup file. How can I do? HELP ME PLEASE.... Thanks
-
HT1311 My store is set to US and won't change to the country where I live. Please help?
I can't change my store to the country where I live. I change it per instructions but the change does not get saved.