Oca
12
2015

RVTP Envanter Teslimalmaları Hatasının Giderilmesi İçin Maliyet Girişi

Hatanın pekçok nedeni olabilir.

En yaygın olanı kalem tanımlanırken costed_flag değerleri database üzerinden update edilmiş olabilir.

Aşağıdaki kod ile maliyet girişi yapılabilir.
 

DECLARE
   CURSOR aa
   IS
      SELECT DISTINCT organization_id, inventory_item_id
                 FROM apps.mtl_material_transactions t
                WHERE EXISTS (
                         SELECT 1
                           FROM org_organization_definitions org
                          WHERE org.organization_id = t.organization_id
                            AND operating_unit IN (201, 202));
 
   l_var   NUMBER;
BEGIN
   FOR aab IN aa
   LOOP
      SELECT COUNT (1)
        INTO l_var
        FROM cst_item_costs
       WHERE inventory_item_id = aab.inventory_item_id
         AND organization_id = aab.organization_id;
 
      IF l_var = 0
      THEN
         INSERT INTO cst_item_costs
                     (inventory_item_id, organization_id, cost_type_id,
                      last_update_date, last_updated_by, creation_date,
                      created_by, last_update_login, inventory_asset_flag,
                      lot_size, based_on_rollup_flag, shrinkage_rate,
                      defaulted_flag, cost_update_id, pl_material,
                      pl_material_overhead, pl_resource,
                      pl_outside_processing, pl_overhead, tl_material,
                      tl_material_overhead, tl_resource,
                      tl_outside_processing, tl_overhead, material_cost,
                      material_overhead_cost, resource_cost,
                      outside_processing_cost, overhead_cost, pl_item_cost,
                      tl_item_cost, item_cost, unburdened_cost, burden_cost,
                      attribute_category, attribute1, attribute2, attribute3,
                      attribute4, attribute5, attribute6, attribute7,
                      attribute8, attribute9, attribute10, attribute11,
                      attribute12, attribute13, attribute14, attribute15,
                      request_id, program_application_id, program_id,
                      program_update_date, rollup_id, assignment_set_id)
            SELECT inventory_item_id, aab.organization_id, cost_type_id,
                   last_update_date, last_updated_by, creation_date,
                   created_by, last_update_login, inventory_asset_flag,
                   lot_size, based_on_rollup_flag, shrinkage_rate,
                   defaulted_flag, cost_update_id, pl_material,
                   pl_material_overhead, pl_resource, pl_outside_processing,
                   pl_overhead, tl_material, tl_material_overhead,
                   tl_resource, tl_outside_processing, tl_overhead,
                   material_cost, material_overhead_cost, resource_cost,
                   outside_processing_cost, overhead_cost, pl_item_cost,
                   tl_item_cost, item_cost, unburdened_cost, burden_cost,
                   attribute_category, attribute1, +f16 attribute2,
                   attribute3, attribute4, attribute5, attribute6,
                   attribute7, attribute8, attribute9, attribute10,
                   attribute11, attribute12, attribute13, attribute14,
                   'AA Eklendi',                               --ATTRIBUTE15,
                                request_id, program_application_id,
                   program_id, program_update_date, rollup_id,
                   assignment_set_id
              FROM cst_item_costs
             WHERE organization_id = 83
               AND inventory_item_id = aab.inventory_item_id;
      ELSE
         NULL;
      END IF;
   END LOOP;
 
   COMMIT;
END;

Ahmet Akcan

1999 yılından bu yana pekçok Oracle ERP uygulama projesinde yer aldı.
DbOptimize bünyesinde Oracle e-Business Suite Principal Fonksiyonel
ve Teknik Danışman olarakkariyerine devam etmektedir.
Mail: akcana@gmail.com
Ahmet Akcan

İlgili Yazılar



1 Yorum+ Yorum Ekle

  • Hatanın olası nedenleri şunlardır
    1. Kalem maliyeti yoktur cst_item_costs tablosuna giriş yapılır (üstte)
    2. Dönem kapalı için trigger vs yapılmış olabilir Experteamden kalma alışkanlık gl_periods üzerindeki esnekalana bağlı
    3. Başka custom trigger (rcv_transactions_interface, rcv_transactions, mtl_material_transactions, mtl_lot_numbers, mtl_serial_numbers, mtl_material_transactions tabloları custom triggerlar için kontrol edilmelidir)
    4. Kalem teslimalma organizasyonunda tanımlı olmayabilir
    5. Kalemin SMM ve Gelir hesaplar inaktif edilmiş olabilir doğrulayın
    6. RCV shipment_lines tablosundaki mmt_transaction_id leri kontrol ediniz bozuk olabilir (fake) o zaman datafix gerekir akcana@gmail.com‘a çözüm için yazınız
    7. RCV: Receiving Mode profilini Batch yapıp rcv_transactions_interface tablosunda tutarı virgülden sonra 5 karakter yapınız. Sonra teslimalma işlemcisini çalıştırınız
    Bunlar değilse lütfen yazınız

Yorum yapın

*