2008 Aug 08 7:50 AM
Hi,
Can anyone tell me the detail procedure how to download and upload sap script, from one server to the other.
I have created one in one server, and now need to transport it to the second server.
2008 Aug 08 7:51 AM
Hi ,
Use the standard Diriver program RSTXSCRP. Give the form name .
Hi ,
Use the standard Diriver program RSTXSCRP. Give the form name .
2008 Aug 08 7:51 AM
Hi ,
Use the standard Diriver program RSTXSCRP. Give the form name .
2008 Aug 08 7:55 AM
2008 Aug 08 7:56 AM
try this code this code is hard coded but u can change it as ur requirement.
&----
*& Report ZKOAN_DOWNSF *
*& *
&----
*& *
*& *
&----
REPORT ZKOAN_DOWNSF .
data sf_name type TDSFNAME value 'ZDKO_SMARTFORM'.
constants: c_xml_ns_uri_sf(255) type c
value 'urn:sap-com:SmartForms:2000:internal-structure', "#EC NOTEXT
c_xml_ns_uri_ifr(255) type c
value 'urn:sap-com:sdixml-ifr:2000'. "#EC NOTEXT
data: g_ixml type ref to if_ixml,
xml_document type ref to if_ixml_document,
xml_ns_prefix_sf type string,
xml_ns_uri_sf type string,
xml_ns_uri_ifr type string,
xml_macro_rc type i.
types: t_raw(250) type x.
data: xml_xtable type table of t_raw with header line,
xml_document_size type i,
g_download_path type string,
g_xml_fullpath type string.
data: l_filename type string,
l_file_filter type string,
l_user_action type i,
g_nodes type tsfgnode with header line.
data: wa_node like line of g_nodes,
l_element type ref to if_ixml_element.
data: l_language_str type string,
l_language(2) type c.
data: l_lines type i,
l_splitted_name_tab type table of string.
data: l_stylename type tdssname,
l_stylevari type tdvariant,
l_save_style type tdssname.
data: sform type ref to cl_ssf_fb_smart_form,
tform type ref to cl_ssf_fb_smart_form.
data: formname type tdsfname value 'ZDKO_SMARTFORM ', " Name des Formulars
variant type tdvariant, " Name der Formularvariante
language type sy-langu, " Bearbeitungssprache
fmnumb type tdfmnumb, " Nummer des zugeordneten Fb
fmnumb_test type tdfmnumb. " Fb zum Test der inaktiven Fassung
create object sform.
formname = formname.
variant = space.
language = sy-langu.
call method sform->load
exporting im_formname = formname
im_language = language
im_active = space
importing ex_fmnumb = fmnumb
ex_fmnumb_test = fmnumb_test.
if g_ixml is initial.
g_ixml = cl_ixml=>create( ).
endif.
xml_document = g_ixml->create_document( ).
xml_ns_prefix_sf = 'sf'.
xml_ns_uri_sf = c_xml_ns_uri_sf.
xml_ns_uri_ifr = c_xml_ns_uri_ifr.
clear: xml_document_size, xml_xtable[].
sform->xml_init( ).
create XML for the entire smart form
call method sform->xml_download
exporting parent = xml_document
changing document = xml_document.
namespace
l_element = xml_document->get_root_element( ).
l_element->set_attribute( name = xml_ns_prefix_sf
namespace = 'xmlns'
value = xml_ns_uri_sf ).
l_element->set_attribute( name = 'xmlns'
value = xml_ns_uri_ifr ).
language
*write language to l_language.
l_language_str = l_language.
xml_macro_rc = l_element->set_attribute(
name = 'language'
namespace = xml_ns_prefix_sf
value = l_language_str ).
convert DOM to xml
call function 'SDIXML_DOM_TO_XML'
exporting document = xml_document
importing size = xml_document_size
tables xml_as_table = xml_xtable
exceptions others = 1.
check sy-subrc eq 0.
download
if sform->header-formname cs '/'.
split sform->header-formname at '/' into table l_splitted_name_tab.
describe table l_splitted_name_tab lines l_lines.
read table l_splitted_name_tab into l_filename index l_lines.
concatenate l_filename '.xml' into l_filename.
else.
concatenate sform->header-formname '.xml' into l_filename.
endif.
translate l_filename to lower case.
concatenate 'XML-Dateien'(x10) '(.XML)|.XML|'
'Alle Dateien'(x11) '(.)|.|'
into l_file_filter.
call method cl_gui_frontend_services=>file_save_dialog
exporting default_file_name = l_filename
file_filter = l_file_filter
initial_directory = g_download_path
changing filename = l_filename
path = g_download_path
fullpath = g_xml_fullpath
user_action = l_user_action
exceptions others = 1.
if sy-subrc eq 0 and g_xml_fullpath is not initial and
l_user_action ne cl_gui_frontend_services=>action_cancel.
call method cl_gui_frontend_services=>gui_download
exporting filename = g_xml_fullpath
filetype = 'BIN'
bin_filesize = xml_document_size
changing data_tab = xml_xtable[]
exceptions others = 1.
endif.
free: xml_document, xml_xtable[], xml_document_size.
2008 Aug 08 7:57 AM
hi
Goto se38
program name : RSTXSCRP
Execute this program...
U can do what ever you want , import and export..
With regards
Always Learner
2008 Aug 08 7:57 AM
Hi,
Please go through the following links:
http://help.sap.com/saphelp_40b/helpdata/en/d9/4a961751ea11d189570000e829fbbd/content.htm
http://www.sap-img.com/ts004.htm
Regards,
Shailaja
2008 Aug 08 8:00 AM
Hi ,
you can use the standard Diriver program RSTXSCRP.
regards,
jayan.
2008 Aug 08 8:07 AM
I would recomend you to use program RSTXSCRP
1. open SE38, Enter this program name
2 Select radio button FORM and Enter name of Form in Object Name.
3. Enter mode name 'EXPORT'.
3.Enter File name path where you want download script.
Follow above steps to import SAP Script File. Just use EXPORT in mode input.
rgds
rajesh
2008 Aug 08 8:10 AM
hiii
use RSTXSCRP program execute it and enter script name and select EXPORT and save inlocal system then from destination server same way you need to download it by selection IMPORT.
regards
twinkal
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |