الانتقال إلى المحتوى

عندي مشكلة في Pl/sql Code


salma.oracle

Recommended Posts

function JANFormula return Number is
x number;
begin select distinct sum(wip.transaction_quantity)qty
 into x from MTL_MATERIAL_TRANSACTIONS wip,mtl_system_items itm
where wip.inventory_item_id=itm.inventory_item_id and wip.TRANSACTION_TYPE_ID = 35 and wip.inventory_item_id=:inventory_item_id and to_char(wip.transaction_date,'YYYY')=NVL(:YEAR,wip.transaction_date) and to_char(wip.transaction_date,'mm')='01'

;
return x;
exception
when no_data_found then 
return 0;

end;


انا عملها جوه فرميلولا


وده الايرور الى ظهر
eror 201 at line 6 colum 6
indentifier'mtl_matrail_transaction must be declared


-eror 0 at line 4 colum 3
sql statment ignored

تم تعديل بواسطة عادل الشهري
رابط هذا التعليق
شارك

المشكله تقول انو التيبل مش موجود مع انه ممكن ان يكون موجود ولاكن على يوزر ثاني والحل اما ان تعمل synonym لهاذا الجدول او ان تكتب اسم اليوزر بعدو اسم الجدول

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية