Find FM or BAPI to sales order routing (CA01) and sales order bom(CS61)

Hi Experts,
I just want to find a function module or bapi to create sales order routing.The related transaction is CA01.
For the created routing, it's releated with sales order number and sales order item.
And also need a FM or BAPI to create sales order bom.The related transaction is CS61.
For the created BOM, it's releated with sales order number and sales order item.
Watting for your response!!
Thanks a lot,
Frank

Hi Experts,
I just want to find a function module or bapi to create sales order routing.The related transaction is CA01.
For the created routing, it's releated with sales order number and sales order item.
And also need a FM or BAPI to create sales order bom.The related transaction is CS61.
For the created BOM, it's releated with sales order number and sales order item.
Watting for your response!!
Thanks a lot,
Frank

Similar Messages

  • Class for Purchase order item components and Production order components

    I'm looking for a some classes.   I'm very new to objects, so I could be searching for them incorrectly.
    The first class I'm looking for is a purchase order class that contains the item components.  I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM.  I couldn't find components as a part of either of the classes.
    The second one I'm looking for is not as critical.  It is for the components for a production order.   I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order.  However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
    Any help that you could give would be greatly appreciated.
    Thank you!
    Michelle

    Hello Michelle
    I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
    *& Report  ZUS_SDN_OO_READ_PO
    *& Thread: Class for Purchase order item components and Production order components
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
    "& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
    REPORT  zus_sdn_oo_read_po.
    TYPE-POOLS: abap, mmpur.
    PARAMETER:
      p_ebeln   TYPE ebeln  DEFAULT '3000000045'.
    DATA: gs_document    TYPE mepo_document,
          go_po          TYPE REF TO cl_po_header_handle_mm,
          gs_header      TYPE mepoheader,
          gd_tcode       TYPE sy-tcode,
          gd_result      TYPE mmpur_bool.
    data: gt_items       type PURCHASE_ORDER_ITEMS,
          gs_itm         type PURCHASE_ORDER_ITEM,
          gs_item        type mepoitem.
    START-OF-SELECTION.
    *  prepare creation of PO instance
      gs_document-doc_type    = 'F'.
      gs_document-process     = mmpur_po_process.
      gs_document-trtyp       = 'A'.  " anz.  => display
      gs_document-doc_key(10) = p_ebeln.
    *  object creation and initialization
    **  l_ebeln = purchaseorder.
      CREATE OBJECT go_po.
      CALL METHOD go_po->po_initialize( im_document = gs_document ).
      CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
      CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
    *  read purchase order from database
      gd_tcode = 'ME23N'.
      CALL METHOD go_po->po_read
        EXPORTING
          im_tcode     = gd_tcode
          im_trtyp     = gs_document-trtyp
          im_aktyp     = gs_document-trtyp
          im_po_number = p_ebeln
          im_document  = gs_document
        IMPORTING
          ex_result    = gd_result.
    *  there was a problem in reading the PO
      IF ( gd_result EQ mmpur_no ).
    **    l_messages = l_handler->get_list_for_bapi( ).
    **    PERFORM return TABLES l_messages return
    **                          poitem poschedule poaccount.
    **    CALL METHOD l_po->po_close( ).
      ELSE.
        gs_header = go_po->if_purchase_order_mm~get_data( ).
        WRITE: / gs_header-ebeln,
                 gs_header-bukrs,
                 gs_header-bsart,
                 gs_header-lifnr.
      ENDIF.
      gt_items = go_po->if_purchase_order_mm~get_items( ).
      LOOP AT gt_items INTO gs_itm.
        gs_item = gs_itm-item->get_data( ).
        write: / gs_item-ebelp,
                 gs_item-matnr,
                 gs_item-menge.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • How to identify the emergency orders in STO and Sales Order

    Hi,
    kindly let us know is there any field in header details of STO and Sales Order where we can identify the emergency orders,
    In our STO Process we are creating more STO's from one warehouse to one Store,but in that orders we have some of the orders are emergency order's.
    Note:-if we create new order type then we can deference the orders but as per the business requirement we need to give same order type. 
    Thanks & Regards,
    Murali.M
    +91-9321526563.

    Thanks

  • Sales Order - Draft[Rejected] and Sales Order - Draft[Approved]

    Hi,
    I am using SBO 2004B.
    I want to check through my VB6 code, if a Sales Order document is a normal Sales Order or it has been through approval system and is in Sales Order - Draft[Rejected] or Sales Order - Draft[Approved] status.
    How can i do that?
    Thanks.

    Hi Satish,
    The document drafts are saved in the ODRF table. The WddStatus field in the table (ODRF and in all other document tables, like OINV, ORDR, etc.) shows the authorization status of the document. Valid Values are
    - Without Authorisation (Normal Transaction)
    W Pending
    Y Approved
    N Rejected
    P Generated
    A Generated By Authorizer
    C Canceled
    Let me know if it helps...
    Adele

  • Planned Order for stock and planned order for customer requirement

    Hello everybody
    I want to make a different, in MD04,   between the planned order for stock and the planned order created for a customer requirement
    Thank for your help

    Hi,
    True planned order are generated for both the cases but the planned order generated for sales order will have sales order number in the below column and for stock will show independent requirement. Mainly no sales order reference will be there for make to stock scenario.
    Hope it will help.
    Regards,
    Alok Tiwari

  • Pre-order points missing and pre-ordering problems at the store level.

    Hi
    During the week of July 6th-July 12 there was an ad for pre-ordering certain movies and getting 100 bonus points for each movie.  On July 12th I pre ordered Rio 2, The Amazing Spiderman 2, and Transformers:AOE (Steelbook edition).  The employee was able to successfully pre-order Rio 2 using the provided in store pre order card but had difficultly pre ordering Spiderman 2 and Transformers.  Rio 2 and Spiderman 2 had set release dates while at that time Transformers did NOT have a release date until recently.  These pre-orders were done in three different transactions. 
    Picking up Rio 2 on 7/15 was not a problem.  The employee did an exchange in the system.  The 100 bonus points never posted.
    The Amazing Spiderman 2 had a lot of problems.  The employee thought I already bought it and picked it up on 7/12 when I went to pick it up on 8/19 (the release date).  At the time of the pre order purchase, there was no announcement of the BB exclusive Magno pack for the same price as the regular blu ray release.  Again the employee did a return/rebuy.  This employee also stated that the employee who processed the pre-orders Spiderman and Transformers did it incorrectly since it looks like she did it as a normal transaction instead of a pre-order.  The points have yet to be posted.
    Transformers: AOE (Steelbook edition) now has an official release date of 9/30.  My question is will the system allow for employee to process the pre-order pick up since it is outside of the 45 day window?  I am hoping it won't be but seeing how the employees have been processing pre-orders incorrectly when picking them up I expect problems when doing so. 
    I have also noticed a price drop for transformers (6760435) from the time I pre-ordered it on 7/12.  Will the employees be able to adjust the price and give me the difference?
    Not all stores carry the pre-order cards making this a difficult process for everyone (it takes me on average 30 minutes to pick up 1 pre-order instead of in and out within 5 mins like usual) because someone didn't do it correctly the first time.  So my question is, how should employees process a pre-order if there is NO Pre-Order card in store??  I would love to continue to pre-order at best buy, but am getting tired of having employees screw up my pre-order.

     Hello ITDEFX101,
    Pre-ordering your movies during these 100 My Best Buy™ Bonus Point promotions is a great way to ensure that you are able to get your hands on some great movies as soon as possible after release, while simultaneously earning extra points. It is regrettable to hear that your pre-order experience with Rio 2 and The Amazing Spiderman 2 were not as smooth as we strive for these processes to be, and in the end, you state you didn’t even get the bonus points you expected.
    Using the information you registered with the forum, I was able to review your pre-orders for all three movies, as well as your My Best Buy™ account. Sadly, it does appear that there may have been some issues with your pre-orders, and I would like to address these with you privately, especially concerning your pre-order for Transformers: Age of Extinction. I am sending you a private message, which you may view once you’ve signed into the forum and clicked the envelope icon in the top right corner of the page.
    Sincerely, 
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Plan SD order in Week and Plan order in PP in day

    Hi,
    I have planed a SD order in weeks and in PP the plan oder ist in day. but in PP I always get a plan order on monday.
    How can I customize it to choose the start day in PP.
    Thanks
    Dede

    Hi RB,
       As you may be aware Billing plan can be either periodic or milestone billing. Billing plan is a schedule of individual billing dates for a single line item in an order. This is used mostly in Service , Maintenance or projects.
    If you want to bill a customer on a certain date for the specified quantities, I suppose you should use Scheduling Agreements to fulfill your requirement.
    Regards
    Raj

  • Parallel creation of sales orders, purchase requisitions and purch. orders

    Hi All,
    I have the following requirement, can you please provide feedback if it is feasible or not.If yes HOW ??
    There is report to upload data which first reads all entries in the file -> create SO/PR and then convert them into POs.
    The report displays the all the error and success records.
    When large volume of data is uploaded ,then start the PR to PO conversion after converting the first 500 SO/PRs so that the next 500 entries from file can be used to create SO/PRs and so forth. In this way the SO creation and PR to PO conversion happen in parallel batches thereby improving the performance.
    Is it possible to run the same program in parallel batches of 500 records??
    Thanks and Regards,
    Sachin M M
    Edited by: Thomas Zloch on Apr 12, 2010 3:08 PM - subject line enhanced

    It looks like each SO -> PR -> PO creation is a unit that can be handled in parallel with aRFC (asynchronous RFC), using all available dialog processes minus a few that you want to reserve for other purposes.
    Please search for "parallel processing" and "aRFC".
    I would not try to split SO -> PR and PR -> PO into several processes because of the dependencies.
    Thomas

  • Sales area for STO and sales

    Dear all...
    when we use ref sales org, ref dist channel and divisions (ref sales area) for STO purpose.
    so is there any problem if we make sales using the same sales area to any customer?
    Please solve my query.
    Thanks...
    Deepak...

    Hi,
    We wont required to create as many customer for different plant.
    As you know plant is determined in the sales order from customer material info record or customer master data or material master data.
    So if you have to many plant then donu2019t save any plant in customer material and in customer master data.
    So it will fetch the plant from the material master data automatically.
    Regards
    Raj.

  • How to relate Campaign and Sales Order in WebGUI?

    Hi experts,
    When I am working on WINGUI side I see that there are fields to store item and header information for Campaign. On WebGUI side I can not find them. So, how can I relate Campaign and Sales Order on WEBGUI side?
    Thanks in advance
    Erkan

    HI Erkan,
    It might be because your Field is been hidden in the Web GUI.
    Take teh Component ID and goto component enhancement workbench, then goto configuration see the Available fields option. You should select your field and display .
    Hope this solves your query.
    Regards
    Arun Kumar

  • Relationship table of Sales Order (VA03) and Delivery Order (VL03N)

    Hi everyone!
    What table can I see the relationship of Sales Order document (VA03) and Delivery Order document (VL03N) as shown in VA03 > Environment > Document Flow?
    I mean, what tables saves the partnerships of each document (query sales order no. and get equivalent delivery order no. or nos.)
    Thank you very much!

    Hi
    U can use the fm RV_ORDER_FLOW_INFORMATION in order to get out those links or you can read the item table LIPS:
    LIPS-VGBEL  = sales order number
    LIPS-VGPOS  = salese order item
    Max

  • Service Order with reference to sales order

    Hi all,
    My client is selling finish material and services to finish material my client requirement is Once we save the sales order, line item with service material system should generate Service order for serves which we are selling to customer
    can any one guide me how to configure in SAP the movement we sales order system should generate the Service order
    Thanks
    Ram

    Hi Ram
    Say your finish material sales order is ZFIN and service order is ZSER.
    Create a BDC program to create ZSER type sales order.(Take help of ABAPer).
    Create new output type ZCRE. Assign this BDC program to ZCRE output type, such that when ZCRE triggers ZSER sales order creates.
    Now assign ZCRE output type to ZFIN sales order type.
    So conclusion, when you save ZFIN sales order, automatically ZCRE output type will trigger.
    ZCRE internally calls VA01 for ZSER sales order. So ZSER get created when you save ZFIN.
    try and revert

  • Difference betwen cash sales and rush order

    hai members
    pl mail me the diff bet Cash Sales And Rush Order
    and there implication in Billing documents.
    mail me to: [email protected]

    <b>Rush Order</b>
    In a rush order, the customer picks up the goods immediately, or you deliver them on the same day as when the order was created. When you save the rush order, a delivery is automatically created in the standard system. Billing the rush order takes place as normal, after the delivery.
    In the standard system, sales document type RO is saved for rush orders with immediate delivery type LF. Once the goods have been removed from storage, the goods are picked, and goods issue is posted.
    Once the billing documents are created (for example, in collective processing), invoice papers are printed and sent to the customer.
    IN –IMG-SD-SALES-SALES DOCUMENT HEADER-ORDER TYPE RO/CS U CAN SET A FOR IMMEDIATE DELIVERY IN SHIPPING WHICH CREATES DELIVERY AUTOMATICALLY WHEN U SAVE SALES ORDER
    <b>Cash Sales</b>
    In cash sales, you can process an order for when the customer orders the goods, picks them up, and pays for them immediately. The delivery is processed at the same time as when the order is created and a cash invoice is printed immediately: billing is therefore related to the order, unlike rush and standard orders. Receivables are not created for the customer, as they are for rush and standard orders because the amount in the invoice is immediately posted to a cash account.
    In the standard system, sales document type BV (CS) is saved for cash sales with immediate delivery type BV.
    When the sales employee creates a cash sale, the system automatically proposes the current date as the date for delivery and billing. Once the order has been posted, a delivery with type BV is created immediately in the background and the system prints a document that is used as an invoice for the customer.
    The invoice papers are controlled with output type RD03, contained in the output determination procedure for order type CS.
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Cash sales and Rush order

    What is the difference between Cash Sale & Rush Order?

    Hi
    Cash Sales: In this type of order CS, as soon as you save the sales order the delivery is automatically created as same date and billing will also be generated at the same date as soon as you save the delivery document.
    In a rush order, the customer picks up the goods immediately, or you deliver them on the same day as when the order was created. When you save the rush order, a delivery is automatically created in the standard system. Billing the rush order takes place as normal, after the delivery.
    In the standard system, sales document type RO is saved for rush orders with immediate delivery type LF. Once the goods have been removed from storage, the goods are picked, and goods issue is posted. Once the billing documents are created (for example, in collective processing), invoice papers are printed and sent to the customer.
    Rush Order: In this type of Order RO , The delivery will be created as soon as you save the sales order. But you bill the customer later.
    In cash sales, you can process an order for when the customer orders the goods, picks them up, and pays for them immediately. The delivery is processed at the same time as when the order is created and a cash invoice is printed immediately: billing is therefore related to the order, unlike rush and standard orders. Receivables are not created for the customer, as they are for rush and standard orders because the amount in the invoice is immediately posted to a cash account.
    In the standard system, sales document type BV (CS) is saved for cash sales with immediate delivery type BV.
    When the sales employee creates a cash sale, the system automatically proposes the current date as the date for delivery and billing. Once the order has been posted, a delivery with type BV is created immediately in the background and the system prints a document that is used as an invoice for the customer. The invoice papers are controlled with output type RD03, contained in the output determination procedure for order type CS.

  • View sales order net price and relavent putchase order effective price

    I;m using purchase to order sap solution. every sales order has single or multiple purchase orders. I nned to check the putchase order effective price agianst the sales order net price. Can i see both data in sales order, purchase order or any other standard report for this.

    Hi,
    There is no direct way to see sales order net value and purchase order value associated with sales order.
    you can view it by going inside VA02 or VA03 and click on document flow,then SO and P.O net value viewed.
    check t-code ME2K, put sales order number and see
    kapil

Maybe you are looking for

  • How to get rid of OutOfMemoryError or at least handle it

    Hi The intention is to get rid of the cases, when OutOfMemoryError exception happens on the WebLogic (v6.1.3.0) side. The exception is thrown after some period of running (from several hours to days, depends on the load/usage model). We have several

  • Reinstalling iTunes after hard drive failure

    My hard drive recently failed and I have just replaced it. Downloaded and installed iTunes again. I had my iTunes library backed up on a external hard drive. I have copied the iTunes library back to internal hard drive prior to installing iTunes - bu

  • My iMac has been shutting down multiple times a day.

    Here is the diagnostics report for the last crash: Process:         crsud [49] Path:            /usr/libexec/crsud Identifier:      crsud Version:         ??? (???) Code Type:       X86-64 (Native) Parent Process:  launchd [1] Date/Time:       2013-1

  • Receivables - Query of Customers, sorted by Payment Terms?

    I'm looking for an easy way to run a query (through the Applications layer) of all customers, sorted by their Payment Terms (Net 30, Net 45, etc.) Any ideas?

  • Implementation of physical inventory

    hi, tell me the detail steps while implementing physical inventory newly for a company ( with t codes)