ESYU: Order Import를 통해 기존 Order를 reference 하는 RMA Order를 생성하는 방법

Purpose
Oracle Order Management - Version: 11.5.9 to 12.0.5
Information in this document applies to any platform.
Order Import를 통해 기존 존재하는 Order를 reference 하는 RMA Order의 생성 방법을 알아본다.
Solution
Order Import interface의 header와 line에 data를 insert 하기 위해 아래 script를 이용한다.
INSERT INTO OE_HEADERS_IFACE_ALL (
order_source_id
,orig_sys_document_ref
,creation_date
,created_by
,last_update_date
,last_updated_by
,operation_code
,sold_to_org_id
,order_type_id
,booked_flag
VALUES
1227 --order_source_id
,'123456' --orig_sys_document_ref
,sysdate --creation_date
,-1 --created_by
,sysdate --last_update_date
,-1 --last_updated_by
,'INSERT' --operation_code
,1005 --sold_to_org_id
,1436 --order_type_id
,'Y' --booked_flag
INSERT INTO OE_LINES_IFACE_ALL (
order_source_id
,orig_sys_document_ref
,orig_sys_line_ref
,inventory_item_id
,ordered_quantity
,operation_code
,created_by
,creation_date
,last_updated_by
,last_update_date
,return_reason_code
,return_context
,return_attribute1
,return_attribute2
VALUES
1227 --order_source_id
,'123456' --orig_sys_document_ref
,'1' --orig_sys_line_ref
,249 --inventory_item_id
,10 --ordered_quantity
,'INSERT' --operation_code
,-1 --created_by
,sysdate --creation_date
,-1 --last_updated_by
,sysdate --last_update_date
,'CANCELLATION' --return_reason_code
,'ORDER' --referencing a sales order
,'157638' --header_id of referenced order
,'256619' --line_id of referenced line
commit;
API guide와 eTRAM을 참조하여 귀사의 testcase에 알맞게 위 insert script를 수정하거나 다른 columns을 add 한다.
위 모든 interface tables의 order_source_id에는 당신의 order_source_id 값을 입력한다.
위 모든 interface tables의 orig_sys_document_ref에는 각각의 order에 대한 unique 값을 입력한다.
Interface table에 값을 insert 하면 Order Import Concurrent program을 실행한다.
- Navigate to Orders, Returns -> Import Orders -> Order Import Request
- Select your Order Source from the LOV in the parameters form.
- Submit the concurrent request.
Reference
Note 746668.1

Similar Messages

  • ESYU: Order Import를 통해 간단한 ATO Model을 위한 Order를 생성하는 방법

    Purpose
    Oracle Order Management - Version: 11.5.9 to 12.0.5
    Information in this document applies to any platform.
    아래와 같은 구조를 갖는 간단한 ATO model을 위한 order를 order import를 통해 생성하는 방법에 대해 알아본다.
    ATO Model (542851)
    |- ATO Option Class (542852)
    |--Option Item (152840)
    Solution
    Order Import interface table에 header와 lines을 입력하는 아래 script를 이용한다.
    Interface tables에 data insert 후 Order Import concurrent program을 실행한다.
    INSERT INTO OE_HEADERS_IFACE_ALL (
    order_source_id
    ,orig_sys_document_ref
    ,creation_date
    ,created_by
    ,last_update_date
    ,last_updated_by
    ,operation_code
    ,sold_to_org_id
    VALUES (
    1227 --order_source_id
    ,'12345' --orig_sys_document_ref
    ,sysdate --creation_date
    ,-1 --created_by
    ,sysdate --last_update_date
    ,-1 --last_updated_by
    ,'INSERT' --operation_code
    ,1005 --sold_to_org_id
    INSERT INTO OE_LINES_IFACE_ALL (
    order_source_id
    ,orig_sys_document_ref
    ,orig_sys_line_ref
    ,inventory_item_id
    ,ordered_quantity
    ,operation_code
    ,created_by
    ,creation_date
    ,last_updated_by
    ,last_update_date
    ,top_model_line_ref
    ,item_type_code
    VALUES (
    1227 --order_source_id
    ,'12345' --orig_sys_document_ref
    ,'1' --orig_sys_line_ref
    ,542851 --inventory_item
    ,1 --ordered_quantity
    ,'INSERT' --operation_code
    ,-1 --created_by
    ,sysdate --creation_date
    ,-1 --last_updated_by
    ,sysdate --last_update_date
    ,'1' --top_model_line_ref
    ,'MODEL' --item_type_code
    INSERT INTO OE_LINES_IFACE_ALL (
    order_source_id
    ,orig_sys_document_ref
    ,orig_sys_line_ref
    ,inventory_item_id
    ,ordered_quantity
    ,operation_code
    ,created_by
    ,creation_date
    ,last_updated_by
    ,last_update_date
    ,top_model_line_ref
    ,link_to_line_ref
    ,item_type_code
    VALUES (
    1227 --order_source_id
    ,'12345' --orig_sys_document_ref
    ,'2' --orig_sys_line_ref
    ,542852 --inventory_item_id
    ,1 --ordered_quantity
    ,'INSERT' --operation_code
    ,-1 --created_by
    ,sysdate --creation_date
    ,-1 --last_updated_by
    ,sysdate --last_update_date
    ,'1' --top_model_line_ref
    ,'1' --link_to_line_ref
    ,'CLASS' --item_type_code
    INSERT INTO OE_LINES_IFACE_ALL (
    order_source_id
    ,orig_sys_document_ref
    ,orig_sys_line_ref
    ,inventory_item_id
    ,ordered_quantity
    ,operation_code
    ,created_by
    ,creation_date
    ,last_updated_by
    ,last_update_date
    ,top_model_line_ref
    ,link_to_line_ref
    ,item_type_code
    VALUES (
    1227 --order_source_id
    ,'12345' --orig_sys_document_ref
    ,'3' --orig_sys_line_ref
    ,152840 --inventory_item_id
    ,1 --ordered_quantity
    ,'INSERT' --operation_code
    ,-1 --created_by
    ,sysdate --creation_date
    ,-1 --last_updated_by
    ,sysdate --last_update_date
    ,'1' --top_model_line_ref
    ,'2' --link_to_line_ref
    ,'OPTION' --item_type_code
    ); commit;
    - Orders, Returns -> Import Orders -> Order Import Request
    - Parameter form의 Order Source LOV에서 Order Source를 선택
    - Submit the concurrent request.
    Reference
    Note 746677.1

  • Populate customer reference field for credit memo from RMA order

    There is requirement to populate customer reference field  for credit memo generated for RMA order..
    In RMA order which filed i need to populate which will come as customer reference in credit memo.
    Please help me  to populate customer reference field from RMA orderes

    Hi Javier,
    Please check following site:
    http://help.sap.com/saphelp_crm60/helpdata/en/2e/b0da18dbe84ed9bdff9a5d6d91f531/frameset.htm
    Cheers,
    Gun.

  • OM의 ORDER IMPORT시 고려해야 하는 COLUMN들에 대한 설명

    제품: MFG_OM
    작성날짜 : 2005-11-29
    OM의 ORDER IMPORT시 고려해야 하는 COLUMN들에 대한 설명
    ========================================
    PURPOSE
    OM의 Order Import시 고려해야 하는 column들에 대해 설명하고자 함.
    Explanation
    Order Import는 Interface table들과 API set으로 구성되어 있으며,
    Order들을 entered, booked 또는 closed status상태로 Import할 수 있다.
    1. Order line이 Booked된 상태로 Import되려면,
    OE_ACTIONS_IFACE_ALL.OPERATION_CODE column = "BOOK_ORDER"로 적용
    2. automatic pricing을 사용하려면,
    OE_LINES_INTERFACE.CALCULATE_PRICE_FLAG column을 Calculate Price로
    적용
    3. 만약, manual pricing을 사용하려면,
    OE_LINES_INTERFACE.CALCULATE_PRICE_FLAG column을 Freeze Price로 적용
    4. 기존의 Order line을 변경하고자 할 경우,
    interface table의 OPERATION_CODE를 "UPDATE'로 적용
    5. 기존의 Order line을 cancel하고자 할 경우,
    interface table의 OPERATION_CODE를 "UPDATE', ordered quantity = 0
    으로 적용
    Order전체를 cancel하고자 하는 경우,
    Header interface의 OPERATION_CODE를 "UPDATE', CANCEL_FLAG='Y'로 set
    6. Internal Order의 경우, Oracle Purchasing은 "Create Internal Sales
    Orders" 프로그램을 포함하며, 이는 Internal requisition으로부터 data
    를 Order import table로 Load한다.
    Example
    Reference Documents
    Oracle Order Management Suite Implementation Manual, Volumes 1 & 2 Release 11i
    Oracle Order Management Users Guide Release 11i
    Oracle Order Management Suite API's and Open Interafaces Manual Volume 1, Release 11i
    Note 121052.1

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

  • Urgent: ORA-01403: no data found Error during Order Import

    Hi Experts,
    I 'am performing order import by populating the order interface tables and then running the order import concurrent program. I 'am encountering the following error while running the order import program:
    No. of orders failed: 1
    "*ora-01403: no data found in package oe_order_pvt procedure lines*"
    Can anyone please provide some pointers on why this is occurring and how this can be overcome. Any pointers on this will be immensely helpful.
    Thanks,
    Ganapathi

    Hi Nagamohan,
    Thanks for your response. I tried calling mo_global.set_policy_context('S', <org_id>) before invoking the concurrent program using fnd_request.submit_request(...); But, this still does n't seem to prevent the No data found issue.
    One more thing that I noticed is, this is happening while importing the customer along with the order. I 've ensured that I use the same org_id for the customer data as well. Can you please let me know whether there is anything else that I should check for.
    Thanks,
    Ganapathi

  • BAPI for sales order creation with Reference

    Hello Experts,
    I have a order, with its reference I have to create a new sales order.
    Am looking for BAPi, with which I can create a sales order with a Reference order (which is in my hand), so I checked SE37 with wild cards, but I did not find any!!
    1) Pls. let me know a BAPI
    2) And just like that I do not want to create a new order with the reference(existing) order, I have to change the PO number & order Reason(2 fileds) in newley creationg order, pls. let me know How to do it
    Thank you

    Hi,
    First try to pass these two parameters to BAPI_SALESORDER_CREATEFROMDAT2
    ORDER_HEADER_IN-REFDOCTYPE = Your Sch. Agreement No. (Please Check) and
    ORDER_HEADER_IN-SD_DOC_CAT = 'E'.
    If the above doesnt work ,than try using BAPI "BAPI_SALESDOCUMENT_COPY"
    I hope you are working in SAP R/3 4.6C and above version because i am not sure whether this BAPI is available in lower version.
    Let us know if this helps you..
    Rgds,
    Mayank

  • ESYU: Order Import를 통해 기존에 있는 Order에 hold를 적용할 수 있는 방법

    Purpose
    Oracle Order Management - Version: 11.5.10
    Information in this document applies to any platform.
    Order Import를 통해 기존에 존재하는 Order에 hold를 적용하는 방법에 대해 알아본다.
    Solution
    아래와 같이 order import interface를 이용하여 기존에 존재하는 order에 hold를 적용할 수 있다.
    OE_HEADERS_IFACE_ALL:
    ORDER_SOURCE_ID
    ORIG_SYS_DOCUMENT_REF
    OPERATION_CODE => 'UPDATE'
    ORG_ID
    ORDER_TYPE_ID
    CREATED_BY
    CREATION_DATE
    LAST_UPDATED_BY
    LAST_UPDATE_DATE
    OE_ACTIONS_IFACE_ALL:
    ORDER_SOURCE_ID,
    ORIG_SYS_DOCUMENT_REF,
    ORG_ID,
    HOLD_ID,
    HOLD_TYPE_CODE,
    HOLD_TYPE_ID,
    OPERATION_CODE => 'APPLY_HOLD'
    HOLD_ID는 적용되어야 할 hold type을 의미한다.
    (HOLD_ID from OE_HOLD_DEFINITIONS)
    HOLD_TYPE_CODE는 생성되어야 하는 hold source에 대한 entity code이다.
    C: Customer hold source
    S: Bill To or Ship To hold source
    I: Item hold source
    O: Order hold source
    W: Warehouse Hold Source
    HOLD_TYPE_ID 값은 입력하는 HOLD_TYPE_CODE에 의존한다.
    예를들어 HOLD_TYPE_CODE = 'C' 라면 HOLD_TYPE_ID는 customer_number가 되어야 한다.
    Reference
    Note 444040.1

  • Issue in sales order order import program

    Hi all,
    I need to create a Sales Order using interface tables.First I inserted the record into the interface table OE_HEADERS_IFACE_ALL.I populated necessary columns in it.
    Then I executed Order Import Concurrent program giving value of order source(which I created using order import source setup),order reference(which is origSysDocumentRef column value in the above said interface table).
    But the concurrent program is not picking up the records in the interface table and its output shows no order to process.As a result no record is inserted in the OE_ORDER_HEADERS_ALL table.
    I dont understand where the problem lies.Please help me out to solve the issue.
    Thanks,
    goutam

    Hi Sandeep Gandhi,
    Thanks for your reply.
    Now Order Import Concurrent program picks up the header records from the OE_HEADERS_IFACE_ALL interface table successfully for processing.
    But during the process some errors are raised, and the error_flag in the header interface table is set to 'Y'.
    I want to know where can i find those errors,so that I can correct them.
    Is there any error log tables that contains these errors occured during import?
    Or we have any other way to identify it?
    Please help me..
    Thanks,
    goutam

  • BAPI SALES ORDER & Copy with reference

    Hello,
    I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
    DATA: order_header_in      LIKE bapisdhd1,
          order_partners       LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
          order_text           LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
          order_header_inx     LIKE bapisdhd1x,
          order_item_in        LIKE bapisditm OCCURS 0 WITH HEADER LINE,
          order_schedules_in   LIKE bapischdl OCCURS 0 WITH HEADER LINE,
          order_conditions_in  LIKE bapicond OCCURS 0 WITH HEADER LINE,
          extensionin          LIKE bapiparex OCCURS 0 WITH HEADER LINE,
          partneraddresses     LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
          order_cfgs_ref       like BAPICUCFG occurs 0 with header line.
    DATA: salesdocument LIKE bapivbeln-vbeln.
    DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    order_header_in-doc_type   = 'ZA09'.
    order_header_in-sales_org  = '1700'.
    order_header_in-distr_chan = '01'.
    order_header_in-division   = '01'.
    order_header_in-BILL_DATE   = '20060701'.
    order_header_in-ref_doc    = '0900000019'.
    order_header_in-refdoc_cat = 'M'.
    *order_header_in-REF_DOC_L_LONG = '0900000019'.
    order_header_in-purch_no_c  ='prueba'.
    *order_header_in-ord_reason = '003'.
    *order_header_in-pmnttrms   = '0002'.
    *order_header_in-sales_off  = '2800'.
    order_header_in-ref_doc_l  = 'FACTURA ES'.
    *order_header_in-fix_val_dy = '20060701'.
    *order_header_in-currency   = 'USD'.
    *order_header_in-exchg_rate = '1.2'.
    order_partners-partn_role = 'AG'.
    order_partners-partn_numb = '0000000001'.
    order_partners-langu      = 'EN'.
    order_partners-name       = 'El corte aleman'.
    order_partners-country = 'ES'.
    APPEND order_partners.
    order_partners-partn_role = 'RE'.
    order_partners-partn_numb = 'ARR000'.
    order_partners-addr_link  = '0000030044'.
    APPEND order_partners.
    CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
      EXPORTING
        addrnumber                 = order_partners-addr_link
      PERSNUMBER                 =
        address_object_type        = '1'
      IV_CURRENT_COMM_DATA       = 'X'
    IMPORTING
      ADDR1_COMPLETE             =
      ADDR2_COMPLETE             =
      ADDR3_COMPLETE             =
       ADDR1_COMPLETE_BAPI        = partneraddresses
      ADDR2_COMPLETE_BAPI        =
      ADDR3_COMPLETE_BAPI        =
    EXCEPTIONS
      PARAMETER_ERROR            = 1
      ADDRESS_NOT_EXIST          = 2
      PERSON_NOT_EXIST           = 3
      INTERNAL_ERROR             = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data: vl_texto(40) value 'NUEVOOOOO'.
    partneraddresses-name    = vl_texto. clear vl_texto.
    partneraddresses-name_2  = vl_texto.
    partneraddresses-name_3  = vl_texto.
    partneraddresses-name_4  = vl_texto.
    partneraddresses-langu   = 'E'.
    APPEND partneraddresses.
    DATA: vl_cantidad LIKE bapisditm-target_qty.
    vl_cantidad = 1.
    order_item_in-itm_number = 10.
    order_item_in-material = 'HONORARIOS'.
    order_item_in-ref_doc = '0900000019'.
    order_item_in-ref_doc_it = 10.
    order_item_in-ref_doc_ca = 'M'.
    APPEND order_item_in.
    order_schedules_in-itm_number = 10.
    order_schedules_in-req_qty = vl_cantidad.
    APPEND order_schedules_in.
    order_text-text_id = 'Z001'.
    order_text-ITM_NUMBER = ''.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, CARACOLAcola'.
    APPEND order_text.
    order_text-text_id = 'Z001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Adios caracol'.
    APPEND order_text.
    order_text-itm_number = '000010'.
    order_text-text_id = '0001'.
    order_text-langu = 'EN'.
    order_text-text_line = 'Hola, POSICIÓN'.
    APPEND order_text.
    extensionin-structure = 'BAPE_VBAK'.
    extensionin-valuepart1 = '          BCL  7'.
    APPEND extensionin.
    order_cfgs_ref-posex = '10'.
    order_cfgs_ref-config_id = '10'.
    order_cfgs_ref-root_id = '00000001'.
    append order_cfgs_ref.
    CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
      EXPORTING
       SALESDOCUMENTIN               =  salesdocument
        order_header_in               =  order_header_in
       ORDER_HEADER_INX              =  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_item_in
      ORDER_ITEMS_INX               =
        order_partners                = order_partners
        order_schedules_in            = order_schedules_in
      ORDER_SCHEDULES_INX           =
        order_conditions_in           = order_conditions_in
      ORDER_CONDITIONS_INX          =
        ORDER_CFGS_REF                = 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_text
      ORDER_KEYS                    =
       extensionin                   = extensionin
        partneraddresses              = partneraddresses
    PERFORM  report TABLES return.
    *DATA: salesdocument LIKE bapivbeln-vbeln.
    *DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    *refresh return.
    *CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
    EXPORTING
       salesdocument          = '0400000191'
       documenttype           = 'ZA04'
      TESTRUN                = ' '
    IMPORTING
       SALESDOCUMENT_EX       = salesdocument
    TABLES
       RETURN                 = return
    *PERFORM  report TABLES return.
    *write: / salesdocument.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    *&      Form  report
          text
         -->P_MENSAJE  text
    FORM report  TABLES   p_mensaje STRUCTURE bapiret2.
      DATA: vl_mensaje TYPE string.
      LOOP AT return.
        CLEAR vl_mensaje.
        MESSAGE ID     return-id
                TYPE   return-type
                NUMBER return-number
                INTO   vl_mensaje
                WITH   return-message_v1
                       return-message_v2
                       return-message_v3
                       return-message_v4.
        WRITE: / vl_mensaje.
      ENDLOOP.
    ENDFORM.                    " report

    Hi Manuel,
    There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
    You can try using this function module.
    BAPI_SALESDOCUMENT_COPY
    Data will be copied based on the copy control routines that is set between the two document types.
    Thanks,
    Arun

  • Creation of saleorder with reference to order using BAPI_SALESORDER_CREATE

    hello
    iam trying to create a sale order with respect to order BAPI_SALESORDER_CREATEFROMDAT2.
    the parameters i am passing is
    *Fill the header information for the order.
    wa_order_header_in-doc_type = Sales Doc type of order to be created.
    wa_order_header_in-sales_org = sales org.
    wa_order_header_in-distr_chan = distribution channel.
    wa_order_header_in-division = division.
    wa_order_header_in-ref_doc = order  number(This is the order i  refer to).
    wa_order_header_in-refdoc_cat = 'C' (c stands for order).
    *Fill the item level information for the order.
    wa_order_items_in-itm_number = item number.
    wa_order_items_in-material = material number.
    wa_order_items_in-ref_doc = order number(This is the order i refer to).
    wa_order_items_in-ref_doc_it = Item number of order i create.
    wa_order_items_in-ref_doc_ca = 'C'.
    APPEND wa_order_items_in TO i_order_items_in.
    *Fill the partner information for the order.
    wa_order_partners-partn_role = partner function.
    wa_order_partners-partn_numb = partner number.
    APPEND wa_order_partners TO i_order_partners.
    & likewise conditions structure
    i have done bapi_transaction_commit after bapi call.
    probelm which i am facing is , BAPI is creating a new sale order.. but it is not creating a order with reference order.
    thanks

    see this example as how to add text and multiple lines...
      loop at it_tab into wa_tab.
            record_no = sy-tabix.
            serial_no = wa_tab-ser_no.
    *       ORDER_TYPE =  WA_TAB-ORD_TYP.
            sales_office = wa_tab-sal_off.
            sales_group =  wa_tab-sal_grp.
            old_ref_no  = wa_tab-ref_shp_to_par.
            shipping_condition = wa_tab-ship_cond.
            perform sales_info using sales_office sales_group
    shipping_condition.
            condense shipping_condition.
            ship_cond = shipping_condition.
            on change of old_ref_no.
              refresh it_bapisdhead.
              refresh it_bapisdhead1x.
              refresh it_bapiparnr.
                 wa_bapisdhead-doc_type     = wa_tab-ord_typ.
                 wa_bapisdhead1x-doc_type   = 'X'.
                 wa_bapisdhead-sales_org    = '5088'.
                 wa_bapisdhead1x-sales_org  = 'X'.
                 wa_bapisdhead-distr_chan   = '01'.
                 wa_bapisdhead1x-distr_chan = 'X'.
                 wa_bapisdhead-division     = '00'.
                 wa_bapisdhead1x-division   = 'X'.
                 wa_bapisdhead-sales_grp    = sales_group.
                 wa_bapisdhead1x-sales_grp  = 'X'.
                 wa_bapisdhead-sales_off    = sales_office.
                 wa_bapisdhead1x-sales_off  = 'X'.
                 wa_bapisdhead-purch_no_c   = wa_tab-po_no.
                 wa_bapisdhead1x-purch_no_c = 'X'.
                 wa_bapisdhead-purch_date   = wa_tab-po_date.
                 wa_bapisdhead1x-purch_date = 'X'.
                 wa_bapisdhead-req_date_h   = wa_tab-req_del_date.
                 wa_bapisdhead1x-req_date_h = 'X'.
                 wa_bapisdhead-incoterms1   = 'EXW'.
                 wa_bapisdhead1x-incoterms1 = 'X'.
                 wa_bapisdhead-incoterms2   = wa_tab-inco_terms2.
                 wa_bapisdhead1x-incoterms2 = 'X'.
                 wa_bapisdhead-ship_cond    = ship_cond.
                 wa_bapisdhead1x-ship_cond  = 'X'.
                 wa_bapisdhead-ref_1        = wa_tab-ref_sld_to_par.
                 wa_bapisdhead1x-ref_1      = 'X'.
                 wa_bapisdhead-ref_1_s      = wa_tab-ref_shp_to_par.
                 wa_bapisdhead1x-ref_1_s    = 'X'.
                 append wa_bapisdhead to it_bapisdhead.
                 append wa_bapisdhead1x to it_bapisdhead1x.
                 wa_bapiparnr-unload_pt    = wa_tab-unload_pt.
                 wa_bapiparnr-partn_role   = 'AG'.
                 wa_bapiparnr-partn_numb   = wa_tab-sld_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'VE'.
                 wa_bapiparnr-partn_numb   = '777'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
                 wa_bapiparnr-partn_role   = 'ZM'.
                 wa_bapiparnr-partn_numb   = '999'.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               if wa_tab-bill_to_par <> ' '.
                 wa_bapiparnr-partn_role   = 'RE'.
                 wa_bapiparnr-partn_numb   = wa_tab-bill_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-payer <> ''.
                 wa_bapiparnr-partn_role   = 'RG'.
                 wa_bapiparnr-partn_numb   = wa_tab-payer.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               if wa_tab-ship_to_par <> ''.
                 wa_bapiparnr-partn_role   = 'WE'.
                 wa_bapiparnr-partn_numb   = wa_tab-ship_to_par.
                 append wa_bapiparnr to it_bapiparnr.
                 clear wa_bapiparnr.
               endif.
               wa_bapisdtext-text_id   = 'Z113'.
               wa_bapisdtext-langu     = 'EN'.
               wa_bapisdtext-text_line = wa_tab-add_txt.
               append wa_bapisdtext to it_bapisdtext.
               clear wa_bapisdtext.
               if wa_tab-banker <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-banker.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
               if wa_tab-fwd_age <> ''.
                 wa_bapisdtext-text_id   = 'ZKT1'.
                 wa_bapisdtext-langu     = 'EN'.
                 wa_bapisdtext-text_line = wa_tab-fwd_age.
                 append wa_bapisdtext to it_bapisdtext.
                 clear wa_bapisdtext.
               endif.
            endon.
    *                  ***** ITEM LEVEL DATA *****
                 wa_bapiitemin-material     = wa_tab-matno.
                 wa_bapiiteminx-material    = 'X'.
                 wa_bapiitemin-target_qty   = wa_tab-qty.
                 wa_bapiiteminx-target_qty  = 'X'.
                 wa_bapiitemin-plant        = wa_tab-plant.
                 wa_bapiiteminx-plant       = 'X'.
                 wa_bapiitemin-item_categ   = 'YAPS'.
                 wa_bapiiteminx-item_categ  = 'X'.
                 append wa_bapiitemin to it_bapiitemin.
                 append wa_bapiiteminx to it_bapiiteminx.
                 clear wa_bapiitemin.
                 clear wa_bapiiteminx.
    *             WA_BAPICOND-COND_TYPE      = 'PR00'.
    *             WA_BAPICONDX-COND_TYPE     = 'X'.
                 wa_bapicond-cond_value     = wa_tab-amt * wa_tab-qty.
                 wa_bapicondx-cond_value    = 'X'.
                 append wa_bapicond to it_bapicond.
                 append wa_bapicondx to it_bapicondx.
                 clear wa_bapicond.
                 clear wa_bapicondx.
            at end of ref_shp_to_par.
              call function 'BAPI_SALESORDER_CREATEFROMDAT2'
                exporting
    *             SALESDOCUMENTIN               =
                  order_header_in               = wa_bapisdhead
                  order_header_inx              = wa_bapisdhead1x
    *             SENDER                        =
    *             BINARY_RELATIONSHIPTYPE       =
    *             INT_NUMBER_ASSIGNMENT         =
    *             BEHAVE_WHEN_ERROR             =
    *             LOGIC_SWITCH                  =
    *             TESTRUN                       =
    *             CONVERT                       = ' '
    *           IMPORTING
    *             SALESDOCUMENT                 =
                tables
                  return                        = it_errmsg
                  order_items_in                = it_bapiitemin
                  order_items_inx               = it_bapiiteminx
                  order_partners                = it_bapiparnr
    *             ORDER_SCHEDULES_IN            =
    *             ORDER_SCHEDULES_INX           =
                  order_conditions_in           = it_bapicond
                  order_conditions_inx          = it_bapicondx
    *             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                    = it_bapisdtext
    *             ORDER_KEYS                    =
    *             EXTENSIONIN                   =
    *             PARTNERADDRESSES              =
        read table it_errmsg into wa_errmsg with key type = 'E'
        binary search.
        if sy-subrc ne 0.
                 call function 'BAPI_TRANSACTION_COMMIT'
        endif.
    endloop.

  • Unable to run order import from BPEL process.

    I am trying to submit order import concurrent program, but it is unable to find application and program name combination.
    I tried to give short name for application and program name , but no success . Please help.
    I pasted audit log for quick reference.
    <messages>
    <Invoke_1_CallCPService_InputVariable>
    <part name="InputParameters">
    <InputParameters>
    <complexType>
    <sequence>
    <APPLICATION>Order Management</APPLICATION>
    <PROGRAM>Order Import</PROGRAM>
    <DESCRIPTION>'Test Desc' </DESCRIPTION>
    <START_TIME/>
    <SUB_REQUEST/>
    <P_Operating_Unit/>
    <P_Order_Source/>
    <P_Orig_Sys_Document_Ref/>
    <P_Operation_Code/>
    <P_Validate_Only/>
    <P_Debug_Level/>
    <P_Num_Instances/>
    <P_Sold_To_Org_Id/>
    <P_Sold_To_Org/>
    <P_Change_Sequence/>
    <P_Perf_Param/>
    <P_Rtrim_Data/>
    <p_process_orders_with_null_org/>
    <P_Default_Org_Id/>
    <P_Validate_Desc_Flex/>
    </sequence>
    </complexType>
    </InputParameters>
    </part>
    </Invoke_1_CallCPService_InputVariable>
    <Invoke_1_CallCPService_OutputVariable>
    <part name="OutputParameters">
    <OutputParameters>
    <REQUEST_ID>0</REQUEST_ID>
    <RETURN_CODE>2</RETURN_CODE>
    <RETURN_MESSAGE>Cannot find application information for short name Cannot find rows while selecting for application short name . Check if the application short name is valid. Contact your System Administrator.</RETURN_MESSAGE>
    </OutputParameters>
    </part>
    </Invoke_1_CallCPService_OutputVariable>
    </messages>

    I think task payload does not display task contents in a variable. you can use workflow service function hwf:getTaskAttachmentContents() and assign the retrieved value to a variable of type "base64Binary".
    Hope this will help.
    Nirav

  • ORDER IMPORT를 통해 ORDER CANCEL 할 수 있는 방법

    제품 : MFG_OM
    작성날짜 : 2006-05-22
    ORDER IMPORT를 통해 ORDER CANCEL 할 수 있는 방법
    ================================================
    PURPOSE
    고객사 중 많은 수의 order cancel 작업을 해야 하기 때문에 이 cancel 작업
    을 API 즉 order import를 통해 할 수 있는 방법을 문의한다.
    이런 경우 아래와 같이 작업하여 order import를 통해 order cancel 작업을
    할 수 있다.
    Explanation
    - OPERATION_CODE = 'UPDATE'
    - CANCELLED_FLAG = 'Y'
    - CHANGED_REASON = 사용 가능한 value 입력
    - Order 전체 cancel을 하려면 OE_LINES_IFACE_ALL table에 어떤 record도
    입력하지 않으면 된다.
    Reference Documents
    Note 367621.1

  • Creating RMA Order through OE Interface Tables

    Hi,
    We are needing the ability to create RMA orders using the OE interface tables but we are running into an issue. The SOURCE_DOCUMENT_ID that is populated in Oracle Apps to link the RMA back to the original order does not get populated and there is no source_document_id column in the interface tables to populate manually. Does anyone know how we can get the SOURCE_DOCUMENT_ID populated for RMAs?
    Thanks in advance for your assistance,
    Troy

    Hi Nagamohan,
    I entered the reference_type, reference_header_id and the reference_line_id in the OE_LINES_IFACE_ALL (and a record in the headers iface, of course) and ran the Order Import. I set the reference_type to 'ORDER' but it didn't populate that on the new line record in oe_order_lines_all. And the source_document_id still is not populated. It did populate the referehcen_header_id and reference_line_id on the line, but we don't use those fields. We use the 'source' fields.
    I also noticed that the source_document_type_id is populated on RMA order headers and lines that are copied and created in Oracle Apps but there is no place to pass this column to the interface. Do you know how this value and the source_document_id and source_document_line_id can be populated when creating the RMA through the interface?
    Thanks
    Troy

  • CS4 Photo Downloader imports photos in wrong order

    I decided to give Photo Downloader a whirl with a batch of photos I took this weekend. I had about 400 photos spread over three cards, so I had them renamed with the date and a counter. I was using the high-speed drive mode on my camera (5Dmk2) and I noticed in one spot where I blew off a run of photos, Bridge imported them in some order other than the filename counter in the camera.
    I was looking at about a half-dozen shots of someone shooting a basketball and noticed that it looked like the ball came out and then was shot again, something that didn't happen in the game. Fortunately, I had Bridge embed the original filename from the camera into the XMP data and sure enough, Photo Downloader screwed up the order of the photos.
    How does Photo Downloader determine the proper order to download photos? There are no options to change the import order and the software clearly doesn't just read the filenames to get it sorted out.
    Any ideas? Or just stop using Photo Downloader? Or do I have to download the files, then rename then in filename order in Bridge?

    It is a known issue that Photodownloader can't get this sort order right every time, the higher frequency of motordrive used the more it will screw up.
    However when you don't use the rename function in downloader it will be more accurate. Feel also free to file a bug report about this using the contact button top right of this page, the more complaints the faster it will be repaired you would hope...).
    I rarely have sessions with that high speed but it occurred to me also and using no rename did suit me :-)
    You can then easily rename them in Bridge (also with more options) but it would be preferable that it worked right in downloader!
    The ups for using downloader are still great, without this rename setting for speedy jobs you are still left with the possibility to keep the original filename (and disable that in the Bridge batch renaming option), convert to DNG, make a back up copy and add a metadata template in one go :-)

Maybe you are looking for

  • SQL Developer usage problem

    Hi All I have installed sql developer V 4.1 to my computer and all the necessary java apllications have been installed. When i opened the program menu screens can only be shown when i get my cursor over it as shown in the below. İ have format my OS s

  • Inter company transaction between USA1 & USA2 company codes

    Hi, I want to create Inter company transactions between USA1 & USA2 company codes. Will you pls tell me where is this configuration has to set up.what is the procedure... Company code USA1 has a customer #42209 with trading partner USA2 & the vendor

  • Problem when trying to update Nokia Maps 2.0

    Hello, I have installed Nokia Maps 2.0, however, the Nokia Store informs me that there is an update to the Maps application. After installing the update the application remains the same and the Nokia Store returns to inform me that there is an update

  • Call details not up to date

    How can it be possible for the usage/call details not to be current on 1 account but up to the minute on our other? Anyone else experiencing this problem. Will the account that's not accurate catch up?

  • ICloud Match - is it account specific

    Hi, we've seen that you can now sign up for iCloud Match, so that you can access your iTunes account - music, film, books etc from anywhere as it stores your whole account on iCloud.  However, it asks you for a user id when you sign up for it.  Both