Convert OTF along with Print preview in SAP Script
Hello All,
I was getting a print Preview for the sap script, now with the new requirement, I had to capture otf data too in OPEN_FORM. so I have added "TDGETOTF = X", and that gives me otf data which I am converting it to PDF. now the problem is I am not getting preview anymore. my requirement is to have both, Preview and otf data. I have tired serching in forums and also used a function module SSFCOMP_PDF_PREVIEW, but no luck. what am I missing here. Please suggest.
Thanks-
TDPAGESLCT
TDCOPIES 1
TDDEST LOCL
TDPRINTER
TDPREVIEW X
TDNOPREV
TDNOPRINT
TDNEWID X
TDDATASET SAP11
TDSUFFIX1 LOCL
TDSUFFIX2 1000
TDIMMED
TDDELETE
TDLIFETIME 7
TDSCHEDULE
TDSENDDATE 00000000
TDSENDTIME 000000
TDTELELAND
TDTELENUM
TDTITLE
TDTEST
TDPROGRAM
TDSCRNPOS 000000000000000
TDCOVER D
TDCOVTITLE
TDRECEIVER ABCDEFGH
TDDIVISION
TDAUTORITY
TDARMOD
TDIEXIT
TDGETOTF X
TDFAXUSER
TDRDIDEV
TDNOARMCH
TDFINAL
RQPOSNAME
BCS_REQST
BCS_STATUS
Maybe you can call the form twice - once with tdgetotf = 'X', the second time with it blank.
Similar Messages
-
Problem with printing graphics in SAP Script
Hi,
I am facing problem with printing of graphics in SAP Script. I uploaded a bitmap file from pc to se78. Then I inserted it in SAP script.
I am able to view it in the printpreview as well as in the spool number. But it is not getting printed.
Plese tell me the solution.
Thanks,
SrinivasYou need to check your printer settings.Might be drivers are missing.
-
How to deal with Print Controls in SAP SCRIPT
Hello All...
I have two requirement in SAP SCRIPT for which I will need to use PRINT CONTROLS.
1) To print a window with 90 degree rotation
2) In the same window I wanted to have black background and white text printed on it.
For rotating the text,
Primary basis I created two Z print controls using SPAD.
One to rotate with 90 and another to rotate with 0.
In SPAD I assigned \e&a90P and \e&a0P respectivaly in device type.
Now in sap script window I specified below commands...
/: PRINT-CONTROL Z90
= TEST
/: PRINT-CONTROL Z00
but in the SP01 the text is still printing Horizontally...
Also Is there any standard print controls which set backgroud to black for specific window.
and how to use that?
Please help me to resolve this issue.
Thanks in advance,
ShwetaHi,
Occassionally, when you make frequent changes to your SAPScript, the system can get out of sync.
When you view the form, the old data get display without your changes.
This can be fixed by deleting the SAPScript LOAD with program RSTXDELL.
Hope it helps.
Reward if helpful.
Regards,
Sipra -
Problem with printing amounts in SAP Script
Hello All,
I have multiple line items to be printed in which one of the column contains amount value. I have a problem printing amount value aligning it to the right of the column.
The amount is printed as below
1.202,00
18.202,00
19.202,00
I want to print 1.202,00 right justified so that it would be aligned to the other amount values.
Pls help me out.Sorry:-)
if you define the line format with the name RJ(right justified) you must use this like follow.
RJ| &12334,11&
and not
<br>&12345,11& </>
now is that clear?? is hard to explain
Marco -
I had a problem with print preview of billing document.
HI all,
I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve it.hi,
for both the output types , r u using same sapscript or smartform?
if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
and if differect sapscript or smartform then you should not get such problem.
you can check the sapscript or smartfrom in TNAPR table. -
Problems with Print Preview in PO.
Hi Experts, I need your help!!
I have problems with print preview in purchase order, if the PO has moviments ( GR or Invoice ) I cant see the form of PO in Print Preview...Anybody has idea about happen?
I can see the form before i make the movements after i cant see anymore..This is right?
There is the document explain the problem
[http://www.easy-share.com/1903543233/PO_PROBLEM1.doc]
ThanksHi,
What is the particular error message which prevented you from print preview? I have not seen such case before in many systems.
Cheers,
HT -
Check Box With Tick Mark on Sap Script
Hello All,
We need to add a check box with tick mark on Sap Script.Please can anyone let me know how can we add it.
Regards
Amrutahi amruta,
The soluti as an image into on to your problem can be to use the symbol icon as told , but this may show in preview not in print.
I too faced the same problem.
So what i had done is created a new window with the diemnsions of the chekc box with border thcikness 8 tw and inside that window place a checkmark symbol.
if this checkmark symbol also does not show up in print preview/ doesshow in print preview and not in print then you can scan a chekcmark image and upload it into business document server as a BMP/ TIFF image and use this image in your checkbox window.
Hope this solves your problem.
Warm Regards
Venugopal.T -
How to print u0080 in SAP Script
Hi Experts,
I have one small issue, i want to print symbol in sap script. If i puts this an hardcode vallue, but its not accepting this symbol.
Plz anyone guide this, how to display and print the above symbel in script.
This symbol is not available in displayable charactor area also.
Point will be sure.
Regards,
MohanaForm to translate unicode symbol to superscript
you can use this in subroutine i think this may be usefull to you before that you need to select the radio button of super script in charecter format for that perticular format
FORM FORM_NAME TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
*Data Declaration.
DATA : V_TEXT1(320).
DATA: BEGIN OF ITAB OCCURS 0,
WORD(40),
END OF ITAB.
READ TABLE inttab INDEX 1.
V_TEXT1 = inttab-value.
REPLACE ALL OCCURRENCES OF '' IN V_TEXT1 WITH '<SP></>'.
READ TABLE outtab INDEX 1.
IF SY-SUBRC = 0.
MOVE V_TEXT1 TO outtab-value.
MODIFY outtab INDEX 1.
ENDIF.
ENDFORM -
How to use print control in Sap script
I would like to use print control in Sap script.Actualy my problem I have security font Troy ECF. Using this font I would like to print amount field in Check printing.
we count download this font with sap .we talked to customer care they told we should hard code in sapscript. pls can any1 help on this how to do and how to use print control for this fonts.call this funcation. crate_text.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID =
FLANGUAGE =
FNAME =
FOBJECT =
SAVE_DIRECT = 'X'
FFORMAT = '*'
TABLES
FLINES =
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Search print program and sap script
hii , how can i find trigring print program and sap script for a particular purchase order.
regards Aditya
Edited by: aditya shrivastaba on Apr 14, 2008 9:59 AMHey,
First go with Me22 or 23 with po that you had, and then check with output type for that in the transaction. After that go to TNAPR table and check the corresponding form and print program.
Or else, go with NAST table in that put PO num in 123456 and put in OBJKY field in nast table. It will give you the output type of it, so that u can find the print program and lay out in TNAPR
Many thanks,
Raghu. -
How to know print program for SAP Script
Hi friends,
how to know print program for SAP Script form name ?Hi ,
You can use the following code changes in the layout & see..
You have to create a program Z_BC460_EX4_HF for that..
/:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF
/: USING &CUST&
/: CHANGING &NAME&
/:ENDPERFORM.
Dear &NAME&
The ABAP routine could be defined as follows:
IMPORTANT: The structure itcsy must be used for the parameters.
REPORT Z_HENRIKF_SCRIPT_FORM .
tables scustom.
form get_name tables in_tab structure itcsy
out_tab structure itcsy.
read table in_tab index 1.
select single * from scustom
where id = in_tab-value.
if sy-subrc = 0.
read table out_tab index 1.
move scustom-name to out_tab-value.
modify out_tab index sy-tabix.
else.
read table out_tab index 1.
move 'No name' to out_tab-value.
modify out_tab index sy-tabix.
endif.
You could also fill the ouput parameter table this way
READ TABLE out_par WITH KEY 'NAME1'.
out_par-value = l_name1.
MODIFY out_par INDEX sy-tabix.
endform. -
How to Hide Print Privew Option (Sap Script)
hi friends,
i dont want print privew option (SAP SCRIPT) after executing the program the report shows output directly insted of showing print privew option.
please reply.
thanks in advance.
regards,
bhaskarHello,
When using the OPEN_FORM
Set the field of the <b>
ITCPO-TDNOPREV = 'X'
</b>
VAsanth -
Printing checkboxes in SAP script
Hi,
I have a requirement where I need to print checkboxes for all the items displayed in SAP Script output.
Is there any way to print checkboxes in the output document?
Regards,
Rajesh BhogiHi Rajesh,
Below link can be useful for you:
How to print u0080 in SAP Script
Hope this will help.
Regards,
Nitin. -
What is print program for sap script?
some of the print program of sap script.
and also guide me to use that programfor which sapscript ?
you can use table TNAPR to find the print program and layoutset for output types. Maybe it will help you.
regards,
Hans -
Problem with Print Preview and Print events
Hello Experts,
We have developed a program, in which, I m trying to display the % values in the Sub Totals and Grand Total lines, The logic and program functionality is performing very well. The report is displaying the output the way end user is willing to see.
The main problem is, the entire % values are going to a toss when we click the Print Preview or trying to print the report, which is not supposed to go that way. I have even tried to debug the program where the problem is evolving in the code, but it is not raised from the code.
Please refer to the screen shots.Before clicking the Print Preview and after clicking the print preview.
Do anybody face the same kind of problem ever?
If so please let me know what could be the best possible solution.
Thanks & Regards
Harish Kumar MKHi Harish,
I have use the below code but not for percentage... I think for percentage you just have to calculate the normal percentage and replace it with a subtotal value.
This is not your complete code it will be better if you mail your complete code so that i can debug and check.
TABLES: vbak.
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " Document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA
* Form f_display_data
FORM f_display_data.
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = 'VBAK'.
ls_fieldcat-do_sum = &2.
ls_fieldcat-cfieldname = &3.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
ls_sort-subtot = &2.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_layout TYPE slis_layout_alv.
m_fieldcat 'VKORG' '' ''.
m_fieldcat 'KUNNR' '' ''.
m_fieldcat 'VBELN' '' ''.
m_fieldcat 'NETWR' 'X' 'WAERK'.
m_fieldcat 'WAERK' '' ''.
m_sort 'VKORG' 'X'. " Sort by vkorg and subtotal
m_sort 'KUNNR' 'X'. " Sort by kunnr and subtotal
m_sort 'VBELN' ''. " Sort by vbeln
ls_layout-cell_merge = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA
BR
Sumeet
Maybe you are looking for
-
A few hours ago I changed the channel on my Belkin Wireless router for the 1st time. It was either on auto, or channel 6 before, i'm not sure, but I changed it to 11, and now my ipod touch 1G can't find my wifi network. I tried changing it to 6, but
-
When I plug my ipod touch into the computer it just charges and won't appear on itunes!
when I plug my ipod touch into the computer it just charges and won't appear on itunes!
-
Should I have a separate apple ID than my wife? Different iphones, iPads, etc
Greetings all, I am new to apple, sort of. My question is should my wife and I have separate ID's? We both have idevices, but are currently sharing an apple ID. The reason that I would prefer to have separate ID's is that I am tired of deleting h
-
How to delete all photos in Lightroom Mobile?
I would like to delete all of the photos in my Lightroom Mobile photo library. A one-step procedure would be ideal. For background: My Lightroom desktop catalog has tens of thousands of photos and hundreds of collections. When I was first getting fam
-
How well does my macbook pro support Civil Engineering programs?
I'm starting college in a few months, and im really hoping macs can be compatible with CAD software and other needed programs. Unfortunately, I do not know the names of the programs I'll have to use. Hopefully you guys will know from experience