Sales order not created using BAPI_SALESORDER_CREATEFROMDAT2

HI,
I have used the bapi BAPI_SALESORDER_CREATEFROMDAT2 to create sales order. I have passed the parameters, doc_type, sales_org, distr_chan, division, partn_role, part_numb and material.
It displays back the message as
sales_header_in createds,
sales_item_in created,
sales document not yet complete : Edit data.
Standard Order 135428 has been saved.
But when i check the same standard order in VA03 ( or vbak ), its not present.
I have also run BAPI_TRANSACTION_COMMIT, to commit work. But still cant figure out.
Any suggestions plzz...
regards,
Taj

I am able to create the sales order when i am entering these details in VA01. I mean the sales document type and othr details.
But when i pass the same parameters in bapi. This doesnt happen. Is there any thing more that needs to be passed.

Similar Messages

  • How can we remove an unwanted # in sales order texts created using a bapiFM

    Hi,
    i've written the following code which splits the record fetched from apllication server and moves it into a workarea.
    CONSTANTS:c_sep VALUE cl_abap_char_utilities=>horizontal_tab, "for separation
    SPLIT wa_tab1-rec1 AT c_sep INTO wa_inf_itm-inf_vbeln
                                           wa_inf_itm-itm_number
                                           wa_inf_itm-material
                                           wa_inf_itm-req_qty
                                           wa_inf_itm-uom
                                           wa_inf_itm-amount_pr00
                                           wa_inf_itm-amount_pi02
                                           wa_inf_itm-amount_mwst
                                           wa_inf_itm-amount_vprs
                                           wa_inf_itm-currency
                                           wa_inf_itm-text.
    Here c_sep will have a value '#' instead of 'space' in Flatfile from application server.
    The field 'wa_inf_itm-text' though it doesnot contain any value in debugging, when the sales order is created using FM 'BAPI_SALESORDER_CREATE_FROM_DAT2' the item texts are having a # character at the end of the text if it has any text(when checked in va03--sales order item text) or if it doesnot contain any text ,then also # character is seen in texts.
    Thanks & Regards,
    Prasad Reddy.

    hi
    use
    Replace all occurrence of '#' with space from .......
    I think it will solve ur problem.
    Rewards with point if helpful.
    Regards
    Santosh.

  • Approval code on credit card sales order not created when order is booked

    Hi,
    Can anyone help me on this issue.
    when a sales order is entered using payment type of credit card and selected credit card number and line details.The approval code did not generate after sales order is booked.
    Thank you

    duplicate thread in financials.

  • Order schedule lines not created using BAPI_SALESORDER_CREATEFROMDAT2

    Hi experts,
      I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2. I want to update the Order quantity in VBAP-KWMENG.I got the information from SDN when including the Schedule line in BAPI 'BAPI_SALESORDER_CREATEFROMDAT2  '.
      I tried by using Update flag = 'I'.I am not able to update, what are the values to be passed and how to update the field.
    Is there any other way..Please suggest me..
    Thanks&Regards,
    Karthik.

    Hi, In the BAPI if you look at the tables parameter you will find ORDER_ITEMS_IN and ORDER_ITEMS_INX as well as ORDER_SCHEDULES_IN and ORDER_SCHEDULES_INX. To update KWMENG you will have to pass that value to ORDER_ITEMS_IN-TARGET_QTY and update the same in the table ORDER_ITEMS_INX (ORDER_ITEMS_INX-TARGET_QTY) with 'X'.
    For updating schedule line go for ORDER_SCHEDULES_IN-SCHED_LINE and update X for the same in ORDER_SCHEDULES_INX.
    Try looking into the following code, I am filling in both the Item data as well as the Schedule line data.
      loop at t_mdata into fs_mdata.
        fs_item-itm_number  = fs_mdata-posnr.
        fs_itemx-itm_number = c_flag.
        fs_item-material    = fs_mdata-matnr.
        fs_itemx-material   = c_flag.
        fs_item-target_qty  = fs_mdata-kwmeng.
        fs_itemx-target_qty = c_flag.
        fs_item-item_categ  = fs_mdata-pstyv.
        fs_itemx-item_categ = c_flag.
        fs_itemx-updateflag = c_flag.
          APPEND fs_item TO t_item.
          APPEND fs_itemx TO t_itemx.
        fs_sline-ITM_NUMBER  = fs_mdata-posnr.
        fs_slinex-ITM_NUMBER = c_flag.
        fs_sline-SCHED_LINE  = c_sline.
        fs_slinex-SCHED_LINE = c_flag.
        fs_sline-REQ_QTY     = fs_mdata-kwmeng.
        fs_slinex-REQ_QTY    = c_flag.
          APPEND fs_sline TO t_sline.
          APPEND fs_slinex TO t_slinex.
      endloop.                             " Loop t_mdata
    c_flag contains 'X'.
    fs_item is of structure ORDER_ITEMS_IN.
    fs_sline is of structure ORDER_SCHEDULES_IN.

  • Regarding sales order not created in xml file format

    Hi Friends,
                       I have the xml file,I sort the xml file alphabetically on material master codes, WHen program try to create the sales order by using this xml file through call transaction method, the line item numbers does not matches with the line items of xml file.
    I want same sequence.Please suggest me..
    Best Regards,
    SHialpa.

    HI Divya,
    Have u uninstalled Acrobt Reader from your system???
    Regards
    Manoj S

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • What setting to mandate that invoice is created based on sales order NOT...

    Hi,everyone
    Could you tell me the detailed configuration  to mandate that invoice is created based on sales order NOT delivery documents.
    Additionaly, I need to define this rule at headquarter and apply it all lower-level companies.  how to do it.
    thanks you very much

    Dear Humility,
    Could you tell me the detailed configuration to mandate that invoice is created based on sales order NOT delivery documents.
    This is quite possible through copy control settings between sales order and billing document
    In standard billing type F1 will billed with reference to the sales order OR,so you can copy those settings then rename to your document types and itemcategory.
    Go to VTFA transaction click n change icon then select billing type F1 and order type OR then click on Copy As icon (F6)and change the document types(maintain your docuemnt types).
    To copy item level settings
    Now you come back to initial screen agin you select billing type F1 and order type OR then click on item here you select standard item category then click on Copy as Icon (F6) here you maintain your itemcategory.
    Note:- Don't change the satndard settings you just copy
    Additionaly, I need to define this rule at headquarter and apply it all lower-level companies. how to do it.
    For this you can take help of your BASIS people they will full fill with the roles and authorisation settings.
    I hope this will help you,
    Regards,
    Murali.

  • Merge PR (same sales order) and Create PO using BADI

    Hi,
    How to merge PR (of same sales order) and create PO using Tcode ME59n.
    Is this possible using BADI?
    pls reply.
    A Rahim.

    Hello Deepak
    This kind of issue is probably related to your rescheduling settings. The PO is probably excluded from the rescheduling settings on customizing or it is outside the rescheduling horizon.
    Please take a look on the following WIKI that explains the rescheduling and the related settings in detail:
    What is rescheduling and how does it work - ERP Manufacturing (PP) - SCN Wiki
    BR
    Caetano

  • Sale order not trans to r3 .

    I create sale order through bapi.but it can not trans to r3.
    but the order created through GUI can trans to r3.
    please help.

    sorry , my english is very pool.
    I created sale order in CRM through BAPI,and can view it use Tcode 'CRMD_BUS2000115'.
    But I can not find it in R3.
    In our company , We installed Middleware between CRM and R3.when create sale order in GUI use TCode 'CRMD_BUS2000115', Middleware will trans sale order into R3 system.
    But I upload sale order through BAPI,Middleware does not work.
    please help

  • Plant change in Sales Order not possible due to Sales Order BOM

    Hi all,
    we are trying to change the Delivery Plant in a Sales Order after the creation of a Sales Order BOM, but it gives a V1773 message first, then a blocking error V1810. The same happens with a Production Order.
    How can we change the Delivery Plant after the creation of one of these objects?
    Our scenario:
    - Make To Order
    - Sales Order BOM created with transaction CS61
    - Sales Order Routing created with transaction CA01
    We need to create the Sales Order BOM on the Production Plant (which doesn't change), but we need to be able to change the Delivery Plant in any time.
    Should you have further questions, feel free to ask.
    Thanks in advance,
    Giuseppe

    Hello Caselli,
    For V1773, please check the solution provided by note 588884, which is a modification. With this note it turns possible to delete all multi-level sales order BOM using transaction CSKB, which may be useful.
    The behavior mentioned by you is the standard behavior of the system. The scenario works as designed, a plant change is only possible as long as there is no other document assigned to the sales order.
    Longtext of V1 810 says:
    The plant can no longer be changed in the following situations:
        2. There is a production order for the order item but it is not a static assembly order.
    Your scenario seems to be point 2 as mentioned above. You can check the requirement type (VBAP-BEDAE) and requirement class in OVZH and assembly type (MNTGA) in OVZG.
    If you change the plant for the items with existing production orders, it will cause the incorrect values in the COPA. An order item is assigned to plant A and the corresponding production order exits. This
    means that the costs are assigned to plant A (this is the place where the costs accrue). Order and production order will be balanced at plant A.
    If you now, after the process has already started, should allow to change the order to plant B the following examples of problems will come up:
    - The costs accrued in plant A (see production order)
    - The SD order is now assigned to plant B, this means billing will be with plant B
    This leads to the fact the costs are on plant A, plant B has a benefit. Plant A cannot settle the costs and plant B has unexpected earnings. Inconsistencies in all involved process steps, SD, CO, COPA are the results.
    If you want to change the plant in the sales order you'll have to perform these steps:
    = Delete the production order.
    = Change the plant of the sales order item from A to C.
      This should be possible unless there are other documents which are already assigned to this sales    order item. Save.
    = Create a new production order and assign it to the sales order item again.
    I hope I am able to help you with this information.
    Best Regards,
    Bhavin Joshi

  • Sales order not getting confirmed because of oldest of open items overdue.

    Hi all
             Businesses using the auto order creation for sales, sales order getting created but when I check it in schedule line the quantity is not getting confirmed even quantity is available and credit limit is also available and there are no open items due. When I check ,availability tab in VA02 manually, its coming oldest of open items overdue.
    Pls help...
    Regards
    Nagesh

    Hello,
    please check in the system in ova8
    Credit check against oldest open item
    Indicates whether the system carries out a credit check based on the age of the oldest open item.
    The oldest open item must not be older than the number of days specified.
    If in ova8 it checked then system is checking the oldest open Items .
    Thanks,
    venkataswamy.y

  • Block For billing when sales order is created

    Hi experts,
                   I have a requirement in which i want to block the sales documrnt for billing when the sales order is created with particular discount value.
    for this i have checked the condition of discount first it works fine no i want to block it for billing.
    My SD consultant told open the sales doc in change mode(VA02) and then go to Billing Block field (FAKSK)  and then give 02 Compl confirm missing and save the doc
    So for this i have writen a method.
    SET Parameter ID 'VBELN' Field OBJECT-KEY.
    Call Transaction 'VA02' and SKIP FIRST SCREEN.
    SET Parameter ID 'FAKSK' Field '02'.
    in this it is calling the VA02 screen but i am not able to pass the billing block value and save.
    Please give me a solution how to do this.
    for blocking i have also used the standard method in BUS2032  SetDefaultBillingBlock
    it is not blocking the billing.
    Or should i use some bapi for this.
    Regards,
    Hari

    Hi Hari,
    SET parameter ID only sets the value to an input field. It wont saves to the database. More over i don't find any parameter ID for billing block in VA02.(May be because it is a drop down).
    Use BAPI BAPI_SALESORDER_CHANGE Pass the sales order number, ORDER_HEADER_IN-BILL_BLOCK = ur blocking code, ORDER_HEADER_INX-BILL_BLOCK = X.
    After calling the BAPI call BAPI_TRANSACTION_COMMIT.
    Above procedure is to programativally.
    If u want to do it manually then directly open VA02 and change the billing block and save.
    I dont think we can set parameter ID for billing block
    Thanks,
    Vinod.

  • Creating a PO when a sales order is created

    Hi,
    Can anyone guide how this requirement can be achieved. For  both scenarios there should be no manual intervention.
    This is not a third party scenario.
    When a sales order is created then a purchase order should be created in same server and                                                                               
    in different server.
    1) For different server scenario i think idoc can be used.  what should be my outbound and inbound message types and idoc types. because both po and so have same idoc types(ORDERS) and message types(ORDERS05). so when a sales order is created in 1 system how system knows that it needs to  convert to PO in other system. And there should be no Purchase Requisition created..
    2) Best way creating  PO in same server with sales order with out creating Purchase Requisition.
    please share your valuable suggestions.
    Edited by: abilash n on Jun 13, 2011 7:12 AM

    you need two output types for two scenarios, and there are different ways to do it from there,
    for PO creation in same server I would use a Output with Transmission Medium as 8 - special function and used BAPI to create the PO, this way you dont have to keep track of idocs but the once the order is created functin will get triggerd and PO will be generated.
    Check with the SD Consultant on how to create the Output type with TM 8(tcode NACE -> V1 - sales -> output types -> ).
    for the different server I believe you alredy have the RFC/ connecetions set up. You'll have to use an IDOC for this.
    Partner profiles and process codes in destination systems will determine the PO creation.
    regards,
    nipuna

  • Idoc info in 'Services for Objects' when a sales order is created

    Hi Guys
    Could one of you remind me how to turn on the Idoc info in the 'Services for Objects' > workflow option.
    I know how to turn on the services for objects using the user profile and entering parameter id:SD_SWU_ACTIVE , parameter value: X.
    I am not able to see the Idoc number/info that was used to create the sales order. I can see all the information in WE05 but the sales order does not show me any history of having used the Idoc.
    When i go to sales order and select the services for objects option followed by workflow the system should show the IDOC number/info used to create this order.
    Your help will be appreciated.
    Thanks
    Manish
    Edited by: Comes Naturally on Feb 23, 2009 3:46 PM

    Hi,
    1. Configure the IDoc with message type ORDERS and basic IDoc type as ORDERS05 (You have to follow common step-by-step approach)
    2. Configure Message Control to automatically generate IDoc whenever a Sales Order is created. (I mean output type)
    So whenever a Sales Order is created, output type will generate an IDoc.
    Hope this information is useful.
    Regards,
    AK

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

Maybe you are looking for

  • ITunes keeps skipping songs on my iPhone and iPad

    This is a problem as many have reported. I have about 4500 songs on iMac that are combination of my own CD's and purchased music from iTunes. I have several dozen songs or more that are skipped on both my iPhone 5 and iPad air. I have been to two dif

  • 10g OUI Crashes on SLES9 sp2

    Hi, I've read through here hoping to find someone else that has seen this strangeness, but no such luck. I have setup SLES9 sp2 on an HP DL585 (ProLiant) and then started the process of installing Oracle 10g EE. I followed all the instructions for se

  • Bridge CS 5.1 -- Need Manual

    I want to understand Bridge by reading the manual. None shipped with the product -- just some sort of lazy, stupid google-type "help" (patronizing and insulting -- as if I don't know how to search the Internet by myself). Using this horrid non-help y

  • Php includes

    Hi If I create an include using images and include that include on every page then forsome reason the images no not show in either design or preview mode. However if I view the include in design view or preview mode the images show up. I'm using a lo

  • Object load path

    Hello For internal testing I need to get the path of the loaded object. I will not do it in production. Is it possible? I believe I remember something about being able to do it with the classloader. Also if the method on the proper object gives me ba