Importing master repositrory using imp command
Hi,
I am trying to import the master repository using the imp command.It prompts for a username/password.I give the master repository schema name and password.Then it asks for the input file.
Import file: EXPDAT.DMP >
Please tell me whether the (exported)repistory folder/zip file should be in a specific directory.
Thanks BarisYildirim & 000000
I checked all things as you mentioned above guys, Is anything else I need to do.
Similar Messages
-
SAP fixed asset add-on. Not able to import master data using upload pgm.
Hi all,
I am trying to import fixed asset master data using an excel file into sap B1 2007a patch level 42. I am able to run the import transaction. It tries to process and then giving me a message ' Import end: Number of successfully imported assets: 0. Number of processed assets:2. We have looked at the event log file and couldn't find anything related to the upload. I have gone through other posts and didn't face this issue. Any hellp is apreciated.
Path which I am using to upload the fixed asset master master data: Administration --> Setup --> fixed asset --> import fixed asset master data.
Following points (see below) also taken into account while creating the master data sheet.
also replaced the ',' in the csv file to ';' before uploading and changed the fixed asset mode to 'transfer' in the administration --> system initialization > company detaills> basis initialization.
Thanks
Johnson zavier
Mandatory: Item Code = Asset Class; this Asset Class must be previous defined in the Asset Settings (don't change/delete anything in the item-master data - there are the Asset Classes Z-00u2026. Are stored
Description = Description of this Asset
Capitalization Date = do it like this (YYYY-MM-DD). This columne must be a text format
APC = Aquisition/Procuction Cost; when you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
Quantity = only mandatory, when you use the same assets stored under one asset number. Example you have ten equal chairs, so you can handle this with one asset number and quantity ten
Dep01 = Depreciation area; this entry must be previous defined in the Asset Settings
Depr Start date 01 = do it like this (YYYY-MM-DD). This columne must be a text format. The beginning must be the first of the month. Please compare it in this case with the capitalization date
Useful Life 01 = calculated in months (not years)
Remaining Life 01 = calculated in months (not years)
Depr Type 01 = Depreciation Type must be previous defined in the Asset settings
Ordinary Depr 01 = ordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
Unplanned Depr 01 = unplanned/extraordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
SpDpAcc1 01 = Special depreciation account; when you use special depreciations and you have it to balance on special accounts fill in this account. This is an exeption - in normal projects not needed
SpDpKey2 01 = Special depreciation; when you use special depreciation you have to enter this cumulative value in this field. This is an exeption in normal projects not needed
SpDpAccu2026 = for further special depreciation accounts; This is an exeption
SpDpKey.. = for furhter special depreciation values; This is an exeption
Optional: Vendor Code = when using this please be aware that the vendor code is previous defined in the system
all others = you can use if you want. The only limitation is the type/length of these fields
When you are ready with your entries mark from the first free row on for instance the next 20 rows than right mouse key - delete rows. This is necessary to prevent that in the background are invisible signs
After entering in this default excel all your assets, please save it as .csv file. (the grey message - relation to information of csv - please say yes; when you close than excel a furhter message - would you save.. - please say no now
After entering all data please save it as .CSV file. First grey window (format information) please choose 'yes'. Second window (when you close this file) please choose 'no'.
You have now a .csv file in hands right now for uploading into the fixed assets.
This example you can use for a test-import based on the year 2004The issue was because of the conflict of Depr. Start Date, Use Life and Remaining Life. After I corrected the data, it worked just fine. The note 876670 helped me to resolve this issue. Thanks to Adam at Toronto SAP Business one support for his expert analysis and suggestions.
thanks
johnson zavier
Edited by: Johnson Zavier on Feb 19, 2009 11:10 PM
Edited by: Johnson Zavier on Feb 19, 2009 11:20 PM -
Imp Command to import a single table
Dear All:
i want to import a single table from my backup and want to preserve all the existing indexes using IMP command.
UserID : NEW_USER
PWD: qwert1imp system/password@tstdhk fromuser=syslog touser=newuser tables=logs200712 rows=y file=/u06/import_exp/syslog_logs200712_080217.dmp commit=Y grants=N statistics=NONE ignore=Y log=/u06/import_exp/logs_part_jan.log
Regards
Asif Kabir -
Using Imp utility to Import a database on 10g release 2
I am using the Imp Utility on 10g release 2 to import from a 10g release 1 database. I have created a new tablesapce and need the dmp to be imported to the new tablespace. But it goes and imports to the system tablespace. The command i use is
imp <User name>/<password> file=<file_name> log =<log name> full=Yes
the user name and password i use is the username and password i gave in the installation for system tables. When i specify the tablespace imp <User name>/<password>@<tablespace> it comes with "ORACLE error 12154 encountered".
Do i need to create a new user to get the import done. How do i create it?The contents of the dump will be imported to the tablespace under which you run the import.
If your dump from Oracle 10G R1 is a complete database dump and you need to import the data of a specific user in the dump, then you can use fromuser= touser= options in the import command.
If your Oracle 10GR2 database is blank, then you need to create the user in which you can import the data. You can use a command like this.
CREATE USER sidney
IDENTIFIED BY out_standing1
DEFAULT TABLESPACE example
QUOTA 10M ON example
TEMPORARY TABLESPACE temp;
Note: sidnye, out_standing1, example, temp are all arbitrary names. You need to match these with your environment. -
Using IMP utiltity to import EUL
Hi,
I have created a tool that imports my EUL to schemas dynamically/automatically for non-discoverer user so that they don't need to deal with discoverer admin themselves.
I have created a dump file of my EUL by using the oracle EXP utility and am on am importing the EUL dump file using IMP utility. I am encountering "ORA-00942: table or view does not exist" for all my folders with this process even if all the tables exist in that schema. This is fixed only after I go to discoverer admin - folder properties - Object and choose the table again.
Does anyone know why this is happening and what I can do to make the import successful without using Discoverer Admin's FILE-IMPORT?
Thank you very much,
ElliceHi,
Can you list the EXP and IMP command syntax that you are using?
Also, have you thought of using the Discoverer Administrator command line utility for exporting and importing (if you do not want to use the Discoverer Administrator user interface)?
Make the value of the owner property for each folder blank and then perform export and import. You should not get the error (provided all the tables on which the folders are based exist in the target schema.)
Regards. -
Error while importing Item MAster Data using DTW
Hi,
when we are importing item master data using items template
it is giving error.
Error:":connected value 1 was not found "
can any one send the oitems template that is working fine wthout any error.
Thanks,
NeetuYou cannot import data prepration templates>>Testcase1_Test Data for Import function>Oitems directly.
You will have to do certain prerequisites like setting CommissionGroup, CommissionPercent, CommissionSum,CustomsGroupCode etc., in SAP before importing Items.
So I would like you to try out with minimum fields in the template and import. After understanding, you can import the required fields.
I suggest you to use the template from "C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oItems" -
Use IMP to only import certain objects?
Is it possible to use IMP to only import tables, table data, indexes and sequences, or everything except packages?
You still may use imp with following workaround:
import with COMPILE=n , then obtain a list of Packages/Stored procedures with status=INVALID , follows the script for a massive drop.
select 'drop package '||owner||'.'||object_name||';'
from all_objects
where status = 'INVALID'
and owner = {schema name}
and object_type = 'PACKAGE'
Regards -
Export / import exp / imp commands Oracle 10gXE on Ubuntu
I have Oracle 10gXE installed on Linux 2.6.32-28-generic #55-Ubuntu, and I need soe help on how to export / import the base with exp / imp commands. The commands seems to be installed on */usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin* directory but I cannot execute them.
The error message I got =
No command 'exp' found, did you mean:
Command 'xep' from package 'pvm-examples' (universe)
Command 'ex' from package 'vim' (main)
Command 'ex' from package 'nvi' (universe)
Command 'ex' from package 'vim-nox' (universe)
Command 'ex' from package 'vim-gnome' (main)
Command 'ex' from package 'vim-tiny' (main)
Command 'ex' from package 'vim-gtk' (universe)
Command 'axp' from package 'axp' (universe)
Command 'expr' from package 'coreutils' (main)
Command 'expn' from package 'sendmail-base' (universe)
Command 'epp' from package 'e16' (universe)
exp: command not found
Is there something I have to do ?Hi,
You have not set environment variables correctly.
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#BABDGCHH
And of course that sciprt have small hickup, so see
http://ubuntuforums.org/showpost.php?p=7838671&postcount=4
Regards,
Jari -
Hi all,
I am trying to import using imp and I am getting this error while import.
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses WE8MSWIN1252 character set (possible charset conversion)
export client uses UTF8 character set (possible charset conversion)what is the imp script which resolves this issue.
Thanks in advance
sampoornathe imp script which resolves this issue.Its not an error, its a warning. Set the NLS_LANG environment variable appropriately. Appears the export environment was from a UTF8 database and the import client settings may cause improper character translations.
If the target database character set is also UTF8 you might get away with setting NLS_LANG for a UTF8. And see support note 179133.1 "The correct NLS_LANG in a Windows Environment". -
Export/Import-SPSIte :- What is the max size that can be moved using this command??
I assume you ment Export-SPWeb not Export-SPSite command.
There is no known limitations in file size, except the compression file size that is set to 24MB by default. If you exceed 24MB, the cmp file will be splitted into several files. You can change the default 24MB value up to 1024MB, using the -compressionsize
parameter. -
Speedup the import process using imp tool
hi,
how many ways to speedup the import process using imp tool in oracle 9.2.0.8Hi,
Follow below guidelines also:
IMPORT(imp):
Create an indexfile so that you can create indexes AFTER you have imported data. Do this by setting INDEXFILE to a filename and then import. No data will be imported but a file containing index definitions will be created. You must edit this file afterwards and supply the passwords for the schemas on all CONNECT statements.
Place the file to be imported on a separate physical disk from the oracle data files.
Increase DB_CACHE_SIZE (DB_BLOCK_BUFFERS prior to 9i) considerably in the init$SID.ora file
Set the LOG_BUFFER to a big value and restart oracle.
Stop redo log archiving if it is running (ALTER DATABASE NOARCHIVELOG;)
Create a BIG tablespace with a BIG rollback segment inside. Set all other rollback segments offline (except the SYSTEM rollback segment of course). The rollback segment must be as big as your biggest table (I think?)
Use COMMIT=N in the import parameter file if you can afford it
Use STATISTICS=NONE in the import parameter file to avoid time consuming to import the statistics
Remember to run the indexfile previously created.
Note: Before following the above guideliness check your requirement aso.
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
Can I use at command line an import dimension using table interface?
Hi guys
I am using EPMA to load some dimensions using the table interface but I want to know if it is possible to lauch it using a command line?
RegardsHi John
I am facing a strange case, after migrate the developments that call the EPMA Batch Client uding ODI 11.1.1.7 to the test environment. I have various package that load data on the table interfaces
and in a next step call the epma batch client.
However when I execute the package, the log file is wrote. However the new customers are not loaded. But If I execute the command (Step on package) that call the epma batch client the log also
is wrote and the member is loaded.
Any suggestion about what can be happening and how I can solved.
Thanks in advance, -
Reg: Modification of Master Tables using BDC/BAPI
Dear All,
Thanks for Support shown from all of you.
I want the detailed procedure for Modifying the existing data in the Master Tables using BDC's / BAPI's and Dialog programming.
Please send me one example code.
Please Help me Out.
Thanks In Advance.
Regards,
Adinarayana.Bbapi example
REPORT ZMMR_DELETEPO NO STANDARD PAGE HEADING MESSAGE-ID zisb.
tables : zvtls_sap.
*C-- Types Declarations
TYPES : BEGIN OF tp_flatfile_vtls,
ebeln(10),
ebelp type ekpo-ebelp,
END OF tp_flatfile_vtls.
*=====================================================================
INTERNAL TABLES DECLARATION
*=====================================================================
DATA: t_flatfile_vtls TYPE tp_flatfile_vtls OCCURS 0 WITH HEADER LINE.
data : begin of t_sapdata occurs 0,
po like zvtls_sap-posap,
item like zvtls_sap-itemsap,
end of t_sapdata.
data : begin of t_flatfile_vtls1 occurs 0,
po(10),
item like zvtls_sap-itemsap,
end of t_flatfile_vtls1.
data : begin of t_update occurs 0,
mandt like zvtls_sap-mandt,
povtls like zvtls_sap-povtls,
itemvtls like zvtls_sap-itemvtls,
posap like zvtls_sap-posap,
itemsap like zvtls_sap-itemsap,
aedat like zvtls_sap-aedat,
paedt like zvtls_sap-paedt,
loekz like zvtls_sap-loekz,
end of t_update.
data : begin of t_poheader occurs 0,
po like zvtls_sap-posap,
end of t_poheader.
data : begin of t_poitem occurs 0,
po like zvtls_sap-posap,
item like zvtls_sap-itemsap,
end of t_poitem.
DATA : BEGIN OF T_MESSAGE OCCURS 0,
MSGTY,
MSGID(2),
MSGNO(3),
MSGTX(100),
PO like zvtls_sap-povtls,
item like zvtls_sap-itemvtls,
END OF T_MESSAGE.
DATA : BEGIN OF t_bapi_poheader OCCURS 0.
INCLUDE STRUCTURE bapimepoheader.
DATA : END OF t_bapi_poheader.
DATA : BEGIN OF t_bapi_poheaderx OCCURS 0.
INCLUDE STRUCTURE bapimepoheaderx.
DATA : END OF t_bapi_poheaderx.
DATA : BEGIN OF t_bapi_poitem OCCURS 0.
INCLUDE STRUCTURE bapimepoitem.
DATA : END OF t_bapi_poitem.
DATA : BEGIN OF t_bapi_poitemx OCCURS 0.
INCLUDE STRUCTURE bapimepoitemx.
DATA : END OF t_bapi_poitemx.
DATA : BEGIN OF t_bapireturn OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA : END OF t_bapireturn.
*=====================================================================
V A R I A B L E S
*=====================================================================
DATA: w_success(6) TYPE n,
w_bklas like t023-bklas,
w_curryear(4),
w_begda like sy-datum,
w_endda like sy-datum,
w_begyr(4),
w_endyr(4),
w_currmon(2),
w_assetclass like ankt-anlkl,
w_price type p,
w_recordsap type i,
w_povtls(10),
w_count type i.
DATA: w_filepath TYPE rlgrap-filename,
w_rc TYPE sy-subrc,
w_sscrfields_ucomm1 TYPE sscrfields-ucomm,
w_file1 TYPE string,
w_file2 TYPE FILENAME-FILEINTERN.
*=====================================================================
C O N S T A N T S
*=====================================================================
CONSTANTS: c_x TYPE c VALUE 'X',
c_hyp TYPE c VALUE '-',
c_err TYPE bdc_mart VALUE 'E'.
CONSTANTS: c_slash(1) TYPE c VALUE '/',
c_hash(1) TYPE c VALUE '#',
c_pipe TYPE c VALUE '|',
c_1 TYPE i VALUE 1,
c_zero TYPE n VALUE '0',
c_rg1(3) TYPE c VALUE 'rg1',
c_gr3(3) TYPE c VALUE 'GR3',
c_gr2(3) TYPE c VALUE 'GR2',
c_e(1) TYPE c VALUE 'E',
c_filepath(8) TYPE c VALUE '/interf/',
c_filetype(10) TYPE c VALUE 'ASC'.
CONSTANTS : c_bapimepoheaderx TYPE x030l-tabname
VALUE 'bapimepoheaderx',
c_bapimepoitem TYPE x030l-tabname
VALUE 'bapimepoitem',
c_bapimepoaccount TYPE x030l-tabname
VALUE 'bapimepoaccount',
c_t_bapi_poheader(15) TYPE c
VALUE 't_bapi_poheader',
c_t_bapi_poitem(13) TYPE c
VALUE 't_bapi_poitem',
c_t_bapi_poitemx(14) TYPE c
VALUE 't_bapi_poitemx',
c_t_bapi_poheaderx(16) TYPE c
VALUE 't_bapi_poheaderx'.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
*======================================================================
SELECTION SCREEN
*======================================================================
SELECTION-SCREEN BEGIN OF BLOCK inputpath WITH FRAME TITLE text-001.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS : p_fore RADIOBUTTON GROUP rg1
USER-COMMAND pc,
p_back RADIOBUTTON GROUP rg1 DEFAULT 'X'.
SELECTION-SCREEN : END OF BLOCK blk2.
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-003.
PARAMETERS : p_file1 LIKE rlgrap-filename OBLIGATORY MODIF ID gr2.
PARAMETERS : p_afile1 LIKE rlgrap-filename OBLIGATORY MODIF ID gr3.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN END OF BLOCK inputpath.
*C-- Initialization Event
INITIALIZATION.
CLEAR w_filepath.
CONCATENATE c_filepath sy-sysid c_slash sy-mandt c_slash INTO
w_filepath.
CONDENSE w_filepath NO-GAPS.
p_file1 = text-008.
p_afile1 = text-009.
*======================================================================
SELECTION SCREEN EVENTS
*======================================================================
*C-- Selection Screen Output
AT SELECTION-SCREEN OUTPUT.
IF p_fore = c_x.
w_sscrfields_ucomm1 = space.
ELSE.
w_sscrfields_ucomm1 = c_rg1.
ENDIF.
LOOP AT SCREEN.
*C--Modify selection screen if presentation
*C--or application server radio button is chosen
IF w_sscrfields_ucomm1 = space.
IF screen-group1 = c_gr3.
screen-active = c_zero.
ENDIF.
ELSE.
IF screen-group1 = c_gr2.
screen-active = c_zero.
ENDIF.
ENDIF.
if screen-name = 'P_AFILE1'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
*C-- Selection Screen VALUE-REQUEST FOR File path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
IF p_fore EQ c_x.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file1.
ENDIF.
*C-- At Start of the Selection Process
START-OF-SELECTION.
IF p_fore EQ c_x.
w_file1 = p_file1.
ELSE.
w_file2 = p_afile1.
ENDIF.
IF p_fore EQ c_x. " Presentaion Server
*C--Validations for the input files
PERFORM validate_pre_file USING p_file1.
*C-- Load the contents of the input file into the internal table
PERFORM upload_file TABLES t_flatfile_vtls
USING w_file1
CHANGING w_rc.
IF w_rc <> 0.
MESSAGE s006 DISPLAY LIKE c_e.
ENDIF.
ELSE. " Application Server
*C--Validations for the input files
PERFORM validate_app_file USING w_file2.
*C-- Load the contents of the input file into the internal table
PERFORM upload_file_app TABLES t_flatfile_vtls
USING w_file2
CHANGING w_rc.
ENDIF.
loop at t_flatfile_vtls.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = t_flatfile_vtls-ebeln
IMPORTING
output = t_flatfile_vtls1-po.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = t_flatfile_vtls-ebelp
IMPORTING
output = t_flatfile_vtls1-item.
append t_flatfile_vtls1.
clear t_flatfile_vtls1.
endloop.
perform get_podata.
loop at t_poheader.
perform move_to_bapi.
perform call_bapi.
endloop.
PERFORM STORE_MESSAGES TABLES T_MESSAGE.
*& Form validate_pre_file
Routine to validate presentation server file path.
-->fp_name text
FORM validate_pre_file USING fp_name TYPE rlgrap-filename.
DATA : l_result,
l_filename TYPE string.
l_filename = fp_name.
CLEAR l_result.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING
file = l_filename
RECEIVING
result = l_result
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE s007 DISPLAY LIKE c_e.
LEAVE LIST-PROCESSING.
ELSEIF l_result IS INITIAL.
MESSAGE s008 DISPLAY LIKE c_e.
LEAVE LIST-PROCESSING.
ENDIF.
ENDFORM. " validate_pre_file_hdr
*& Form validate_app_file
text - Checks if the path entered and filename is correct
FORM validate_app_file USING fp_file TYPE FILENAME-FILEINTERN.
data : l_fname(60).
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = FP_FILE
OPERATING_SYSTEM = SY-OPSYS
IMPORTING
FILE_NAME = L_FNAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = '0'.
OPEN DATASET L_FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
MESSAGE s007 DISPLAY LIKE c_e.
ELSE.
CLOSE DATASET l_fname.
ENDIF.
ENDIF.
ENDFORM. " validate_app_file
*& Form upload_file
Routine to upload data from file to tables.
-->P_fp_flatfile
-->P_fp_file
<--P_fp_rc
FORM upload_file TABLES fp_flatfile
USING fp_file TYPE string
CHANGING fp_rc TYPE sy-subrc.
IF fp_flatfile[] IS INITIAL.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = fp_file
filetype = c_filetype
has_field_separator = c_x
TABLES
data_tab = fp_flatfile
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
MOVE sy-subrc TO fp_rc.
ENDIF.
ENDFORM. " upload_file
*& Form upload_file_app
text
-->FP_FLATFILEtext
-->FP_FILE text
-->FP_RC text
FORM upload_file_app TABLES fp_flatfile
USING fp_file TYPE FILENAME-FILEINTERN
CHANGING fp_rc TYPE sy-subrc.
DATA: l_string TYPE tedata-data.
DATA: wa_data_file TYPE tp_flatfile_vtls,
l_wllength TYPE i,
FNAME(60).
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = FP_FILE
OPERATING_SYSTEM = SY-OPSYS
IMPORTING
FILE_NAME = FNAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
OPEN DATASET FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
*C-- commented by Bikash
MESSAGE s107(yaero_ps) DISPLAY LIKE c_e.
message e008.
ELSE.
DO.
CLEAR: l_string.
READ DATASET FNAME INTO l_string LENGTH l_wllength.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT l_string AT con_tab INTO wa_data_file-ebeln
wa_data_file-ebelp.
APPEND wa_data_file TO fp_flatfile.
ENDIF.
ENDDO.
CLOSE DATASET FNAME.
ENDIF.
ENDIF.
ENDFORM. " upload_file_app
*& Form get_podata
text
form get_podata.
select *
into table t_update
from zvtls_sap
for all entries in t_flatfile_vtls1
where itemvtls = t_flatfile_vtls1-item
and povtls = t_flatfile_vtls1-po.
sort t_update by posap itemsap.
loop at t_update.
at new posap.
t_poheader-po = t_update-posap.
append t_poheader.
clear t_poheader.
endat.
t_poitem-po = t_update-posap.
t_poitem-item = t_update-itemsap.
append t_poitem.
clear t_poitem.
t_update-paedt = sy-datum.
t_update-loekz = 'X'.
modify t_update.
endloop.
modify zvtls_sap from table t_update.
endform. "get_podata
*& Form move_to_bapi
text
form move_to_bapi.
t_bapi_poheader-po_number = t_poheader-po.
CLEAR t_bapi_poheaderx.
PERFORM fill_check_structure USING c_bapimepoheaderx
c_t_bapi_poheader
c_t_bapi_poheaderx
c_x.
refresh : t_bapi_poitem,t_bapi_poitemx.
loop at t_poitem where po = t_poheader-po.
clear t_bapi_poitem.
t_bapi_poitem-po_item = t_poitem-item.
t_bapi_poitem-delete_ind = 'X'.
CLEAR t_bapi_poitemx.
PERFORM fill_check_structure USING c_bapimepoitem
c_t_bapi_poitem
c_t_bapi_poitemx
c_x.
t_bapi_poitemx-po_item = t_poitem-item.
t_bapi_poitemx-po_itemx = c_x.
APPEND t_bapi_poitem.
APPEND t_bapi_poitemx.
clear t_bapi_poitem.
clear t_bapi_poitemx.
endloop.
endform. "move_to_bapi
*& Form call_bapi
This form Routine is used to commit the data records
FORM call_bapi .
DATA : l_msgty TYPE c,
l_msgid(2) TYPE c,
l_msgno(3) TYPE c,
l_msgtx(100) TYPE c,
l_errflag TYPE c.
CLEAR: t_bapireturn.
REFRESH: t_bapireturn.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
PURCHASEORDER = T_POHEADER-PO
POHEADER = T_BAPI_POHEADER
POHEADERX = T_BAPI_POHEADERX
TABLES
RETURN = T_BAPIRETURN
POITEM = T_BAPI_POITEM
POITEMX = T_BAPI_POITEMX.
READ TABLE t_bapireturn WITH KEY type = c_err TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x.
ENDIF.
*C-- Write messages
WRITE: / 'PO Number', t_poheader-po.
clear : t_update,w_povtls.
read table t_update with key posap = t_poheader-po.
w_povtls = t_update-povtls.
CLEAR l_errflag.
LOOP AT t_bapireturn.
CLEAR: l_msgty, l_msgid, l_msgno, l_msgtx.
l_msgty = t_bapireturn-type.
l_msgid = t_bapireturn-id.
l_msgno = t_bapireturn-number.
l_msgtx = t_bapireturn-message.
WRITE: / l_msgty, l_msgid, l_msgno, l_msgtx.
if l_msgtx cs t_poheader-po.
w_count = w_count + 1.
loop at t_update.
if sy-tabix = w_count.
t_message-item = t_update-itemvtls.
endif.
endloop.
endif.
t_message-msgty = l_msgty.
t_message-msgid = l_msgid.
t_message-msgno = l_msgno.
t_message-msgtx = l_msgtx.
t_message-po = w_povtls.
append t_message.
clear t_message.
IF l_msgty EQ c_err.
l_errflag = c_x.
ENDIF. " l_msgty EQ 'E'
ENDLOOP.
ULINE.
IF l_errflag NE c_x.
w_success = w_success + 1.
ENDIF. " l_errflag NE C_X
endform. "call_bapi
*& Form fill_check_structure
This form Routine will check whether the specified structure
exist/active
FORM fill_check_structure USING fp_tabname TYPE any
fp_orgtabname TYPE any
fp_chktabname TYPE any
fp_check TYPE c.
FIELD-SYMBOLS : <fs_chk>, <fs_org>.
DATA: l_char1(61) TYPE c,
l_char2(61) TYPE c.
DATA: BEGIN OF tl_nametab OCCURS 60.
INCLUDE STRUCTURE x031l.
DATA: END OF tl_nametab.
REFRESH tl_nametab.
CALL FUNCTION 'RFC_GET_NAMETAB'
EXPORTING
tabname = fp_tabname
TABLES
nametab = tl_nametab
EXCEPTIONS
table_not_active = 1
OTHERS = 2.
IF sy-subrc <> 0.
CLEAR tl_nametab.
ENDIF.
LOOP AT tl_nametab.
CLEAR: l_char1, l_char2.
CONCATENATE fp_chktabname c_hyp tl_nametab-fieldname INTO l_char1.
ASSIGN (l_char1) TO <fs_chk>.
CONCATENATE fp_orgtabname c_hyp tl_nametab-fieldname INTO l_char2.
ASSIGN (l_char2) TO <fs_org>.
IF <fs_org> IS NOT INITIAL.
<fs_chk> = fp_check.
ENDIF.
ENDLOOP.
ENDFORM. " fill_check_structure
*& Form STORE_MESSAGES
text
-->FP_MESSAGEStext
FORM STORE_MESSAGES TABLES FP_MESSAGES STRUCTURE T_MESSAGE.
DATA: wl_output_data LIKE t_MESSAGE.
DATA: l_catstr TYPE string.
DATA: l_fieldvalue TYPE string.
DATA: l_index TYPE i VALUE 1.
DATA: L_FNAME(60).
FIELD-SYMBOLS <fs>.
CLEAR l_catstr.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = '/USR/SAP/VTLS/POCHANGE/LOG'
OPERATING_SYSTEM = SY-OPSYS
IMPORTING
FILE_NAME = L_FNAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = '0'.
IF fp_messages[] IS NOT INITIAL.
OPEN DATASET L_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
LEAVE LIST-PROCESSING.
ELSE.
LOOP AT fp_messages INTO wl_output_data.
DO.
ASSIGN COMPONENT l_index OF STRUCTURE wl_output_data TO <fs>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
MOVE <fs> TO l_fieldvalue.
IF l_catstr IS NOT INITIAL.
CONCATENATE l_catstr l_fieldvalue INTO l_catstr SEPARATED
BY con_tab.
ELSE.
MOVE l_fieldvalue TO l_catstr.
ENDIF.
l_index = l_index + c_1.
CLEAR l_fieldvalue.
CLEAR <fs>.
ENDDO.
l_index = c_1.
TRANSFER l_catstr TO L_FNAME .
CLEAR wl_output_data.
CLEAR l_catstr.
ENDLOOP.
CLOSE DATASET L_FNAME.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "STORE_MESSAGES -
Hi
i have a export.dmp file
i need to import it , but when the data is exist , i need to MERGE the rows (i mean inser the new rows and update the existing rows)
is IMP.exe can do that?
Thanksso i was thinking to do it in 1 operationstoo bad your imagination exceeds reality
imp help=yes
Import: Release 10.2.0.1.0 - Production on Sun Apr 18 19:35:34 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:
Example: IMP SCOTT/TIGER
Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:
Format: IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword Description (Default) Keyword Description (Default)
USERID username/password FULL import entire file (N)
BUFFER size of data buffer FROMUSER list of owner usernames
FILE input files (EXPDAT.DMP) TOUSER list of usernames
SHOW just list file contents (N) TABLES list of table names
IGNORE ignore create errors (N) RECORDLENGTH length of IO record
GRANTS import grants (Y) INCTYPE incremental import type
INDEXES import indexes (Y) COMMIT commit array insert (N)
ROWS import data rows (Y) PARFILE parameter filename
LOG log file of screen output CONSTRAINTS import constraints (Y)
DESTROY overwrite tablespace data file (N)
INDEXFILE write table/index info to specified file
SKIP_UNUSABLE_INDEXES skip maintenance of unusable indexes (N)
FEEDBACK display progress every x rows(0)
TOID_NOVALIDATE skip validation of specified type ids
FILESIZE maximum size of each dump file
STATISTICS import precomputed statistics (always)
RESUMABLE suspend when a space related error is encountered(N)
RESUMABLE_NAME text string used to identify resumable statement
RESUMABLE_TIMEOUT wait time for RESUMABLE
COMPILE compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION import streams general metadata (Y)
STREAMS_INSTANTIATION import streams instantiation metadata (N)
VOLSIZE number of bytes in file on each volume of a file on tape
The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set
Import terminated successfully without warnings. -
Getting Errors while using IMPDP command in UNIX
Hi All,
My work involves Refreshing of DB with latest Data. For this i am using IMPDP command to import the data. But Every time during refresh i will get errors saying like "oracle Generated Errors Oracle Not available".
I don't know what is the reason for getting this error, and that too my db goes down after this error. Again i will startup the db , and i will try my luck to complete the process.
so please tell me what are the actual problems that might cause the IMPDP to be failed.
with one advise , i have stopped my listener and done the importing, Interestingly this time IMPDP works without errors. But this is also not always working.
But i feel that every time starting and stopping the listener is not the correct solution.
so please help me in this regard.
Regards
Naveen R.The error i am getting is...
UDI-03113: operation generated ORACLE error 3113
ORA-03113: end-of-file on communication channel
Process ID: 6208
Session ID: 346 Serial number: 298
UDI-03114: operation generated ORACLE error 3114
ORA-03114: not connected to ORACLE
[user1@node1 cpt]$
DB version is 11.1.0.6.0
os is.. Red Hat Linux
Maybe you are looking for
-
There is duplicale payment on reciot no. 126046032206 Order is. MGXYTBSZJD
-
Arabic text appears in reverse
Hi, Do you know the answer to this? My Arabic text is appearing correctly However If you copy and paste arabic text from MS Word 2000 into Forms the characters appear reversed. i.e. Arabic example appears as elpmaxe cibarA Any idea what I'm doing wro
-
How do I get flash player?
I have done everything that it tells me to do I have went to manage add ons and active x control. I went to try and download a new version it says no pretty much but it does say not available when I go to manage add ons shockwave thing it will enable
-
SQL DEVELOPER DATA MODELER GENERATE DOCUMENTATION
Hi, Simple question. Is it possible to generate database documentation, based on data table field notes, that we write in DATA MODELER? THX
-
My macbook pro 2007 won't print to any printer
It will scan my Epson Stylus CX9400fax but will not print. Just sits there saying it is sending data. Have downloaded recent drivers. Verified disk. Repaired permissions. Having the same issue with an Epson Stylus CX5000. Nothing will print. B