Header text in SAPscript
Hi,
I am working on SAP script.THE HEADER TEXT IN THE SCRIPT HAS TO BE CHANGED,
""INclude &TVKO_TXNAM_KOP&OBJECT TEXT ID ZOTC LANGUAGE &VBDKL_SPRAS_VST&""
I have searched for the location & also checked the TVKO TABLE for values of TXNAM_KOP field using FM READ_TEXT,but the text to be changed is not there in the table.
Thanks in advance.
Hi,
You should go to SE71 and enter your script name. There in menu options-utilities you can activte the debugger. Execute the script.
When you reach in the statment below
""INclude &TVKO_TXNAM_KOP&OBJECT TEXT ID ZOTC LANGUAGE &VBDKL_SPRAS_VST&""
check the variables
The variable: &TVKO_TXNAM_KOP& contains text name
Pass 'ZOTC' as object id
The variable &VBDKL_SPRAS_VST& contains the language
Take these values and go to SO10 and provide there. Inside you can change the texts.
Similar Messages
-
I have copied MEDRUCK sapscripts to ZMEDRUCK and I have a requirement to print some rfq header text. I have got the Text ID (A01), Text name (600000022), Text Object (EKKO).
What is the syntax to print this header text using a INCLUDE statement ? I have to print the heading and the contents of this text object. Can I get some examples ?
Also, the heading should not print if the text is blank.
Thanks.
Edited by: NewComer on Dec 27, 2007 6:06 PMCheck these threads. U have sample code.
Display long text in SAPScript
Text printing in SapScript
Regards,
Maha -
How to change the header text on output type in sapscript
Dear All,
In the sapscript, I would like to changes the header text from invoice number to sales number on the output type z001.
Could someone can guide me?
Thanks.Hi,
Please go through following link :
http://forums.adobe.com/thread/870081#870081
Thanks and Regards,
Vibhuti Gosavi | [email protected] | www.infocepts.com -
How to Print Header text in PO SAPScript
Hi Gurus,
I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window. I created a a perform and call it from the Script and read the heder text by using FM Read_text
DEFINE &TEXT1& = ' '
PERFORM GET_TERMS IN PROGRAM ZMM_MEDRUCK_ROUTINE
USING &EKKO-EBELN&
CHANGING &TEXT1&
ENDPERFORM
PROTECT
&TEXT1&
ENDPROTECT
but while returning I am getting only one line. Can any body suggest me how I can read the Header text in PO script. Please provide the sample Code.
Regards
SonyHi,
Use this Function module 'READ_TEXT'
T_lines contains the header text, you can loop it and display it in sap script
Function module to read the header text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'F01'
language = sy-langu
name = ekko-ebeln
object = ekko
TABLES
lines = t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Regards
Krishna -
Can we print header text in a tabular format...? urgent
Hi,
In the below program i need the text type payment history in a proper format.so plz help me regarding this.
this a just a test program,you just execute this program.its running.
i am feching the text payment history using the function module READ_TEXT.
GO TO (T.CODE IS VA42).-> GIVE A CONTARCT NUMBER THEN TEXT TYPE IS PAYMENT HISTORY. UNDER THIS TEXT TYPE WE HAVE ATEXT LIKE THIS:
Due date Invoice Amount Invoice no. Status Timing
8/1/2005 2,486.667.00 9887767798 Paid sept-Dec 05
12/1/2005 2,567,778.00 987662156 paid Jan-apr 06
i fectch all this by using read_text function module in the table t_item.(plz see in below program)
now the requirement is we want to print this payment history text as a proper format i.e in a tabular format...so is it possible....
actualy, we r not printing in the output screen.
we generate a flat file in this payment history is printed as a tabulr format.
can it is possible...if it plz reply me.
REPORT YTEST_ADD_DAYS_TO_DATE .
TABLES :tline.
TABLES :
vbrk,
vbrp,
vbpa,
kna1.
CONSTANTS :
c_re TYPE vbpa-parvw VALUE 'RE' . "Bill-to-Party
data: l_flag type c value cl_abap_char_utilities=>horizontal_tab.
*parameters: new_date type sy-datum.
data: timing type sy-datum.
*new_date = new_date + 31 .
*write: / new_date.
*CALL FUNCTION '/BEV4/PLPS__ADD_MONTH_TO_DATE'
EXPORTING
months = '01'
olddate = '20070101'
IMPORTING
NEWDATE = timing.
Write : / timing .
write: / sy-datum . .
CONSTANTS :
c_vbbk TYPE thead-tdobject VALUE 'VBBK' ,
c_zi03 TYPE thead-tdid VALUE 'ZI03' .
Types:
BEGIN OF ty_item ,
Pay_history(1000) TYPE c ,
END OF ty_item .
DATA :
t_item TYPE STANDARD TABLE OF ty_item ,
w_item TYPE ty_item ,
lt_item TYPE ty_item ,
t_tline TYPE STANDARD TABLE OF tline ,
w_tline TYPE tline ,
t_tlines TYPE STANDARD TABLE OF tline-tdline ,
w_tlines TYPE tline-tdline .
Type Definition *
Invoice header and item table
TYPES :
BEGIN OF ty_vbrk ,
vbeln TYPE vbrk-vbeln , " Billing Document
fkart TYPE vbrk-fkart , " Billing type
fkdat TYPE vbrk-fkdat , " Billing Date
zterm TYPE vbrk-zterm , " Payment key
netwr TYPE vbrk-netwr , " Amount due
END OF ty_vbrk ,
BEGIN OF ty_vbrp ,
vbeln TYPE vbrp-vbeln , "Billing Document
posnr TYPE vbrp-posnr ,
vgbel TYPE vbrp-vgbel ,
vgpos TYPE vbrp-vgpos ,
aubel TYPE vbrp-aubel , " Sales Document
aupos TYPE vbrp-aupos ,
matnr TYPE vbrp-matnr ,
arktx TYPE vbrp-arktx ,
END OF ty_vbrp ,
Partner table
BEGIN OF ty_vbpa ,
vbeln TYPE vbpa-vbeln , " Document#
posnr TYPE vbpa-posnr ,
parvw TYPE vbpa-parvw , " Partner funtion
kunnr TYPE vbpa-kunnr , " Customer#
END OF ty_vbpa ,
Customer master table
BEGIN OF ty_kna1 ,
kunnr TYPE kna1-kunnr ,
name1 TYPE kna1-name1 ,
ort01 TYPE kna1-ort01 ,
pstlz TYPE kna1-pstlz ,
regio TYPE kna1-regio ,
stras TYPE kna1-stras ,
END OF ty_kna1 ,
****Payment terms table
BEGIN OF ty_tvzbt ,
spras TYPE tvzbt-spras ,
zterm TYPE tvzbt-zterm ,
vtext TYPE tvzbt-vtext ,
END OF ty_tvzbt ,
BEGIN OF ty_t052 ,
zterm TYPE t052-zterm ,
ztag1 TYPE t052-ztag1 ,
END OF ty_t052 ,
****Document flow table
BEGIN OF ty_vbfa ,
vbelv TYPE vbfa-vbelv , " Contract number
posnv TYPE vbfa-posnv ,
vbeln TYPE vbfa-vbeln ,
posnn TYPE vbfa-posnn ,
vbtyp_n TYPE vbfa-vbtyp_n ,
END OF ty_vbfa,
***Contract Data table
BEGIN OF ty_veda ,
vbeln TYPE veda-vbeln ,
vposn TYPE veda-vposn ,
vbegdat TYPE veda-vbegdat ,
venddat TYPE veda-venddat ,
END OF ty_veda .
Data Declaration *
DATA :
t_vbrk TYPE STANDARD TABLE OF ty_vbrk ,
w_vbrk TYPE ty_vbrk ,
t_vbrp TYPE STANDARD TABLE OF ty_vbrp ,
w_vbrp TYPE ty_vbrp ,
t_vbpa TYPE STANDARD TABLE OF ty_vbpa ,
w_vbpa TYPE ty_vbpa ,
t_kna1 TYPE STANDARD TABLE OF ty_kna1 ,
w_kna1 TYPE ty_kna1 ,
t_tvzbt TYPE STANDARD TABLE OF ty_tvzbt ,
w_tvzbt TYPE ty_tvzbt ,
t_veda TYPE STANDARD TABLE OF ty_veda ,
w_veda TYPE ty_veda ,
t_vbfa TYPE STANDARD TABLE OF ty_vbfa ,
w_vbfa TYPE ty_vbfa ,
t_t052 TYPE STANDARD TABLE OF ty_t052 ,
w_t052 TYPE ty_t052 .
DATA :
ld_output TYPE btcxpm OCCURS 0 WITH HEADER LINE,
ld_status TYPE extcmdexex-status ," #EC NEEDED
w_underscore TYPE c VALUE '_' ,
doa0001(50) TYPE c . " Invoice Dataset
Selection-Screen
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_vbeln FOR vbrk-vbeln. "Billing Doc No
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_fkdat FOR vbrk-fkdat . "Billing Date
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS: s_fkart FOR vbrk-fkart. " Invoive type
SELECTION-SCREEN END OF BLOCK blk1.
Start of initialization *
INITIALIZATION.
RANGES :
r_parvw FOR vbpa-parvw."Range table for partner function
CLEAR :
r_parvw .
r_parvw-sign = 'I'.
r_parvw-option ='EQ'.
r_parvw-low = c_re .
APPEND r_parvw .
End of Initialization *
START-OF-SELECTION .
SELECT vbeln
fkart
fkdat
zterm
netwr
FROM vbrk
INTO TABLE t_vbrk
WHERE vbeln IN s_vbeln
AND fkart IN r_fkart
AND fkdat IN s_fkdat .
IF t_vbrk[] IS INITIAL .
MESSAGE I005 .
EXIT .
ENDIF .
SELECT vbeln
parvw
kunnr
FROM vbpa
INTO TABLE t_vbpa
FOR ALL ENTRIES IN t_vbrk
WHERE vbeln = t_vbrk-vbeln
AND parvw IN r_parvw .
SELECT kunnr
name1
ort01
pstlz
regio
stras
FROM kna1
INTO TABLE t_kna1
FOR ALL ENTRIES IN t_vbpa
WHERE kunnr = t_vbpa-kunnr .
SORT t_kna1 BY kunnr .
DELETE ADJACENT DUPLICATES FROM t_kna1 .
SELECT spras
zterm
vtext
FROM tvzbt
INTO TABLE t_tvzbt
FOR ALL ENTRIES IN t_vbrk
WHERE spras = 'EN'
AND zterm = t_vbrk-zterm .
SELECT zterm
ztag1
FROM t052
INTO TABLE t_t052
FOR ALL ENTRIES IN t_vbrk
WHERE zterm = t_vbrk-zterm .
SELECT vbelv
posnv
vbeln
posnn
vbtyp_n
FROM vbfa
INTO TABLE t_vbfa
FOR ALL ENTRIES IN t_vbrk
WHERE vbeln = t_vbrk-vbeln .
AND vbtyp_n = 'M' .
SELECT vbeln
vposn
vbegdat
venddat
FROM veda
INTO TABLE t_veda
FOR ALL ENTRIES IN t_vbfa
WHERE vbeln = t_vbfa-vbelv .
AND vposn = t_vbfa-posnv .
data: w_name TYPE thead-tdname.
LOOP AT t_vbfa INTO w_vbfa .
w_name = w_vbfa-vbelv.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = c_zi03
language = sy-langu
name = w_name
object = c_vbbk
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = t_tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5 .
LOOP AT t_tline INTO w_tline.
split w_tline-tdline at l_flag into table t_tlines .
IF NOT t_tlines[] IS INITIAL .
LOOP AT t_tlines INTO w_tlines .
w_item-pay_history = w_tlines .
APPEND w_item TO t_item .
write: / w_item.
ENDLOOP .
ENDIF .
ENDLOOP .
ENDLOOP .
SPLIT w_tline-tdline AT ',' INTO TABLE t_tlines .
IF NOT t_tlines[] IS INITIAL .
LOOP AT t_tlines INTO w_tlines .
w_item-pay_history = w_tline .
APPEND w_item TO t_item .
ENDLOOP .
ENDIF .
ENDLOOP .
write: / w_item.Hi,
Tcode SO10 can be used to attach standard text in sapscript.
For formatting, plz check the below link
Standard text editor SO10 -
Problem: Create SO with BAPI_SALESORDER_CREATEFROMDAT2 & Head-Text Elements
Hi all,
I hape that sb can help me with my problem.
I have created a ABAP-Program to create sales-orders with the function module:
BAPI_SALESORDER_CREATEFROMDAT2
Everythiunk works fine but I can not create text-elements (from the head) with this bapi.
I know that I have to use the table "ORDER_TEXT" but I do not know how to fill this table.
Can anybody help me?
Best regards,
pb974Hi,
yes, you have to fill the order_text table. The following fields you have to fill:
DOC_NUMBER
-> not to fill, let it blank
ITM_NUMBER
-> if you want to create a header-text then fill ITM_NUMBER with '000000'
-> if you want to create a position-text then fill the related position-number '000010' or '000020'....
TEXT_ID
-> fill this field with the text-id for which you want to create the text.
-> The text-id must be defined in your customizing
LANGU
-> set the language for the text: 'E' or 'D' or......
LANGU_ISO
-> let it blank
FORMAT_COL
-> set a star (*) if you want to have the standard-format. If you have a special format defined in SapScript or in a Style you can set this one.
TEXT_LINE
-> fill in the text
FUNCTION
-> let it blank
see below:
data: i_text LIKE bapisdtext OCCURS 0 WITH HEADER LINE.
Texte...
CLEAR i_text.
i_text-itm_number = '000010'. "Text for Position 10
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 10 - line 2'. "the text
APPEND i_text.
...if your text has more then one row... the same one to do...
i_text-itm_number = '000010'. "Text for Position 10
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 10 - line 2'. "the text
APPEND i_text.
...and so one...
and now text for position 20...
CLEAR i_text.
i_text-itm_number = '000020'. "Text for Position 20
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'D'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'Text für Pos. 20 - Zeile 1'. "the text
APPEND i_text.
...and now the text for position in englisch
i_text-itm_number = '000020'. "Text for Position 20
i_text-text_id = 'ZA10'. "Defined Text-ID
i_text-langu = 'E'. "Language German
i_text-format_col = '*'. "Standardformat
i_text-text_line = 'This is text for Pos. 20 - line 1'. "the text
APPEND i_text.
I hope it's a help for you.
Erhard -
What is the use of Standart text in SapScripts.
What is the use of Standart text in SapScripts?
How to Use in Forms?Hi Puja Das,
Welcome to SCN,
As per knowledge, Standard text is mainly meant for Functional People
For eg : Try changing a Sale Order no. In VA02.
If you see the Header or Item details You will find Texts tab. In that you can see Form Header, Header Note1/2.
Here the Functional / User will enter some text according to their understand, when they print regarding they need that text on a FORM.
Thus these text will be stored in a Standard Text format.
And You can Use Standard Text in Script as follows:
/: INCLUDE DATE OBJECT TEXT ID ST
Regards,
Suneel G -
VL01N / VL02 add header text
Hi All,
My task is to create Goods Issue, Including a Header Text - A suboption called Text. In that for Deaparment description I want to add two lines of information.
Any FM avilable.
Any BAPI to create the Header Text.
Advance Thanks,
Balamurugan.RHi Jay,
What is save_text function module SAPscript: Save text. For my purpose also shall I use this FM?.
Where it will store (tables) and How VL02 or VL03 Will retrieve it.
give me little more explanation.
Thanks,
Balamurugan.R -
INCLUDE in header text not processed in Smartform
Hello all,
In transaction ME22N the user is adding header text in this manner:
They go into the SAPscript editor, go to insert and select standard text, select from the list of standard text, and it adds
/: INCLUDE Z_SPA_SINST OBJECT TEXT ID ST in the editor
Now going back to ME22N in the header text it also displays
INCLUDE Z_SPA_SINST OBJECT TEXT ID ST. How is this line processed in Smartforms?
If other header text is added by entering directly in the SAPscript editor it will show on the PO but not this INCLUDE line.
Thank you,
JRHi,
declare a text type and use the include text instead of text element and
concanate the PO NO and the ITem No to Text Name G_TEXT_KEY
give the value for the field
Text Name &G_TEXT_KEY&
Text Object EKPO
Text ID ST
Language &SY-LANGU&
for more info refer form /SMB40/MMPO_A
Regards
Shiva -
Delivery Header text table and feild
Hi all,
Can any one guide me where delivery header text is saving i check table STXH ( STXD SAPscript text file header) and field TDID but while i am checking in table i am not getting any text data either based on text or any other combination
can any one guide me which table its saves .. so
Thanks
RajeshHi,
It stores in STXH and STXL tables only.
Which particular header text do you want to find?
In the delivery; go to the particular header text in edit mode and double click on it to open the text editor.
The from the menu options Go to-->Header.
You will get the required information such as
Text Name
Language
Text ID
Text Object
Use the same in STXH and STXL table.
Note that you have to specify the complete delivery number with the initial zeros.
Regards,
Ankur Parab -
Indent /tab position for text from INCLUDE texts in SAPscript
Hi, ABAP colleagues!
Need your help on this sapscript problem: How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
Or, how to control tab positions for texts which were extracted from INCLUDE text commands in SAPscript?
I defined a paragraph format with tab stop at 8 CH so that with 2 commas (,,) my text will be displayed there. However it always appears to the left (e.g. 1st column) and not indented at the proper column for description/text (e.g. which is in second column).
Pls help, bec a different heading and information is not acceptable to client for the Thailand characters.
Above is the description of the problem. Below are some technical details.
For specific example, I am editing Zversion of standard sap MM form MEDRUCK Window Main - Text Element Item Text.
BG ,,&TTXIT-TDTEXT&
/: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
/: NEW-PARAGRAPH BG
So far, tried these approaches:
PARAGRAPH
NEW-PARAGRAPH
LANGUAGE '2'
THANGSAN font
Any ideas?
Thank you so much in advance for all your help. Our project team will really appreciate it. May the Lord bless you as we go through our SAP work!
Sincerely,
CelesteHello Caleste,
Please let me know what settings you have done to solve this issue.
Help me with steps for Spool Request/Print settings.
Regards!!
Surya -
Creating screen for header text
Hi Experts,
I am creating a Z transaction for our business process. In the header part the users want to enter header texts as it is available in SO/PO etc. I know the function modules read_text, save_text and commit_text.
I would like to know how I will be able to create the texts types and assign it with my document numbers.
Thanks,
AbdullahThis is described in [sap library - SAPscript Control Tables and Structures|http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/0db81a494511d182b70000e829fbfe/frameset.htm] (transaction SE75, tables TTXOB, TTXID, etc.)
To make a relationship between a text (primary key TDOBJECT, TDID, TDNAME, TDSPRAS) and a document, concatenate document primary key into TDNAME field. -
Order header text problems when using transaction EC20 (front office)
Hello all,
I am to debug a problem. I use transaction EC20 to capture information about connection objects and devices followed by creation of a work order. At one point in time I am presented with a screen where I can enter order header text (looks like SAPscript lines of text). However, even if I enter 3, 4 or more lines, only the first line of the text is captured.
I then use transaction IW33 to look at the order and will see the first line only. Any idea if this is a SAP bug, or something else. If SAP bug, then any OSS note or remedy?
Your help is greatly appreciated.
AGHi,
the screen you said look like a script editor screen is actually for trext maintainence...you can find such screen in se 38 documentation tab.this screen still exists because 3.1 and the versions before were using this screen for editor.
now when you say it captures only 1 line just go and find out the length of that particular field.If.
Please let me know if the problem still exists
Thanks
vivekanand -
Issue about header text from text determination
Hi experts,
I have created the text determination for the quotation header and when I created the quotation, the header text can be carried out but the background color is grey, I can't modify the text. Only when I click the detail button, I can modify the text in the popup screen, is there any solution that make the header text can be modified directly?
Thanks in advance.
Best regards,
Chris GuBecause I formatted the text in SO01, so it can only be edited in the 'Detail' view or in the SAPscript Editor.
Get more details through SAP Notes 502941. -
Header text not getting populated in PO in R/3 from SRM!
Hi,
Our requirement is to automatically populate the email ID of the user in the header text once the PO is created in R/3 with reference to Shopping Cart in SRM.
our scenario is classic.
So far, we have used the following Badis in our development but seems to be not working.
1.ME_Process_PO_Cust
2.BBP_PO_INBOUND_BADI
Need your inputs to solve this email querry.
Regards,
Archit Gandhi
Edited by: Archit Gandhi on Feb 4, 2011 11:14 AMCheck "Text Schema" & "Text Mapping" config part under Cross-Application Basic Settings..
This should help you.. If you need help in configuration let me know..
Thanks!!
Bharath
Maybe you are looking for
-
Adding additional expenes via DI API
Hi folks, I have an addon which creates an Invoice based upon a Delivery which has been working fine. The client is now using additional expenses and I need to move these across from the Delivery Note to the Invoice. I am receiving an error of 2028 b
-
Creation of material for both service and delivery
Hai all, we want to create a material for which both delivery and service is to be possible simultaneously. Is it possible if yes let me know the material type for this. Thanks in advance, S.Jenibalet.
-
HP Touchsmart 310-1125Y - Missing USB Receiver, how can you get a replacement?
I purchased an HP Touchsmart 310-1125Y all-in-one computer and the USB Receiver is missing. Does HP sell replacement receivers? I tried searching but just found the part number of the mouse. The mouse's part number is 603289-001 and the keyboard is K
-
Plug in for visual studio 6.0 in acrobat sdk 6.0
Dear Friends, I am absolutely in to the pdf plug in work. Can any one please help me, to know that how to install the plug in for visual studio 6.0. I have installed acrobat sdk 6.0 , acrobat professional and visual studio 6.0 in my system. Please su
-
A Link with parameters to another page in a report
Hi, I need to pass a link to another page with parameter, all in a report - But I can't use the column link because I already use to another link. Help!!