RFQ header text in Sapscripts
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 PM
Check these threads. U have sample code.
Display long text in SAPScript
Text printing in SapScript
Regards,
Maha
Similar Messages
-
Copy the PR header Text to RFQ header Text while Creating W.R.T
Dear Guru's
While Creating with reference I want to Copy the PR Header text into RFQ Header Text..
Please do the needfulll
Thanks in Advance.
GSANADear You can not copy the header text of PR to RFQ in the standard SAp, as PR is internal document and RFQ is external. but if you even want to do it then contact your ABAP team.
regards,
qsm sap -
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. -
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 -
PR HEADER NOTE TEXT TO RFQ HEADER NOTE TEXT
Hello all
We are maintaining the PR Header Note & we are creating the RFQ with reference to the PR , we are maintaing the PR Header note , but it is not getting copy in RFQ Header note
Kindly suggest
Thanks in advance
Regards,
Rajeshhello
Thanks for reply
After selecting the Header note in RFQ under Copying rules for header text & Selecting the Header note only text linkage is allow is RFQ
whether i have to make new entry as PR
No entry of PR availbale in for selection
Please suggest
regards
Rajesh Dalal -
Hi all,
I have the below the requirement.
Whenever RFQ is created (manually, referring PR thru ME57, or referring contract) some
text need to be populated in 'Header text' of RFQ Header.
How to achieve the requirement? Are there any user exit which could fulfill
this requirement.
Please give your inputs.
Regards,
ParthaHi,
Can you please explain in detail?
My requirement is that the text need to be populated automatically
whenever RFQ is created.No User intervention on this.
Partha -
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 -
Hello,
Mine client requirement is like they want default header Text for all PO.Please guide me, what is the customization required?
Regards,
JyotiHi jyoti,
As per my understanding of your requirement, you can try to maintain the default PO Text in the "Vendor Master Record" or in "Contract" if applicable and then you need to do the following customisation to adopt these texts in the Purchase Orders.
IMG -> Material Management -> Purchasing -> Purchase Order -> Texts for Purchase Orders -> Define Text Types for Header Texts and Define Copying Rules for Header Texts.
In Define Copuying Rules for Header Texts -tab you can maintain that in which Target Header Text, the deault PO text should be adopted and from where i.e. From Vendor Master Record or Contract or RFQ. Check which of this satisfy your requiremnt to the maximum extent.
Please check this and see if your requirement is fulfilled or not.
Regards,
Ankit
Edited by: Ankit Patodi on Jan 12, 2011 11:55 AM
Maybe you are looking for
-
Variable not processed after transport
Hi all, I have several DS applications. All use an Input ready customer exit variable with a default date value for previous workday. On dev System all is fine and working. After promoting the applications to prod System the variable is populated wit
-
HT201263 My iPod Touch 4th Generation keeps turning on and off repetitively.
I've tried using the home and sleep buttons to turn it off but when it turns off it just turns back on when I plug it into the computer. No way I can seem to fix it and I couldn't find a solution.
-
ThinkPad 2nd HDD Adapter for T40 -do I need to configure the hard drive?
I purchased a new Samsung HM160HC hard drive and a Thinkpad 2nd HDD adapter for Ultrabay slim for a Thinkpad T40. When I install the PATA hard drive into the adapter do I need to configure the hard drive as slave, cable select, or leave as master? An
-
i want to use the mac mail application...i cant figure out how to set it up...i have a hotmail account...if hotmail doesnt work please tell me how to use gmail or yahoo accounts please....i am not very good with figuring out things on the computer so
-
Any ways to script or automate Logic Pro?
I'm using Logic Pro 8. I'm dabbling in algorithmic music generation. As one would expect it's mostly MIDI based. What I'd really like to do is to be able to alter other aspects of an audio project in an automated way - especially audio unit or simila