Standard text problem
In my script they used standard text, but in that text they used default paragraph formats. Now I want to use new paragraph format. But I do not want to change standard text. I tried to given new paragraph formats , but not reflected .
I always change the standard text and assign it to the transport req, coz I never found a solution for it.
Similar Messages
-
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 -
Sapscript Standard Text Printing - Format Problem
Heros,
I wanted to print one standard text(Basic Text of Process order) in sapscript.I am using the INCLUDE command instead of Read_text FM , so that I can keep the Paragraphs of that text intact.But I am falling short of two requirements of my client.
1. He has highlighted Some words of the text and underlined some of the text. He wants that character format intact in spascript.How can I do that?
2. The script initaly was using Read_Text and was storing the value in a variable wa_line and was printing in script as
<b>[LI ] DESCRIPTION: &wa_line&</b>
so it was printing like
DESCRIPTION: fasfoihfaishfiahfiafhfihfahfiashfiahfahfiafiasfihahfisahfafasi
But now I am using INCLUDE command as follows
<b>[LI] DESCRIPTION:
[: /] INCLUDE OBJECT BLAH BLAH</b>
So it is printing like
<b>DESCRIPTION:
fasfoihf
aishfiahfiafhfihfa
hfiashfiahfa
hfiafiasfihahfisahfafasi</b>
I want to get them in same line.
I mean
<b>DESCRIPTION: fasfoihf
aishfiahfiafhfihfa
hfiashfiahfa
hfiafiasfihahfisahfafasi</b>
Is that possible?
<b>Reward Point Guranteed.</b>Hi Anid,
When you are creating your standard text the default value in the tag column is *. If you change this value to = (Extended line) the display of standard text will start in the same line as the previous value (in your case it will display the standard text in the same line as DESCRIPTION:).
Hope this solves your problem!
Regards,
Saurabh -
Problem uploading standard texts
I am uploading standard texts from text file onto SAP.
I recorded it properly with the data, but while uploading I face this problem. For example the foll text
"Price will be NY's posted price at Slaugxxxx Bio Plant on the day of deliveries."
It is uploading only till "del" of deliveies", i.e everything other than 'iveries." is getting uploaded into the first line of the transaction so10. The rest of the text is not going to the next line. How do I solve this problem. Can you help me out.Hey i figured out a different solution using some logic
*This is the internal table having the list of
*standard texts to be *uploaded from a *source file.
LOOP AT tb_stdtext.
DATA : lv_textline(40) TYPE c.
DATA : lv_zero TYPE i VALUE 0,
lv_seven2 TYPE i VALUE 72,
lv_loopcount(2) TYPE n VALUE '02',
lv_loopvalue TYPE i,
lv_data(1000) TYPE c,
lv_buff(72) TYPE c,
lv_strlen TYPE i.
lv_textline = 'RSTXT-TXLINE( )'.
MOVE lv_loopcount0(2) TO lv_textline13(2).
PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
lv_textline.
PERFORM bdc_field USING 'BDC_OKCODE'
'=EDNP'.
lv_loopvalue = lv_strlen / 72 + 1.
DO lv_loopvalue TIMES.
MOVE lv_loopcount0(2) TO lv_textline13(2).
MOVE lv_data+lv_zero(lv_seven2) TO lv_buff.
PERFORM bdc_field USING lv_textline lv_buff.
lv_loopcount = lv_loopcount + 1.
lv_zero = lv_seven2 .
lv_seven2 = lv_seven2 + 72.
IF lv_seven2 > lv_strlen.
lv_seven2 = lv_strlen.
ENDIF.
ENDDO.
lv_loopcount = lv_loopcount - 1.
MOVE lv_loopcount0(2) TO lv_textline13(2).
PERFORM bdc_dynpro USING 'SAPLSTXX' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
lv_textline.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TXBA'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_dynpro USING 'SAPMSSCE' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RSSCE-TDNAME'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TXBA'.
PERFORM bdc_field USING 'RSSCE-TDNAME'
tb_stdtext-tdname.
PERFORM bdc_field USING 'RSSCE-TDID'
tb_stdtext-tdid.
PERFORM bdc_field USING 'RSSCE-TDSPRAS'
tb_stdtext-tdspras.
ENDIF.
lv_zero = 0.
lv_seven2 = 72.
lv_loopcount = '02'.
lv_loopvalue = 0.
PERFORM bdc_transaction USING 'SO10'.
ENDLOOP. -
Problem in using standard text in SAP Script
Hi All,
I have to replace English text hardcoded in a script with standard texts (SO10) in Spanish. When I am including the standard text in script, it is displayed in different font and bigger size. I want to reduce the size and change the font of standard text. Is there any way to do that?
Thanks in advance
Radhika
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jan 4, 2010 2:37 PMPlease check the links below , which might hel you..
Re: Setting font to standard text in sap script
How to change stranded text font in script
Regards
Satish Boguda -
Problem in Transporting Standard Text Elemt
Hi Friens,
I have changed the standard text through 'so10' now how can i add that to my transport request such that i can transport that to my production pls help me.Hi,
U can do like this..
1. a little tricky
2. goto se09 and create a new
customizing rqeuest and u can use the request u want to add.
3. after that
in the object list,
go in edit mode
and a new window will come
where u can add the objects(in table control)
4. there u put
program id = R3TR
object type = TEXT
object name = TEXT,YHRS_FNF_LTR,YHR1,E
where
YHRS_FNF_LTR = name of standard text
YHR1 = TEXT ID
E = english language
Cheers,
Simha.
Reward if it helps.. -
Hello experts,
In so10 tcode when defining the standard text , how to write the french language special characters.
for example : in french: Nous vous informons par la présente de ce qu'aux termes d'une .
In the above example when i copy this particular line in text editor of standard text(SO10).
the words shown in bold are copied like qu'AUX and d'UNE and when i check for character and paragragh formats its giving error as "too many parameters."
i have define the standard text in so10 as shown below:
DEFINE &WA_SECURITY_TEXT00& := 'Nous vous informons par la présente de'
DEFINE &WA_SECURITY_TEXT01& := 'ce qu'aux termes d'une convention de'.
kindly avise with solution.
Thanx in advance .
Sainath.hello,
i have created the text in FR only.
cau u please suggest any other solution.
Thanx in advance.
sainath -
Facing a problem with standard text in custom program
Hi,
As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = G_THEAD-TDID
FLANGUAGE = G_THEAD-TDSPRAS
FNAME = G_THEAD-TDNAME
FOBJECT = G_THEAD-TDOBJECT
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES = I_TLINE
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ELSE.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
HEADER = G_THEAD
SAVE = 'X'
TABLES
LINES = I_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF.
ENDIF.
Can you please help me how to do this
Regards
nagBut when click save button then it needs to be come out of the screen without click back button.
can you explain me, what do you mean by that.
~satya -
Problem in populating dynamic data in standard text
Hi Guru's,
I am finding difficulties in populating dynamic data of a standard text. I have created a standard text PM30_T010 (Type ST) as below.
Objects Used:
Equipment : &NOTIFICATION.EQUIPMENT&
Floc : &NOTIFICATION.LOCATION&
I have added the container NOTIFICATION at the task level and call the standard text.
INCLUDE PM30_T010 OBJECT TEXT ID ST LANGUAGE EN
But the equipment number and location values are not getting populated. At the same time, if I place the same text (mentioned above) in the description section of Workflow task instead of calling the standard text, equipment number and location values gets populated as expected.
Please let me know how to achive the same through standard text.
Regards,
ParthibanHello !
Check the binding and data types of the containers involved in binding.
Also check in workflow log, whether the workflow containers are populated with required values.
Regards,
S.Suresh. -
How to Print 25page standard text in Adobe form
Hi Form Gurus.
My requirement is to print a 25 pages form of standard text. Can any one please help me.
Thanks in advance.
Regards
ASAHA1
Moderator message: please work yourself first on your requirement, post specific problems later if necessary, always search for information before asking
locked by: Thomas Zloch on Aug 31, 2010 9:11 AMhi,
You can create a text module like you do for Smartforms and then you can add that in the interface and drag n drop it in the layout.
regards,
Sakshi -
Smartforms,How to display different standard Text in a Text element.
In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all maintained in SO10 in a same text element,how to do it?
if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
Is there anyone can tell me?
thanks.use Alternative to control it no problem
for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
TEMPLATE1
Alternative case1
YES
INCLUDE TEXT1(display SO10) [set output option line1 column2]
NO
Alternative case2
YES
INCLUDE TEXT2(display SO10) [set output option line1 column2]
NO
Alternative case3
every case your SO10's text is always display at line2 column2
just try to test it ,you can know -
How to populate values to the variables in standard text
Hi friends,
I have maintained a standard text in So10 like this invoice number&vbeln&.
Inside a function module i want to read this text and populate the value to the variable &vbeln&.How to achive this.
Rgds.Thanks Simon but i didn't understand your answer but i will tell you the problem that i want to solve with foreach or iterator
i have a view that have employeeId and employeeName and ManagerID
create table employeesView
EmployeeId Number,
EmployeeName varchar2(100),
ManagerId Number
}i want to make a foreach or Iterator to make
every Employees with the same manager id to be in the same <af:panelGroupLayout>
i mean
<af:foreach or af:Iterator >
<af:panelGroupLayout >
<af:commandButton id="cb1" text="All Employees With Manager Id 1" />
</af:panelGroupLayout >
<af:panelGroupLayout >
<af:commandButton id="cb1" text="All Employees With Manager Id 2" />
</af:panelGroupLayout >
<af:panelGroupLayout >
<af:commandButton id="cb1" text="All Employees With Manager Id 3" />
</af:panelGroupLayout >
</af:foreach or af:Iterator >How can i do this -
Using Standard text in scripts
Hi all,
I had a problem while printing standard texts in scripts.
I Know how to print standard text if we have to print it from the begining of window using
INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR
But my problem id i have print it after a hard coded text like
Delivery schedule: 'here i have to print the standard text'.
can any one please help me out how to solve the problem
Thanks & regards
sreehari pHi,
Here's one my brother taught me - you can actually trick the system to accommodate this requirement.
Ensure that you use 2 different paragraph formats in your INCLUDE statement, using the PARAGRAPH and NEW_PARAGRAPH clauses, ie.
INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PARAGRAPH P1 NEW-PARAGRAPH P2
Paragraph P2 (which will be used as the first line) should be created as having a Line Spacing value of 1 TW (1 twip) which is less than 1/1000th of an inch. Also, set the Left Margin value to an offset which brings the text to the right of the Delivery schedule literal.
Paragraph P1 (which will be used for all subsequent lines) should be set up as normal - ie. use the same paragraph format as that for displaying your "Delivery schedule:" literal. If you need the text to be indented in line with the first line, then copy your existing paragraph to a new paragraph but set the Left Margin value to the same as that in P2.
What this does is to output the first line of text indented by the margin after skipping 1 twip, giving the illusion that it's actually on the same line. Since subsequent lines are output with a normal (or normal/indented) paragraph, that just follows with normal spacing on subsequent lines.
Hope this makes sense.
Regards, Andy -
Sapscript and Standard Text - Polish Characters not printing
Hi,
I have created an English Sapscript and translated it to Polish via transaction SE76.
Changing my PC Region and Language settings to Polish allowed me to enter Polish Characters into Hardcoded text in the Sapscript and Standard Text via s010.
I have two problems:
1) With my PC Region and Language settings set to Polish, when I create my sapscript output some of the polish characters that I have entered via SE76 and SO10 do not appear and are replaced by others e.g.
ę is dispalyed as ê
ć is displayed as æ
ń is displazed as #
2) I have a business requirement to be in England Logged with PC Region and Language set to English but to print a sapscript output in Polish. Is this possible.
We are currently on non unicode SAP system.
Please can anyone advise.
RegardsHello,
SAP discourages mixed code page or MDMP systems and with good reason. If there is any possibility of you upgrading to a Unicode system in the near future you should try to wait for it. Supporting multiple languages in Unicode is easy, in MDMP it can be quite tricky. And MDMP makes the move to Unicode more difficult.
That said, your BASIS team can enable Polish and you can print in Polish while your PC is set for English. The SAPScript/Form must be in Polish or using an INCLUDE that is LANGUAGE 'PL' to let SAP know which code page to use when printing.
Seriously, look at moving to Unicode, you need to do it eventually anyways.
Michael -
Inserting hypertext link in a Standard Text ?
Hi all,
Is it possible to insert an http link in a standard text.
What I'm looking for, for example :
VL02N -> Header Text -> ( I create a new text ) which will contains : 'http://www.google.com'.
So that, if I click on, it opens IExplorer with the right page.
Best Regards,
Erwan.Hi Erwan,
look here - it seems ti be the same problem:
Re: Program/Report Documentation link to web page
Andreas
Maybe you are looking for
-
Unpivot task is generating rows for null inputs
So I have a C# application (VS 2012 with .NET4.5) that builds SSIS (SQL2012) packages programatically. the packages can be opened in the designer and they run fine. However, there is one case that is giving me a problem. I have an OleDb source con
-
Acrobat 9 on Windows 7 - cannot open
At work we have a number of users running Windows 7 Pro x86 and Acrobat 9 Standard. Within the past two weeks I've had 3 users running this setup complain to me that they've been periodically seeing an issue where they cannot open a PDF file. After
-
How to delete empty pages in in-design document?
Hi All, How to delete empty page which may contains text frame with no contents, or may be no text frame... Plz provide me the script... Thanks in advance, Vel....
-
Generated helpset not displayed correctly in OHW 2.0.2
Hi, I have a servlet which generates a helpset file. To test my helpset, I plug in the url to the ohwconfig.xml in the ohw-demo-2.0.2 sample; ie C:\Tomcat 5.0\webapps\ohw-demo-2.0.2\helpsets\ohwconfig.xml The change in the ohwconfig.xml looks like th
-
Removing duplicates from catalog in elements 11
I have a lot of duplicate pictures in my catalog that I would like to delete. Is there a way to have all duplicates agreated and delete in one shot?