ESYU: Datafix: Reservation 수량이 Salesorder 정보에 뜨지 않는 경우 Datafix

Purpose
Oracle Purchasing Order - Version: 11.5.10
11.5.10 version위에서 DEMAND_SOURCE_HEADER_ID=0 상태의 records를
mtl_reservations table에 있으나 DEMAND_SOURCE_LINE_ID는 존재하는 record를
발견 할 수 있다.
Sales order를 위해 mtl_reservations의 records는 적절한 DEMAND_SOURCE_HEADER_ID
를 가지고 있어야 하는데, 이를 위한 Datafix 방법은 다음과 같다.
BUSINESS IMPACT:
이 문제 때문에 user는 sales order를 ship 하거나 reservation을 remove 할 수 없다.
Verified the issue with the script results in the file mtl_reservation_data.xls which shows these
records exist.
Solution
Reserve orders concurrent progrm은 demand_source_header_id = 0 인 reservation을
생성하는데, 이것이 inventory 안의 data corruption 원인이 된다.
근본 원인 Bug 4642711: RESERV ORDERS PROGRAM IS CREATING RESERVATIONS WITH 0
DEMAND_SOURCE_HEADER_ID
DafaFix:
이 Datafix는 Oracle 내부 사용을 위해 작성된 것이다:
1. 잘못된 records를 backup 한다.
create table mtl_res_backup
as select * from mtl_reservations
where demand_source_type_id in (2,8)
and (demand_source_header_id = 0
or demand_source_header_id not in
(select sales_order_id from mtl_sales_orders));
2. 잘못된 records를 정정한다.
set serveroutput on;
declare
rsv_id number;
cursor mso_oe is
select mso.sales_order_id,oeh.order_number,oeh.header_id,oel.line_id,
mr.reservation_id
from oe_order_headers_all oeh, oe_order_lines_all oel,
mtl_sales_orders mso, mtl_reservations mr
where oeh.header_id = oel.header_id
and oel.line_id = mr.demand_source_line_id
and (mr.demand_source_header_id = 0
or mr.demand_source_header_id not in
(select mso1.sales_order_id from mtl_sales_orders
mso1))
and mr.demand_source_type_id in (2,8)
and mso.segment1 = oeh.order_number;
begin
for mso_oe_rec in mso_oe loop
update mtl_demand
set demand_source_header_id = mso_oe_rec.sales_order_id
where n_column1 = mso_oe_rec.reservation_id;
update mtl_reservations
set demand_source_header_id = mso_oe_rec.sales_order_id
where reservation_id = mso_oe_rec.reservation_id;
dbms_output.put_line('Reservation Id : ' ||
mso_oe_rec.reservation_id);
dbms_output.put_line('Dmd Source Line Id : ' || mso_oe_rec.line_id);
dbms_output.put_line('Dmd Source Hdr Id : ' ||
mso_oe_rec.sales_order_id);
dbms_output.put_line('--------------------------------------------------');
end loop;
end;
3. 위 Script가 complete 되면 data가 맞는지 확인한다.
4. Oracle Application을 이용하여 Data가 맞는지 확인한다.
5. 이 문제의 근본 원인 해결을 위해 아래 patch를 metalink에서 down 받아
적용한다.
1) Patch 4642711를 down 받아 readme를 읽고 pre-requisites를 확인
한다.
2) Test instance에 Patch 4642711를 적용한다.
3) 아래 file version이 upgrade 되었는지 확인한다.
OEXUSCHB.pls 115.153.11510.18
(strings -a $XX_TOP/filename |grep '$Header': command 사용)
4) Issue를 다시 test 한다.
6. 만일 issue가 해결되었다면 다른 instance에도 적용한다.
NOTE: Via Bug <<5551075>>, INV develpment provided :
Identifying the Problem Transactions :
SELECT MR.RESERVATION_ID RSV_ID,
MR.DEMAND_SOURCE_LINE_ID ORDER_LINE_ID,
MR.INVENTORY_ITEM_ID ITEM_ID,
MR.ORGANIZATION_ID ORG_ID,
MR.PRIMARY_RESERVATION_QUANTITY PRSV_QTY
FROM MTL_RESERVATIONS MR
WHERE DEMAND_SOURCE_TYPE_ID IN (2,8)
AND NVL(DEMAND_SOURCE_HEADER_ID, 0) = 0
AND SUPPLY_SOURCE_TYPE_ID = 13;
Fixing the Problem Transactions : update_rsv_0_header_id.sql
Reference
Note 389600.1

Similar Messages

  • JOB DETAILS FORM에서 FRM-4064 ERROR시 DATAFIX 방법

    제품 : MFG_WIP
    작성날짜 : 2004-11-25
    JOB DETAILS FORM에서 FRM-4064 ERROR시 DATAFIX 방법
    =============================================
    PURPOSE
    Job Details Form에서 FRM-4064 Error시 DATAFIX 방법 제공
    Problem Description
    Job을 만든 후 Job Details/materail reuirements에서 해당 오더에 대한 per assembly
    수량을 바꾸고자 수치를 변경하면 Error 메세지가 나옴
    Error 메시지: FRM-4064: Record has been updated. Requery block to see change.
    Workaround
    N/A
    Solution Description
    Old job has invalid date format.
    1> alter session set nls_date_format = 'dd-mon-yyyy hh24:mi:ss' ;
    2> select wip_entity_id, date_required, mps_date_required
    from wip_requirement_operations
    where wip_entity_id = (select wip_entity_id
    from wip_entities
    where wip_entity_name = '&Job_Name');
    3> if data exists in step2>, please run below sql
    update wip_requirement_operations
    set date_required = trunc(date_required),
    mps_date_required = trunc(mps_date_required)
    where wip_entity_id = (select wip_entity_id
    from wip_entities
    where wip_entity_name = '&Job_Name');
    Reference Documents
    -------------------

  • LOCATOR CONTROL품목이 NULL로 입고되었을 때 DATAFIX방법

    제품 : MFG_INV
    작성날짜 : 2005-05-30
    LOCATOR CONTROL품목이 NULL로 입고되었을 때 DATAFIX방법
    ==========================================
    PURPOSE
    Locator Control이 "Prespecified"로 setup되어 있음에도 불구하고,
    Locator=NULL로 입고되는 Inventory Itemd에 대한 datafix방법을
    제시하고자 합니다.
    Explanation
    Valid Locator ID로 다음 Table들에 Update작업을 수행하여야 합니다.
    (1) MTL_MATERIAL_TRANSACTIONS
    update MTL_MATERIAL_TRANSACTIONS
    set locator_id = <valid locator id)
    where transaction_id= &trxid
    and locator_id is NULL
    =====================================
    (2) MTL_ONHAND_QUANTITIES_DETAIL
    update MTL_ONHAND_QUANTITIES
    set locator_id = <valid locator id)
    where inventory_item_id=&itemid
    and organization_id = &orgid
    and subinventory_code = &subcode
    and locator_id is NULL
    =======================================
    (3) RCV_TRANSACTIONS
    update RCV_TRANSACTIONS
    set locator_id = <valid locator id)
    where transaction_id= &trxid
    and locator_id is NULL
    Example
    Reference Documents
    Note:181604.1

  • ESYU: MTL_MATERIAL_TRANSACTIONS 와 MTL_ONHAND_QUANTITIES_DETAIL의 mismatch 찾는

    Purpose
    Oracle Inventory Management - Version: 11.5.7 to 11.5.10
    Onhand quantity table(MTL_ONHAND_QUANTITIES_DETAIL - MOQD) 과
    transaction history table(MTL_MATERIAL_TRANSACTIONS - MMT) 간의 수량
    불일치 내역을 찾는 방법에 대해 알아본다.
    Solution
    제공되는 standard scripts는 onhand와 transaction history mismatches를 검토한다.
    Scripts를 Onhand quantity table(MTL_ONHAND_QUANTITIES_DETAIL - MOQD) 과
    transaction history table(MTL_MATERIAL_TRANSACTIONS - MMT) 간의 수량 불일치를
    찾는데 이용할 수 있다.
    이 standard scripts는 patch 4047528를 통해 제공되며, 만일 수량 불일치 내역을 찾게
    되면 data fix 지원 요청을 위해 Oracle Support 쪽으로 Service Request(SR)을 요청한다.
    A. SCRIPTS
    To run the scripts:
    1. Metalink에서 Patch 4047528을 download 후 apply를 한다.
    2. Patch는 invmtmqt.sql ,invmtmqd.sql 두 개의 scripts를 제공한다.
    invmtmqt.sql -> 이 script는 MMT-MOQD mismatch data를 입력하기 위해 사용될 temporary
    tables을 생성하게 될 것입니다.
    invmtmqd.sql -> 이 script는 MMT-MOQD mismatch records를 확인하고 invmtmqt.sql script에
    의해 생성된 temp tables에 확인한 record를 입력할 것입니다.
    3. Mismatches를 검토하기 위해 아래 queries를 실행:
    a) 아래 queries 결과를 column headers를 포함한 excel spreadsheet output으로 생성:
    SQL> select * from temp_disc_inv_loose;
    SQL> select count(*) from temp_disc_inv_loose;
    SQL> select count(*) from temp_disc_inv_cg_loose;
    SQL> select * from temp_disc_inv_cg_loose;
    SQL> select count(*) from temp_disc_inv_cg_loose where TRX_QUANTITY_MMT<0
    and NEG_ALLOWED=2;
    B. IMPORTANT: DATAFIX CONDITIONS
    만일 아래와 같은 조건이 존재한다면 datafix는 불가능하다:
    (1) 만일 transactions purge를 실행한적이 있었던 instance라면 data fix는 제공되지
    못한다.
    (2) 만일 Organization이 negative balances를 허용하지 않는데, 불일치가 존재하는
    MMT.PRIMARY_QUANTITY sum이 음수라면 data fix는 receipt transaction을 실행하여
    양수 재고 수량을 만들기 전까지는 제공되지 못한다.
    아래 SQL 문을 이용하면 음수 재고를 허용하지 않는데, 음수 수량이 존재하는지를 확인
    할 수가 있다.
    SQL> select count(*)
    from temp_disc_inv_cg_loose
    where TRX_QUANTITY_MMT <0 and NEG_ALLOWED=2;
    C. Suspect Mismatch?
    1. 만일 system의 data가 mismatch로 의심이 되면, 위에 설명한 scripts를 실행한다.
    2. Issue에 대해 Oracle Support에 지원을 요청하는 SR을 생성한다.
    3. 이 Note를 참조한다.
    4. Log file 및 select 문 결과를 첨부한다.
    Reference
    Note 279205.1

  • In alv report , how to reserve 20 lines from beginning of page

    hi experts
    in alv report , how to reserve 20 lines from beginning of page.
    regards
    subhasis.

    If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
    But I think maximum of 10-12 can be handled by that.
    Regards,
    Amit
    Reward all helpful replies.

  • A/P Reserve Invoice closes Source PO - But A/P Credit Memo does not open it

    Hi Forum,
    1. Create a PO with say a single line item
    2. Create a target A/P Reserve Invoice from above PO
    Note: The PO of step 1 is closed.
    I want the PO to again go to OPEN STATUS.
    3.I perform A/P Credit Memo from base document  (A/P Reserve Invoice) from step 2 above.
    Question: The status of PO does not become open. Is there a setting that I am missing here which would make the status of PO go to open again?
    Thank you for your help.

    Hi Syed Aleem, 
    go to Administration -> System Initialisation -> Document Settings -> Per document -> Purchase Order
    Place a tick in the checkbox 'Reopen Doc. by creating returns/Goods Returns/Credit Notes Based in It' & update.
    All the best,
    Kerstin

  • Issue reg creation of reservation

    Hi all,
    I am trying to create a reservation.
    I have given a plant and storage location for a material by checking in table mard.
    for some reason ,its says  storage location not supported even though the mard
    table has the same plant and storage location for that material.
    it sometimes says only 1 quantity available.
    what should i do in order to increase the quantity available.
    waiting for your replies

    Hi Deepthi,
    Check,
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-log-mm/reservation-1179743
    Regards,
    Azaz.

  • Keep getting error message when trying to sign in to make a Genius Bar Reservation

    Keep getting error message when trying to sign in to make a Genius Bar Reservation

    Make the reservation by phone. 

  • Create Goods Receipt PO from  AP Reserve Invoice (bug?)

    Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice".
    In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible to read the contents of this field with the UI-API, because <i>base type</i> is a combo box and only valid values can be returned.
    Is there a workaround to get a none valid value from a combobox?

    Hi Jurgen,
    It looks like it is a bug and that the same bug exists on the sales side of the DI API. Herewith a post that you can read about it.
    /thread/48329 [original link is broken]
    Hope it helps,
    Adele

  • Bloqueio de reservas de materiais de contas razão especificas na transação IW32

    Gostaria de saber se é possível realizar o bloqueio de materiais de uma especifica conta razão, em reservas em ordens de serviço pela transação IW32.
    Estou com problemas no controle de custo de materiais que são utilizados pelo setor de produção, e estão na conta razão da manutenção. Para isso eu gostaria de bloquear somente as reservas de materiais da conta razão da manutenção.
    É possivel?

    Olá Rafael,
    Qual o centro de custo alocado ao material/equipamento?
    Na imagem está destacado o campo "componente"
    Os materiais nele inseridos serão reservados de acordo com o depósito configurado. Não seria melhor apontar um outro depósito?

  • Error:Unable to reserve .lok file for Integrated WLS server (DefaultServer)

    Hi,
    I am having jdev 11.1.1.1.0.
    Many times I get following error while running my application pages:
    Unable to reserve the .lok file for Integrated WLS server (DefaultServer). Typically this is because another instance of this server is already running in the WLS domain.
    The only way out is to close jdev, delete system11.1.1.1.33.54.07 folder and open jdev again.
    Why is this error dialog shown? Is there any permanent solution?
    TIA

    Thanks for quick reply!
    As suggested in the given thread, I logged into the weblogic console http://127.0.0.1:7101/console/ as 'weblogic' user.
    On the left hand side in the 'View changes and restarts' section, no pending changes are shown. It shows following text:
    Configuration editing is enabled. Future changes will automatically be activated as you modify, add or delete items in this domain.
    Please advise. I can share the application.zip if needed.
    Thanks

  • How to check connection from SAP to reservation system?

    Dear Experts,
    May I know how to check whether the connection between SAP and the reservation system has been set up and ready to use?
    Thanks.

    Hi
    You need to check the identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    External reservation system In the Travel Planning subcomponent Travel Management accesses an external reservation system connected to R/3 to carry out the queries on available travel services and to book the selected services. The reservation system currently available is the AMADEUS Global Travel Distribution system.
    For more information, see Technical Prerequisites for Travel Planning--
    Technical Prerequisites for Travel Planning
    Before you can use Travel Planning fully, a number of internal R/3 and external prerequisites or settings must be fulfilled.
    Connection to an External Reservation System
    The online booking function in Travel Planning is based on the cooperation with external reservation systems that are used to communicate with the service providers. The R/3 user has access to the following functions via the connection to an external reservation system:
    u2022 Availability query of travel services
    u2022 Transfer of additional information about selected travel services
    u2022 Price information
    u2022 Processing of reservation by the respective provider
    u2022 Synchronization of the data in SAP Travel Planning if external booking changes have been made
    In the current release the external reservation system in use is AMADEUS Global Travel Distribution. AMADEUS is a subsidiary of Lufthansa, Air France, Continental Airlines and Iberia. The reservation system it provides is in worldwide use and 160,000 terminals in 37,000 travel agencies and ticket sales centers in over 130 countries are connected to it.
    In order to carry out online booking via AMADEUS the following must have been carried out:
    u2022 Your enterprise must have signed an agreement with AMADEUS for the use of the interface and be registered at AMADEUS with a user ID
    u2022 A network connection to the AMADEUS computer center must have been opened
    u2022 The identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    For questions about registration, contact the SAP & AMADEUS Competence Center:
    SAP & AMADEUS Competence Center ACC 02 Neurottstrasse 16 69185 Walldorf Germany
    Cheers
    Mukta

  • Error occurred during initialization of VM. Could not reserve enough space

    Dear All,
    I am trying to install SAP NetWeaver 7.0 SR2 SP9 on Oracle 10.2 and platform is Windows 2003 32 bits. While installing, in t he restarting the JAVA Instance step, server0 node is getting shutdown. When I further analyzed dev_server0 log, I could get below useful information:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    [Thr 6008] JLaunchIAbortJava: abort hook is called
    [Thr 6008] **********************************************************************
    *** ERROR => The Java VM aborted unexpectedly.
    *** Please see SAP Note 943602 , section 'Java VM crashes'
    *** for additional information and trouble shooting.
    [Thr 6008] JLaunchCloseProgram: good bye (exitcode = -2)
    I referred the note mentioned above and it inturn referred to note# 940893. I followed many other sap notes also. However my above problem did not solve yet. I have checke my JAVA SDK version also. It is j2sdk1.4.2_11 and seems to be fine. My systems memory is 3 GB and I gave 20 GB as Virtual memory. I dont think that it should be a memory problem. However somewhere I am lost and can not get the grip over the problem  to resolve it.
    May I request all of you to kindly help me on above issue? Please let me know if you need any more information.
    Waiting for your kind replies.
    Regards,
    Faisal

    Dears,
    Thank you very much for your replies. The heap size was 1024. I changed it to the below:
    Heap Size=512 (earlier 1024)
    Changed below paramters in configtool:
    -Xmx512m (earlier 1024)
    -Xms256m (earlier 1024)
    Hope this information will be helpful to others as well.
    Once again, I thank both of you to guide me in proper directions.
    Regards,
    Faisal

  • I want to reserve a static IP address on my Airport extreme.  What is the difference between reserving by MAC Address and DHCP Client ID?

    I want to understand the differences in the way you can reserve a static address for a device on the network.  I had previously set the device itself to an address and then reserved it with DHCP Client ID, which I thought was just the devices static addresss.  I'm not sure if this was in fact correct or just happend to work.  I know what a MAC address is, but I'm not really sure what the DHCP Client ID is. So it would be great if someone could clarify it, and the difference between reserving address by MAC Address or DHCP Client ID.

    A MAC address is a unique identification consisting of letters and numbers in a form that looks like this:
    xx:xx:xx:xx:xx:xx
    Every network device has a MAC address, which can be found on a label on the bottom or back of the device. Apple calls this the Ethernet ID.
    A DHCP Client ID is an optional name that you can assign to a device. For example, on your Mac....
    Open System Preferences (gear icon on the dock)
    Open Network
    Click on Ethernet
    Click Advanced at the lower right
    You may be able to edit the DHCP Client  ID here....for example.....you could enter MJ500's MacBook in the space provided. That would be the Client ID of your Mac.

  • The site in the Spanish App Store I reserved the iPhone 5 and would like to get it to turn. But I was told that if I'm lucky - I will come with an email confirmation. Excuse me, I'd like to reserve an honest in turn, not to play the lottery for luck.

    The site in the Spanish App Store I reserved the iPhone 5 and would like to get it to turn. But I was told that if I'm lucky - I will come with an email confirmation. Excuse me, I'd like to reserve an honest in turn, not to play the lottery for luck. I am disappointed by the work Apple

    It sounds as if AT&T has already told you they can't do what you want. It doensn't sould like anything that's fixable on your end.

Maybe you are looking for

  • Field Cost Ctr is a required field for G/L a/c ...(Co. code) ... (GL a/c)

    Hi, When i run depreciation, i am getting following error: Field Cost Ctr is a required field for G/L a/c ...(Co. code) ... (GL a/c) Message no. F5808 Diagnosis The value for field "Cost Ctr" in the interface to Financial Accounting is an initial val

  • Icons and JTree

    Hi, How can I produce my own icons to appear next to nodes in a JTree. At the moment I am using gifs I got elsewhere, but I want to design my own for custom display. Thanks for any help, Claire

  • How to get the users list that can Add/Remove or modify Vendors in Oracle?

    How to get the users list that can Add/Remove or modify Vendors in Oracle? I need to generate a report like name and responsibility. Thanks

  • How do I eliminate unwanted DNS?

    For some time I have used Open DNS on my airport extreme network, now I don't seem to be able to get them out of my network configuration: I can add new DNS, but I cannot delete the old Open DNS because they are greyed out in my network airport dns p

  • Additional checking for rebate condition fulfilment during settlement

    Hi Gurus, This is a typical requirement from my client- Client encourgaes sales to a particular part of the country. All our dealers belonging to any city or location are encouraged to sell to their end-customers of that part of the country. Dealers