RE: Purchase order creation creation using bapi_po_create1

Hi Experts,
I have a excel file with following fields.
PO Field                   Description
ekko-bsart.     PO  type
ekko-reswk.     Supplying plant
ekko-bukrs.     Company code
ekko-ekgrp.     Purchasing group
ekko-ekorg.     Purchasing Organization
ekpo-matnr.     Material
ekpo-werks.     Target Plant
ekpo-lgort.                     Target storage location
ekpo-meins.     Unit
ekpo-menge.     Quantity
eket-eindt                     Delivery Date
ekpo-bednr.     Tracking number
ekpo-afnam     Requisitioner
ekpo-zzplant     DS Plant
ekpo-zzpsccpn     Customer Part number
ekpo-zzcustpo     Customer Blanket PO number
can I create a purchase order using these fields with bapi_po_create1.
Thanks,
Jayaram.

Hello Jayaram
For me it looks good. To prove it just try to create a PO in the dialog transaction (ME21N) using this input. If it works the BAPI should behave the same way.
Regards
  Uwe

Similar Messages

  • Error:-document is in transfer for purchase order..creation is not possible

    Hello,
    While doing confirmation of PO I am getting this error, saying "document is in transfer for purchase order..creation is not possible".
    can anyone please suggest me solution on this type of error?

    Hi,
    Is the PO in ORDERED status? Is there any confirmation posted for this PO which might be stuck (idoc failed to reach back end)?
    If it is a case of idoc failure, then reprocess the idoc and then do the next confirmation.
    regards,
    MRao

  • Req:Download of purchase order item details using ALV oops

    Hi all,
    How to download the purchase order item details using ALV oops from the output of header details

    Hi all,
    How to download the purchase order item details using ALV oops from the output of header details

  • Regarding purchase order pricing conditions using exits or badi

    Hi friends can anybody help me and  let me know the solution.
    Please explain how the change in the pricing condition amount value should update the cost in PO.
    and which EXITS or BADI use for .
    if anybody have the solution send me reply AS SOON AS
    Thanks,
    srinivas

    OK
    But the problem is pricing conditions like transport cost. Because when I do a new purchase order the system use last transport cost and i don´t want it.
    What I want (if possible) with infoupdate is:
    - Update ( PBXX & PB00)
    - Don´t update (other conditions like transport).
    Thanks....

  • 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.

  • Purchase order Automatic creation

    Dear All,
    I want to configure the Transportation scenario,
    My requirement is when shipment is created a purchase order should get automaticaly for purchase of services from transporter...
    Can anyone hap me out with this??/
    Regards
    Rasik Waghela

    Forwarding to financial accounting for the creation of accruals requires a service entry. Every service entry sheet is based on a purchase order. Determining this purchase order is the first stage for forwarding to FI and therefore the first stage required for carrying out settlement
    This purchase order must first be created in Purchasing. Important criteria for the purchase order are:
    Service agents
    Purchasing organization
    Purchasing group
    Plant
    Item category
    You must create the purchase order for a service agent. The purchase order can be valid for the following periods:
    Day
    Week
    Month
    In Customizing the purchasing organization, the purchasing group and the plant must be assigned to the corresponding transportation planning point and the shipment cost type. You make these settings in the IMG. Choose Logistics Execution ® Transportation ® Shipment costs ® Settlement ® Assign purchasing data.
    rgsd
    madhu

  • Purchase Order Confirmation creation

    Hi all,
    I am trying to create a confirmation for a Purchase Order in SRM Version 5,ECC 5.0(ECS Scenario).
    In my program, I first get all the Purchase Orders using the function module, BBP_PD_PO_GETDETAIL. Then I want to confirm this Purchase Order in the back end using some funtion module. I have tried with the function module, BBP_PD_CONF_CREATE, to create the confirmation. On execution of this function module, I get the Confirmation number, but the confirmation does not get created in the backend. I also tried with the following function modules,
    BAPI_CONFEC_CREATE
    BBP_PD_CONF_UPDATE
    BBP_CFGR_CREATE_PD_MAP_BE
    BBP_GOODS_MVT_CREATE
    BBP_PROCDOC_CREATE
    But none of them works....
    Please help me if anyone has dealed with such a scenario.
    Thanks,
    Sowmiya M

    Hi,
    what i suggest is to use explicitly Commit Work statement after ur FM is called.
    Revrt back if still issue exist...
    Regards,
    Naveen

  • Creating Sales order then purchase order through IDocs using XI

    I have a scenario where I have to create the Sales Order and purchase order. Important thing is after successful creation of Sales Order then only purchase order needs to be created.
    Is it possible to achieve the above thing in XI using Idocs..Should I need to go for BAPI's.
    Waiting for the solution

    > I have a scenario where I have to create the Sales Order and purchase order. Important thing is after successful creation of Sales Order then only purchase order needs to be created.
    You have to use BPM for this.
    > Is it possible to achieve the above thing in XI using Idocs..Should I need to go for BAPI's.
    If you know the BAPI's then you can avoide BPM because in that case you can go for inbound proxy and inside the proxy code you can make sure the creation of SO & PO in desired order. You can also do the error handling very efficiently in R3 in comparison to XI.
    Regards,
    Sarvesh

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • Upload Purchase order text tab using BDC

    Is it possible to upload Purchase order text tab in material master (tcode mm01) using a BDC.
    If so pls tell me how to upload the same, what is the field name of the box.
    Regards,
    Senthil

    u need to use READ_TEXT or SAVE_TEXT or WRITE_TEXT or COMMIT_TEXT to upload text into SAP.

  • Purchase order save issue, Using through BADI  PROCESS_PO_CUST ME21n

    Hi,
    Pls  Experts ,can we have some solution for this
    Purchase order save issue,  we are Using  BADI  PROCESS_PO_CUST currently we are throwing a
    message  using MMPUR_MESSAGE_FORCED if mandatory custom fields are not entered by the User,
    When we are saving the PO we are getting a exception which is raised by us ( custom message ) .
    Pls let me know is there any way to clear the message or to make mandory custom fields to be entered by user ..
    thanks  in advance...
    PK

    Hi Arnab,
    Thanks for quick response ..
    My requirement is if user is not entering the cusome fields then  i dont want to allow him to process any other Tabstrips  in the order .. thats the reason i am throwing an error message asking to enter custom fields.. then once user enters the custom fields which are created by   me .. then i should consider those values for further process like some other tab strips values maintained by the user then when we try to Save the PO still my custom error will be creating issue its not allowing to save..
    Can i have some solution ..
    thanks in advance.
    kumar

  • 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 import 300 purchase order into SAP using excel upload

    Hi Everyone,
    I am trying to close all the existing purchase orders in the system (about 300) and create similarly 300 new ones under new accounts.
    My questions is can I do that using an excel upload, or it will have to be done manually? If I can, any help in that regard would be highly appreciated.
    Regards,
    Abubakr Asif

    Hi
    Welcome to SDN World!
    You can use LSMW to create 300 Purchase Orders.
    please check this link for guidance
    http://www.ficoexpertonline.com/downloads/0703.doc
    To close existig POs, you can use Mass update (Tr code MEMASSPO).
    hope it helps.
    regards
    Srinivas
    Reward if it helps

  • Printing Purchase Order from ME9F using custom program and smartform

    I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE.
    However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the checkbox). When I try to put back the standard program in NACE, it does not show an 'X' but a check which indicates that the printing was successful.
    Do you know why this happens? What did I miss?
    Here's my call to my smartform from my custom driver program:
        " Change Smartform ZP_MMSF_P01_PURCHASE_ORDER
        " to internal Function module name
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
            EXPORTING
                FORMNAME   = 'ZP_MMSF_P01_PURCHASE_ORDER'
            IMPORTING
                FM_NAME    = fmname
        wa_cparam-no_dialog = 'X'.
        wa_output-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
        CALL FUNCTION fmname
            EXPORTING
                control_parameters         = wa_cparam
                output_options             = wa_output
                i_data                     = i_data
                wa_lookup                  = wa_data_lookup
                goods_amt                  = goods_amt
                discount_amt               = discount_amt
                vat                        = vat
                total_amt                  = total_amt
                total_amt_inwords          = total_amt_inwords

    Vijaya,
    I have this problem though,
    Whenever I try to provide values for CONTROL_PARAMETERS and OUTPUT_OPTIONS to the sapscript call in your code, the PO printing (even the preview) does not proceed. I do this because I wanted to suppress the printer dialog.
    here is a fragment of the code:
    " code I added
    LS_COMPOSER_PARAM-tddest = 'LOCL'. "or 'LP01'.  "Spool: Output device
    LS_COMPOSER_PARAM-bcs_langu = sy-langu.
    LS_CONTROL_PARAM-preview = 'X'.
    LS_CONTROL_PARAM-no_open = 'X'.
    LS_CONTROL_PARAM-no_close = 'X'.
    LS_CONTROL_PARAM-device = 'PRINTER'.
    LS_CONTROL_PARAM-no_dialog = 'X'.
    DO NAST_ANZAL TIMES.
    *--In case of repetition only one time archiving
    * if sy-index > 1 and nast-tdarmod = 3.
    * nast_tdarmod = nast-tdarmod.
    * nast-tdarmod = 1.
    * ls_composer_param-tdarmod = 1.
    * endif.
    IF SY-INDEX NE 1 AND REPEAT IS INITIAL.
    REPEAT = 'X'.
    ENDIF.
    CALL FUNCTION LF_FM_NAME
    EXPORTING
    ARCHIVE_INDEX = TOA_DARA
    ARCHIVE_PARAMETERS = ARC_PARAMS
    CONTROL_PARAMETERS = LS_CONTROL_PARAM
    MAIL_RECIPIENT = LS_RECIPIENT
    MAIL_SENDER = LS_SENDER
    OUTPUT_OPTIONS = LS_COMPOSER_PARAM
    USER_SETTINGS = SPACE
    IS_NAST = NAST
    IS_REPEAT = REPEAT
    I tried to trace it to the function module generated by smartform. The error propagates this way: From the function module, there is a call to function SSFCOMP_PROCESS_DOCUMENT. Then inside that function, there is a perform operation to tr_ssfcomp_process_doc
    perform tr_ssfcomp_process_doc using startpage docstruc
                                           header.
    Inside that form, it calls the macro tr_active which checks the value of ssfcstat-trlevel (tracelevel) against c_trlevel_document. In the macro, if ssfcstat-trlevel is less than c_trlevel_document, the smartform will fail. c_trlevel_document is 15 and ssfcstat-trlevel is 0, and so the smartform fails.
    (you can see the macro tr_active in include LSTXBCMAC and the form tr_ssfcomp_process_doc is in the include LSTXBCFTR)
    When I do not put values in CONTROL_PARAMETERS and OUTPUT_OPTIONS, everything is ok.
    Do you know why this happens?
    Thanks in advance!
    Edit: I have found out about transaction SFTRACE, but this is disabled.
    Kyle

  • PO creation by using BAPI_PO_CREATE1

    Hi gurus'
    I have to create open po by using bapi BAPI_PO_CREATE1.
    Po created properly as per our  inputs but in created po created date has take current date.Why is not taken input created date.
    can any one suggest me. why is happend and how to corrected throught bapi.
    Best regards.
    Pravin

    Hi
    Please go through the documentation in SE37 for the FM.. It is very clear on how you need to work on this BAPI. It is given with examples.
    Regards,
    Vishwa.

  • Req:Download of purchase order item details using ALV

    Hi all,
    In my requirement i have to display the output like this by using fm reuse_alv_commentary_write.But i need space in between them like this.please help me in doing this.
    From:  Belverin B.V.                    Order nr. : PO-B013554        
    To:      GRAF.  BV
    Date:  28-JUL-2005 14:02            Doc. Currency: EUR

    Hi,
    To add more gap you can try html_top_of_page in place of commentry write ....
    FORM html_top_of_page USING top TYPE REF TO cl_dd_document.
      DATA: l_text(255) TYPE c.
      DATA: text1(255)  TYPE c.
      DATA: t_header TYPE REF TO cl_dd_table_element ,
            wa_header TYPE REF TO cl_dd_table_area.
      CALL METHOD top->add_gap "to add gap as you like....
        EXPORTING
          width = 10.
        CALL METHOD top->add_text
          EXPORTING
            text          = <your text>
    *    fix_lines     =
            sap_style     = 'HEADING'
            sap_color     = cl_dd_document=>list_heading_int
            sap_fontsize  = 'MEDIUM'
            sap_fontstyle = 'ARIAL'
            sap_emphasis  = cl_dd_document=>strong.
    *    style_class   =
    *  CHANGING
    *    document      =

Maybe you are looking for

  • Support for JMS Topic in SAP PI 7.11

    Hi, As per SAP Note 856346, JMS Topics are not supported in SAP PI (Question 2.1). However the Note is valid for SAP PI 7.1 and there is no mention for SAP PI 7.11 So can anybody please confirm if SAP PI7.11 supports JMS Topics? Thanks, Pankaj.

  • ActionScript 3.0: Error #1034: Type Coercion failed: cannot convert displayObject$ to DefaultPackage

    I'm a student I have a final project want to deliver it after two days. I'm making a drag and drop game, I watched a tutorial to do that. But after ending coding I faced a weird error! I've I checked that my code is the same as the code in the tutori

  • Sales order item details configuration

    Hello All, I have a requirement to get the Sales order item details configuration programmatically in user exit in sales order create and change. In sales order change i am using function module "VC_I_GET_CONFIGURATION". Input for this function modul

  • How do I synchronize display with printed colors using the Calibration Syst

    The windows headed "Determine your display's native response..." seem confusing to me in the use of "match" and "neutral" matching of the backgrounds using the apple shape and adjacent sliders. I have accumulated several settings and may have tampere

  • Which plug-ins are the problem?

    Suddenly a number of my CS3 files are showing up as "exec" icons, and won't open in CS3. The error message suggest either file format problems (no), file being open (no) or a missing plug-in. How do you go about finding out which plug-in is missing o