How to create a purchase order in sapR/3

Hi,
  I want create a purchase order in SAPR/3 system.so for that i need some information like
      which bapi i need to run,input parameters for that bapi.Important values and how to set them.pls kindly send me the related information about that and also send me the java code to do it.

bapi for creating ourchase order is bapi_po_create.
Try run it and in return table will be error message about mandatory/wrong parameters.
For more information get documenatation about that bapi (eq. sap gui, "bapi" transaction) or ask in abap forum
Regards
   Vedran

Similar Messages

  • How to create customer purchase order

    Hi,
        How to create customer purchase order?
    Thanks & Regards,
    Naren.

    Dear Naren,
                       As you told we create a purchase order to the vendor by ME21N. This is done by the MM consultants. Now to create a purchase for the customer to say is nothing but to create  a Sales Order based on the Purchase Order details of the custome by T.Code VA01.
    Please get back if need any further explanation.
    Thanks & Regards
    Sadhu Kishore

  • How to create multiple Purchase Order  using the same document number?

    HI Friends,
    I m in a product which extracts data from SAP and stored in Access database.
    For that,while i extracting Purchase Order from the Demo Database (SBODemo_US)for OEC Computers,the same DocNum is used for several Purchase Order using Index Line numbers.
    eg:
    DocNum for Purchase Order1 -->3000   0 (Index)
      DocNum for Purchase Order2 -->3000   1 (Index)
        But i can't create multiple Purchase Order using same DocNum manually in SAP B1,Could anybody please help me <b>to create a Purchase Order using same DocumentNumber?</b>
    Thanks in Advance
    SooriyaKala.P

    Hi,
    The problem statement is not quite clear to me.
    As far as I understand your statement, I think you want to club multiple orders into one purchase order using the index incrementally.
    For this I think once you have created the first purchase order, open the purchase order in edit mode the second time and append the new line items.
    If I am getting you wrong please explain the problem statement in more detail.
    Regards,
    Rara.

  • How to create a Purchase order from XI Using ORDERS05

    Hello Experts,
    I need to create a purchase order using OREDRS05 from XI. I was not able to create and I am having these quires.
    1. What are all the mandatory fields that I need to fill in to create a purchase order?
    2. Which part of the SAP will take care of the control record? Is this done by SAP or Integration Tool?
    3. When I have tryed with an existing Inbound Idoc(On R/3 Side) its showing Satus 51 what should I do?(Error: There is no article description for item 000010)
    If Possible give me the step by step procedure to reslove..
    Thanks in Advance,
    Sai Suma

    Hi Suma,
    Check this link
    Creating Purchase Order IDOC through XI
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    Sachin

  • How to create a purchase order for a purchase requisition

    Dear Experts,
       Explain the steps for creating purchase order for a purchase requisition.
    and where can i find this purchase requisition field in PO creation.

    Hi Ravi,
    Check out these documents:
    http://www.olemiss.edu/projects/sap/MM_Create_PO_with_Ref_to_a_PR.pdf
    http://www.sap.com/africa/services/education/pdf/Work_Instruction.pdf
    Regards,
    Chandra Sekhar

  • Can we create the Purchase order that using P&L account or just using account do not use cost center.

    Dear Experts,
    Could you please advise :
    1) Can we create the purchase order that using profit and loss account ? ( if yes , which kind of account assignment category we should use ?)
    2) How to create a purchase order for service charge .( just using GL account )
    Thanks & Best Regards,
    Watson

    Hi,
       May I know why you do not use cost center for consumption?
       You may create a new account assignment category in OME9 by copying K and maintain the cost center as optional. Please note that you have to maintain the item category blank and the account assignment category combination in OMG0. Now, you can use a GL account in PO which doesnt require a cost center assignment (in OBC4 against the field status group of the GL)
       You may use the same account assignment category created in the previous step with item category D, after you maintain the combination of the account assignment with item category D in OMG0.
        Please test the scenario and revert back.
    Regards,
    AKPT

  • Create auotmatic purchase order for non stock materials

    Hi,
    Please provide me information on how to create automtaic purchase order for non stock materials in MM system.
    Regards

    Hi,
    For automatic PO creation follow the steps.
    1) Material Master purchasing view tick automatic PO check box  (Material type NLAG)
    2) Vendor Master purchasing view tick automatic PO check box.
    3) Maintain Source list for Vendor & Material.
    4) Maintain Purchase Info Record.
    5) Create a Purchase Requisition.
    6) Use T.Code: ME59N & execute for PR for vendor, you will be able to create automatic PO.
    Note
    Ensure that Purchase Info Record should be there.
    If you have more than one vendor then fixes only one vendor in source list.
    During PR creation select source determination check box.
    SAM

  • How create a purchase order without imputation using bapi: BAPI_PO_CREATE1

    Hello Forum
    I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
    The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
    I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
    However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
    Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
    Thank you.
    Greetings,

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • How can I select alternative BOM when creating subcontract purchase order?

    In our business, a finish good material always has different production versions at the same time. Each of production versions has its own alternative BOM. When I create a planned order, I can select wanted BOM through specifying production version.
    But, when I creating subcontract purchase order, there is no field for me to specify the production version or which alternative BOM I prefer. In this case, I need to create a planned order at first. And then, convert the planned order to purchase. Only through this way, I can create a subcontract purchase order with my wanted BOM.
    So, I wonder if there is any way to select alternative BOM directly when creating subcontract purchase order.
    Thanks a lot!
    Regards
    Robbie

    Dear Mr. MM
    can you give me additional information about your solution?
    BUT I would not expect the sytem to offer you during the Purchasing cycle the different Production Versions as it is not meant to be. I remember having the same requirement some time ago and we solved it the way I described above, additionally we created a Pop up window with a user exit during the PO creation which offered the different production versions and if the one linked with the quota arrangement, the standard PV, is used in the PO.
    We also have the same problem, we activated businessfunction SCM_GEN_02 so that it is possible to have several production versions for one supplier, but unfortunatly it is not possible to change the production version in the purchase order. (business function does not seem to be very integrated)
    So i would be very interested in your solution because acually it seems that i have to modify the sap standard.
    Thank you and best regards
    Lisa

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Create another purchase order for a material ordered in full

    Hello friends,
    I have a little MM question for you.
    I've created a purchase requisition with a material A and quantity 100 UN
    I've then created a purchase order in reference to this PR.
    This PO has been released.
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?
    How does SAP control that ? (customizing path ??)
    Regards,
    Bahia.

    Dear,
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?  Yes it is possible in SAP
    How does SAP control that ? (customizing path ??): SAP controls in that way, when ever you create purchase requisition with a material A and quantity 100 UN...Now PO created and released...
    Now again if you try to create PO wrt PR, you can observe this time you will get all deatils in PO without quantity...reason behind that is, you have already released an order for full qty w.r.t. that PR...So this time qty field will be empty..You have to manually enter this field.
    Now the same you can see in the the PR status in ME53N Tcode.
    Regards
    Utsav

  • Creating a purchase order in web dynpro for java.........

    hello all,
    i am new to web dynpro for java.i have already done an application
    "Creating a Web Dynpro Application Accessing ABAP Functions" this application
    have good document on sdn.
    this application is working fine .
    Now i got an requiremnt for creating a purchase order in web dynpro for java.
    in normal report when i call  the bapi the parameter are the header, headerx,item, itemx is an internal table.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        POHEADER                     = HEADER
        POHEADERX                    = HEADERX
      POADDRVENDOR                 =
      TESTRUN                      =
    IMPORTING
      EXPPURCHASEORDER             =
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = RETURN
       POITEM                       = ITEM
       POITEMX                      = ITEMX.
    i just want to know how can i fill these internal table in web dynpro
    for java to create an application accessing "Bapi_po_create" .
    Thanks

    Hi Gopal,
    I'm not sure what is your issue, it seems you're not really understanding how the Model structure works in WDP.
    I'll assume few things here, like you know how to Import the Model into the WDP, and you know a little bit about what Java Classes will represent this Model in the Project.
    Try these steps:
    1. Import your Model into the Project;
    2. Open your Component Modeler, create a Data Link between your Model / Component (Or Custom Controller, as you prefer)
      - You can also use the "Apply Template -> Service Controler"
    3. Map the Input of your Model as the Main Node, check the Input Tables (you prob. will have two, POITEM = ITEM - POITEMX = ITEMX)
    4. Also, check the Return box, since this is BAPI return (You can use to display Backend messages)
    Now you have the Model mapped into your Controller, you need to develop the Java function to execute it.
    1. Create a new Input class, like
    BAPI_PO_CREATE1_Input purchaseOrderCreateInput = new BAPI_PO_CREATE1_Input();
    2. Bind your Input Node, in the Controller, with your Input Class;
    wdContext.nodeBAPI_PO_CREATE1().bind(purchaseOrderCreateInput);
    3. Set any Import parameters you need:
    purchaseOrderCreateInput.setEXPPURCHASEORDER(XXXX);
    4. To Add references to the Table, you will perform something like:
    First, you need to know what "Structure" you need to add (POItem Structure) - You have a Java class that represents that Structure..
    POITEM_Element poItemElement = new POITEM_Element();
    poItemElement.setPROPERTY();   /// Set your Properties
    purchaseOrderCreateInput.getPOITEM().add(poItemElement);
    5. Execute your Input,
    purchaseOrderCreateInput .execute();
    Hope it helps,
    Regards,
    Daniel

  • User id while  creating a purchase order

    Hello all,
    I would like to know whether there is any option to enter the user id or user name while creating a purchase order. If so could anyone post on how to do that.
    Thanks,
    Maxx

    If you are creating PO in foreground, you dont have the option of giving user id.
    But if you create POs in background using a scheduled job, then when you are scheduling the job, you can overwrite the default user id and give the user id you want. In this case all the POs created by the job, will have the user id created by you.
    But if you have to create a PO through background job, you have to give the inputs to PO through some programs may be BDCs or LSMW.
    Reward if this helps. you

  • DBIF_RSQL_INVALID_RSQL when creating a Purchase Order (ME21N)

    Hi,
    The system is generating a short dump DBIF_RSQL_INVALID_RSQL when a user tries to create a purchase order.
    what could be the cause of this? i have analysed the short dump in st22 and looked at sm21 and st11 and they are giving very little detaill.
                                                                                    Error in the module RSQL accessing the database interface.                                                                               
    What happened?                                                                               
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLZMM_GET_ACT" had to be terminated because one of    
    the                                                                               
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                                                                               
    What can you do?                                                                               
    Print out the error message (using the "Print" function)                          
    and make a note of the actions and input that caused the                          
    error.                                                                               
    To resolve the problem, contact your SAP system administrator.                    
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer          
    termination messages, especially those beyond their normal deletion              
    date.                                                                               
    Error analysis                                                                               
    An exception occurred. This exception is dealt with in more detail below  
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was  
    neither                                                                  
    caught nor passed along using a RAISING clause, in the procedure          
    "ZMM_GET_ACT_PLN" "(FUNCTION)"                                           
    Since the caller of the procedure could not have expected this exception  
    to occur, the running program was terminated.                            
    The reason for the exception is:                                          
    The SQL statement generated from the SAP Open SQL Statement violates a    
    restriction imposed by the database system used in R/3.                                                                               
    Possible errors:                                                          
    o The maximum size of an SQL statement has been exceeded.                
    o The statement contains too many input variables.                       
    o The space needed for the input data exceeds the available memory.      
    o ...                                                                               
    You can usually find details in the system log (SM21) and in the          
    developer trace of the work process (ST11).                               
    If an error occurs the developer trace often informs you about the        
    current restrictions.                                                                               
    How to correct the error                                                                               
    The exception must either be prevented, caught within the procedure             
    "ZMM_GET_ACT_PLN"                                                              
    "(FUNCTION)", or declared in the procedure's RAISING clause.                    
    To prevent the exception, note the following:                                   
    The SAP Open SQL statement must be divided into several smaller units.          
    If the problem occurred due to the use of an excessively large table            
    in an IN itab construct, you can use the addition FOR ALL ENTRIES               
    instead.                                                                        
    When you use this addition, the statement is split into smaller units           
    according to the restrictions of the database system used.                                                                               
    You may able to find an interim solution to the problem                         
    in the SAP note system. If you have access to the note system yourself,         
    use the following search criteria:                                                                               
    "DBIF_RSQL_INVALID_RSQL" CX_SY_OPEN_SQL_DBC                                     
    "SAPLZMM_GET_ACT" or "LZMM_GET_ACTU01"                                          
    "ZMM_GET_ACT_PLN"                                                               

    Hi,
    Wherever you have used SQL statement please do check all the fields here as some of the fields are not in correct order as they are required per the actual table in dictonary, to just verify that you can use addition of "INTO CORRESPONDING FIELDS OF INTERNALTABLE" in your SQL statement as this will not require the fields to be in order but this may cause performance issue.
    Thanks and Regards
    Sudharshan

  • Creating a Purchase Order, is there any help out there?

    I am creating a purchase order for our sales team that can be utilized on iOS. I have two issues:
    1) Some of our sales will be exempt and will need to be toggled off. How do you go about doing this while not destroying the end total?
    2) Our sales tax varies due to county's jurisdiction. Is there a way to change that once the form is ready to be filled out?
    Thanks Guys
    Below is how my form is being set up, mind you this is an import from excel.

    I don't see a way for you to currently specify that an item is exempt...
    Maybe add another column with check-boxes for the exempt status. However,
    implementing this in the calculation will require a custom-made script.
    As for the sales tax, you can place that in a text field as well and use it
    in your calculation directly. It's even possible to set it up so that a
    selection in a county drop-down will automatically populate the Sales Tax
    field with the correct value.

Maybe you are looking for