BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER

Hi ,
I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
but couldn't find for create with reference to Order ...
Thanks in advance ...
Regards
Rajesh.

Hi,
You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
Reward if it's useful.
Thanks,
Anil

Similar Messages

  • BAPI for creating scheduling agreement with reference to Contract agreement

    Hi All ,
    Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
    Thanks for your help.
    Vadivukkarasi

    Hi,
       Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
    check these
    BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
    BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
    Regards

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • Creating sales order with reference to order

    Hi SD gurus.
    I try creating a sales order with reference to order, but I get this error message: "Flow control: Entry SAPMV45B, UER1, E0, *   , AU  , * is missing in T185". I don't know what is missing. Please, could you help me?
    Thanks a lot.
    Marta.

    hi,
    this is to inform you that,
    i went to SE16N given there T185 and checked with UER1 which is an FCODE FOR OVER VIEW SCREEN in VOV8.
    this entry is missing for the combination.
    please check in your sales order in VOV8 whether you have maintained UER1 in the above field.
    if not :
    please maintain the entries missed in T185 in SM30.
    because i have checked teh same in SM30 it is having opportunity to maintain.
    hope this will solve your issue.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 23, 2010 12:00 PM

  • BAPI to create equipment hierachy with reference to another equipment

    HI,
    is there any BAPI to create equipment hierarchy with reference to another equipment.
    i.e. in selection screen i pass two equipments, one has hierachy and another one don't have hierarchy.
    then it copy hierachy first equipment hierarchy and create same hierarchy for second equipment.

    Hi,
    There are no standard BAPI to do that.You will have to create a custom program which would read the current equipment hierarchy and build the hierarchy from the lowest level, by using the equipment create BAPI and  Equipment install BAPI.
    Regards
    Narasimhan

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = 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              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • Pricing procedure for order with reference from order

    Dear Friends,
    If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too.
    But I would to use another pricing procedure for second document
    I found the oss note 14136 but this is for reference from invoce
    I tried to create new data transfer routine for orders in copy from 51, but does not work
    Can you help me??
    thanks
    best regards
    GdA

    > If I create a sales order with reference to another sales order of different type, the pricing procedure is copied too. But I would to use another pricing procedure for second document,
    Based on my understanding of query.
    You are looking for a different pricing procedure in second doc.
    For instance, the PricProc for SalesDoc1 is ZPR001 and  the PricProc for SalesDoc2 is ZPR002, in addition to that, you want SalesDoc1 to become reference doc for SalesDoc2.
    For this, ZPR002 & ZPR001 should have common base price condition type and rest pricing can change.
    And for maintaining different Pricing Procedure with similar combination of sales area for SalesDoc1 & SalesDoc2, maintain different document pricing procedure for both docs and maintain Pricing procedure accordingly..
    Thanks & Regards
    J Prakash

  • Create sales document with reference document

    Hi Experts:
                    In the case of create sales document ,i set that create sales order with reference a billing document.
                    But i have a problem,the Pricing procedure in billing document is A, after coping from it,the sales document
                    Pricing procedure is A also,it can't work using Pricing Procedure Determination in config.
                    Actually,i want the sales document using a new  pricing procedure.
                    Pls help to give me some advice.
                                                      Thank you very much.
                            Best Regards!

    Go to VOFA, select your billing type and execute.  There maintain a different document pricing procedure from what you maintained for your sale order type in VOV8. 
    Next go to OVKK and assign the new pricing procedure to the document pricing procedure of what you maintained in VOFA
    Finally, go to VTAF, select your source billing document type and order type and execute.  There assign routine 053 for the first "DataT"
    Now try how it works.
    thanks
    G. Lakshmipathi

  • VA01: Sales order with reference to order

    Hello,
    I'm trying to create sales order with reference to other sales order with tcode VA01.
    Original sales order has 2 items with same MATNR and MATKL
    Example:
    000001 MAT1 LLL
    000002 MAT1 LLL
    When we create a sales order with reference the system throw the following message:
    Item 000001 exists already; the entry will be ignored (V1338).
    Why dont the system copy the exact number of items although they are iqual?
    Is there any option in configuration to control this behavior?
    I thank you in advance.
    Mario.

    Hello Jignesh,
    I've tried to perform the changes as you said, but the system trows a short dump.
    PERFORM_PARAMETER_MISSING, excepction: CX_SY_DYN_CALL_PARAM_MISSING
    A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_303" of the program
    "SAPLV45C".                                                                
    The current call contains 0 actual parameter(s),                            
    but the routine "BEDINGUNG_PRUEFEN_303" expects 1 parameters.               
    I image that's because we are giving a position routine at header level.
    Do you have aby other sugestion: I tried to use the same routine that i had (001) and Mark Complete Reference but i didnt worked.
    I thank you in advance.
    Mário.

  • Bapi for creating Sales Area data on Relationship

    Hi,
    I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
    Example - I would like to create relationship type CRMH03.
    Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
    Does anybody know such a bapi?
    Regards
    Radek

    hi
    try using these
    BAPI_BUPA_CREATE_FROM_DATA
    BAPI_BUPA_RELATIONSHIP_CREATE
    best regards
    ashish

  • BAPI FOR CREATING SALES ORDER WITH REFFERENCE TO QUOTATION

    Hi All,
    I am creating sales order with refference to quotation by using bapi "BAPI_SALESORDER_CREATEFROMDATA".Able to create sales order but its not refferencing qutation.Is there any other bapi for this scenario.Please guide me.
    Regards,
    Suresh

    Hi ,
    Thank you for giving reply I tried by using bapi BAPI_SALESORDER_CREATEFROMDAT2 after execution it giving sales order number but when I am trying to see that sales order system is giving error message as document is not exist.
    Please guide me.
    Suresh

  • BAPI to create notification service with reference to sales order

    Hi,
    My need is to create a service notification TC IW51 with reference to sales order (credit memo request).
    is there a bapi to do this or i must do a bdc?
    please help.
    A+
    Ihsen ABROUG

    I have custom screen fields on notification service!
    i think a bdc is better.

  • BAPI for Creating Sales Order For Variant Configuration Materials

    Dear Gurus,
    Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
    Few checked threads on this subjects are:
    http://scn.sap.com/thread/34590
    http://scn.sap.com/thread/851070
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/thread/120144
    OSS: 549563
    Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
    We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
    Pls find attached BAPI coding document for your reference.
    If you could throw any light on this issue will be of great help for us.
    Thank You in Advance!!!
    Reg,
    Jagan-SD.

    Jagan nath
    Try below.
    you would need miimum of 3 segments to pass variant config data using this bapi
    ORDER_CFGS_REF for each configurable item
    POSEX = ITEM #
    CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
    ORDER_CFGS_INST
    CONFIG_ID - from above
    INST_ID - Start with 1 and increment it for each configurable line item
    OBJ_TYPE = "MARA'
    CLASS_TYPE = '300'
    OBJ_KEY = material #
    ORDER_CFGS_VALUE
    CONFIG_ID for the item, INST_ID for the item
    charc for characteristic value
    VALUE for characteristic value
    Reference thread
    How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Hope it will solve your issue.
    Thanks
    Ritesh

  • BAPI for creating sales scheduling agreement

    Hi All,
    I have a scenario where i need to create a sales scheduling agreement using VA31. I have tried using a function module "SD_SALESDOCUMENT_CREATE". I am able to create the document by inserting the correct data in "SALES_HEADER_IN", "SALES_ITEMS_IN", "SALES_PARTNERS" and using the update flag as " I ".
    When I try to insert data in "SALES_SCHEDULES_IN" the function module returns error message "No schedule line category could be determined during quantity adjustment".
    please provide help in finding out the right procedure for creating the scheduling agreement with schedule lines data.
    Regards.
    Anurag

    Hi,
    Did you shown this to your functional team.
    Regards,
    Madhu.
    Edited by: madhurao123 on Nov 21, 2011 3:29 PM

Maybe you are looking for

  • Weblogic Server 6.1   IIS5

    I'm trying to configure IIS to run an application which uses the weblogic server. I have 2 servers. 1 is a webserver runnning Win2K IIS5. The other is an application server which is running BEA WebLogic Server 6.1, & other apps. I'm trying to allow a

  • I am trying to print labels in alphabetical order from my contact app

    I am trying to print labels in alphabetical order from my contact app.  i am new to this..any help will be appreciated

  • Help with load in iphone 5s

    my iphone 5s does not come off with the battery icon when charging and not charging the battery. the screen goes black and the drawing of the stack appears to be loading according filling is gathering load sorry for my English

  • Ad hoc mode

    Do all hp printers support ad-hoc connection? How do I setup the adhoc mode on the ojp 8600? This question was solved. View Solution.

  • How to use tabular records ?

    Below are the steps I want to : 1) retrieve data from a table 2) put these data into a mutiple records, It is a tabular records designed by the data block wizard. 3) modify data 4) save data into another table thx