Internal Sales Order imported with Line status "Booked".

Hi Guys,
Expecting a status of "Awaiting Shipment" in the line status but getting the status of "Booked".
checked the following metalink notes but did not help
Scheduling Internal Sales Orders Results in Error - One of the Group Elements or Mandatory Components Failed [ID 368187.1]
Internal Sales Order Gets Created In "Booked" Status [ID 1357172.1]
Any Thoughts???

Guys,
Issue is resolved.
Earlier in 11i in ASCP, instance Org defintion is setup for only the required Inv org.
But in R12 we need to define for all the available Inv organisations.
Later after running the complete collections and running the ASCP plan resolved the issue.
Thanks
Radha.

Similar Messages

  • R12, Sales Order RMA with line status "Awaiting Return"

    Hi guys
    Following the tips, I successfully managed to create RMA for entire SO. Now the SO lines are with the status "Awaiting Return". How I can update the inventory with the RMA quantities and close the order?
    Is there any particular concurrent program or API available to do this job?
    Thanks and regards,

    Hi Sandeep
    Thanks again. Actually I wanted to automate the entire " inventory > transactions > receipts > returns > customer tab > enter RMA order # and proceed" process by the means of using a proper API or concurrent program.
    As I was not getting satisfactory answers, I approached Oracle and they confirmed there are no public API available to establish this requirement. However they provided a workaround solution which points towards inserting records manually into receipts interface.
    Twice your suggestions truly helped me out to address immediate requirements and thanks again.
    Regards

  • How to cancel the sales order - header and line status are in Entered Stage

    Dears,
    I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
    Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
    So it is not possible to book and cancel the lines.
    Kindly me to resolve this.

    926530 wrote:
    Boss,
    If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
    The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
    How to cancel the sales order - header and line status are in Entered Stage
    Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
    unless until you have some processing constraints in place...which is stopping you...
    HTH
    Mahendra

  • Create one internal sales order with two lines

    When I try to use internal sales order cycle
    I started with create internal purchase requisition with two lines,
    Each one will supply from different warehouse
    Run Create Internal Orders request
    and then switch to Order Management responsibly
    Run Order Import request with requisition number in parameter window
    All of lines included in internal requisition in same internal sales with different shipping warehouse

    it's seeded functionality.
    What do You expect else?
    You then ship to diferent ORGs with different deliveries. Everything is OK.
    BR,
    Eugene

  • Sales order stuck in interface with line status shipped in transaction form

    Hi All
    Can anyone tell me the reason for the sales orders getting stuck in the interface with line status Shipped in the shipping transaction form.
    I ran the Interface trip stop -SRS and mode All for this delivery Id. I checked the log file of it. The error showing in the log file is ORA-20001; ORA-20120 none of the Registers have Balances greater or equal to the excisable amount -> 350 or education cess amount ->7.
    Please tell me the set up where to check the register balances and how to proceed with this order. can we manually update the registers if required to process this order.
    Thanks in advance
    Prem.

    Hi,
    HOLD status
    This is an EOIO message whose predecessor was not processed successfully yet. The status is retained until all predecessors are delivered successfully. If a predecessor has the "System error" status and is restarted, all successors are also restarted provided that the delivery of the predecessor is successful.
    If a predecessor has the "canceled with errors" status, further processing is not possible in systems before Support Package 11 for the adapter framework and Support Package 10 for the adapter framework core patch 02. In higher version systems, the status of predecessors can only be set to "canceled with errors" in a manual way. Successors that have the "Holding" status can be restarted after you have set the "canceled with errors" status (see related note 811864).
    Regards,
    Sreenivas

  • Internal Sales order Status should remain Entered

    Internal Sales order Status should remain Entered.
    Here it is automatically getting BOOKED
    1) I have created one PR -100
    2) Approved it
    3) Ran create internal orders
    4) Login as Order Management responsibility.
    5) Import orders
    6) Searched for the ISO -200.
    7) It’s status is in BOOKED
    We want the status of Internal sales order to remain = Entered.
    So that changes can be made to the sales order.
    Is there any profile options?

    Hello,
    I realize this is an old thread but it is exactly what I have encountered.
    I am able to import an internal Sales Order with a Status of Entered.  However, I need to import these orders with a Status of Booked  (we have no process for Booking Internal Sales Orders).
    We are on 11.5.10.2 EBS on 10.2.0.4 DB.
    We have multiple inventory orgs but we have only processed Internal order between two of them P Org  to F Org.   those internal Sales orders are imported with a Status of Booked.
    However we need to have Internal Sales Order from P Org to N Org.   When I import these internal Sales Orders they import with a Status of Entered.
    As it works as expected in one Org but not the other, I believe it must be a Org setup issue.
    Any suggestions on where to look?

  • Import order not creating internal sales orders for some orgs

    Hi,
    We are getting one issue in UAT instance. The details are as below -
    1. Created Sales Orders in all 7 orgs.
    2. Ran ASCP plan
    3. planned orders got auto released in all orgs.
    4. Corresponding Internal requisitions got created in all orgs.
    5. Ran 'Create Internal Orders' from each org.
    6. Ran 'Order Import' from BE org as all the IR's were sourced from BE as per sourcing rules.
    7. Issue is that out of 7 orgs, in 2 orgs, DK and SE, the internal sales orders didn't get created and order import gave error. I am attaching the error log below.
    For other 5 orgs, ISO got created successfully and we performed picking/shipping and receiving as well for these 5 orgs.
    Any help will be most welcome.
    error log is -
    Order Import Concurrent Program
    Concurrent Program Parameters
    Validate Only: N
    Order Source: 10
    Order Ref:
    Sold To Org Id:
    Sold To Org:
    Change Sequence:
    Performance Parameter: Y
    Trim Blanks: N
    Operation:
    Number of Instances: 0
    Debug Level: 0
    Request Id: 6891
    Org Id: 2453
    Failed to perform Action Request BOOK_ORDER
    Failed to perform Action Request BOOK_ORDER
    Failed to perform Action Request BOOK_ORDER
    No. of orders found: 2
    No. of orders imported: 0
    No. of orders failed: 2
    Source/Order/Seq/Line Message
    10/1046001536//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_rec
    10/1046001536//2 ATP Process resulted in no data
    10/1046001536//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_tbl
    10/1046001538//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_rec
    10/1046001538//2 ATP Process resulted in no data
    10/1046001538//2 User-Defined Exception in Package OE_SCHEDULE_UTIL Procedure Load_Results_from_tbl
    End of Order Import Concurrent Program

    Try running the Order import from a responsibility where the profile "OM: Override ATP flag" is set to YES at that responsibility level..

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Issue with the Internal sales Order

    Hi
    We are trying to populate the customer information in the internal sales orders.
    We are updating the Customer_ID, Customer_Number, Customer_name information on the iface header table...and we are submitting the Order Import concurrent program...even though customer information is not populated....
    Could any one sggest on this....
    Regards,
    Krishna

    Why are you updating the interface record?
    You create and approve an internal requisition (IR)
    You run the "Create Internal Orders" concurrent program.
    This program reads the IR details and populates the Order Interface table.
    Then you run the "Import Orders" concurrent request.
    That program processes the interface record and creates the Internal Sales Order (ISO). All the information Oracle needs to create the ISO (such as customer name, number etc.) is already in the interface table or is derived by the Import Orders program. You should NOT update the information.
    Hope this helps,
    Sandeep Gandhi

  • Unable to cancel a splitted internal sales order line

    Hi,
    I have created a internal sales order using internal requisition. at the time of shipping i recognized only partail amount to be shipped and rest is not required.
    so i shipped the partial qty and then tried to cancel the splitted line which is not required for me. iam getting the belwo error message.
    1. Ordered Quantity, Supply picture has been updated. A discrepancy exists between the Sales Order and its corresponding Internal Requisition.
    2. Schedule Ship Date, Supply picture has been updated. A discrepancy exists between the Sales Order and its corresponding Internal Requisition.
    3. Error: Shipping tolerances cannot be changed now because the source lines have at least one delivery line that is staged or has been shipped.
    iam getting the above 3 message and coz of that iam not able to proceed for cancellation.
    can anyone suggest what would be the workaround
    Thanks,
    Vinod

    Hi,
    Is this 11i or R12?
    Thx
    Raghavendra

  • What is the Purpose of Internal Sales Order in OM

    Hello All,
    Compared to normal Inter-Organization Transfer (Direct&In transit) in which business scenario, Internal Sales Order(ISO) Cycle would fit ? (In Manufacturing , Distribution etc.,)
    what is the (main) purpose of going for Internal Requisition (IR) - ISO ? & usage of Transfer Credit account in Inter-Org Transfer?
    Please share your implementation experience ?
    (if any)
    Thanks, Jay

    The most important 1st thought is ::
    Ques 1. Why ISO over Direct-Org transfer ?
    Ans ---- Direct-Org transfer is immediate 2-way txns where ... there is no concept of In-transit Inventory & its tracking(s).
    Source-Org Sub-inventory ~ issues out
    Dest'n-Org Sub-inventory ~ receives in
    which is very much like Sub-inventory transfers with the difference that its Inter-Org
    Ques 2. What is this concept of In-transit Inventory ~ Inter-Org transfer v/s ISO ?
    Ans ---- Yes both ( Inter-Org transfer or ISO ) have this concept of In-transit inventory & its tracking(s).
    Ques 3. Now the question is -- Why then ISO over Inter-Org transfer ? How ISO rules above Inter-Org transfer ?
    Ans ---- ISO is requisition based. Now using which we can have booked Sales-Order.
    Using their desirable shipping dates Planning, Replenishment & Reservations can be done. You just cannot do this Inter-Org transfer.
    Also the cost-price of Source-Org goes into the Dest'n-Org. Whereas in ISO you have both provision same cost price our using price-lists / modifiers ?
    No doubt !! ISO is very scalable route.
    Other technical reasons :: feel free to communicate ::
    Ajay Kuma
    c510-456-5322

  • BAPI Sales order create with reference

    Hi
    I need to use BAPI to create sales order with reference to Quantity Contract. The line item material quantity would be less than or equal to quantity contract quantity.
    Sales order needs to be created with new quantity.
    Quantity contract quantity change needs to be maintained.
    Document flow needs to be maintained.
    Is any one aware if this is possible using BAPI_SALESORDER_CREATEFROMDAT2. If yes, how?
    Any insights would be highly appreciated.

    Hi Maninder,
    The BAPI does not allow the Pricing Conditions to be sourced from the Contract. I debugged the BAPI and it uses a piece of code (don't recall which subroutine though) from SAPMV45A which is relevant for dialog processing where it reads from the VBAP and *VBAP structures. Well this structure is only populated when you are using the Front End transaction (VA41, VA42, etc). Because this structure is empty, pricing conditions do not flow across.
    Here is a little prototype program I whipped up to test my method of creating a Sales order and then changing the Sales Order:
    REPORT  ypat_salesorder_create LINE-SIZE 256.
    * This program will create a ZOC Sales Order with Reference to Contract
    * 20000720 / 10. This will be done via BAPI. There are 2 BAPi calls,
    * BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE. We need to
    * perform 2 BAPI calls as the BAPI to create the Sales Order does not
    * bring across the Pricing Conditions properly. To get around this we
    * create the Order with reference to the Contract, then we get the
    * related Pricing Conditions from the COntract and then update the newly
    * created Order.
    * Constants
    CONSTANTS: c_contract  LIKE vbak-vbeln VALUE '0020000720',
               c_item      LIKE vbap-posnr VALUE '000010'.
    * Structures
    * Structure to hold BAPI Header
    DATA: st_bapisdhd1   LIKE bapisdhd1.
    * Internal Tables
    * Sales Order Create BAPI Return Messages
    DATA: tbl_return     TYPE STANDARD TABLE OF bapiret2
                         WITH HEADER LINE.
    * Sales Order BAPI Line Item
    DATA: tbl_bapisditm  TYPE STANDARD TABLE OF bapisditm
                         WITH HEADER LINE.
    * Sales Order BAPI Line Item
    DATA: tbl_bapisditmx  TYPE STANDARD TABLE OF bapisditmx
                         WITH HEADER LINE.
    * Sales Order BAPI Pricing Conditions
    DATA: tbl_bapicond   TYPE STANDARD TABLE OF bapicond
                         WITH HEADER LINE.
    * Sales Order BAPI Partner Functions
    DATA: tbl_bapiparnr  TYPE STANDARD TABLE OF bapiparnr
                         WITH HEADER LINE.
    * Sales Order BAPI Schedule Lines
    DATA: tbl_bapischdl  TYPE STANDARD TABLE OF bapischdl
                         WITH HEADER LINE.
    * Sales Order BAPI Schedule Lines
    DATA: tbl_bapischdlx TYPE STANDARD TABLE OF bapischdlx
                         WITH HEADER LINE.
    * Sales Order BAPI Pricing Conditions
    DATA: tbl_bapicondx    TYPE STANDARD TABLE OF bapicondx
                           WITH HEADER LINE.
    * Customer Enhancement for VBAK, VBAP, VBEP
    DATA: tbl_bapiparex    TYPE STANDARD TABLE OF bapiparex
                           WITH HEADER LINE.
    * Table to hold BAPI Detail Conditions
    DATA: tbl_bapisdcond   TYPE STANDARD TABLE OF bapisdcond
                           WITH HEADER LINE.
    * Table to hold Return Messages from Sales Order Change BAPI
    DATA: tbl_return_chg  TYPE STANDARD TABLE OF bapiret2
                          WITH HEADER LINE.
    * Variables
    DATA: g_vbeln_created   LIKE vbak-vbeln,
          g_valid_contract  TYPE c,
          g_cont_price_date TYPE d.
    * Start of Selection
    START-OF-SELECTION.
      PERFORM validate_contract.
      PERFORM create_sales_ord.
      PERFORM update_sales_ord.
    * End of Selection
    END-OF-SELECTION.
      PERFORM write_output_report.
    * Subroutines
    *&      Form  create_sales_ord
    *       Create the Sales Order
    FORM create_sales_ord .
      PERFORM populate_bapi_tables.
      PERFORM call_create_sales_ord_bapi.
    ENDFORM.                    " create_sales_ord
    *&      Form  populate_bapi_tables
    *       Fill up the BAPI Tables
    FORM populate_bapi_tables .
      PERFORM populate_bapi_header.
      PERFORM build_bapi_partners.
      PERFORM build_bapi_items.
      PERFORM build_bapi_sched_lines.
    ENDFORM.                    " populate_bapi_tables
    *&      Form  populate_bapi_header
    *       Build BAPI Header Details
    FORM populate_bapi_header .
      CLEAR st_bapisdhd1.
      st_bapisdhd1-doc_type     = 'ZOC'.         "Order type
      st_bapisdhd1-sales_org    = '026'.         "Sales Org
      st_bapisdhd1-distr_chan   = '00'.          "Dist Channel
      st_bapisdhd1-division     = '00'.          "Division
      st_bapisdhd1-purch_no_c   = 'Cust Po No'.  "Cust PO No
      st_bapisdhd1-name         = 'Orderer'.     "Name of Orderer
      st_bapisdhd1-ord_reason   = ''.            "Order Reason
      st_bapisdhd1-sales_off    = '3001'.        "Sales Office
      st_bapisdhd1-sales_grp    = '301'.         "Market Area
      IF g_valid_contract = 'X'.
        st_bapisdhd1-price_date = g_cont_price_date.
      ENDIF.
    ENDFORM.                    " populate_bapi_header
    *&      Form  build_bapi_partners
    *       Build BAPI Partner Functions
    FORM build_bapi_partners .
      CLEAR tbl_bapiparnr.
      tbl_bapiparnr-partn_role   = 'AG'.
      tbl_bapiparnr-partn_numb   = '0000100750'.
      APPEND tbl_bapiparnr.
      CLEAR tbl_bapiparnr.
      tbl_bapiparnr-partn_role   = 'WE'.
      tbl_bapiparnr-partn_numb   = '0000504472'.
      APPEND tbl_bapiparnr.
    ENDFORM.                    " build_bapi_partners
    *&      Form  build_bapi_items
    *       Build The BAPI Line Items
    FORM build_bapi_items .
      DATA: l_matnr LIKE mara-matnr.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = '10000072'
        IMPORTING
          output = l_matnr.
      CLEAR tbl_bapisditm.
      tbl_bapisditm-itm_number  = c_item.
      IF g_valid_contract = 'X'.
        tbl_bapisditm-ref_doc     = c_contract.
        tbl_bapisditm-ref_doc_it  = c_item.
        tbl_bapisditm-ref_doc_ca  = 'G'.       "Contract
      ENDIF.
      tbl_bapisditm-material    = l_matnr.
      tbl_bapisditm-plant       = '3012'.
      tbl_bapisditm-target_qty  = '5.000'.
      tbl_bapisditm-target_qu   = 'M3'.
      tbl_bapisditm-item_categ  = 'ZZOC'.
      tbl_bapisditm-sales_dist  = '301'.
      tbl_bapisditm-dlv_prio    = '02'.
      tbl_bapisditm-prc_group5  = '080'.
      tbl_bapisditm-cust_mat35  = 'kdmat'.
      tbl_bapisditm-route       = 'TESYS'.
      tbl_bapisditm-usage_ind   = 'CIV'.
      APPEND tbl_bapisditm.
      CLEAR tbl_bapisditmx.
      tbl_bapisditmx-itm_number = c_item.
      tbl_bapisditmx-ref_doc    = 'X'.
      tbl_bapisditmx-ref_doc_it = 'X'.
      tbl_bapisditmx-ref_doc_ca = 'X'.
      tbl_bapisditmx-material   = 'X'.
      tbl_bapisditmx-updateflag = 'I'.
      tbl_bapisditmx-plant      = 'X'.
      tbl_bapisditmx-target_qty = 'X'.
      tbl_bapisditmx-target_qu  = 'X'.
      tbl_bapisditmx-item_categ = 'X'.
      tbl_bapisditmx-sales_dist = 'X'.
      tbl_bapisditmx-dlv_prio   = 'X'.
      tbl_bapisditmx-prc_group5 = 'X'.
      tbl_bapisditmx-cust_mat35 = 'X'.
      tbl_bapisditmx-usage_ind  = 'X'.
      tbl_bapisditmx-route      = 'X'.
      APPEND tbl_bapisditmx.
    ENDFORM.                    " build_bapi_items
    *&      Form  build_bapi_sched_lines
    *       Build the BAPI Schedule Lines
    FORM build_bapi_sched_lines .
      CLEAR tbl_bapischdl.
      tbl_bapischdl-itm_number  = c_item.
      tbl_bapischdl-req_qty     = '1'.
      tbl_bapischdl-req_date    = sy-datum.
      APPEND tbl_bapischdl.
    ENDFORM.                    " build_bapi_sched_lines
    *&      Form  build_bapi_conditions
    *       Pull the BAPI Pricing Conditions from the Contract
    FORM build_bapi_conditions .
      LOOP AT tbl_bapisdcond.
        CLEAR tbl_bapicond.
        MOVE-CORRESPONDING tbl_bapisdcond TO tbl_bapicond.
        APPEND tbl_bapicond.
        CLEAR tbl_bapicondx.
        tbl_bapicondx-itm_number = tbl_bapicond-itm_number.
        tbl_bapicondx-cond_st_no = tbl_bapicond-cond_st_no.
        tbl_bapicondx-cond_count = tbl_bapicond-cond_count.
        tbl_bapicondx-cond_type  = tbl_bapicond-cond_type.
        tbl_bapicondx-updateflag = 'I'.
        tbl_bapicondx-cond_value = 'X'.
        tbl_bapicondx-currency   = 'X'.
        tbl_bapicondx-cond_unit  = 'X'.
        tbl_bapicondx-cond_p_unt = 'X'.
        tbl_bapicondx-varcond    = tbl_bapicond-varcond.
        APPEND tbl_bapicondx.
      ENDLOOP.
    ENDFORM.                    " build_bapi_conditions
    *&      Form  call_create_sales_ord_bapi
    *       Call the Sales Order Create BAPI
    FORM call_create_sales_ord_bapi .
      CLEAR g_vbeln_created.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
          order_header_in    = st_bapisdhd1
        IMPORTING
          salesdocument      = g_vbeln_created
        TABLES
          return             = tbl_return
          order_items_in     = tbl_bapisditm
          order_items_inx    = tbl_bapisditmx
          order_partners     = tbl_bapiparnr
          order_schedules_in = tbl_bapischdl.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDFORM.                    " call_create_sales_ord_bapi
    *&      Form  update_sales_ord
    *       Update the newly created Sales Order with the Pricing Conditions
    *       from the Contract
    FORM update_sales_ord .
      CHECK g_valid_contract EQ 'X'.
      PERFORM get_contract_details.
      PERFORM build_bapi_conditions.
      PERFORM call_change_sales_ord_bapi.
    ENDFORM.                    " update_sales_ord
    *&      Form  get_contract_details
    *       Get Contract Details
    FORM get_contract_details .
    * Need to manually get the relevant Pricing Conditions as the BAPI
    * BAPISDORDER_GETDETAILEDLIST causes problems when we call the BAPI
    * BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE (I think
    * this is due to the fact that these BAPIs belong to the same Function
    * Group and there must be some common structures that are not cleared
    * causing us all sorts of grief when we try and call the next BAPI)
      DATA: tbl_konv TYPE STANDARD TABLE OF konv WITH HEADER LINE.
      DATA: tbl_komv TYPE STANDARD TABLE OF komv WITH HEADER LINE.
      DATA: tbl_vbak TYPE STANDARD TABLE OF vbak WITH HEADER LINE.
    * Pricing Condition Master
      DATA: BEGIN OF tbl_t685a OCCURS 0,
              kschl     LIKE t685a-kschl,
              kaend_wrt LIKE t685a-kaend_wrt,
            END OF tbl_t685a.
      SELECT *
             INTO TABLE tbl_vbak
             FROM vbak
             WHERE vbeln = c_contract.
      READ TABLE tbl_vbak INDEX 1.
      SELECT *
             INTO TABLE tbl_konv
             FROM konv
             WHERE knumv = tbl_vbak-knumv AND
                   kposn = c_item.
      CHECK sy-subrc EQ 0.
    * We now need to make sure we only bring across the Condition Types that
    * are EDITABLE. If we bring across non editable conditions (such as
    * 'ZPR1') the Change Sales Order BAPI will fail
      SELECT kschl kaend_wrt
             INTO TABLE tbl_t685a
             FROM t685a
             FOR ALL ENTRIES IN tbl_konv
             WHERE kappl     EQ 'V'             AND  "Sales
                   kschl     EQ tbl_konv-kschl  AND
                   kaend_wrt EQ 'X'             AND  "Value is Editable
                   kmanu     NE 'D'.                 "Process manually
    * Prepare for Binary Search
      SORT tbl_t685a BY kschl.
      LOOP AT tbl_konv.
        READ TABLE tbl_t685a WITH KEY kschl = tbl_konv-kschl BINARY SEARCH.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING tbl_konv TO tbl_komv.
          APPEND tbl_komv.
        ENDIF.
      ENDLOOP.
      CHECK NOT tbl_komv[] IS INITIAL.
    * Map KOMV into the more BAPI friendly BAPISDCOND structure
      CALL FUNCTION 'MAP_INT_TO_EXT_STRUCTURE'
        TABLES
          fxvbak        = tbl_vbak
          fxkomv        = tbl_komv
          fxbapikomv    = tbl_bapisdcond
        EXCEPTIONS
          entry_missing = 1
          OTHERS        = 2.
    ENDFORM.                    " get_contract_details
    *&      Form  call_change_sales_ord_bapi
    *       Call the Change Sales Order BAPI
    FORM call_change_sales_ord_bapi .
      DATA: st_head_chg      LIKE bapisdh1x,
            st_logic_switch  TYPE bapisdls.
      CHECK NOT g_vbeln_created IS INITIAL.
      CHECK g_valid_contract EQ 'X'.
      st_head_chg-updateflag     = 'U'.
      st_logic_switch-cond_handl = 'X'.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = g_vbeln_created
          order_header_inx = st_head_chg
          logic_switch     = st_logic_switch
        TABLES
          return           = tbl_return_chg
          conditions_in    = tbl_bapicond
          conditions_inx   = tbl_bapicondx.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDFORM.                    " call_change_sales_ord_bapi
    *&      Form  write_output_report
    *       Produce Output Report
    FORM write_output_report .
      IF NOT g_vbeln_created IS INITIAL.
        WRITE:/ 'Success! Sales Order', g_vbeln_created, 'was created!'.
      ELSE.
        WRITE:/ 'Failure! Sales Order was not created!'.
      ENDIF.
      SKIP.
      WRITE:/ 'Sales Order Create Log'.
      LOOP AT tbl_return.
        WRITE:/ tbl_return-type, tbl_return-id, tbl_return-number,
                tbl_return-message.
      ENDLOOP.
      SKIP.
      WRITE:/ 'Sales Order Change Log'.
      LOOP AT tbl_return_chg.
        WRITE:/ tbl_return_chg-type, tbl_return_chg-id,
                tbl_return_chg-number, tbl_return_chg-message.
      ENDLOOP.
    ENDFORM.                    " write_output_report
    *&      Form  validate_contract
    *       Make sure that the Contract is Valid
    FORM validate_contract .
      DATA: l_gueen  LIKE vbak-gueen,
            l_prsdt  LIKE vbkd-prsdt.
      SELECT SINGLE  vbak~gueen vbkd~prsdt
             INTO (l_gueen, l_prsdt)
             FROM vbak
             INNER JOIN vbkd
             ON vbak~vbeln = vbkd~vbeln
             WHERE vbak~vbeln = c_contract AND
                   vbkd~posnr = '000000'.
      IF sy-datum LE l_gueen.
    * Contract is valid! Set Order Price Date
        g_valid_contract  = 'X'.
        g_cont_price_date = l_prsdt.
      ENDIF.
    ENDFORM.                    " validate_contract
    Hope this helps.
    Cheers,
    Pat.

  • Customize Internal Sales Order workflow to interface to AR

    Hi,
    I would like to generate AR transactions for our internal sales orders created from internal requisitions. I tried by adding a ship-bill-workflow, but the interface-to-AR activity does not get started. This gives me the impression that the internal order ignores the workflow that I have defined for this transaction type, and uses something else instead.
    I am wondering now how could I customize the internal order workflow? Has anyone ever done that? Which workflow shall we customize to get what we need? Or has anyone any other ideas?
    Thanks in advance,
    David.

    Hi David,
    Assuming you are using Order Organizer did you check which work is being invoked at the Order Line Level from Tools -> Workflow Status at Line level.
    Thanks.

  • What happens sales order linked with wip job is cancelled

    HI,
    what happens sales order linked with wip job is cancelled ?
    actually if wip job is cancelled then sales order lines is on hold ?
    i wanted to know what if sales order of that wip job item line is cancelled say example  if that wip job already is in processing .
    please help me
    Thanks in Advance.

    If WIP job cancelled or Requisition/PO is cancelled, corresponding order line reservation will be cleared and will go to 'Supply Eligible' Status. Progressing this line will again follow the WIP/Requisition path based on item.

Maybe you are looking for

  • Can i have one apple id and 3 devices?

    So, I have an iphone.  My children have itouches.  We use one account and have 1 apple id.  I do this so that all apps, music, videos can be shared.  If, there is a different way to do that please share They are using imessage and I have only their i

  • HP 6100 will not recognize paper in load tray

    hp 6100 printer will not recognize that it has paper in the load tray. have tried from two computers same result...add paper then try again. Tried troubleshooting with HP app and was informed printer was low or out of paper. Printer viewer does not g

  • How do I set CFBundleVersion in AIR

    Hello, I am making an AIR app for my client. When my client upload the iTunes Connect to submit their app again( because it have some error at the first time), they received an error. It said ERROR ITMS-9000: "Redundant Binary Upload. There already e

  • Acrobat X keeps crashing in Edit Forms mode

    Hi! I use Acrobat primarily to edit forms I made before I started using LiveCycle.  I have recently used the adobe cleaner and reinstalled all of CS.5 (because I couldn't figure out how to uninstall Acrobat alone), I am on Windows XP 64 bit--- Acroba

  • Combine Events n iPad.

    Can I combine events folders on iPad?