Bapi Related to Sampling Schema

Hello all,
i want to create sampling schema from the external system. Can anyone tell me the related bapi or some other way to create or change the sampling schema.

Hi
I dont think so you can create GL accounts using this. You can know that by reading the documentation in SE37 tcode.
This contains the list of BAPI's : http://www.sapnet.ru/m/list_BAPI.html
Please check in from them and see if there is any to create GL.
Or else, using BDC also for tcode fs00 or fsp0 you can create GL Accounts.
Regards,
Vishwa.
Edited by: vishwa sri hari on Sep 24, 2008 7:05 AM

Similar Messages

  • BAPI for Sampling scheme and Quality Info Record in QM Module.

    Hi techies,
    I have a two object(Sampling Scheme,Quality info record)  for which i need a BAPI for uploading the data.
    Please tell me if any one knows.
    Richard.

    Vineeth,
    Usually, I wouldn't think the follow-up action would be an issue with system performance.  You say 7000 items, but do you mean 7000 UD's?  I.e. an inspection lot of 1000 units isn't unusual and that would be 7 inspection lots.  You've also now said that the program needs to look across plants for UD rejections and for notifications.  That is another level of complexity.
    While the UD follow-up action should still be able to handle that, I can't say it won't affect performance.  I was going to suggest you have it only run on certain UD codes, but since you now need to reveiw this across plants that might not work.
    What happens if my vendor/material is in a skip stage at plant A and Plant B opens a notification agains the vendor?  Since there is no UD, the follow-up action wouldn't run and change the DMR at plant A.
    If you need to look at a bunch of stuff, instead of the follow-up action, you may need to run a program in batch and have it run once an hour or every 10 minutes.  Depending on how you write it, it could be pretty efficient. 
    Craig

  • Queries on samples schemas (HR, OE, SH ...)

    Hi,
    I want to measure performance of database using Oracle sample schema. But I don't have many time to create queries which take some time on CPU and so on. Is there any script (or webpage) which contain sample queries on this schemas? I will be appreciative if someone help me with it.
    Best.

    The sample schemas are intended to allow practicing and exercising specific features of the database. The purpose of each schema is described in the 'Oracle® Database Sample Schemas' manual for your database version at http://tahiti.oracle.com. (See 'Master Book list' or 'All books'.)
    Many of the examples of `how to use a feature`using these schemas will be found in the documentation (http://tahiti.oracle.com) related to the feature. For example, base queries will be found in the SQL Language Reference manual. Spatial features will be found in the Spatial Users Referrence manual. And so on.
    Other than that, many of the samples found at htp://otn.oracle.com > Sample Code assume that the samples are installed.
    Oracle university database language courses also assume the schemas are loaded. However, their sample code is not available for obvious reasons.
    In all cases the samples are not performance oriented examples, simply because Oracle's cost-based optimizer can not provide consistent performance if size or statistics change.

  • How to create 9i db without sample schema?

    I have (finally) gotten 9iR2 installed on RH 7.3.
    During installation I created sample database instance TEST.
    I then used dbca to create a second instance JSDB.
    I did not see (but may have missed) dbca questions regarding wether or not to create/load sample database schema.
    How best to create a database without the sample database schema?
    If it can not be done, how best to expunge the sample database schema and all related litter?
    There seems to be tables for SCOTT, HR, OE, SH, PM.
    Thanks
    R.Parr
    Temporal Arts

    To drop SCOTT schema, run the batch file/shell script:
    ORACLE_HOME\BIN\DEMODROP
    To drop HR schema, run SQL script:
    ORACLE_HOME\DEMO\SCHEMA\HUMAN_RESOURCES\HR_DROP.SQL
    There are a number of other sample schema scripts to drop the other schemas installed with Oracle9i. If you can't find them easily, read the Sample Schema Guide on http://tahiti.oracle.com/.
    Alison

  • Can't find sample schemas

    I have installed 10g xe. I am self training using the oracle press book "Oracle Database 10g A Beginner's Guide." However, the book indicates that the customer table, mentioned in chapter 2 is provided as part of the sample schema in 10g. But the only schema I have is HR. Is there a place where I can download and import the schemas mentioned in the book? Or must I install enterprise edition in order to work with them? Thanks to any that can assist.

    The Order Entry (OE) schema builds on the purely relational Human Relations (HR) schema with some object-relational and object-oriented features. The OE schema contains seven tables: Customers, Product_Descriptions, Product_Information, Order_Items, Orders, Inventories, and Warehouses. The OE schema has links into the HR schema and PM schema. This schema also has synonyms defined on HR objects to make access transparent to users.
    rem
    rem Header: oe_cre.sql 09-jan-01
    rem
    rem Copyright (c) 2001, 2002, Oracle Corporation.  All rights reserved. 
    rem
    rem Owner  : ahunold
    rem
    rem NAME
    rem   oe_cre.sql - create OE Common Schema
    rem
    rem DESCRIPTON
    rem   Creates database objects. The script assumes that the HR schema
    rem   is present.
    rem
    rem NOTES
    rem   The OIDs assigned for the object types are used to
    rem   simplify the setup of Replication demos and are not needed
    rem   in most unreplicated environments.
    rem
    rem MODIFIED   (MM/DD/YY)
    rem   hyeh      08/29/02 - hyeh_mv_comschema_to_rdbms
    rem   ahunold   09/17/01 - FK in PRODUCT_DESCRIPTIONS
    rem   ahunold   04/25/01 - OID
    rem   ahunold   03/02/01 - eliminating DROP SEQUENCE
    rem   ahunold   01/30/01 - OE script headers
    rem   ahunold   01/24/01 - Eliminate extra lines from last merge
    rem   ahunold   01/05/01 - promo_id
    rem   ahunold   01/05/01 - NN constraints in product_descriptions
    rem   ahunold   01/09/01 - checkin ADE
    PROMPT
    PROMPT specify Sample Schema version as parameter 1:
    DEFINE vrs     = &1
    PROMPT
    -- ======================================================================
    -- Type definitions
    -- ======================================================================
    CREATE TYPE cust_address_typ
      OID '82A4AF6A4CD1656DE034080020E0EE3D'
      AS OBJECT
        ( street_address     VARCHAR2(40)
        , postal_code        VARCHAR2(10)
        , city               VARCHAR2(30)
        , state_province     VARCHAR2(10)
        , country_id         CHAR(2)
    REM ===========================================================================
    REM Create phone_list_typ varray to be varray column in customers table.
    REM ===========================================================================
    CREATE TYPE phone_list_typ
      OID '82A4AF6A4CD2656DE034080020E0EE3D'
      AS VARRAY(5) OF VARCHAR2(25);
    REM ===========================================================================
    REM Create customers table.
    REM The cust_geo_location column will become MDSYS.SDO_GEOMETRY (spatial)
    REM datatype when appropriate scripts and data are available.
    REM ===========================================================================
    DEFINE vscript = ?/demo/schema/order_entry/ccus_&vrs
    @&vscript
    CREATE UNIQUE INDEX customers_pk
       ON customers (customer_id) ;
    REM Both table and indexes are analyzed using the oe_analz.sql script.
    ALTER TABLE customers
    ADD ( CONSTRAINT customers_pk
          PRIMARY KEY (customer_id)
    REM ===========================================================================
    REM Create warehouses table;
    REM  includes spatial data column wh_geo_location and
    REM  XML type warehouse_spec (was bug b41)
    REM ===========================================================================
    DEFINE vscript = ?/demo/schema/order_entry/cwhs_&vrs
    @&vscript
    CREATE UNIQUE INDEX warehouses_pk
    ON warehouses (warehouse_id) ;
    ALTER TABLE warehouses
    ADD (CONSTRAINT warehouses_pk PRIMARY KEY (warehouse_id)
    REM ===========================================================================
    REM Create table order_items.
    REM ===========================================================================
    CREATE TABLE order_items
        ( order_id           NUMBER(12)
        , line_item_id       NUMBER(3)  NOT NULL
        , product_id         NUMBER(6)  NOT NULL
        , unit_price         NUMBER(8,2)
        , quantity           NUMBER(8)
    CREATE UNIQUE INDEX order_items_pk
    ON order_items (order_id, line_item_id) ;
    CREATE UNIQUE INDEX order_items_uk
    ON order_items (order_id, product_id) ;
    ALTER TABLE order_items
    ADD ( CONSTRAINT order_items_pk PRIMARY KEY (order_id, line_item_id)
    CREATE OR REPLACE TRIGGER insert_ord_line
      BEFORE INSERT ON order_items
      FOR EACH ROW
      DECLARE
        new_line number;
      BEGIN
        SELECT (NVL(MAX(line_item_id),0)+1) INTO new_line
          FROM order_items
          WHERE order_id = :new.order_id;
        :new.line_item_id := new_line;
      END;
    REM ===========================================================================
    REM Create table orders, which includes a TIMESTAMP column and a check
    REM constraint.
    REM ===========================================================================
    DEFINE vscript = ?/demo/schema/order_entry/cord_&vrs
    @&vscript
    CREATE UNIQUE INDEX order_pk
    ON orders (order_id) ;
    ALTER TABLE orders
    ADD ( CONSTRAINT order_pk
          PRIMARY KEY (order_id)
    REM ===========================================================================
    REM Create inventories table, which contains a concatenated primary key.
    REM ===========================================================================
    CREATE TABLE inventories
      ( product_id         NUMBER(6)
      , warehouse_id       NUMBER(3) CONSTRAINT inventory_warehouse_id_nn NOT NULL
      , quantity_on_hand   NUMBER(8)
    CONSTRAINT inventory_qoh_nn NOT NULL
      , CONSTRAINT inventory_pk PRIMARY KEY (product_id, warehouse_id)
    REM ===========================================================================
    REM Create table product_information, which contains an INTERVAL datatype and
    REM a CHECK ... IN constraint.
    REM ===========================================================================
    CREATE TABLE product_information
        ( product_id          NUMBER(6)
        , product_name        VARCHAR2(50)
        , product_description VARCHAR2(2000)
        , category_id         NUMBER(2)
        , weight_class        NUMBER(1)
        , warranty_period     INTERVAL YEAR TO MONTH
        , supplier_id         NUMBER(6)
        , product_status      VARCHAR2(20)
        , list_price          NUMBER(8,2)
        , min_price           NUMBER(8,2)
        , catalog_url         VARCHAR2(50)
        , CONSTRAINT          product_status_lov
                              CHECK (product_status in ('orderable'
                                                      ,'planned'
                                                      ,'under development'
                                                      ,'obsolete')
    ALTER TABLE product_information
    ADD ( CONSTRAINT product_information_pk PRIMARY KEY (product_id)
    REM ===========================================================================
    REM Create table product_descriptions, which contains NVARCHAR2 columns for
    REM NLS-language information.
    REM ===========================================================================
    CREATE TABLE product_descriptions
        ( product_id             NUMBER(6)
        , language_id            VARCHAR2(3)
        , translated_name        NVARCHAR2(50)
    CONSTRAINT translated_name_nn NOT NULL
        , translated_description NVARCHAR2(2000)
    CONSTRAINT translated_desc_nn NOT NULL
    CREATE UNIQUE INDEX prd_desc_pk
    ON product_descriptions(product_id,language_id) ;
    ALTER TABLE product_descriptions
    ADD ( CONSTRAINT product_descriptions_pk
         PRIMARY KEY (product_id, language_id));
    ALTER TABLE orders
    ADD ( CONSTRAINT orders_sales_rep_fk
          FOREIGN KEY (sales_rep_id)
          REFERENCES hr.employees(employee_id)
          ON DELETE SET NULL
    ALTER TABLE orders
    ADD ( CONSTRAINT orders_customer_id_fk
          FOREIGN KEY (customer_id)
          REFERENCES customers(customer_id)
          ON DELETE SET NULL
    ALTER TABLE warehouses
    ADD ( CONSTRAINT warehouses_location_fk
          FOREIGN KEY (location_id)
          REFERENCES hr.locations(location_id)
          ON DELETE SET NULL
    ALTER TABLE customers
    ADD ( CONSTRAINT customers_account_manager_fk
          FOREIGN KEY (account_mgr_id)
          REFERENCES hr.employees(employee_id)
          ON DELETE SET NULL
    ALTER TABLE inventories
    ADD ( CONSTRAINT inventories_warehouses_fk
          FOREIGN KEY (warehouse_id)
          REFERENCES warehouses (warehouse_id)
          ENABLE NOVALIDATE
    ALTER TABLE inventories
    ADD ( CONSTRAINT inventories_product_id_fk
          FOREIGN KEY (product_id)
          REFERENCES product_information (product_id)
    ALTER TABLE order_items
    ADD ( CONSTRAINT order_items_order_id_fk
          FOREIGN KEY (order_id)
          REFERENCES orders(order_id)
          ON DELETE CASCADE
    enable novalidate
    ALTER TABLE order_items
    ADD ( CONSTRAINT order_items_product_id_fk
          FOREIGN KEY (product_id)
          REFERENCES product_information(product_id)
    ALTER TABLE product_descriptions
    ADD ( CONSTRAINT pd_product_id_fk
          FOREIGN KEY (product_id)
          REFERENCES product_information(product_id)
    REM ===========================================================================
    REM Create cross-schema synonyms
    REM ===========================================================================
    CREATE SYNONYM countries FOR hr.countries;
    CREATE SYNONYM locations FOR hr.locations;
    CREATE SYNONYM departments FOR hr.departments;
    CREATE SYNONYM jobs FOR hr.jobs;
    CREATE SYNONYM employees FOR hr.employees;
    CREATE SYNONYM job_history FOR hr.job_history;
    REM ===========================================================================
    REM Create sequences
    REM ===========================================================================
    CREATE SEQUENCE orders_seq
    START WITH     1000
    INCREMENT BY   1
    NOCACHE
    NOCYCLE;
    REM ===========================================================================
    REM Need commit for PO
    REM ===========================================================================
    COMMIT;And yes, you must install at least Oracle SE to get completely this sample schemas on your file system :(

  • Determine Physical Samples using a Sample Scheme

    Dear QM friends,
    currently I am struggling with a QM issue that maybe you can help me with.
    Within the one of our factory sites we have rolled-out QM for quality inspection at GR, for this we use Physical Samples (just like we do in other factory sites). Only thing is that in this specific site they want to draw their physical samples based on a sample scheme. The other site use formulas to draw samples.
    So we have setup a sample-drawing procedure to determine the samples based on a specific sample scheme that has been setup for this factory.
    What I expected SAP to do when doing a goods receipt of for example 3 items is that SAP will draw 3 Physical Samples with a quantity of 1. However strangely SAP creates 1 Physical Sample with a size of 3 items.
    With kind regards,
    Kenny Galle

    Thanks for both of your responses
    In relation to you questions I checked the following:
    1. I am using Primary Samples alone and they are to be taken from a Sample Scheme linked in the Sample-Drawing Procedure;
    2. Increasing the sampel size does not work, I am still left with one physical sample and multiple items. Where I want a physical sample PER item.
    When we use a formula in the Sample-Drawing procedure (e.g., "P1" or "TRUNC(P1/10)+1") it works fine and we get a Physical Sample per serialize item.
    Any guidance will be highly appreciated!

  • Help - Sampling Scheme

    Hello SAP Gurus,
    I have defined a Dynamic Modification Rule a Sampling Scheme and a Sampling Procedure to use in inspection plan.
    Everything is working fine but the Sample Size is always 0. In Results Recording (QA32) the inspection lot quantity and number os the materials to inspect is correct... but the sample size is 0! The sample size shoud be equal to the number of the materials to inspect, right?
    Heres is a picture of the sampling scheme:
    [http://picasaweb.google.pt/lh/photo/5sVXnGLRTCHgHU4Koionzw?feat=directlink]
    Here is the link for the inspection lot:
    [http://picasaweb.google.pt/lh/photo/8veDwWC-lwE20o0w-qeTEQ?feat=directlink]
    The inspection lot is for 10 UN so, acording to the sampling scheme, the sample is 3 UN.... but the sample field is 0.
    In the results recording is OK, here is an image:
    [http://picasaweb.google.pt/lh/photo/zH-_DjwFlDbw7iXJZXwXEA?feat=directlink]
    Thanks in advance,
    Adelmo Silva
    Edited by: Adelmo Silva on Oct 19, 2009 5:45 PM

    Hello SujitSND,
    The characteristic is mandatory and I have maintained the relation between Sampling Procedure and Dynamic Mod. Rule and still not working...
    I dont undestand what you mean by "Also have you used seviarity & AQL level same in DMR & SP"
    Thanks,

  • List of BAPIs related to Workflow

    hello,
    I am currently working on a mobile application android my goal is to validate a workflow from a user that's why I want a list of BAPI with a link to the workflow
    thank you
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Jun 20, 2011 1:19 PM

    Hi,
    BAPI and FM related to Workflow -
    SAP_WAPI_START_WORKFLOW
    SAP_WAPI_CREATE_EVENT(latest)
    SWE_EVENT_CREATE (old)
    SAP_WAPI_CREATE_WORKLIST
    SAP_WAPI_GET_WORKITEM_DETAIL
    BAPI_CATIMESHEETMGR_INSERT
    SAP_WAPI_EXECUTE_WORKITEM
    BAPI_USER_GET_DETAIL
    Pls check the BAPI tcode in SAP for ore list of BAPIs related to workflow.
    Regards
    Lekha

  • What are the sample schemas(like scott,hr) in oracle 12c?

    Hi,
    I have just downloaded and installed  the oracle 12c on my desktop(Hurray!), but i don't see any of the sample schemas like scott and hr to play with. Do we have anything like those schemas in 12c?
    Thanks,
    sg

    I have just downloaded and installed  the oracle 12c on my desktop(Hurray!), but i don't see any of the sample schemas like scott and hr to play with. Do we have anything like those schemas in 12c?
    Yes - but they would be in a PDB if you installed the sample schemas; you won't find them in the CDB.
    If, like many people new to 12c, you did a default install for a database named ORCL and then connect to ORCL you are connecting to the CDB; that is, the root container. You won't find any sample schema there.
    If you installed the sample schemas then the install process would have created one PDB name PDBORCL (by default) and that PDB would contain the sample schemas.
    Then the next thing users typically do is connect as sysdba and do a STARTUP and then find they can't connect to PDBORCL. Surprise! The PDBs are NOT opened by default; you need to open them manually when you startup the DB or create an AFTER STARTUP trigger that opens the ones you want.
    Review chapters 17 and 18 of the Database Concepts doc
    http://docs.oracle.com/cd/E16655_01/server.121/e17633/cdbovrvw.htm

  • Oracle 9i Sample Schema running in client/server mode?

    I've got Oracle 9i up on RH7.3 and have successfully executed the sample schema on the Server using the mksample.sql script.
    Now the challenge is to run these same (sample schema) SQL scripts across a network using a 9i client. I copied the demo/schema files from the server installation to the client but when I invoke the mksample script the passwords have to include a connect_identifier which, in this environment, causes the subordinate scripts to get confused.
    Has anyone else attempted to do this?

    You did not have to change any of your scripts to put the connect_identifier.
    Within SQL*Plus you can use the "SET INSTANCE <connect_identifier>" command to make that Oracle instance
    your default for this session. After you do this, all your connect statements will not require a
    connect_identifier.
    ==============================================================
    $ sqlplus /nolog
    SQL> set instance ORA901
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    SQL> connect scott/tiger
    Connected.
    SQL>
    ==============================================================
    As you can see, after the SET INSTANCE command, the connect command does not need a connect_identifier.

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • Oracle provided sample schema ??

    I am new to Oralce
    I have just install Oracel 9i on my desktop, but having problems install the sample schema (HR, OR......)
    AS I have to manuly install the samle scheme, I followed the instuction given on the oracle website.
    I connected Using SYSTEM as SYSDBA, and execute the provided script and given the parameter as below :
    @?\DEMO\SCHEMA\HUMAN_RESOURCES\HR_MAIN.SQL
    specify password for HR as parameter 1:
    Enter value for 1: hr
    specify default tablespeace for HR as parameter 2:
    Enter value for 2: myspace ( I dont know what should be here , it is where things went worng i think. I got a error here ORA-00959: tablespace 'MYSPACE' does not exist)
    specify temporary tablespace for HR as parameter 3:
    Enter value for 3: temp
    specify password for SYS as parameter 4:
    Enter value for 4: sys
    specify log path as parameter 5:
    Enter value for 5: d:/Oracle_log
    After the input, I got mainly the error message :
    ****** Creating REGIONS table ....
    CREATE TABLE regions
    ERROR at line 1:
    ORA-01950: no privileges on tablespace 'SYSTEM'
    I dont understand tablespace in oracle. I had a look in the HR script. It create user HR and then connect as HR then start to creat table. i dont understand why the tablespace is still 'SYSTEM'
    Thanks for your help

    This looks like the doc you need:
    http://otn.oracle.com/tech/xml/xdk_sample/pdf/xdksample_093001.pdf
    Just do a search for the error text, it appears to be a sample that produces a deliberate error.
    Cheers
    Kevin

  • Oracle 9i Sample Schemas

    I looking for the sample schemas that should have been installed with 9i DB. I installed 9i Personal on Win 98, but can't find them (HR, OE, PM, etc). They were supposed to have uploaded to $ORACLE_HOME/demo/schema. Demo doesn't exists.
    I also tried to install the schemas on 8i according to the instructions and files that came with Oracle 9i JDev tutorial. The tables were not created, just lots of errors.
    Any ideas where to look in 9i or how to install them on 8i?
    Still, life's good
    Thanks

    Does your database have Oracle Intermedia installed?
    The other thing to check is whether your DBA has revoked execute on those objects from public. A couple of them served as vectors for DoS attacks against the database,
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • URGENT : can any one please give me BAPI related material

    Hi there,
    please help me i am a new learner to BAPI i dont know any thing about it can any one please send me the BAPI related material  and also related videos or screen cams if available.

    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g....>ALL
    STEP BY STEP for BAPI
    http://sap-img.com/abap/bapi-step-by-step-guidance.htm
    BAPI Programming Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    BAPI User Guide
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://ifr.sap.com/catalog/query.asp
    http://www.****************/Tutorials/BAPI/BAPIMainPage.htm
    step by step BAPI Creation with screen shots.
    http://www.sapgenie.com/abap/bapi/example.htm
    BAPI Programming guide: -
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    BAPI user guide: -
    http://help.sap.com/saphelp_46c/helpdata/en/7e/5e115e4a1611d1894c0000e829fbbd/frameset.htm
    BAPI STEP BY STEP PROCEDURE: -
    http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
    Example:-
    http://www.erpgenie.com/abap/bapi/example.htm
    PDF download: -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Also refer to the following links..
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.sapgenie.com/abap/bapi/index.htm
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.****************/Tutorials/BAPI/CustomBAPICreation2/page1.htm
    There are 5 different steps in BAPI.
    Create BAPI Structure
    Create BAPI Function Module or API Method.
    Create BAPI object
    Release BAPI Function Module.
    Release BAPI object.
    Step1. Creating BAPI Structure:
    Go to <SE11>.
    Select Data Type & Enter a name.
    Click on Create.
    Note: Always BAPI should be in a development class with request number (Not Local Object).
    Select Structure & hit ENTER.
    Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module:
    Enter TR.CODE <SE37>.
    Before entering any thing, from the present screen that you are in, select the menu
    Goto -> Function Groups -> Create Group.
    Enter a name (Note: This name Must start with ZBAPI)
    Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
    Click on the Third ICON that says Inactive Objects.
    Select the group that you just created and click on Activate.
    Notice that the group you created will disappear from the list of inactive objects.
    Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says ATTRIBUTES and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says IMPORT.
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says EXPORT.
    Enter the following as is in the first three fields
    RETURN TYPE BAPIRETURN (These 3 field values are always same)
    Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object:
    Enter Tr.Code <SWO1> (Note. It is letter ‘O’ and not Zero).
    Enter a name and then click on create. Enter details.
    NOTE: Make sure that that Object Type and Program name are SAME.
    Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom.
    Then hit <ENTER>.
    Now we have to add ‘Methods’. High light METHODS and then select the following from the menu:
    Goto Utilities -> API Methods -> Add Methods.
    Enter function Module name and hit <ENTER>.
    Select the second FORWARD ARROW button (>)to go to next step.
    Check if every thing looks ok and again click on FORWARD ARROW button (>).
    Then select ‘YES’ and click on <SAVE>.
    Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
    Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    Edit -> Change Release Status -> Object Type Component -> To Implemented.
    Edit -> Change Release Status -> Object Type Component -> To Released.
    Edit -> Change Release Status -> Object Type -> To Implemented.
    Edit -> Change Release Status -> Object Type -> To Released.
    Then click on <SAVE>.
    Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>.
    Here it shows business object repository.
    First click on the middle button and then select “ALL” and hit ENTER.
    Goto tab ALPHABETICAL and look for the object that you created. This shows that the BAPI object has been created successfully
    BAPI/RFC Interface
    A remote function call is a call to a function module running in a system different from the caller's.
    The remote function can also be called from within the same system (as a remote call), but usually caller and callee will be in different systems.
    In the SAP System, the ability to call remote functions is provided by the Remote Function Call interface system (RFC). RFC allows for remote calls between two SAP Systems (R/3 or R/2), or between an SAP System and a non-SAP System.
    RFC consists of the following interfaces:-
    A calling interface for ABAP programs
    Any ABAP program can call a remote function using the CALL FUNCTION...DESTINATION statement. The DESTINATION parameter tells the SAP System that the called function runs in a system other than the caller's.
    RFC communication with the remote system happens as part of the CALL FUNCTION statement.
    RFC functions running in an SAP System must be actual function modules, and must be registered in the SAP System as "remote".
    When both caller and called program are ABAP programs, the RFC interface provides both partners to the communication. The caller may be any ABAP program, while the called program must be a function module registered as remote.
    Calling interfaces for non-SAP programs
    When either the caller or the called partner is a non-ABAP program, it must be programmed to play the other partner in an RFC communication.
    To help implement RFC partner programs in non-SAP Systems, SAP provides-
    External Interfaces
    RFC-based and GUI-based interfaces can be used by external programs to call function modules in SAP R/2 or R/3 systems and execute them in these systems.
    Vice versa, ABAP programs in R/2 or R/3 can use the functions provided by external programs via these interfaces.
    Reward points..

  • Problems creating a db in 11g with Sample Schemas

    For a demo I'm doing I need the sample schemas.
    I have tried to add it to my existing database using dbca, as well as creating a new database with the sample schemas. In both cases I run into a problem with insuficient priveleges. If I do not include the sample schemas I can create the db just nice with dbca, however since it is the sample schemas I need that does not help me a lot.
    below the fist part of sampleSchema.log showing up til and including the first ORA-01031: insufficient privileges just ignoring it will lead to a lot more of them showing up.
    Any suggestion how to fix this?
    TEMP
    specify password for SYSTEM as parameter 1:
    specify password for SYS as parameter 2:
    specify password for HR as parameter 3:
    specify password for OE as parameter 4:
    specify password for PM as parameter 5:
    specify password for IX as parameter 6:
    specify password for SH as parameter 7:
    specify password for BI as parameter 8:
    specify default tablespace as parameter 9:
    specify temporary tablespace as parameter 10:
    specify log file directory (including trailing delimiter) as parameter 11:
    Sample Schemas are being created ...
    DROP USER hr CASCADE
    ERROR at line 1:
    ORA-01918: user 'HR' does not exist
    DROP USER oe CASCADE
    ERROR at line 1:
    ORA-01918: user 'OE' does not exist
    DROP USER pm CASCADE
    ERROR at line 1:
    ORA-01918: user 'PM' does not exist
    DROP USER ix CASCADE
    ERROR at line 1:
    ORA-01918: user 'IX' does not exist
    DROP USER sh CASCADE
    ERROR at line 1:
    ORA-01918: user 'SH' does not exist
    DROP USER bi CASCADE
    ERROR at line 1:
    ORA-01918: user 'BI' does not exist
    specify password for HR as parameter 1:
    specify default tablespeace for HR as parameter 2:
    specify temporary tablespace for HR as parameter 3:
    specify password for SYS as parameter 4:
    specify log path as parameter 5:
    DROP USER hr CASCADE
    ERROR at line 1:
    ORA-01918: user 'HR' does not exist
    old 1: CREATE USER hr IDENTIFIED BY &pass
    new 1: CREATE USER hr IDENTIFIED BY password
    User created.
    old 1: ALTER USER hr DEFAULT TABLESPACE &tbs
    new 1: ALTER USER hr DEFAULT TABLESPACE EXAMPLE
    old 2: QUOTA UNLIMITED ON &tbs
    new 2: QUOTA UNLIMITED ON EXAMPLE
    User altered.
    old 1: ALTER USER hr TEMPORARY TABLESPACE &ttbs
    new 1: ALTER USER hr TEMPORARY TABLESPACE TEMP
    User altered.
    Grant succeeded.
    Grant succeeded.
    ERROR:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    SP2-0640: Not connected

    Hi;
    please check Note:Is It Possible To Recreate The Example Schemas Hr And Oe? [ID 752140.1]
    Hope it helps
    Regard
    Helios

Maybe you are looking for

  • MacBook Pro 13" Late 2011 Internal Speakers Issue

    Every time I use my internal speakers (especially on high voice), my speakers' strength seems to lessen after few seconds of sound. But after about 30 minutes or so, the speakers are back to normal, but the same conflict repeats again after using the

  • Af|treetable skinning issue

    I have a treetable that I use for page navigation and I would like to change the expand/collapse icons. My skin looks like this af|treeTable.navTree::expanded-icon {content: url('/images/hsd.gif');} af|treeTable.navTree::collapsed-icon-style {-tr-inh

  • Enterprise Portal 6.0 with ECC 5.0

    Hi, I know there's an article here "Configuring ESS in SAP Enterprise Portal 6.0" but it seems like it's making a connection to R/3 4.6C. I am looking into connecting the EP to an ECC 5.0, which already has the ITS integrated into it. Any idea how th

  • Differences between 16GB and 32GB Models

    Hi, I'm looking at the differences between the 16GB and 32GB Xperia Z tablets (model numbers SGP311GB and SGP312GB) and apart from the differences in memory (obviously ) there doesn't appear to be anything else. So, this begs the question what benefi

  • Is there a pre-built VM with just Oracle Linux?

    I want to try out installing Oracle Database 11gR2 on a Virtualbox without going through installing Oracle Linux in a Windows Host so I'm looking for a pre-built VM with just Oracle Linux. Most of the VMs available in Pre-Built Developer VMs (for Ora