Problem with BAPI BAPI_REQUISITION_CREATE

Hello,
I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
Thanks&regards,
Jirka

Not sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated

Similar Messages

  • LSMW with bapi BAPI_REQUISITION_CREATE

    Hi
    I'm creating an LSMW for create purchase requisition with Bapi (BAPI_REQUISITION_CREATE)
    I'm trying to upload 2 items for a PR but the LSMW is creating 2 PR with each item.
    How can I tell to the LSMW that I have to item for the same PR?
    Remember this bapi doesn't has header.

    Hi,
    you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.
    Cheers

  • Help - Problem with BAPI confirmation (co11n)

    Hi gurus,
    Please , i need some help with some problems i am having with BAPIs for confirmations.
    I have found this one : BAPI_PRODORDCONF_GET_TT_PROP, to get the propose data, but i i can't figured out how to fill the goodmovements table. I need to do this, because i want to know the proposal of goodmovements, just exactly that sap's does when i enter to the tx CO11N, enter the YIELD quantity and then press "goods movements" button.
    Please, is there some trick or something to make this work? ( i have already put "X" in the import "PROPOSE - GOODMOVEMENTS" , but still is not working).
    If get this, i could put this values in BAPI_PRODORDCONF_CREATE_TT and that's it... i suppose.
    Please help me
    Thanks a lot!

    Hi ,
    Before going into BAPI's , Auto goods movement happens in two ways.
    1. check whether Auto goods receipt is checked in T.code OPKP.
    2. The other way is to assign a Control Key to the operation which has a Auto GR checked.
    Please check these two and then trigger confirmation using your BAPI.
    Hope this helps.
    Best Regards.

  • Problem with bapi to create purchase requisition

    I got a requirement that to upload details of procurement into Z table with a temporary PR. Could u please suggest the procedure or bapi to upload datainto Z table.
    Regards

    Hi all
    For above requirement i am suppose to develop a FM which upload the data from front end to DB. Forthat I am taking following steps is it ok or not suggest me.
    1.call function module bapi_pr_create
    2.fill local structure with bapi structure if PR number is created.
    3.update data into Z table
    Regards

  • Problem with bapi BAPI_BUS2054_CREATE_MULTI

    I am trying to create multiple wbs elements for a given definition
    using the bapi BAPI_BUS2054_CREATE_MULTI as per the documentation i have used BAPI_PS_INITIALIZATION
    first to initialize,then followed by BAPI_BUS2054_CREATE_MULTI  and ending with BAPI_PS_PRECOMMIT and BAPI_TRANSACTION_COMMIT
    it says the definition is o.k but its giving error with wbs element.
    that to enter all required fields.
    could any body please  tell what are all the required fields that i have to enter for it_wbs.

    Hi Aravind,
    I am having same problem. Can you pelase explain me how you solved your issue.
    Please help?
    thanks,
    Venkat.

  • Problem with BAPI BAPI_MATERIAL_SAVEDATA when calling from other system

    Hi All,
    I able create new material using the BAPI BAPI_MATERIAL_SAVEDATA in development system.
    but when i am calling this BAPI from other systems by passing the same values that i used in the development system . system is giving me an error ( in the return statement) saying that material number doesn't exists .
    Can any one have some pointers towards this ?
    Thanks & Regards,
    Praveen

    Hi,
    this FM BAPI_MATERIAL_SAVEDATA
    is used to extend a material to another plant
    for that you need to read the original data via BAPI_MATERIAL_GET_DETAIL and then select additional data from MKVE and save it via BAPI_MATERIAL_SAVEDATA with table parameter SALESDATA
    also check with
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEDATA - QM - Inspection Setup
    Problem in BAPI_MATERIAL_SAVEDATA
    Thanks&Regards,
    Naresh

  • Problem with BAPI (Flight) Tutorial

    Hi,
    Im new in developeing with Web Dynpro for Java.
    I did every steps of this tutorial (Adaptive RFC tutorial - with the BAP_Flight_Getlist) exactly:
    http://help.sap.com/saphelp_webas630/helpdata/DE/b2/326b09e58bcf499f73b5cc278808f4/content.htm
    But i can not deploy the application - Error: deployment aborted.
    05.04.2008 11:00:23 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [022]Deployment aborted
    Settings
    SDM host : dmhpnb34
    SDM port : 50018
    URL to deploy : file:/C:/DOKUME1/ADMINI1/LOKALE~1/Temp/temp29689Flights.ear
    Result
    => deployment aborted : file:/C:/DOKUME1/ADMINI1/LOKALE~1/Temp/temp29689Flights.earAborted: development component 'Flights'/'local'/'LOKAL'/'0.2008.04.05.11.00.19'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/Flights.. Reason: Clusterwide exception: Failed to deploy application local/Flights. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/Flights. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    My SLD is working, also my JCOS, so there should not be the problem.
    Are there more good small tutorials (like this flight tutorial) with Web Dynpro and BAPI ?!

    thx for the advise. I developed the tuturial application again and can now run it. But if i click on search button  with the entered values Departure City: Frankfurt and Arrival City: New York
    i get no values in the table (i checked in the ERP System if the flights with this directions exists - its there):
    Custom Controller Code:
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package mypackages;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED
    // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN
    // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateFlightsController).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY
    // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS
    // OF IMPORT STATEMENTS.
    //@@begin imports
    import mypackages.model.Bapi_Flight_Getlist_Input;
    import mypackages.model.Bapisfldst;
    import mypackages.model.FlightModel;
    import mypackages.wdp.IPrivateFlightsController;
    import com.sap.mw.jco.JCO;
    import com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory;
    import com.sap.tc.webdynpro.progmodel.model.api.WDModelScopeType;
    //@@end
    //@@begin documentation
    //@@end
    public class FlightsController
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(FlightsController.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see mypackages.wdp.IPrivateFlightsController for more details
      private final IPrivateFlightsController wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see mypackages.wdp.IPrivateFlightsController.IContextNode for more details.
      private final IPrivateFlightsController.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public FlightsController(IPrivateFlightsController wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
              wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
              Bapisfldst bapisfldstFrom = new Bapisfldst();
              input.setDestination_From(bapisfldstFrom);
              Bapisfldst bapisfldstTo = new Bapisfldst();
              input.setDestination_To(bapisfldstTo);  
              // Creates an instance of a client to the remote SAP system   
              client = JCO.createClient("800",          //SAP logon client number
                                              "Andreas",            //SAP logon user
                                              "*****",        //SAP logon password
                                              "DE",        //SAP logon language
                                              "dmsaperp",        //Host name of application server
                                              "00");          //SAP system number
              // Creates the model instance
              model = (FlightModel)WDModelFactory.getModelInstance( FlightModel.class, WDModelScopeType.APPLICATION_SCOPE);
              // Assigns the client to the model
              model.setJcoClient(client);   
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:getFlights()
      /** Declared method. */
      //@@end
      public void getFlights( )
        //@@begin getFlights()
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      JCO.Client client;
         FlightModel model;
      //@@end
    content of obsolete user coding area(s) -
    //@@begin obsolete:getFlights()^
    //     client.connect();
    //        try {
    //        // Calls remote Function Module BAPI_FLIGHT_GETLIST 
    //        wdContext.currentBapi_Flight_Getlist_InputElement().modelObject().execute();
    //        catch (Exception ex) {
    //            ex.printStackTrace();
    //        finally {
    //           client.disconnect();
    //        // Invalidates the output context node
    //        wdContext.nodeOutput().invalidate();
    //@@end

  • Problem with BAPI

    Hi,
    We are using the BAPI  BAPI_ALM_NOTIF_CREATE to create a plant maintenance notification. I have populated it with the following data :
    maintenance notification type
    equipment number in header
    functional location in header
    coding group in header
    coding in header
    I am using a wrapper bapi to house this one and am also calling a BAPI_TRANSACTION_COMMIT after this bapi is called .
    However my problem is when the BAPI runs. The result has notification number which starts with a '%'. When i go into IW23 to check if a notification was created , none exists !
    I used the same data and ran transaction IW21 directly, and the notification was successfully created. That means the data im using is correct and sufficient.
    So why is it not being created properly with the BAPI ?
    Any and all help will be greatly appreciated.
    Thanks,
    Amit

    Hi Amit,
    This doesn't sound like a workflow problem. I think you will have more luck when posting in the appropriate ABAP forum.
    Which I see you have done. But next time mention that you cross post in different forums.
    Regards,
    Martin

  • Problem with BAPI of Material Master creation

    Hi,
    I am creating material master(mm01) through BAPI_MATERIAL_SAVEDATA.
    Program is working fine but when i m checking in MM03 to display uploaded data through BAPI, i cant able to see material which i created to through BAPI but i can see in MARA table.
    i dont know wht is the problem ?
    can anybody let me know abt this ?

    then u are not committing the work.
    flow will be like this
    call ' BAPI'
    if return[] is initial.
    commit work.
    else.
    endif.
    Regards
    peram

  • Problem with BAPI CALL in BPM(with in a loop)

    Hi All,
    I have a scenario where i invoke a BAPI by name BAPI_IPAK_START which pushes some data from Delta Queue to the Info Object.After invocation, the BAPI returns a request ID.In order to get the status of the request which is created by the previous BAPI, i invoke another standards BAPI BAPI_ISREQUEST_GETSTATUS with the previous request ID(the ID that is returned by BAPI_IPAK_START).i hav to check for the status until the request is fulfilled.inorder to do that,i inserted the BAPI_ISREQUEST_GETSTATUS in a loop with the condition on XPATH variable of the response that is returned by the BAPI_ISREQUEST_GETSTATUS.TECHSTATUS is the XPath variable name of the response of the  BAPI_ISREQUEST_GETSTATUS.The loop has to b executed until it's value is G.when i activated this BP,an error code with 99 is returned in my sxi cache.the work flow is not getting generated.the error is displayed as
    'TECHSTATUS' is not a component of data object 'PAYLOAD'.
    Any help wud b appreciated.
    thnx
    Anil

    hi,
    >>an error code with 99
    check cache refesh and tell me if it gives any error!?
    regards,
    Felix

  • Problem with BAPI invocation in UDF

    Dear SDN-Experts,
    I have the following java code in an user defined function:
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
    "101",
    "de",
    "frba02.buc.fristo.de",
    "10" );
    mConnection.connect();
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate( "BAPI_MATERIAL_GET_ALL" );
    function = ft.getFunction();
    JCO.ParameterList input = function.getImportParameterList();
    input.setValue( "1000" , "MATERIAL" );
    mConnection.execute ( function );
    JCO.Table unitsofmeasure=  function.getTableParameterList().getTable("UNITSOFMEASURE");
    mConnection.disconnect();
    return unitsofmeasure.getString("ALT_UNIT_ISO");
    As you can see, I try to execute "BAPI_MATERIAL_GET_ALL" with 1000 as "MATERIAL". When I test the same BAPI in the Target System with Transaction SE37 and 1000 as material, I get a table which has three rows. But when I execute the UDF with the same parameter (as above), I get the following runtime exception:
    Exception:com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet in class com.sap.xi.tf._MM_MT_KASSE__to_WPUWBW01_ method GetME$ 2270, [email protected]
    Could you help me please?
    Thanks in advance.
    Cheers
    Ehsan
    Edited by: Ehsan Baghi on Jul 11, 2008 4:58 PM

    Hi Ehsan !
            By the message error that you received, I think that is possible that the bapi is returning no records in the table.
            Sometimes, call an RFC or BAPI from java has different behavior that executing from SE37, because of field formatting for example. In your case, there is great chance that executing this BAPI in SE37, when you fill the Material field with "1000", internally it´s proccessed as "000000000000001000", and when you call this BAPI from a java program, the field is proccessed with the exact value that you passed: "1000".
            A good way to check this is logon in your SAP environment with the user that you are using in the java mapping to connect to SAP, run SE37 and open the source code of this BAPI, set a remote break point, and test your mapping, so you will see in the debugger, the exact value that is arriving to the BAPI from java, and the values that is being returned to java.
            I hope this helps !
            Best regards,
            Wilson

  • Problem with BAPI inputs

    Dear all,
               I need a help in webdynpro using bapi scenario
    -> my form has 6 input fields, in that 4 are drop down boxes which gets the value from respective 4 bapis.
    -> 2 input fields should be in date picker which didnt get value from bapi
    -> another table which is connected to bapi for ouput uses all the 6 fields as input
                      now my problem is, i can take the first 4 dropdown boxes values as input to grid, but i couldnt take the last 2 fields(dates) as input to it.
                      To make the field as date picker we need to create a structure in Dictionary object. There is no date picker to select from "Insert Child" option. that is if the type is date then it automatically makes the inputfield as date picker.

    Dear Lohi,
               I didnt get you what you are saying... i am not importing and Fn Module... its actually a WSDL iam importing it through WD wizards.....
                After importing it i need to pass 6 fields as input.....i have 4 fields of inputs  which are output of 4 another wsld. i can map that 4 outputs of 4 different WSDLs to input of Grid WSDL.
                 the problem here is.... another two fields those are date fields i need to send to Grid WSDL as input, if i directly create valuenodes in the context, and map to fields as input to Grid WSDL the output giving error.
                  Hope you understud my problem..... please help me out in this regard

  • Problem with bapis(Material Deliver)

    hai,
    This is Guru
    i have to deliver material(eg:pk-100)for customer order.
    please tell me which bapi i have to call from my java program(using JCO)and what are the import parameters .
    help me to this.
    thanqqqqqq
    Guru

    Hi Guru,
    Use
    BAPI_SALESORDER_CREATEFROMDAT1.
    The documentation of the BAPI is as follows:
    Text
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least the order header data (from the ORDER_HEADER_IN structure) as well as partner data (using the ORDER_PARTNERS table) as input parameters.
    Enter item data using the ORDER_ITEMS_IN table.  You can allocate the item number by filling in the relevant fields manually, or the system does it according to the settings in Customizing, whereby the relevant fields remain blank.
    If the item is configurable, you need to enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    You can use the BAPICCARD structure to enter credit card data. You can either enter data for identifying the card or, you can enter data for an authorization in an external system.
    Once you have successfully created the sales order, the system displays the document number (in the SALESDOCUMENT field), as well as detailed data about the other parties (in the OLD_TO_PARTY,  SHIP_TO_PARTY and BILLING_PARTY structures). The RETURN parameter displays any errors that may have occured.
    The ORDER_ITEMS_OUT table contains more detailed information that will enable you to judge the pricing and availability of an item.
    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 functions, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
                       REQ_QTY      Order quantity in sales unit
    2. Ship-to party
    If a ship-to party hasn't been entered, the ship-to party = sold-to
    party
    3. COMMIT control:Parameter WITHOUT_COMMIT
    If this switch is activated, the system does not process any Commit Work and the application that has called it up must trigger the Commit itself. To do this, useBAPI_TRANSACTION_COMMIT.
    4. German keywords:
    The following keywords must be entered in German, regardless of the
    logon language:
    DOC_TYPE       Sales document type, for example TA for standard order
    PARTN_ROLE     Partner function, for example, WE for ship-to party
    Further Information
    You can see further notes in OSS. Note 93091 contains general information about the SD BAPIs.
    Parameters
    ORDER_HEADER_IN
    WITHOUT_COMMIT
    CONVERT_PARVW_AUART
    SALESDOCUMENT
    SOLD_TO_PARTY
    SHIP_TO_PARTY
    BILLING_PARTY
    RETURN
    ORDER_ITEMS_IN
    ORDER_PARTNERS
    ORDER_ITEMS_OUT
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CCARD
    ORDER_CFGS_BLOB
    ORDER_SCHEDULE_EX
    Exceptions
    Function Group
    2032
    The structure of ORDER_ITEMS_IN contains MATERIAL where u can specify ur material no MATNR..
    Regards,
    Tanveer.
    If ur problem is solved , please close the thread and please mark helpful answers.

  • Problem With BAPI : BAPI_QUALNOT_CREATE

    Hi All,
    I am having Problem while creating notification using bapi bapi_qualnot_create.
    when i enter partner name in the notifpartner internal table of the bapi. bapi checks wheather the partner number entered is valid sap login or not and if not it is not creating the notification.
    i want to create the notification even if the partner i entered is not valid sap login.
    how can i disable the login check for partner.
    please advice.
    thanks in advance.
    vinod

    Hi Aravind,
    I am having same problem. Can you pelase explain me how you solved your issue.
    Please help?
    thanks,
    Venkat.

  • Problem with BAPI "BAPI_FIXEDASSET_CHANGE"

    Hello guys,
    My aim is to update one of the fields in the Allocation tab of the Asset master. I am using bapi_fixedasset_change" for this.
    Its coming back with "No changes made" message and not changing any field.
    Please let me know where i am going wrong. Am i missing some mandatory fields to be passed?
    Here is my code:
    *data : ALLOCATIONS  like BAPI1022_FEGLG004,
          ALLOCATIONSX like BAPI1022_FEGLG004X,
          return       like BAPIRET2.
    *allocations-ENVIR_INVEST  = '1345'.
    *allocationsx-ENVIR_INVEST = 'X'.
    *CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'
    EXPORTING
       companycode                = '0010'
       asset                      = '000008209332'
       subnumber                  = '0000'
      ALLOCATIONS                = allocations
      ALLOCATIONSX               = allocationsx
      RETURN                     = return
    *CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =

    ANy one has any ideas on this?
    Has anyone used this BAPI successfully to modify some fields on ALlocations tab in asset master?
    Please advice.

Maybe you are looking for