SAP SCRIPT FORMS with UNICODE FORMAT ??
Hi guru's,
this is sunny newly joined in sap forum,am ABAP doveloper .
now am extensivelly working on upgrradation project(4.6B TO ECC6.0) , my work perticularlly on UNICODE
>> now am working on SAP SCRIPT FORMS, so could you please let me know how to check the scripts in UNICODE FORMAT .
>> Is that usefull to check with UCCHECK
Its urgent
Best Regards
Sunny..
SAP Scripts needs no checks. but you have to keep attention to the fact, that the spoollists must be converted manually by a report written by SAP, and this report is not able to transform sapscripts which are still in the spool. After unicode conversion every sapscript spoollist is lost!
Similar Messages
-
How to get the last page SAP Script form
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
RegardsHi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max -
Sap script form perform statement
HI ALL ,
CAN ANYONE HELP ME WITH SAP-SCRIPT FORM AND PERFORM SYNTAX. THAT IS WHEN U NEED TO ADD A FIELD TO AN EXISTING SAPSCRIPT, BY USING AN EXTERNAL SUBROUTINE.
i NEED THE SYNTAX BOTH FOR PERFORM AND ENDPERFORM STATEMENT AND ALSO THE FORM STSEMENT. ANOTHER TRHING IS IF CAN LET ME KNOW HOW TO USE DEFINE STATEMENT IN SAPSCRIPT. WHATS ITS USE AND IS IT RELATED TO THE QUERY ABOVE.
else,
U PLZ LET ME KNOW ANY HELPFUL LINKS TO GO THROUGH.
THANLS IN ADVANCE,
ANUPMA.Hi anupma,
1. while calling subroutines from sapscripts,
there is a special technique,
which has got its own limitations.
2.
FORM abc
TABLES
in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
ENDFORM.
3. The perform in se38 program should be of the
above format only.
4. We cannot pass internal tables.
5. Rather we need to pass
VARIABLE NAME
VARIABLE VALUE
(see the structure of itcsy in se11)
6. In this form, we have to read
the internal table in_tab
to capture the variable name and its value.
7. Similary, to return the values,
we have to put one record (for each variable)
in out_tab.
regards,
amit m. -
To convert Sap Script output to PDF format and send it via email.
Hi Friends,
Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected]
Thanks & Regards,
JohnPlese check this sample code from other thread.
REPORT zzz_jaytest .
Types Declaration
TYPES : BEGIN OF ty_pa0001,
pernr TYPE pa0001-pernr,
bukrs TYPE pa0001-bukrs,
werks TYPE pa0001-werks,
END OF ty_pa0001.
Internal Table Declaration
DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
i_content_txt TYPE soli_tab, "Content
i_content_bin TYPE solix_tab, "Content
i_objhead TYPE soli_tab,
Work Area Declaration
w_pa0001 TYPE ty_pa0001, "For pa0001 Details
w_res TYPE itcpp, "SAPscript output
"parameters
w_otf TYPE itcoo, "For OTF
w_pdf TYPE solisti1, "For PDF
w_transfer_bin TYPE sx_boolean, "Content
w_options TYPE itcpo, "SAPscript output
"interface
Variable Declaration
v_len_in TYPE so_obj_len,
v_size TYPE i.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X', "X
c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
c_otf TYPE sx_format VALUE 'OTF', "OTF
c_pdf TYPE sx_format VALUE 'PDF', "PDF
c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
c_bin TYPE char10 VALUE 'BIN', "BIN
c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
"File Name
c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
START-OF-SELECTION.
Selecting the records from pa0001
SELECT pernr bukrs werks FROM pa0001
INTO TABLE i_pa0001 UP TO 10 ROWS.
Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
LOOP AT i_pa0001 INTO w_pa0001.
Writting into the form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN'
window = 'MAIN'.
ENDLOOP.
Closing the form
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = w_res
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Converting OTF data to single line
LOOP AT i_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
Converting to PDF Format
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = c_otf
format_dst = c_pdf
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
Downloading the PDF File
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_size
filename = c_name
filetype = c_bin
TABLES
data_tab = i_content_bin.
The extension is put the it_mailpack-obj_name parameter of 'SO_NEW_DOCUMENT_ATT_SEND_API1'. -
Enhancement for J_1IEWT_CERT sap script form.
Hi,
In T- Code J1INCERT ie TDS Certificate Print used SAP Script Form J_1IEWT_CERT. i want to do enhancement in out put of first page. A certificate is generated in preview mode with 2 lines for same challan number. In the new enhancement form a single line should be printed for the same challan number. and amount should be added. in same. hence pl advice, how to go head.
Regards
kamalDear Raghu
In the NACE tcode select the application and then click on output types and then select the output types and then processing routines.
Also, please, verify the SE71 transaction code.
Regards,
Paulo -
Version Management on SAP Script Forms
Hello,
Is there a version management for SAP Script forms
like what we have in ABAP programs?
I need to revert back the old version of my SAP scrip form like what I used to do in an ordinary ABAP program.
Is this possible?
Need your views on this.
Thank you very much,
Jeffrey A. PradoHello Jeffrey,
as far as I know there are just two versions stored in the system, the active one and the one you work on. As long as you do not activate your work, you should be able to track your changes. The other way (which I use) is to save the original version with another name and simply load it back when needed. Since we are working with an old Release I do not how it looks in the "new world".
Greetings,
Sebastian -
Copy an existing sap-script form
hi,
is it possible to copy an existing sap-script form ?
Regards
Marco m.
Edited by: Marco M on Sep 4, 2009 1:27 PMHi,
It is very much possible.
To do this first create a new form with a different name, inside the form select FORM->Copy From and give the form name and the language. Press ok to copy it. Now save and activate the new form.
Regards
Karthik D -
How to change sign negative to positive in sap script form
Hi Guru,
I had wriiten a below piece of code in my sap script form.Now I need all the negative sign to be convert to positive number means
if KOMVD-KWERT = 123,98.00- , then require 123,98.00 ..
And for this I know the synatax is
&KOMVD-KWERT(S)& .Bur the probleam is how to manage this (I13) ...Because if i am wriiting
&KOMVD-KWERT(S)(I13)& getting no value ...Please help..
IF &TNAPR-KSCHL& = 'ZD06'.
&KOMVD-KWERT(I13)&
endif.
Thanks
susriHi SUSRIKANT,
You can try this logic .
DATA : LV_KWERT TYPE STRING,
LV_LEN TYPE I,
LV_F_KWERT TYPE STRING.
LV_KWERT = KOMVD-KWERT.
LV_LEN = STRLEN( LV_KWERT ).
LV_LEN = LV_LEN - 1.
IF LV_KWERT +LV_LEN(1) = '-'.
LV_F_KWERT = LV_KWERT + 0 (LV_LEN).
ELSE.
LV_F_KWERT = LV_KWERT.
ENDIF.
I hope this logic will be helpful for your issue.
Thanks & Regards,
Kumaran Duraiswamy. -
Dispalying SAP script output in landscape format
Hello All,
Could anyone please tell me the step by step process to display a SAP Script output in landscape format?
Also is it possible to display a column name in 2 lines if it does not fit into 1 line.
Regards
Indrajit.Hi,
Here is the way to print the SAPSCRIPT in landscape ..
Goto SE71, then give you layout name then press change, then press the Header button(CAP ICON), then you will get the Header infomation, then select the Basic Settings pushbutton, then there we have an option to Print the Layout in Portrait format or Landscapr format, then select the LANDSCAPR format Radio button then activate it
Regards
Sudheer -
Perform a form routine within a sap script form
Hi!
How can I
perform a form routine within a sap script form.
Regards
sasOK,
many thanks for your kindly reply.
But basically there is a matter which I don't understand.
Which way is the better way to loop at internal table:
Solution1:
FORM xxx.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
FORM = 'ZSD_PACKING_LIST'
LANGUAGE = SY-LANGU .
LOOP AT gt_versand_plan INTO gw_versand_plan.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'SHELEM'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN' .
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'.
ENDFORM.
Solution 2:
Having the LOOP within the sapscript form -> 'ZSD_PACKING_LIST'
Regards
sas -
Download SAP Script as MS word format
Can we download SAP Script in MS word format? If so Please suggest me the way.
I'm not very sure on how it can be achieved, but this can help you.
Spool to word -> http://sap4.com/codigofuente/102/396.html -
Is it possible to a coloured background in sap script Form.
Hi all,
Is it possible to a coloured background in sap script Form.
Point is gurantedHi,
In Sap Scripts Colouring is not Possible.
But We Can do Colouring In Smartforms. -
Hi ABAP Experts,
i got one object on SAP Script Forms, this is first time i am doing sap scripts, my issue is i created a form Debit memo from scratch and now i want to assign this form to standard print program RFK0RD00(PAYMENT NOTICE) and for this print program the standard layout form is F140_PAY_CONF_01.can u please tell what is the output type of this form and where to assign this ?
Thanks in Advance...Hello Srini,
First thing,how to find output type?
-Go to table TNAPR and enter your print program name in TNAPR-PGNAM and form name in TNAPR-FONAM.
-Look for the entry, the field value of TNAPR-KSCHL will give you the output type for your Print program and sap script form.
-TNAPR-KAPPL will give you the value for Application.
Second thing,how to assign?
-Go to transaction NACE
-Select the application(TNAPR-KAPPL).
-Press the button 'OUTPUT TYPES'
-Select the corresponding output type(TNAPR-KSCHL)
-Now select the folder 'Processing routines' on the left side.
-Enter your Program name (RFK0RD00), form routine name(mostly it is ENTRY) and then enter your form name (form designed by you from scratch).
Kinldy reply if this has helped you. -
How to View Smartforms or SAP Script Forms in Web Dynpro ABAP
Do anyone have idea of how to View Smartforms or SAP Script Forms in Web Dynpro ABAP?
Please let me know. ThanksHi Sameeksha,
You can display an smartform in WDA as an pdf file. Try go through this [article |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785]where Nanda does explain about the same.
Regards,
Uday -
Transport.of SAP script form , printer def and device type is not enaugh
I transported the SAP script form , printer definition and device types of a thermal printer.
On original system the printout is ok but on target system not. What should I do?Thank you for your fast answer
As the matther of fact I am technical person. I think Output type belongs to application. However the difference is visible in se71 ->Utilities->Printing test -> output device ->print preview.
As I wrote I transpored corresponding. SAP script form , printer def and device type
Maybe you are looking for
-
Command> ttSize -tbl ttdev.tbluseridentity -rows 100000 dsn1 ;5221: Oracle syntax error in OCIStmtExecute(): ORA-00900: invalid SQL statement rc = -1 The command failed. Can anyone correct me with right syntax?
-
Error 4850 whenever i try to download
I kkep on receiving Error 4850 whenever i try to download using my Blackberry 8520. The other problem is that it kkeeps on saying download failed what shopuld i do? Help?
-
hi we recently changed the approval matrix leve ever since i noticed if i reduced line item on po to lower than what it is po goes out of approval what causes this before it only required when po amt increased thank you ash
-
Hi. How can I call a FM within search help exit relating to an input field on search ehlp field (on click f4 must be called a FM ). Regards ertas
-
M276nw wireless radio turns off
Every day after work, my brand-new M276nw's wireless radio turns off. The blue wireless light blinks, and the printer needs to be restarted for it to work again. All ecoSMART settings are turned off, and otherwise everything seems to be fine.