Standard Text Report creation
I am trying to create text report from array of data (acquired online). I have a specific problem of setting Center header title with larger font as well as right header with smaller size font. Herewith attached image file.
Any help would be appreciated.
Kousy
Attachments:
Problem_Report_header.JPG 86 KB
Hi,
I am attaching doc file , when acquiring data online I want to print a report format like this. Can you please send out a simple vi elaborating that.
I can change the font, style everything, to all Left/Center/Right Header text. But its not inserting Center Header with Larger font & next line right header with smaller size font. Because I have supplied larger font with Center Heading only. Then inserted a new line. Again I have supplied smaller font with right heading only (now the center/left header string are empty) that’s creating confusion i hope. if this is the reason, then need to find out work around to make it the way i want probably. Otherwise I may be wrong.
Hope this clarification is ok.
Kousy
Attachments:
Report.doc 22 KB
Similar Messages
-
Call Standard Text by report replacing the variables with their values
Hi,
I have a requirement to call a standard text from a report.
Following is the text present in standard text.
&PTXT1-ENAME& will attend for interview
on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
I am doing it by using READ_TEXT. But READ_TEXT reads the entire text as it is.
Is there any way I could retrieve the standard texts with &PTXT1-ENAME& replaced by the value of PTXT1-ENAME in report. And similarly &MEMOACT-PLDAT& replcaed with its actual value.
Any pointers in this regard would be helpful.
Points will be awarded.
Regards,
Mayank AgarwalHi,
In the Text
&PTXT1-ENAME& will attend for interview
on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
do not use the * as a paragrapgh , use /: as the paragraph
Regards
Sudheer -
how can i call standard text in a report program
Thanks
BaidyanathHi,
check this
data: xthead type thead.
data: ilines type table of tline with header line.
xthead-tdobject = 'ZPT_DET'.
xthead-tdid = 'Z001'.
xthead-tdname = '004500'.
xthead-tdspras = sy-langu.
xthead-tdlinesize = 72.
call function 'READ_TEXT'
exporting
id = xthead-tdid
language = xthead-tdspras
name = xthead-tdname
object = xthead-tdobject
tables
lines = ilines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
call function 'EDIT_TEXT'
exporting
header = xthead
tables
lines = ilines
exceptions
id = 1
language = 2
linesize = 3
name = 4
object = 5
textformat = 6
communication = 7
others = 8.
check sy-subrc = 0.
aRs -
Using standard texts in reports output
Hi,
Would you please let me know the process of using standard texts created in So10 transaction in reports development. READ_TEXT function module made me to code a lot as per my requirement.
Thanks,
Kumar.Hi ,
if you want to use READ_TEXT then you have to take help of you functional consultant.Ask him to provide the TEXT ID ,NAME, OBJECT and with the help of these things you can proceed furthur,
If you still need any help.let me know.
Thanks and regards,
Rajeshwar -
Report to upload and download standard text
Hi,
Please let me know how can we upload or download standard text created using so10. Is there any report program to do this?
Thanks
Saravanahi .
Go to Abap editor SE38 use RSTXSCRP this program ...
Run it .. u can find the option Standard text chek this option.
Give the TEXT ID and langauage.
and then the mode i.e Export r Import
by this way u can upload r down load standard text ..
Note : By rewarding points u can also get 1 point. -
Use standard text (SO10) in report(SE38) to compose the body of email
hello experts,
here i wanna create the body of email with a format, hence i decide to use Standard Text. in this Standard Text, i also maintain some variable such &p_name&( i remember it works in forms,such script and ssf), while i define p_name as 'demo' in the program and try to transfer p_name to standard text, it fails. while i check the output of standard text, it show &p_name& instead of demo.
could anyone tell me how to realize this function?
Thanks in advance.
DesmondHi,
try this,
data:w_field(10) type c VALUE '1234'.
DATA:wa_head TYPE THEAD.
data:it_final TYPE TABLE OF tline.
wa_head-tdname = 'Z_SAMPLE'. u201CStandard text,refer screen shot
wa_head-tdid = 'ST'.
wa_head-tdobject = 'TEXT'.
wa_head-tdspras = 'EN'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = wa_head-tdid
language = wa_head-tdspras
name = wa_head-tdname
object = wa_head-tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER = HEADER
TABLES
lines = it_final
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.
CALL FUNCTION 'REPLACE_TEXTSYMBOL'
EXPORTING
endline = 10
FORMATWIDTH = 72
LANGUAGE = SY-LANGU
LINEWIDTH = 132
OPTION_DIALOG = ' '
REPLACE_PROGRAM = 'X'
REPLACE_STANDARD = 'X'
REPLACE_SYSTEM = 'X'
REPLACE_TEXT = 'X'
startline = 1
IMPORTING
CHANGED = CHANGED
TABLES
lines = it_final -
Add Default standard text to notification on creation
Hi ABAP experts,
Is it possible to automatically add standard text when the notification created.
Currently we are asking users to manually add the standard text which is wast of effort for every notification.
I am not abaper. Could you please provide coding details. We have multiple company code/Planning/maintenance plant. Based on the company code from functional location, i want a specific standard text to be automatically populated in the notification long text. It should happen upon population of functional location.
Thanks
PanneerHi,
I was under the impression that the text is FIXED based on some notification data,
The idea was to define relationship between SO10 text and "company code/Planning/maintenance plant" .
It was an idea.....
Regards.
p.s. Get a programer.... -
Hi Experts,
I have a requirement to create the standard text in English and french for Quote text .
i know we use SO10 transaction.
Please explain the complete process step by step.
Thanks in advance,
MKHi,
goto SO10 Tcode
enter some Textname (parameter name)
Default ID will be ST for stanard texts
create the text and save it
You can read this text using the fun module READ_TEXT
and call the same text in the script using INCLUDE command
sample like
/: INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID& LANGUAGE &EKKO-SPRAS& PARAGRAPH AS
Regards,
Omkaram. -
PR to PO ...Standard text problem
Hi all,
I am writing one report , which converts the purchasing requistion to purchase order. I am using the BAPI function module...BAPI_PO_CREATE1.
In this i want to populate the purchase order header text. I am using the standard text for all po's whose are convertable.
but the problem is , the header text table paramers(POTEXTHEADER) in BAPI FM will take 132 chars only. But my standard text is 6 paragraphs are there . how do i long text populate? Am i using the wrong parameters in the BAPI FM.
please suggest me ...how to use this BAPI FM , to populate the lonf standard text.
regards,
Ajay Reddy
Edited by: Ajay on May 27, 2008 9:08 AMhi
use the function module create_text to upload long text. below is the
sample program which uploads purchase order text more than 132 characters.
TABLES : MARA, TLINE, THEAD.
DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR, " MATERIAL NUMBER
TEXT(5000) TYPE C, " Long Text
END OF ITAB.
DATA: BEGIN OF ITAB1 OCCURS 0,
MATNR LIKE MARA-MATNR, " Material No
SEQU TYPE I, " Text Sequence
TEXT(5000) TYPE C, " Long Text
END OF ITAB1.
DATA:BEGIN OF DT_LINES OCCURS 0.
INCLUDE STRUCTURE TLINE. " Long Text
DATA:END OF DT_LINES.
DATA : P_FILE1 TYPE STRING.
DATA : DL_NAME TYPE THEAD-TDNAME, " Object Name(material no)
DL_LAN TYPE THEAD-TDSPRAS. " Language
CONSTANTS:C_BEST TYPE THEAD-TDID VALUE 'BEST',
C_MATERIAL TYPE THEAD-TDOBJECT VALUE 'MATERIAL'. " OBJECT
DATA: START TYPE I,
LEN TYPE I VALUE 92,
TOTLEN TYPE I,
N TYPE I.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-101.
PARAMETERS P_FILE LIKE RLGRAP-FILENAME."input file
SELECTION-SCREEN : END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
PERFORM FETCH_FILE USING P_FILE.
*& Form fetch_file
text
-->P_FILE text
FORM FETCH_FILE USING P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
IMPORTING
FILE_NAME = P_FILE.
ENDFORM. "fetch_file
START-OF-SELECTION.
PERFORM UPLOAD USING P_FILE. " *To Upload Flat file
PERFORM UPLOAD_TEXT.
*& Form UPLOAD
text
-->P_FILE text
FORM UPLOAD USING P_FILE.
P_FILE1 = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = P_FILE1
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC EQ 0.
*message i001 with p_file .
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "UPLOAD
*& Form UPLOAD_TEXT
text
FORM UPLOAD_TEXT.
LOOP AT ITAB.
ITAB1-MATNR = ITAB-MATNR.
CLEAR: TOTLEN,N, START.
TOTLEN = STRLEN( ITAB-TEXT ).
N = TOTLEN / LEN.
N = N + 1.
DO N TIMES.
ITAB1-TEXT = ITAB-TEXT+START(LEN).
ITAB1-SEQU = SY-INDEX.
START = START + LEN.
APPEND ITAB1.
ENDDO.
ENDLOOP.
DELETE ITAB1 WHERE TEXT IS INITIAL.
SORT ITAB1 BY MATNR SEQU.
LOOP AT ITAB1.
DT_LINES-TDFORMAT = '*'.
DT_LINES-TDLINE = ITAB1-TEXT.
APPEND DT_LINES.
AT END OF MATNR.
DL_LAN = SY-LANGU.
WRITE : / itab-MATNR.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = ITAB1-MATNR
IMPORTING
OUTPUT = ITAB1-MATNR.
MOVE ITAB1-MATNR TO DL_NAME.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = C_BEST
FLANGUAGE = DL_LAN
FNAME = DL_NAME
FOBJECT = C_MATERIAL
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = DT_LINES
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
WRITE:/10 'Long Text Creation failed for Material No', ITAB1-MATNR.
ELSE.
WRITE:/10 'Long Text Created Successfully for Material No', ITAB1-MATNR.
ENDIF.
REFRESH DT_LINES.
ENDAT.
ENDLOOP.
ENDFORM. "UPLOAD_TEXT -
How can I initiate a transport of Standard Text over to another client
HI,
I need to re-create all the customized standard text in our new ECC6.0 box. Afte creation, I want to transport it to the QA for testing and eventually to the new ECC 6.0 production.
While creating the text, it does not trigger any transport request.
How can I initiate the Transport request?
I had explored and found that it is also possible to upload to the destination. I would prefer the Transport method.
Can someone advice?
Thanks
ThanksThe program name is RSTXTRAN. run from SE38
detailed documentation is here.
Symptom
This is a brief guide to RSTXTRAN
More Terms
RSTXTRAN, Transport of SAPscript Texts, Standard Texts
Cause and Prerequisites
Solution
Basic Background
You want to transport SAPscript Texts from a source system to the target
system. You can do it in different ways. If you want to copy texts within a
system from one client to the other you can execute the report RSTXTCPY. In
other cases, i.e. transporting the texts between the different systems, you
can use the report RSTXTRAN. This report (RSTXTRAN) itself does not perform
any transporting but is used to prepare a Transport Task (TT). Having
prepared the TT with RSTXTRAN you have then to release it and the
corresponding Transport Request (TR) in a normal way (e.g. with an
assistance of Customizing Organizer - se10).
Please note the Type of Transport Requests (WBO or Customizing) depends on
the system settings.
Working with RSTXTRAN
1. Execute the report RSTXTRAN (e.g. within the transaction se38)
2. On the selection screen appeared you may specify:
2.1. Name of the Transport Task (TT). Make sure you specify the
Transport TASK number, NOT the Transport REQUEST ! You may leave this
field empty if you did not create to this moment the appropriate TT.
Later you will be able to create it within the report.
2.2. Text Key. This composite key consists of four fields: Object,
Name, Id and Language. You may specify these fields also generic
(caution: until Rel.4.6A you have to specify \'*\' if you need a generic
selection; leaving a field empty will cause a search for the blank
field that usually returns no results!). This key serves as
preliminary search restriction only and does NOT mean all the texts
which satisfied the specified key must be included into TT.
3. Having specified some fields on the selection screen you can go
further with \'Execute\'(F8).
4. On the screen appeared you will see the list of texts that satisfy the
specified restrictions. By default all the texts are selected for
including in the TT. You can deselect all the texts or select all of
them again using the function \'deselect all\' or \'select all\'
respectfully. Certainly you may select the texts individually as well.
In order to proceed you have to use function code \'continue\' clicking
on the icon \'OK\' or pressing the button \'ENTER\'.
5. At this stage you get another list of texts that already exactly
defines the list of texts to be included in a Transport Task. You
cannot change this list any more. If you want to change something (add
new texts or exclude any of them) you have to go one step back (F3)
and update your selection. You can now include this list to the TT by
pressing the button in the toolbar \'Transfer texts to correction
request\' and confirming the action.
6. If you have left the field \'Name of Correction\' empty on the first
selection screen you will then be asked to provide the Transport
Request number. You can select it from already existed ones or create
a new one. However if you specify anything(!) in the field \'Name of
correction\' on the first selection screen and the specified TT does
NOT exist (generic input is not allowed there) you will get an error
message \'Request/Task xxx does not exist\' (TR 806). In that case
please go to the first screen and fill out this field correctly, or
leave it completely empty. Then repeat the selection again.
7. When you have performed all the steps properly you get a message the
selected texts were included into TT. Now you can leave the report and
release the appropriate Transport Task/Request in Customizing
Organizer (se10).
Edited by: Henry Hsu on Nov 27, 2010 3:37 AM -
Adding standard Text as long text in QC01 of General data Section
Hi ,
I want to Append standard text in Certificate Profile Creation(QC01)of General data section. Can you suggest any Exit.
Standard Texts created by SO10 Transaction.
Thanks in advanceDear Raynard,
Raynard Coscolluela wrote:
As far as I can remember the Travel Request was conceptualize to be a simple ESS Form that's why most of the labels here are hard coded and didn't use OTR.
I have to disagree. None of the labels, except this one are hard-coded via Personalization-Means and most Texts come indeed from the OTR, the Label T_ACTYPE_LABEL also has an entry in OTR (see my posts above) but is only non-changable by enhancements because the component configuration was "abused" to overload the OTR and coding in runtime. I still can't really believe this one is intentional....
Raynard Coscolluela wrote:
We don't recommend changing the label text in Web Portal as it can lead into inconsistency incase a new update will be > deliver by SAP into this fields. So yes this is a consider a modification.
This will be an issue since the word "Spesen" which is a specific German one for "Expenses" is juridically wrong if used within a specific MOREI of the Public Sector. But this is another issue and I don't want to elaborate on this one here.
Raynard Coscolluela wrote:
My colleague who participate in this thread is still on vacation and she ask me to assist here.
I see, and I'm glad you did assist here. Give Sally my regards.
This one is answered then, if not really "solved". I'll close the OSS message now.
thanks a lot and best regards,
Lukas -
Track Changes log of a specified Standard Text?
Hello Experts,
Am looking to develop a report (change log report) for standard texts, for example, (pls. note all input parameters of this standard text are same)
Yesterday the user entered the standard text as
This is yesterdays standard text
And again user has changed today it to
This is todays standard text
Pls. let me know that is there any standard transaction to track these changes log? is there any table (seems STXH, STXL are not helps me) to store these changes? how can i retrive all these changes for a specified stanrd text?
Thank youHi M_S_Raju_0613,
I never heard of a tracking feature for standard texts - standard sapscript texts must be an add on SAP took from any non-SAP development and never integrated well. So you have to change documents for them or the pool tables where they are stored.
If only some texts and only special changes are in question, you may create a special program that stores a copy of the text and compares the copy to the actual text in a recurring job.
No better idea, sorry.
Regards,
Clemens -
How to copy standard SAP report to a Z report?
Hi All,
Guys, I have a requirement to copy an standard SAP report and make some changes to it. Please let me know how to copy a standard SAP report as a Z report. Is there any simple way or will I have to open the source code and copy it into the new Z program? If that is the case, how will I copy the screens and related PBO/PAI events?
Please provide me a step-by-step solution.
Thanks & Regards,
MadhurHello Madhur,
As Raja had said, yuo could just copy the program from SE38. But just remember a few points:
1. If the standard report is being used in some other programs, then there's no way you can make your Z-report get used in all such instances. I suspect that you may not want to do that anyways, but just in case.
2. Just also check out if the standard report you're talking about has any INCLUDE programs within it. If there are too many standard INCLUDEs in the main report, then you might have to decide whether you need to copy all of them too, or let them be as they are.
3. You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
I have experienced some problems with respect to the second and third points in the past, so it is worth it to be a bit careful.
Regards,
Anand Mandalika.
Regards,
Anand Mandalika. -
Standard SAP reports for detailed Service Entry Sheet data
Hi All,
I am searching for standard SAP reports to extract the detailed Service Entry Sheet data out of SAP. For example, I need the deailed information like Service Entry Sheet Number, Purchase Order Number, PO line item number, short text, Posting Date, External Number, Service number, Quantity, Gross Price, Cost Object (Order or Network or WBS), Personal Number (if applicable), workday. I couldn't find any standard report. So if anyone know it, please help me.
Thanks,
TingHi,
In ME2S also you can get good report by execution and by clicking SO/ PO number.( where cost object can be viewed)
If you are very much specific, go for development
Regards,
Biju K -
Standard text displayed correctly in print preview but not in print
Hi,
I have a script in which a standard text has to be printed in the output.
The standard text contains some german characters.
These characters are displayed correctly in print preview but not in print.
The text is maintained in 3 languages DE,EN and Russian.
The same text is being printed in some standard report. But that is displayed correctly both in print and print preview.
Please suggest something.
Regards,
Richa AggarwalHi Richa,
Check this document from SAP: [help doc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0652a95-5f0b-2a10-5aba-c085f8bbe6d6?QuickLink=index&overridelayout=true]
It indicates that you have to be sure to select "Unicode" fonts for your SAPScript form to ensure the proper printing of "Unicode" characters. If a character does not display then that means it does not exist in the font that you are using.
Regards,
Ryan Crosby
Maybe you are looking for
-
Itunes app does not stay open since updated to ios7
Since updating to ios 7 when I open the iTunes Store app it closes straight away. I have reset and restored the phone worked fine once or twice but has started to do it again. Help.
-
Hello everbody, i've encountered a quite annoying problem with my notebook display. It seems to have developed some kind of a "digital" stain i can't really get my finger on, having already searched the forum about similar issues, and none have reall
-
GZIPPed XMLEncoded HttpRequest post parameter!
Hi All, I'm devolping a standalone java application that builds some kinds of objects and needs to send them to a servlet in xml fashion (via HttpUrlConnection with "post" method). My problem is that now this objects are too big so i thought: no prob
-
I was traveling for a while and didn't have my external backup drive with me. So my machine was not backed up for 40 days. Now that I am home, Time Machine is trying to back up. However, it starts preparing for the backup but never gets around to doi
-
File Operation(Urgent)
I am a student. I have hand on project. This is handling File. Now i am in the experiment 3. In experiment 1, I finish my lab. Experiment 3 is on Inheritance and Polymorphism. 1. customer( Super class ) 2. Account1, Account2, Account3 ( Subclass ) 3.