الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

I Am Facing Problem In Lex Parameter

Featured Replies

بتاريخ:

Hi All,
I am facing a problem in running custom report in oracle apps .
i am using lexical parameter in (AfterPForm) as shown below :
------------------------------------------------------------------------------------------------------
function AfterPForm return boolean is

begin
 declare x1 number; x2 varchar2(55);x4 number;

 cursor c2 is select A.inventory_item_id,A.segment1,MESC_CUS_ITEM_WEIGHTS_CU(A.segment1,'M')
from mtl_system_items  A where A.organization_id=90
----and A.segment1 in('0111-08P16AWG-U0BK8-06','0111-08P18AWG-U0BK8-03')
and A.item_type like 'FI%'
and a.inventory_item_id in (select inventory_item_id from
BOM_BILL_OF_MATERIALS where A.inventory_item_id=assembly_item_id and organization_id=90
 ---  and to_char(creation_date,'MMYYYY')=:MMYY)
And ((Trunc(Creation_Date) Between  To_Date(To_Char(:From_Date,'DD-MON-YYYY') ,'DD-MON-YYYY')  And
To_Date(To_Char(:To_Date,'DD-MON-YYYY') ,'DD-MON-YYYY') )  
or (:From_Date is null and :To_Date is null)))
 &itemc;

				
 begin
  SRW.DO_SQL('truncate table BOM_EXPLOSION_TEMP_SAVE2');  
  open c2;
  loop
  fetch c2 into x1,x2,x4;
  exit when c2%notfound;
  end loop;
 return (TRUE);
end;
end;



---------------------------------------------------------------------------------------------------------

is it true to used it in this place or should to be in main select
regards.

بتاريخ:

Hi All,
I am facing a problem in running custom report in oracle apps .
i am using lexical parameter in (AfterPForm) as shown below :
------------------------------------------------------------------------------------------------------
function AfterPForm return boolean is
begin
declare x1 number; x2 varchar2(55);x4 number;

cursor c2 is select A.inventory_item_id,A.segment1,MESC_CUS_ITEM_WEIGHTS_CU(A.segment1,'M')
from mtl_system_items A where A.organization_id=90
----and A.segment1 in('0111-08P16AWG-U0BK8-06','0111-08P18AWG-U0BK8-03')
and A.item_type like 'FI%'
and a.inventory_item_id in (select inventory_item_id from
BOM_BILL_OF_MATERIALS where A.inventory_item_id=assembly_item_id and organization_id=90
--- and to_char(creation_date,'MMYYYY')=:MMYY)
And ((Trunc(Creation_Date) Between To_Date(To_Char(:From_Date,'DD-MON-YYYY') ,'DD-MON-YYYY') And
To_Date(To_Char(:To_Date,'DD-MON-YYYY') ,'DD-MON-YYYY') )
or (:From_Date is null and :To_Date is null)))
&itemc;



begin
SRW.DO_SQL('truncate table BOM_EXPLOSION_TEMP_SAVE2');
open c2;
loop
fetch c2 into x1,x2,x4;
exit when c2%notfound;
end loop;
return (TRUE);
end;
end;

---------------------------------------------------------------------------------------------------------

is it true to used it in this place or should to be in main select
regards.


ما فائدة اللوب الاخيرة
ولاحظ ان x1,x2,x4
سيتم ملاهم ثم اعادة مل وهكذا ولم يتم استخدامهم اصلا
بتاريخ:
  • كاتب الموضوع

السلام عليكم
بصراحه اخي لم اتمكن من معرفة سبب هذا الوب والفائدة منه , حيث اني قمت بايقاف اللوب ولكن التقرير لم ينفذ ولم يستجيب الا بعد ان قمت بعمل اعادة تشغيل للجهاز .
ولكن اعتقد ان هذه المتغيرات تستخدم لـــ Functions
خاصه بالاوراكل لاني قمت بأخد التقرير من تقارير اوراكل ابس............. والله اعلم .


أمل من لديه الاجابه التفاعل بالموضوع....

بتاريخ:

السلام عليكم
بصراحه اخي لم اتمكن من معرفة سبب هذا الوب والفائدة منه , حيث اني قمت بايقاف اللوب ولكن التقرير لم ينفذ ولم يستجيب الا بعد ان قمت بعمل اعادة تشغيل للجهاز .
ولكن اعتقد ان هذه المتغيرات تستخدم لـــ Functions
خاصه بالاوراكل لاني قمت بأخد التقرير من تقارير اوراكل ابس............. والله اعلم .


أمل من لديه الاجابه التفاعل بالموضوع....




لان هذا الكرسور يقوم بارجاع اكثر من قيمة
يمكن اضافة and rownum=1
والغاء اللوب
ومن كلامك التقرير يعمل الان
لكن القيم لا تاخذ القيمة
يمكن تغيير السطر
fetch c2 into x1,x2,x4;
الى
fetch c2 into :inventory_item,:segment,:weights
طبعا ستغيير الاسماء بالاسماء الموجوده بالتقرير
وهذا سينفذ لمرة واحدة وليس كما بكويرى الريبورت سينفذ عن طريق ال repeating fram
والله الموفق
بتاريخ:
  • كاتب الموضوع

شكرا على الافادة

اخي يوجد عندي استفسار بخصوص الهدف من تغيير اسماء المتغيرات مع العلم بان هذه المتغيرات لا تستعمل باي حقل من حقول التقربر ,
ولكن القيم الناتجه عن اللوب يتم تخزينها بجدول وهوالجدول الموجود في الكود الذي يتم حذف قيمه قبل جملة اللوب.


وشكرا لك.

بتاريخ:

الكود يوجد به جمله ترنكيت للجدول فعلا
ولكن لا يوجد اى انسرت لهذه المتغيرات فهى لا قيمة لها
ربما يكون التقرير المطلوب هكذا

loop
fetch c2 into x1,x2,x4;
srw.do_sql(insert into  BOM_EXPLOSION_TEMP_SAVE2 values(x1,x2,x3));
exit when c2%notfound;
end loop;

بتاريخ:
  • كاتب الموضوع

شكرا على الاهتمام


تعقيباً على كلامك .... توصلت الى الهدف من هذا اللوب , وهو انه يوجد Function
في جملة السليكت وعمله هو انشاء جدول وايضا تعبأة القيم الناتجه من السليكت في هذا الجدول ,
لذلك لابد من عمل للوب حتي يتم تنفيذ جملة السليكت وهذه المتغيرات فقط لكي يتم اسناد القيم بها .



وشكرا

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

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

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

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

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

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.