Export in procedure

Can we use export/import command in a stored procedure itself?

If Oracle database version is less than 10g, then probably you can use external procedures to call exp/imp. However if you are using 10g, then you can use datapump API. Search for DBMS_DATAPUMP for more examples.

Similar Messages

  • Export/import procedure for foreign trade field in PO item

    Hi Experts,
    I met a problem in import PO. Is there a possible way to make the Export/import procedure for foreign trade field in PO item automatically be determined?
    Thanks,
    Emily

    IF the import data tab shows up is depending on customizing for foreign trade data.
    The setting is done in IMG
    MM > Purchasing > Foreign Trade/ Custome > Control FT data in MM SD documents > Import screens in purchasing document

  • AS EXPORT TABLES, PROCEDURES, AND TRIGGERS MORE?

    Hi,
    I've finished my application on Oracle XE, and make the export of Workspace, the Scheme, then
    and export tables, procedures, triggers, etc, from Oracle XE to install on another computer?
    I appreciate your partnership and Attention ...
    Reynel Salazar Martinez ...

    por la parte de utilidades se genera la opcion
    ddl...
    y listo

  • Mandatory field Export/Import Procedure for Foreign Trade

    Hello all!
    Is there any possibilty to define the field Export/Import Procedure for Foreign Trade
    within the infoset as a mandatory field?
    Table T162 doesn't show me this field.
    Kind regards,
    Barbara

    Hello,
      in customizing under "Materials Management --> Purchasing --> Foreign Trade/Customs --> Control Foreign Trade Data in MM and SD Documents --> Incompleteness Schemas for Foreign Trade Data" you can create an incompletion procedure defininig the documents fields assigning a control type. Then in the subsequent customizing step "Foreign Trade Data in MM and SD Documents" you can assign the Incompleteness schema to each country code, choosing import or export.
    Hope to be useful.
    Best regards,
    Andrea

  • Export Pricing Procedure

    Hi SD Gurus,
    In sales order how to get the value in Netvalue.
    and my yesterday query has not solved
    in my pricing procedure there is no certain conditions JA1I,JA1S,JA1X........
    when i try to create sales order it showing automatically this conditions.
    is there any solutions to trace the conditions apart in sales order-> sales tab->Analysis..
    my yesterday's query
    i have one query regarding the pricing procedure.
    my clinet have 4 pricing procedures, in that Export Pricing procedure also included.
    when i try to create export order in that order it showing extra conditions which one has not included in export pricing procedure. how it come shows,is there provision to display like that, if it there what could be the process.
    Regards
    Murali

    murali kongara wrote:>
    > in my pricing procedure there is no certain conditions JA1I,JA1S,JA1X........
    > when i try to create sales order it showing automatically this conditions.
    Dear Murali,
    In OVKK, check pricing determination is properly maintained. And in VA01 - Header level in Sales Tab, check whether the same pricing procedure has come based on your pricing determination
    Hope you will get some idea
    regards,
    Sagar

  • Update the export import procedure in ME23n!!

    Hi,
    Is ther any exit/badi available which can be used for updating Export/Import Procedure for Foreign Trade ( EIPO-EXPRF) for transaction ME23n...
    Regards
    Gunjan

    ME23N is a display transaction not update.
    ME21N / ME22N / ME23N has a BADI that gives access to a lot of the PO data - ME_PROCESS_PO_CUST
    Note that this BADI has a number of methods with parameters defined as "Importing" which makes it look like you cannot change data, but some of these parameters are "TYPE REF TO" objects which themselves have methods such as GET_DATA and SET_DATA that actually allow you to access and change the fields.
    Search for previous posts including "ME_PROCESS_PO_CUST" - there is sample code in some of them.
    In transaction SE19, if you display the BADI then select menu option goto>sample code>display, you will be able to drill down on the PROCESS_ITEM method to some SAP supplied sample code.
    Andrew

  • Exporting system procedural objects and actions

    Hi
    Version-Oracle 11.2.0
    When i'm trying to export a blank dump it's getting hanged'.Even after 4 hours it's showing
    'exporting system procedural objects and actions'.
    Following is the command
    'exp username/password file=E:\Export\Blank.dmp log=E:\Export\Blank.log full=y indexes=n rows=n'
    Any help

    user588120 wrote:
    Hi
    Version-Oracle 11.2.0
    When i'm trying to export a blank dump it's getting hanged'.Even after 4 hours it's showing
    'exporting system procedural objects and actions'.
    Following is the command
    'exp username/password file=E:\Export\Blank.dmp log=E:\Export\Blank.log full=y indexes=n rows=n'
    Any helpTry to export only one table
    Do you get any error on your log file?
    If you fail to export any table, then try to TRACE the Data Pump job. Use the following Metalink note:
    *Export/Import DataPump Parameter TRACE - How to Diagnose Oracle Data Pump [ID 286496.1]*
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • OEM 12c export Deployment Procedure - partool

    Hello,
    We want to export a Deployment Procedure with the emctl partool utility (E27046-01-D.4 Exporting Deployment Procedures). Before we export the procedure we need to control the Software Library: $ORACLE_HOME/bin/emctl partool check.
    When we run the command we get an Error:
    ERROR !
    Software Library has not been setup !
    Please configure Software Library and try again.
    But from our point of view we have set up the Library, because you need to have one for the Agent deployment. Under Enterprise/Provisioning and Patching/Software Library I can see the different folders of the Software Library.
    We checked the log files for any changing right after the execution of the check command (bash-3.2$ find -name *.log -amin 2) but there were no entries in any log file.
    What do we have to do to eliminate this error?
    Thanks in advance

    This is a bug and we are working on the fix for this issue. This issue is with "partool check" command only, all other partool commands are fine.
    For now, customers should ignore this error if they have already setup the swlib.
    Edited by: user780562 on 08-Mar-2012 02:24
    Edited by: user780562 on 08-Mar-2012 02:27

  • Export stored procedure using sql dev

    Hi,
    I would like to export stored procedure.
    I notice there is a menu in sql dev ('Database Export').
    It will saves the export in .sql file.
    What is this .sql file will contain?
    What is the difference between this .sql file and .dmp file in expdp?
    What are the advantages and disadvantages in using these methods?
    Thanks.
    Edited by: 859102 on Jul 26, 2011 1:34 AM
    Edited by: 859102 on Jul 26, 2011 1:35 AM

    Any sqldev export is in normal readable format, with CREATEs, INSERTs and such.
    EXP/EXPDP in contrast stores binary data only readable with IMP/IMPDP.
    IMO, the sqldev method is better for small exports (of few objects and/or data), and EXPDP is better for full schema or DB exports as it's a lot faster.
    Have fun,
    K.

  • Need help to create export table procedure

    Hi,
    I have created a procedure, which may use to do following things:
    1. first create a duplicate table of sys.aud$ records
    2. export that duplicate table
    here I am enclosing my code:
    1. create or replace procedure crt_tab
    2. is
    3. sqlstring varchar2(100);
    4. tablename varchar2(100);
    5. sys_date varchar2(100);
    6. h1 number;
    7. begin
    8. select to_char(sysdate,'DDMMYYYY_HH12MISSAM') into sys_date from dual;
    9. tablename :='AUDIT_RECORD_'||sys_date;
    10. sqlstring := 'create table ' || tablename|| ' as select * from sys.aud$';
    11. execute immediate sqlstring;
    12. h1 := dbms_datapump.open(operation=>'EXPORT',job_mode=>'TABLE',job_name=>NULL,version=>'COMPATIBLE');
    13. dbms_datapump.add_file(handle =>h1, filename =>tablename||'.dmp',directory =>'AUDIT_RECORD', filetype =>1);
    14. dbms_datapump.add_file(handle =>h1,filename =>tablename||'.log',directory =>'AUDIT_RECORD',filetype =>3);
    15. dbms_datapump.metadata_filter(h1,'NAME_LIST','(''tablename'')');
    16. dbms_datapump.start_job(h1);
    17. dbms_output.put_line('Data Pump job started successfully');
    18. end;
    Well, in line number 15. I am passing a variable tablename as a parameter to dbms_datapump.metadata_filter but it exporting an empty dump. Could you please let me know how to pass a variable value in this.
    looking forward to your early response.
    Regards,
    M.A.Bamboat
    [email protected]

    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    l_dp_handle     NUMBER;
      3    l_last_job_state VARCHAR2(30) := 'UNDEFINED';
      4    l_job_state     VARCHAR2(30) := 'UNDEFINED';
      5    l_logfilename     VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.log';
      6    l_expfilename     VARCHAR2(20) := to_char(sysdate, 'DDMMRRRR') || '.dmp';
      7    l_tbl_name     VARCHAR2(30) :='EMP';
      8  BEGIN
      9    l_dp_handle := DBMS_DATAPUMP.OPEN(operation   => 'EXPORT',
    10                          job_mode    => 'TABLE',
    11                          remote_link => NULL,
    12                          job_name    => 'SAUBHIK_EXPORT',
    13                          version     => 'COMPATIBLE');
    14    DBMS_DATAPUMP.ADD_FILE(handle     => l_dp_handle,
    15                     filename     => l_expfilename,
    16                     directory => 'SAUBHIK',
    17                     filetype     => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
    18    DBMS_DATAPUMP.ADD_FILE(handle     => l_dp_handle,
    19                     filename     => l_logfilename,
    20                     directory => 'SAUBHIK',
    21                     filetype     => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    22    dbms_datapump.metadata_filter(handle => l_dp_handle,
    23                         name   => 'NAME_EXPR',
    24                         value  =>'= '||''''||l_tbl_name||'''');
    25    dbms_datapump.start_job(l_dp_handle);
    26    dbms_datapump.detach(l_dp_handle);
    27  EXCEPTION
    28    WHEN OTHERS THEN
    29      dbms_datapump.stop_job(l_dp_handle);
    30      RAISE;
    31* END;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM user_datapump_jobs;
    JOB_NAME                 OPERATION                JOB_MODE                    STATE                    DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    SAUBHIK_EXPORT                 EXPORT                     TABLE                    EXECUTING                         1       0           2
    SQL> /
    JOB_NAME                 OPERATION                JOB_MODE                    STATE                    DEGREE ATTACHED_SESSIONS DATAPUMP_SESSIONS
    SAUBHIK_EXPORT                 EXPORT                     TABLE                    NOT RUNNING                    0       0           0
    SQL> /
    no rows selected
    SQL>
    oracle@ubuntu-desktop:~/Documents$ pwd
    /home/oracle/Documents
    oracle@ubuntu-desktop:~/Documents$ ls -l 05092011*
    -rw-r----- 1 oracle oinstall 98304 2011-09-05 15:07 05092011.dmp
    -rw-r--r-- 1 oracle oinstall   928 2011-09-05 15:07 05092011.log
    oracle@ubuntu-desktop:~/Documents$

  • Export/Import Procedure for Foreign Trade

    Dear all,
    Could you please explain me the field "Export procedure"?
    This can be found in the delivery:
    Transaction: VL03n --> Item --> Foreign Trade/ Customs --> Origine / Destination / Business
    I know how the default value of this field is found. What I have to know, is the outcome of changing these value. Is this field only for statistical/ information reasons or is there a link to an other function?
    Thanks,
    Thomas

    Dear Thomas,
    The field is meant for indicating the customs procedure into which the goods are to be entered (eg. export or reexport, outward processing). It is part of official customs declaration forms in the EC ("Single Administrative Document"/SAD). Like the other fields on the tab page "Foreign Trade/Customs", it is generally only needed in case of cross-border sales/deliveries. The content of these fields is stored in table EIPO which is usually referenced by the billing document. In case of an export, for example, you could issue the customs declaration based on these and other billing document data. (Nowadays, export declarations are to be filed electronically in the EC. The data are thus transferred to either SAP GTS or a third-party software.)
    And yes, they are in parts also relevant to export statistics.
    Best regards,
    Christiane
    Edited by: Christiane Schnellenbach on Mar 19, 2010 11:24 AM

  • VPRS condition in export pricing procedure

    Hi All,
    I have done the configuration for export sale scenario. I created a complete cycle from sales to Billing and documents are getting created.
    As there was no VPRS condition in standard pricing procedure for exports (JINEXPO), i have not included in my Pricing procedure. Pl note no "CIN" is introduced in our project.
    My doubt is why "VPRS" is not included in the std pricing proced, and how cost will be captured in the export sale?
    Regards
    Anand.M

    Hi,
    please reff this link.
    http://sapsdforum.com/2007/10/23/pricing-in-sd-in-great-detail

  • How to export Guided procedure - Initiator to RFC as an export parameter

    Hi All,
          How do I capture the Initiator, Owner and Oversee of my Guided procedure and bind it as an output parameter of a Callable object?
         I need to this information to be sent to RFC so that I can perform the dynamic agent determination and send the agent back to Guide procedure.
    Thanks in adv.
    Edited by: Prab Vad on Sep 24, 2009 6:35 PM

    Based on the UI dialog for Export XML, it looks like you'll first want to set an XMLExportPreference to copy either optimized or formatted images, and then choose and image type. So,
    objDoc.xmlExportPreferences.copyFormattedImages = true;
    or
    objDoc.xmlExportPreferences.copyOptimizedImages = true;
    followed by
    objDoc.xmlExportPreferences.imageConversion = ImageConversion.JPEG
    or
    objDoc.xmlExportPreferences.imageConversion = ImageConversion.PNG
    This help page describes the difference between optimized and formatted images: InDesign Help | Exporting XML
    That should get you started.  You may need to play with some other options to get the output you want, but that's the idea.

  • Export Import Procedure

    Hi Friends,
    How can i make ex-im procedure to come by default in PO.
    Thank You,
    Ashok

    Hi,
    Not clear about your requirement.
    Generally when procurement process is different(Local, Import), that can be differentiate by Document Type of PO.
    For Default Document type Just go SPRO->Materail Management-> Purcahsing->Define Default value for Document type.
    Here You can assign your ME21N with your Document type.
    If helpful then reward.
    Regards,
    Biju K

  • Consignment process and Condition types in Export Pricing Procedure

    Hi,
    Can any body tell me the
    1. consignement process i.e which document are used at which level
    2. when we are going for exports sales then which condition types are used and on which calulation is based on.
    thanks
    harmeet singh

    Hi there,
    Consignment is a business process where the goods are stored at the customer / consignee location but are billed only when they are actually consumed.
    It has 4 processes:
    Consignment Fillup: order type KB, item catg KBN, Schedule line catg E0 or E1. This is when the stocks are moved from the plant stock to the consignee location.
    Consignment Issue: Order type KE, item catg KEN, Schedule line catg C0 or C1. This is when the customer actually uses the goods for cunsumption.
    Consignment Return: order type KR, item catg KRN, Schedule line catg D0. This is when the customer puts back the goods into the consignment stock (returns to condignee location)
    Consignmnet pickup: order type KA, item catg KAN, schedule line catg F0, F1. This is when the stocks are put back into the plant stock from the consinment special stock. That is from the consignee location to the plant.
    For all the above order types it has standard delivery LF & returns delivery LR delivery types.
    Stocks at the consignee location are maintained as consignment special stock. Controlled by indicator W in item catg KEN.
    Regards,
    Sivanand

Maybe you are looking for

  • HTTP to RFC scenario

    I have been trying to configure the XML to IDOC scenario given in the XI starter pack . Does anybody have the sample XML and XSD files mentioned in the scenario ? There are two messages in the XSD, purchase order request and purchase order response.

  • Sams Club Business MC - I just don't get it

    Partner and I went to store yesterday so he could apply for the Business MC and PG it... after 45 minutes (yes 45 minutes at the counter!) 30 of which the rep was on the phone with credit... they came back a few times but would not talk to us, and al

  • Error on a input ready query

    Hello SAP Gurus, Can anybody advise on the following error of an input ready query? u2022 Error reading the data of InfoProvider ZIPNA002 - Notification Number DBMAN 305 u2022  Error while reading data; navigation is possible - Notification Number BR

  • Help with ipod update - updating it without a cable

    Hi, I've just received my new ipod after sending my old one back. I plugged it in and I needed to update it so I did. Not realising you needed a charger to complete the update. Its now showing the charger icon. Is there any way I could reset or cance

  • F and E Fact Tables

    Hi, What is the difference between F fact table and E fact table? When we create an Infocube which fact table is generated? Thanks, Soujanya