Inerface to BAPI Interface

Hi All,
I have a requirement where in i need to create a BAPI as a separate interface and then call this BAPI in a BPM created in another interface. This BAPI interface is to be created in a genaralized format for reusability.
Is it possible to achieve this through BPM? I had checked a blog showing the BAPI  that was created as a webservice froim R3 but then my requirement is to create it as a separate  interface and then from XI i define it as a web service.
Please advice.
Thanks in advance,
Sai
Edited by: Saikumar on Apr 4, 2010 7:42 AM

SOAP --> XI (BPM) --> Target .... where your Target is using/ hosting the BAPI (SAP system)....so now you have exposed the BAPI as a WebService.
Is it possible to achieve this through BPM?
You want to use a BPM just to expose the BAPI or there is really a need to use BPM.....if it is just to expose the BAPI as webservice then a BPM is not needed.
Is there any other functionality involved in your scenario?
Regards,
Abhishek.

Similar Messages

  • Calling SAP BAPI Interface from PL/SQL

    Hi,
    How can i call BAPI Interface from PL/SQL.
    If you have any documents or examples please send me.
    Thanks in Advance
    Best Regards,
    Sreekanth

    Hi !
    declare
      req  utl_http.req;
      resp utl_http.resp;
      v_txt clob;
    begin
      req  := UTL_HTTP.begin_request ('http://rp.yoc.de/http/test/mbInfo/1.0/?smsbalance=total','GET','HTTP/1.1');
      resp := UTL_HTTP.get_response  (req);
      dbms_output.put_line(resp.status_code);
      dbms_output.put_line(resp.reason_phrase);
       utl_http.read_text(resp,v_txt);
       dbms_output.put_line(v_txt);
       UTL_HTTP.end_response(resp);
    end;I'm not exactly sure what are you looking for .. but that response from your post you can get with my code ( it's tested ).
    T
    Edited by: ttt on 12.3.2010 5:10
    My code is very "poor" , there is no error checks no header setup's no basic authentication no proxy settings .....

  • Suitable BAPI interface to upload data intoKP26 T.code (CO)

    Hi All I need to know the BAPI interface to upload the data into KP26 Co Activity type /Price Planning
    I have these fields to create entries in KP26 t.code.
    The Fields are as follows:
    Layout (could use the standard layout 1-201)
    1.Version --
    2. Period from / to --
    3. Fiscal Year -
    4. Cost Center -
    5.  Activity type-
    6. Fixed price-
    7. Variable price-
    8. Price unit--- 
    PLease any body help me which BAPI is suitable for KP26 T.Code .. Its Urgent ...
    Regards
    Purushotham.Ineni.

    Hi thank you  for kind reply i need to create the entries  for CO Activity /Price planning .
    i have to upload data to KP26 which i have posted the fields ..
    i already cheked the function modules which you have been given .. it is not suitable ..
    Is there any ohter  BAPI is there ... le t me know ...
    regards
    purushotham.ineni

  • Find BAPI interface table

    Hi,All
        I want to find for one BAPI interface which tables is the BAPI data come from ?
       Is there a mapping list can supply to me?     
            BAPI function module: BAPI_GLX_GETDOCITEMS          Data from table:  A , B
       thanks

    Hi,
    If u run a Transaction code of any module the data will sit in different tables in will not *** from Single table.ask ur functional cionsultant the table and fields you want to fetch.
    If you are experienced ABAPER u urself can go to the T code and find the tables
    as u said for PO ekko,ekpo etc.
    REgards

  • Ale - bapi interface

    WE need to create applicant for hr recruitement from external data
    via idoc and ale bapi .
    <b>first</b> we generate the ale interface
                                                                                    Checking message type                                                        Message type ZAPPLICANT_CREATEFROMDATA exists already                                            
      Check basic type ZAPPLICANT_CREATEFROMDATA01                                 Basic type ZAPPLICANT_CREATEFROMDATA01 exists                                                      Basic type ZAPPLICANT_CREATEFROMDATA01 is released                                               
      Basic type ZAPPLICANT_CREATEFROMDATA01 is linked to logical message ZAPPLICANT_CREATEFROMDATA    
      No predecessors exist                                                       Check segment Z1ZAPPLICANT_CREATEFROMDATA                                 Segment Z1ZAPPLICANT_CREATEFROMDATA consistent                                                  Check segment Z1BPEDUC                                                    Segment Z1BPEDUC consistent                                                  Check segment Z1BPEMPLOY                                                  Segment Z1BPEMPLOY consistent                                                  Check segment Z1BPQUALI                                                   Segment Z1BPQUALI consistent                                                  Check segment Z1BPVACASS                                                  Segment Z1BPVACASS consistent                                                  Checking outbound function module                                                      ZALE_APPLICANT_CREATE has been generated                                                   Checking inbound function module                                                      ZIDOC_INPUT_ZAPPLICANT_CREATEF has been generated                                                
    <b>Second</b> we configure the partner profile
    <b><u>after that we do a test to create an applicant from an idoc</u></b>but we have this message error
    make an entry in all required fields even if we put data in
    all fields of all idoc segments.
    Best regards

    Hi Mohamed,
    first of all, welcome to SDN! Sorry, this is the wrong forum for your question, the experts in the <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode2-3&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D50">ABAP forum</a> will probably help you.
    Regards, Stefan

  • IDOC and BAPI interfaces.

    Hi SAP experts,
    Can anydody please help me out regarding the SAP interfaces e.g. IDOC, BAPI if any other,,,,,,,,,,
    Please give me some examples also.
    Thanks & regards
    Amar Adam

    Hi Reddy,
    Very general question, I don't think you will find the answer in one document.
    BAPIs are normal function modules, with predefined input and output structures to perform standard business transactions.
    IDOCs are standardised interface documents to transfer data.
    Once the IDOC is read, it almost always calls a BAPI to perform the business transaction.
    Therefore start with reading about BAPIs since you will definately have to master those when starting to work on interfaces.
    There are hundreds of BAPIs so best is to start with a specific process, example sales order create or material master create.
    Try transaction BAPI, this lists most of the BAPIs and contains excellent documentation.
    Thanks for your points,
    Filip

  • Bapi/interface

    Hi
    I got some requirements to create the interface and breif idea is to use BAPI's.
    I would like to know some information can BAPI  function modules replace the call transaction or session which we use for interfaces.
    an we avoid that lengthy code?
    Where do we start when we are using BAPI'S,?do we need to upload flat files and where we avoid?
    Where we can find BAPI fm?
    Thanks in advance

    Hi,
    you can use transaction code BAPI to display all the business objects & BAPI names & details.
    If you want u can search a particular BAPI form Transaction Code SE37. Here Serach like BAPI*. & it will display all the available bapi.
    Go in display mode for a particular BAPI & find out which are mandatory parameters.
    After calling particular bapi you need to call BAPI commit function module otherwise changes will not take place in database.
    e.g. suppose you have used the following bapi:
    BAPI_ACC_DOCUMENT_POST'.
    After calling above bapi you need to use the following:
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    For more details check out the following link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm
    Ashvender

  • How to header and item data of sales order using bapi interface

    hi friends,
       i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
    i need bapi function modules for header adn item data  and brief explation on that , how to pass importing and tables  parameters to get exact output .
    regards
    geetha.

    Use : BAPI_SALESORDER_CREATEFROMDAT2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    1. Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                       SALES_ORG    Sales organization
                       DISTR_CHAN   Distribution channel
                       DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    2. Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    3. Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    4. German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE     Sales document type, for example: TA for standard order
    PARTN_ROLE   Partner role, for example: WE for ship-to party
    Further information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Parameters
    SALESDOCUMENTIN
    ORDER_HEADER_IN
    ORDER_HEADER_INX
    SENDER
    BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR
    LOGIC_SWITCH
    TESTRUN
    CONVERT
    SALESDOCUMENT
    RETURN
    ORDER_ITEMS_IN
    ORDER_ITEMS_INX
    ORDER_PARTNERS
    ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CFGS_BLOB
    ORDER_CFGS_VK
    ORDER_CFGS_REFINST
    ORDER_CCARD
    ORDER_TEXT
    ORDER_KEYS
    EXTENSIONIN
    PARTNERADDRESSES
    Exceptions
    Function Group
    2032

  • Getting error while Using BAPI Interface in VB

    Hi,
    I m getting error message while creating object of SAP.BAPI.1
    Error message is "out of memory : run time error 7".
    do I need to install any patch to my local PC? If yes then from where could i get that patch.
    Plz help me out.
    Thanks & Regards,
    Sagar

    Hi Sagar,
    Please varify the version of SAP client you use. I have noticed that this error with SAP Frontend Package 6.20, and was able to over come the follwing issue by upgrading to the SAP Frontend Package 6.40.
    Regards,
    Randima

  • XSD for BAPI interface

    Hi,
    I am wondering whether anyone can provide guidance on generating XSD or any XML definition of the BAPI parameters.
    thanks.
    James

    hi, James Chang 
    If you are using a WAS 6.4 sever(I can only give you this sample, because I haven't done the test on other system), you can do as following:
    Create a Web service for you BAPI, go to se37, menu 'untility' 'more untility' 'create web service'.
    After a wizard, you alread create a Web service for your BAPI.
    Then tcode WSADMIN, and choose the WS you created before, click the WSDL button(it is beside TEST button).
    Then some web page will appear by SAP BSP service, and you can see the WSDL file of your BAPI.
    I think your problem can be solved.
    By the way, in XI, if you input a BAPI into XI, it will generate the WSDL file, the XSD definition of your BAPI can be get.
    thanks

  • Using BAPI as WebService Interface in SAP PI

    Hello,
    Situation is:
    BAPI is imported in SAP PI from SAP R/3 system.
    The BAPI will be used for R/3 as Sync.Receiver.
    A Web Application should connect to SAP PI with the same message structure for request and response.
    So the idea is to publish the BAPI interface as a WSDL for this partner.
    But when doing this in Directory SAP PI does not offer BAPIs as Interfaces for WSDL, only message interfaces created
    in Repository are offered.
    BAPIs are interfaces per definition. So we dont need a message interface to add the BAPI to it.
    Maybe this woin t work anyhow with a SAP system.
    But how to use the BAPI for a WSDL?
    Is it required to create an interface for this purpose and add this one in the Directory WSDL create function?
    Best regards
    Dirk

    Hi Meinhard,
    There are more ways to get where you want to go, some are mentioned above.
    You can also do the following:
    1) From the BAPI you create the Webservice in R3 (as described in the link from pavan kumar)
    2) Go to trx SOAMANGER (in R3)  and get the URL for the WSDL
    3) Import the WSDL in PI as an External Definition (ED)
    4) Now you create an INBOUND, synchronous, service interface with the external definition.
    5) After saving the SI you can create a matching Outbound service interface (it's a menu option)
    Now you can use these service interfaces in the Integration directory.
    You can even create an ICO (integrated configuration) provided you use SOAP communication channels.
    kr
    Robert

  • SAP BAPI ActiveX Interface

    Hello,
    This is a cross post from LAVA forum...
    I'm trying to integrate our test stations to SAP ERP. SAP stores data in busines objects in busines object repository. The objects are exposed over BAPI interface. There is a lot of different busines objects in the repository. SAP developers can also build new objects if they want. The objective is to read inspection characeristics from quality management module of SAP. I haven't done much ActiveX stuff, neither know much about SAP, so I started with a simple example that I found searching for BAPI examples. The example works fine in Excel. The example just reads some data from a sales order object.
    Sub BAPI1()Dim
    oBook As Workbook
    Dim oSheet As Worksheet
    Dim oBAPICtrl As Object
    Dim oBAPILogon As Object
    Dim oSalesOrder As Object
    Dim oItem As Object
    Dim iIndex As Integer
    Set oBook = Application.ActiveWorkbook
    Set oSheet = oBook.Worksheets(1)
    ' Initialize SAP ActiveX Control.
    Set oBAPICtrl = CreateObject("sap.bapi.1")
    ' Initialize SAP ActiveX Logon.
    Set oBAPILogon = CreateObject("sap.logoncontrol.1")
    ' Initialize the connection object.
    Set oBAPICtrl.Connection = oBAPILogon.newconnection
    ' Logon with prompt.
    oBAPICtrl.Connection.System = "Q02"
    oBAPICtrl.Connection.Client = 101
    oBAPICtrl.Connection.Logon
    ' Retrieve a sales order.
    Set oSalesOrder = oBAPICtrl.GetSAPObject("SalesOrder","0010732181")
    ' Display Sales Order header data.
    oSheet.Cells(2, 1).Value = oSalesOrder.salesdocument
    oSheet.Cells(2, 2).Value = oSalesOrder.netvalue
    oSheet.Cells(2, 3).Value = oSalesOrder.orderingparty.customerno
    oSheet.Cells(2, 4).Value = oSalesOrder.documentdate
    oSheet.Cells(2, 5).Value = oSalesOrder.items.Count
    ' Logoff SAP and close the control.
    oBAPICtrl.Connection.logoff
    Set oBAPILogon = Nothing
    Set oBAPICtrl = Nothing
    End Sub
     I tried to implement that in LabVIEW. The logon and logout part works, I can also obtain SalesOrder object with GetSAPObject method. There is no error and probing the Object output from GetSAPObject methods gives an integer value - probably a reference to the SalesOrder object.
    Now I can't figure out how do I read the object properties. It's very simple in VBA. I also don't know how do I call object methods. This is apicture from SAP BAPI documentatios showing available properties and methods.
    I would appreciate any hints...
    bye, Mirko

    No, there isn't any reference type that matches BAPI Object. In fact, there can't be a fixed type reference, since BAPI object are actually function modules that SAP programmers write themselves using language called ABAP. I concluded that we can't call the object methods or read/write properties in LabVIEW, if we don't know the right type at development time. So, I gave up on BAPI API.
    There are also other methods of SAP integration. O step down on abstraction scale is Remote Function Call (RFC) API. The API is much more involved, but it allows us to call functions that are behind BAPI objects. In a few test that I did it worked fine. The interface is exposed over three ActiveX controls - SAP Remote Function Call Control, SAP Table Factory Control and SAP Logon Control.
    There is also .NET assembly and web services which I didn't tried.
    Regards, Mirko

  • Diff b/w BAPI and Function Module.

    What is the difference between BAPI and Function Module....
    By Interface programming do we mean posting data thru  BAPI,BDC....

    Hi Alex,
    BAPI: Standard Interface in the R/3 system that allows the system to communicate with components of other business suites.
    FM: These are the procedures that are defined in the Function Groups and can be called from any ABAP Program. FM allow you to encapsulate and reuse global functions int he R/3 system.
    The main basic difference between BAPI and FM are
    1) All BAPIs are FM but not all FMs are BAPIs
    2) BAPIs are remote enabled
    3) BAPIs interface will not have a changing and exceptions. They can not be used to have use dialog.
    Interface programs can post data to SAP either through a BDC, BAPI, IDOC etc. It depends on the type of requirement.
    Hope this solves your question.
    Enjoy SAP
    Rajasekhar

  • How to access BAPI in enterprise portal perspective?

    hi,I am venkat new to the portal.can anyone plz tel me how to access BAPI in enterprise portal perspective?is done through JCo or any other database connection?I hav not seen in System Landscape about BAPI access.plz give guidance about BAPI interface in enterprise portal.Hope u  will understand the question and answer the query.
    thanx in advance.
    Regards:
    Venkataramana.

    Guys,
    Herez how you call a BAPI:
         public void buildConnection(){
              try {
                        System.out.println("**** DI2 *****");
                     //      Add a connection pool to the specified system
                     //    The pool will be saved in the pool list to be used
                     //    from other threads by JCO.getClient(SID).
                     //    The pool must be explicitely removed by JCO.removeClientPool(SID)
                       com.sap.mw.jco.JCO.addClientPool( SID,         // Alias for this pool
                                             10,          // Max. number of connections
                                             "040",       // SAP client
                                             "USERNAME",   // userid
                                             "PASSWORD",  // password
                                             "EN",        // language
                                             "IPADDRESS",// host name
                                             "40" );
                     //      Create a new repository
                     //    The repository caches the function and structure definitions
                     //    to be used for all calls to the system SID. The creation of
                     //    redundant instances cause performance and memory waste.
                       repository = com.sap.mw.jco.JCO.createRepository("MYRepository", SID);
                        JCO.Client client = null;
                        client = JCO.getClient(SID);
    //                 Get a function template from the repository
                        //IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_CUSTOMER_GETDETAIL2");
                        IFunctionTemplate ftemplate = repository.getFunctionTemplate("YGGLB_BAPI_YGGLB9PRK_PRKDOCU");
    //                 Create a function from the template
                        JCO.Function function = ftemplate.getFunction();
    //                 Get import (of Function Module) "Parameter list"
                        JCO.ParameterList input = function.getImportParameterList();
    //                 Set inputs for import parameters
                        //input.setValue("0000009000", "CUSTOMERNO");
                        //input.setValue("0248","COMPANYCODE");
    //                 Get import (of Function Module) "Structure list".
                       //JCO.Structure importStructure = function.getImportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure importStructure = function.getImportParameterList().getStructure("IM_DOCUMENTHEADER");
    //                 Set values for import parameters (of Function Module) "Structure list"                     
                        importStructure.setValue( "SA", "DOC_TYPE" );
                        importStructure.setValue( "20080910", "PSTNG_DATE" );
                        importStructure.setValue( "20080910", "DOC_DATE");
                        importStructure.setValue( "BHARDWS", "USERNAME" );
                        importStructure.setValue( "2008", "FISC_YEAR" );
                        importStructure.setValue( "FRE1", "COMP_CODE" );
    //                 Get import (of Function Module) "Table list - 1".
                        JCO.Table orderPartners = function.getTableParameterList().getTable("TBL_ACCOUNTGL");
    //                 Set values for import parameters (of Function Module) "Table list - 1"
                        //Append Row -1
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000001", "ITEMNO_ACC" );
                         orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("H", "DE_CRE_IND" );
                        orderPartners.setValue( "ANYTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
                        //Append Row -2
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000002", "ITEMNO_ACC" );
                        orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("S", "DE_CRE_IND" );
                        orderPartners.setValue( "NOTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
    //                 Get import (of Function Module) "Table list - 2".
                        JCO.Table orderItems = function.getTableParameterList().getTable("TBL_CURRENCYAMOUNT");
    //                 Set values for import parameters (of Function Module) "Table list - 2"
                        //Append Row -1
                        orderItems.appendRow();
                       orderItems.setValue("0000000001", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
                        //Append Row -2
                        orderItems.appendRow();
                       orderItems.setValue("0000000002", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
    //                 Execute client
                        client.execute(function);
    //******************Start to work on fetching values now********************************
    //                 Get export (of Function Module) "Structure list".
                        /*JCO.Structure returnStructure = function.getExportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure returnStructure2 = function.getExportParameterList().getStructure("CUSTOMERGENERALDETAIL");
                        returnStructure.getString("NAME");
                        returnStructure2.getString("ENTERED_BY");*/
    //                 Get export (of Function Module) "Table list"./// Create a new template if fetching table data from a different function module than above
                        //IFunctionTemplate ftemplateTable = repository.getFunctionTemplate("BAPI_CURRENCY_GETLIST");
                        //JCO.Function functionTable = ftemplateTable.getFunction();
                        //client.execute(functionTable);
                        JCO.Table table_return = function.getTableParameterList().getTable("RETURN");
                        Vector tbl = new Vector();
                        Vector row = new Vector();
                        Vector colNames = new Vector();
                        //Loop over all rows
                        do {
                        //Loop over all columns in the current row and add all those colums values to the current row
                        for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             row.add(field.getString());
                             System.out.println(field.getName() + ":\t" + field.getString());
                             } // end for
                             //Add this newly built row to the table     
                             tbl.add(row);
                             } while (table_return.nextRow());
                             table_return = null;
                             table_return = function.getTableParameterList().getTable("RETURN");
                             table_return.nextRow();
                             for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             colNames.add(field.getName().toString());
                        //DefaultTableViewModel dtvModel = new DefaultTableViewModel(tbl, colNames);
                        //beanObj.setModel(dtvModel);
                             System.err.println("getting value for you from session in Get Data 1:-");
                             JCO.releaseClient(client);
                        //     return dtvModel;
                   catch (JCO.Exception ex) {
                     System.out.println("Caught an exception: \n" + ex.getMessage());
                   }catch (Exception e){
                        System.out.println("Final Message" + e.getMessage());

  • Populating Customized fields in Sales Order Creation using BAPI

    Hi All,
    I have a requirement that, I need to populate 2 customized fields which are appedned in the VBAK tables through Append structure. I am using BAPI_SALESORDER_CREATEFROMDAT2 FM for creating it.
    Could anybody tell me how to send these 2 coustomized field values in this BAPI using EXTERNIN parameter.
    Regards
    Rajesh
    [email protected]

    Hi,
    To add data to custom fields there are two appraoches.
    <b>1)</b>Using the <b>EXTENSIONIN</b> in the Tables option in the FM <b>BAPI_SALESORDER_CREATEFROMDAT2</b>
    Check the Documentation for the same,
    <b>Customer Enhancement for VBAK, VBAP, VBEP</b>
    <i>Description</i>
    You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
    <b>Technical information about Customer Enhancements</b>
    The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
    The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
    CFIELD1, CHAR 10
    CFIELD2, CHAR 3.
    The customer also requires that these two fields can be maintained with the BAPI.
    1. Maintain structure CUTEST in table VBAP
    2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
    Field name       Data element
    CFIELD1            CHAR1
    CFIELD2          CHAR1
    3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
    5. Adjust the following structures for customer enhancements to table VBAK:
    a) VBAKKOZ
    b) VBAKKOZX
    c) BAPE_VBAK
    d) BAPE_VBAKX
    6. Adjust the following structures for customer enhancements to table VBEK:
    a) VBEPKOZ
    b) VBEPKOZX
    c) BAPE_VBEP
    d) BAPE_VBEPX
    7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
    8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
    <i>For example:</i>
    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
    The following entries are expected:
    Import:     BAPIVBELN-VBELN       = '0000004711'  Document number
                BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header
    Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number
                BAPISDITMX-ITM_NUMBER = '000020'      Item number
              + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item
    You must complete the EXTENSION table as follows:
    STRUCTURE                          VALUEPART1       1234561234567890123
    BAPE_VBAP                       0000004711000020                 XYZ
    BAPE_VBAPX                      0000004711000020       X
    <b>Further Information</b>
    You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
    Notes
    You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
    At the moment, you can use the BAPI to store enhancements in the following structures:
    VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
    VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
    VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
    VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
    If you also want to work with checkboxes, each X-structure must also contain an append structure.
    For example:
    A customer has created an order and wants to include the material long text (50 digits long).
    The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
    Because the VBELN is normally blank when you create an order, the data can look like this:
    STRUCTURE   |BAPE_VBAP
    <b>2)</b> Create the Sales Document using the FM and when successfully craeted you will get the Sales Document No in the Export parameter <b>SALESDOCUMENT</b>.
    After its created and Committed using <b>BAPI_TRANSACTION_COMMIT</b> , do a <b>BDC</b> recording for the same to (<b>VA02</b> Change Sales Order) update the fields only and save the document.
    Regards,
    AS

Maybe you are looking for

  • Using NIK software...LR5 said it cannot prepare the file for editing

    I have reimported photos from my backup HD (Lacie) into LR5.  After selecting a photo in LR5 I attempted to edit using NIK software...LR5 said it cannot prepare the file for editing? Message was edited by: Geoff the kiwi Changed title to reflect quer

  • Audit log trimmer timer job

    HI Audit log trimmer timer job what this job do  I set the sitecollection audit settings to trim the audit data after 7 days  is this job before delete it generate Excel report and save in document library? adil

  • NO RFC Destination for BAPI's

    Hi, I am working on ALE for Activity allocation. I am using 3 methods in my distribution model. I need to transfer data from ECC 6.0 source system to R/3 4.7. BUS6010 Method POST & CHECK BUS2072 Method FINDDETAILS I am using the Program RHINLV00_LSO

  • How To Create Context Menu In Module Pool

    Moderator message: do not offer points hello guru's Please help me regarding creation of context menu in MODULE POOL Programming. pleaase send me link or procedure to create it. <<text removed>> waiting for reply Edited by: Matt on Feb 20, 2009 3:13

  • Ignore accidental trackpad input?

    Like a lot of people, I first thought something was not working until I discovered the Ignore accidental trackpad input checkbox. After experimenting, I find it's better to have it ON than Off, but there's that pause after an accidental input before