Clearing buffer on HP4 LaserJet
I am having issues with my HP4 laserjet. It will not stop printing junk and using lots of paper. I do not know how to set the printer back to factory settings. Is there anyone out there that knows how?
Before going to this task, could you just confirm that the OK button callback is called in the compiled executable? Just adding a simple MessagePopup in the button callback could be enough. I'm saying this because I can hardly think that a keyboard/mouse buffer is passed to CVI application, unless you are using a very slow or busy system and the user continues clicking on the icons to have the app launched.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Similar Messages
-
Fiori Enhancment - BSP how to clear buffer/cache?
Hi All,
So I'm trying to make some enhancmenets to a Fiori app. I have downloaded it and reuploaded is as a new BSP application.
I wanted to make some changes to the BSP, so I changed the code directly, in SAP.
I thought I must be doing something wrong, but my changes weren't having any effect.
To further test this I wrote some nonsense which should ahve broken it... but it still ran fine!
To test further again I went to SICF and deactivated the node!! ANd it STILL worked fine!
I opened new sessions in my browser, and new incognito windows, and closed it all and reopened it all, but it STILL works fine!
There is clearly some kind of caching/buffering going on here, I've found the tables: O2PAGDIR and O2PAGDIRT have buffered values (found out this from ST02)
But how do I clear it?! I turned buffering off in these tables, to see if that worked, and made another change, and tried to reload the table... but STILL the page loads with no changes.
Please, can anyone tell me how to clear the buffer/cache that means that when I make UI chanegs in a BSP it doesn't show them?!
Thank you
LindsayHi Mauro,
I overcame this issue in a variety of ways:
Firstly, I do all the customisation of the BSP applications locally on my machine.
Then I upload the whole BSP using the program /UI5/UI5_REPOSITORY_LOAD.
In order to make sure the display you see in your browser is the up-to-date version, there are various cache clearing things you can do:
Program /UI5/RESET_CACHEBUSTER - this has no UI, and takes only a second to run
Transaction /UI5/THEME_TOOL : double click on "Invalidate Cache" to refresh the theme cache (if you have made theme changes)
Then you have the two model caches mentioned above by Ashish - if you changes the Gateway service but aren't seeing these changes you should run these to ensure the model is up-to-date.
Browser caches: make sure you browser cache is cleared: for Chrome this is easy: hit F12 (to get Dev toold open), clickk on the cog icon, and tick the box "Disable cache (while DevTootls is open)" - then keep devtools open while refreshing the page.
The best way to enhance the BSP applications is locally on your machine, and do all your testing locally before uploading.
I hope this helps, let me know how you get on.
Lindsay -
Sql query executes faster 2. time despite clearing buffer cache/shared pool
Hi All,
I want to test query performance, so i clear cache in following way before each execution:
alter system flush buffer_cache;
alter system flush shared_pool;
But, first execution takes more time than second and consequent executions. For example first execution takes 30 seconds, consequent executions take 3 seconds.
Before each execution I clear the cache.
What can be the reason? I use TOAD for query execution. Does TOAD caches something after first execution?
And last question. Is there a dynamic query that query execution duration is stored?
Any help will be appreciated.
Thanks.>
So there shouldn't be problem from the parameter, can you post result from V$SGA_DYNAMIC_COMPONENTS and v$SGAINFO ?
V$SGA_DYNAMIC_COMPONENTS
COMPONENT CURRENT_SIZE MIN_SIZE MAX_SIZE USER_SPECIFIED_SIZE OPER_COUNT LAST_OPER_TYP LAST_OPER LAST_OPER GRANULE_SIZE
shared pool 436207616 402653184 0 0 125 GROW IMMEDIATE 02-JUL-09 16777216
large pool 201326592 117440512 0 83886080 12 SHRINK DEFERRED 02-JUL-09 16777216
java pool 16777216 16777216 0 0 0 STATIC 16777216
streams pool 16777216 16777216 0 0 0 STATIC 16777216
DEFAULT buffer cache 1895825408 1711276032 0 16777216 137 GROW DEFERRED 02-JUL-09 16777216
KEEP buffer cache 0 0 0 0 0 STATIC 16777216
RECYCLE buffer cache 0 0 0 0 0 STATIC 16777216
DEFAULT 2K buffer cache 0 0 0 0 0 STATIC 16777216
DEFAULT 4K buffer cache 0 0 0 0 0 STATIC 16777216
DEFAULT 8K buffer cache 0 0 0 0 0 STATIC 16777216
DEFAULT 16K buffer cache 0 0 0 0 0 STATIC 16777216
DEFAULT 32K buffer cache 0 0 0 0 0 STATIC 16777216
ASM Buffer Cache 0 0 0 16777216 0 STATIC 16777216
V$SGA_INFO
NAME BYTES RESIZEABL
Fixed SGA Size 2086392 No
Redo Buffers 14688256 No
Buffer Cache Size 1895825408 Yes
Shared Pool Size 436207616 Yes
Large Pool Size 201326592 Yes
Java Pool Size 16777216 Yes
Streams Pool Size 16777216 Yes
Granule Size 16777216 No
Maximum SGA Size 2634022912 No
Startup overhead in Shared Pool 218103808 No
Free SGA Memory Available 50331648 -
E-Recruiting - BSP application - How to clear buffer?
Hi,
Im debugging one of BSP application (I set an external break point at method of model class).
Very first time program flow stops at break point but after that it is not stopping there b/c records being fetched from buffer. May I know how to clear the buffer?
Regards,
...NaddyWell,
E-Recruiting Infotypes are buffered within the application as internal tables.
The buffer is filled, when first time opening an subapplication. It's also filled, when those infotype records have not been read before.
Refreshing the buffer is only triggered by the application. This is done by "Refresh"-Buttons or Buttons like "Start selection".
You cannot refresh it yourself, while debugging. It's a global event called by button events. -
How to Clear Buffer after Executed Planning Function in BPS
Hi BW-BPS Experts,
I am BPS novice.We are executing Work Packages through planning folders. In Planning Folder we have 3 planning functions.Among those 3 , 2 Planning fns executed successfully, while executing 3rd one , it given error msg. So how can I clear the values in Buffer which r executed by first 2 planning fns. I haven' t saved any values to Cube. But I need to process these planning fns again.
I will appreciate if any body can let me know how can I process these planning functions again without disturbing.
I did From Menu Edit -> Undo Planning function. It give the msg: Last planning function was undone.How can I undo all Planning functions?
Its Production systyem.So pls advise me.
Points will be awarded.
Thanks,
Abhi.Hi Abhi,
There are 2 transactions which might help you.
1. /$obj - resets object buffers
2. /$sync - resets all buffers
I would sugest that you study the impact on the data in buffer as many users might be in the system using BPS. If there is no risk to your business process you can use the above transactions.
Sunil -
How can i use( API_SEMBPS_REFRESH) in my developement for Clearing Buffer
Hi All,
How can i clear the buffer values ??
How can i use( API_SEMBPS_REFRESH) in Web interface builder?
Any Inputs on this....
Thanks,
Edited by: NnSiri Siri on Oct 28, 2008 3:40 PM
Edited by: NnSiri Siri on Oct 28, 2008 8:58 PM
Edited by: NnSiri Siri on Oct 28, 2008 8:59 PMHi,
There are two ways to achieve this depending on how you want to refersh the web interface:
1. Anytime during the execution of web interface:
a. Create a Z function module and insert a call to API_SEMBPS_REFRESH there.
b. Then create a planning function exit and in Function Module field call your Z function module.
c. Create a button in Web Interface and call the planning function exit on that button.
This will call the refresh function whenever user will click on that button.
2. At the load of Web interface:
a. Create a Z class in SE24 by copying the class CL_UPWB_BSP_APPL as super class.(This
class is default application class for all web interfaces).
b. Redfine LOAD method of your custom class and add call to FM API_SEMBPS_REFRESH.
c. In your web interface, set the property 'Application Class' to your custom application class.
This will call the refresh function every time you start the web interface.
If you will add your code in auto generated BSP application for your Web interface you have to re-write the logic in BSP application everytime you make change in your web interface and generates it in Web Interface builder. Because the system overwrites the BSP application everytime the Web interface is generated.
Regards,
Deepti
Edited by: Siegfried Szameitat on Nov 3, 2008 10:06 AM
deleted request for points. -
Clearing Buffer memory.
Hi All,
How to clear the buffer memory when the program has been executed. I want to remove this buffer for that program. Any suggestions.
Thanks in Advance.
RK.Hi Ravi
The transaction "$sync" will clean all the system buffer. I do not know something cleaning the ABAP buffer.
*--Serdar -
experts,
i have selected data from a data base table whose buffering is on,
when i want to check the runtime analaysis for the same selection condition after a while , now the data gets fetched from the buffer. no for accuracy i have to explicitly clear the buffer.
in short can i clear the buffer explicitly .
thanks in advance.the linked thread does not help at all:
> buffered tables are either fully, generic or single record buffered. If a fully buffered table is invalidated,
> the whole table is marked invalid in other application servers. It requires just one information: 'valid'
> or 'invalid'. This information is stored in the buffer of an application server corresponding to the table.
This completely missleading, it is not an interesting advantage that the fully buffered table has only one status field. One should be aware that needing one line of a fully buffered table, will result in reading once the whole table, that is an overhead which you should be considered.
Original question:
You should better measure the selection from the buffer if it works, that is your application. It is not necessary to measure the advantage of a buffer, that is done be somebody else. In a fast system, a select single will cost 100 or 200 microsec and a read from a buffer only 5 microsec.
Siegfried -
Urgent : How to clear data in Buffer ?
HI Experts,
I have a problem in executing fox formula.
After execution the formula reads some records but not changing / generating any. I think, The data it is reading is in buffer.
How can i CLEAR the data in Buffer, if there is any data stored in it ?
Thanks a bunch in advance...
R.Hi Rohit,
The function is getting executed from which place? web/gui, folder/bps0.
The buffer is cleared as soon as you exit the transaction/session.
Also, what's the need for clearing buffer, what's the issue that you are facing.
thanks
Message was edited by: Anand Jain -
SQL Buffer character limit too small.
I am attempting to execute an .SQL script file using the SQLPlus.exe command line. The script is a simple INSERT statement and executes fine as long as the text being inserted is english. But when the text is translated to either Traditional or Simplified Chinese the script generates the following error:
SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
Some background information:
1. The database was created with the National Character Set of AL16UTF16 and the Database Character Set of AL32UTF8.
2. The data types for the columns being populated are NVARCHAR2 and NCLOB.
3. SQLPlus command line syntax: SQLPLUS.EXE -MARKUP "HTML ON SPOOL ON" UID/PWD@DBNAME @CREATE-5-CHINESE1.sql > CREATE-5-CHINESE1.HTML
4. Environment variable setting: NLS_LANG=.UTF8
5. Contents of CREATE-5-CHINESE1.SQL:
WHENEVER SQLERROR EXIT SQL.SQLCODE
SET DEFINE OFF
SET ECHO ON;
SET ESCAPE ON;
CLEAR BUFFER
INSERT INTO tbl_lm_notification_nls (col_id_notification, col_id_language, col_name_notification, col_subject, col_text) VALUES (1001, 5, '默认测评者邀请', '%s - 你被选择参与', '你已经被选择参加360度反馈调查,本调查使用一种称为 xxxxxxxxxxxxxxxxx(R) 的网络反馈工具来收集对人们的强项和发展需要的观察信息。 \
你要完成的调查将要求你对自己在一些与工作相关的技能、行为和知识等方面进行评估。 你还将邀请与你的工作有关的人们完成调查。 这些测评者可以包括你的经理、同级人员、直接下属、客户及其他人。 评估信息的质量和准确性要依赖于你和你的测评者们诚实地提供反馈。\
A提交调查答案之后,xxxxxxxxxxxxxxxxx 将计算结果并产生报告。 报告将把你的自我看法与测评者对你的看法相比较。 这个比较可以指出先前未知的强项和发展需要,还将协助确认你和他人有一致看法的领域。\
报告中的信息将协助你回答两个重要问题:\
o 你最强的地方是什么?\
o 你最需要发展的地方是什么?\
了解你的强项和发展需要将协助你和你的组织识别适当的发展活动和你的未来成长计划。\
COMMIT;
EXIT SQL.SQLCODE;
6. Contents of CREATE-5-CHINESE.HTML (command output):
SQL*Plus: Release 10.1.0.2.0 - Production on Wed Oct 19 11:02:58 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
SQL> SET ESCAPE ON;
SQL> /
SP2-0103: Nothing in SQL buffer to run.
SQL> CLEAR BUFFER
SQL> INSERT INTO tbl_lm_notification_nls (col_id_notification, col_id_language, col_name_notification, col_subject, col_text) VALUES (1001, 5, '默认测评者邀请', '%s - 你被选择参与', '你已经被选择参加360度反馈调查,本调查使用一种称为 xxxxxxxxxxxxxxxxx(R) 的网络反馈工具来收集对人们的强项和发展需要的观察信息。 \
2 \
3 你要完成的调查将要求你对自己在一些与工作相关的技能、行为和知识等方面进行评估。 你还将邀请与你的工作有关的人们完成调查。 这些测评者可以包括你的经理、同级人员、直接下属、客户及其他人。 评估信息的质量和准确性要依赖于你和你的测评者们诚实地提供反馈。\
4 \
5 A提交调查答案之后,xxxxxxxxxxxxxxxxx 将计算结果并产生报告。 报告将把你的自我看法与测评者对你的看法相比较。 这个比较可以指出先前未知的强项和发展需要,还将协助确认你和他人有一致看法的领域。\
6 \
7 报告中的信息将协助你回答两个重要问题:\
8 \
9 o 你最强的地方是什么?\
10 o 你最需要发展的地方是什么?\
11 \
12 了解你的强项和发展需要将协助你和你的组织识别适当的发展活动和你的未来成长计划。\
13 \
14 ');
SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
SQL> /
SP2-0341: line overflow during variable substitution (>3000 characters at line 2)
SQL> COMMIT;
Commit complete.
SQL> EXIT SQL.SQLCODE;
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
I believe that increasing the size of SQL Buffer may fix the problem, but I am unsure of how to do this or if it is even possible.
Thanks in advance for any information that you can provide.
Mike Z.I'm not suggesting this is your problem, but
select status
into v_status,
from registration_offender_xref But you have declared
v_status varchar2(10);Much better to declare things like this
v_status registration_offender_xref.status%type;That way you know your variable is declared with a proper length, if the column length ever changes ... your code doesn't go kaboom.
Cheers, -
We are facing a problem with clearing the write statement buffer.
Our aim is to send mail by compressing the list memory, and the mail is sent in a loop. In each loop we have different set of data to be sent. But problem here is in the mails after the first mail, the data is getting appended in the subsequent mails.
For example,
do 10 times.
*****Have to clear buffer here*****
write :/ hi.
perform sendmail.
enddo.
The above code should give ten emails...with only "hi". In other words, the list output should be only one "hi" and not 10 times hi. WE have tried all possibilites to clear the write buffer, Any help in this regard is highly appreciated.Hi aakash,
1. use MODIFY LINE concept,
to modify the line number 1
(so that line 1 is RE-WRITTEN there itself,
instead of line 2, 3, 4,..etc)
2. just copy paste
3. It will give only 1 HI, in 10 loops.
4.
report abc.
DATA : MSG(100) TYPE C.
MSG = 'HI'.
DO 10 TIMES.
IF SY-INDEX = 1.
WRITE :/ MSG.
ELSE.
MODIFY LINE 1 LINE VALUE FROM MSG.
ENDIF.
ENDDO.
regards,
amit m. -
Bid Invitation search: Buffer table not up to date
When we try to click our bid invitation we encounter BUffer table not up to date error, we are using SRM5.0
we have run /$sync and /$tab to clear buffer
but still got the following error:
Note
The following error text was processed in the system SRP : Buffer table not up to date
The error occurred on the application server alisrpr4_SRP_03 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Function: BBP_PD_ABORT of program SAPLBBP_PDH
Function: BBP_PDLINK_GET of program SAPLBBP_PDLINK_OW
Function: BBP_PDORG_GETDETAIL of program SAPLBBP_PDORG
Form: PROCDOC_GETDETAIL of program SAPLBBP_PD
Function: BBP_PROCDOC_GETDETAIL of program SAPLBBP_PD
Function: BBP_PD_BID_GETDETAIL of program SAPLBBP_PD_BID
Form: BID_HEADER_ITEM_VIEW of program SAPLBBP_BID_INV
Form: BID_GETDETAIL of program SAPLBBP_BID_INV
Form: GETDETAIL_AND_FILL of program SAPLBBP_BID_INV
Function: BBP_BID_PROCESS of program SAPLBBP_BID_INV
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system SRP in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server alisrpr4_SRP_03 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server alisrpr4_SRP_03 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Hope you can assist us, thanksHi, cheann
It's not difficult to set breakpoint, here it is.
First logon with reproduce user to GUI, go to tr:SE37, put FM name and display.
Now push "ctrlshiftF9" at the same time, external breakpoint will be set, there is one message saying, external point has been set for user:XXXXX. make sure this then repeat the application to analyze by yourself. BP will stop.
If you have multiple server, execute as below.
in tr:SM51, Select the correct server push"ctrlshiftf8", now jump into this server and set breakpoint here,(it's
the same as above)
Hope this information is helpful for you to go ahead.
Regards
Lauren -
Fork step & Workflow Buffer error
Hi,
I have created workflow for parked documents approval before posting with single approver that was worked fine,
again i got some changes multiple approver should approver a document if one approver approved means another workitems should get delete
to achieve above task i have gone withFORK step i have give necessary branches 01 Parallel Branches 03 still if one approver released means other workitems not deleting
and same time the changes i have sent from dev to quality changes was showing in swdd t-code but when i create parked document new changes steps are not showing in SAP business place (SBWP) i have cleared buffer using RSWDCLRBUF RSUSR405 but these programs are not working .
please guide me to come out from above mentioned problems
Regards,
Srinihi srinivasan ,
'to achieve above task i have gone withFORK step i have give necessary branches 01 Parallel Branches 03 still if one approver released means other workitems not deleting'
Ans: This is exactly how a FORK works.
Your requirement is to send the workitem to different users and when one executes the woritem it should get deleted from others inbox. For this
1. Remove Fork.
2. use a Container of property multiline and pass the user ids there as different line items.
3. Now pass this container to the activity in the agents section.
By doing this the workitem will be received by all the user ids mentioned in the conatiner but ones the workitem is executed by any user it would be automatically removed from others inbox. Hope i understood your query properly.
Regards
Anik -
im working with oracle 9i, using SQLplus for data base queries,
i opened SQLplus to begin working on these queries and noticed that there was a large amout of errors "select missing" "unkown command" and others like this, this was weird because all the lines that the errors were comming from were /* commented out.
after a few attempts at debugging i noticed that when i put a 'clear buffer' in the first line of the .sql file, the output was almost normal, exect for a :
SP2-0103: Nothing in SQL buffer to run.
SP2-0103: Nothing in SQL buffer to run.
SSN FNAME
453453453 Joyce
666884444 Ramesh
888665555 James
987987987 Ahmad
999887777 Alicia
the first two lines followed by the correct output. when i take out the 'clear buffer' i get 3 sets of data, the first two that look like previous versions of the .sql files and the third being the most recent ( and correct) data, here is an example:
SSN
453453453
666884444
888665555
987987987
999887777
SSN
453453453
666884444
888665555
987987987
999887777
SSN FNAME
453453453 Joyce
666884444 Ramesh
888665555 James
987987987 Ahmad
999887777 Alicia
the first two data pieces were before i added the FNAME column to the query, although the new .sql looked like this:
COLUMN E.ESSN HEADING 'SSN' FORMAT 999999999
COLUMN E.FNAME HEADING 'NAME' FORMAT A10
SELECT E.SSN, E.FNAME
FROM EMPLOYEES E
WHERE E.FNAME = E.FNAME
MINUS
SELECT D.ESSN, E.FNAME
FROM DEPENDENT D, EMPLOYEES E
can someone plz help me with this? i have looked in my book and there is no real help there as i do believe its just a setting and i dont know where to look for it. thanx in advance.
(i tried to put as much info about this in this thread as i could, sorry if its overkill or lacking something)
Message was edited by:
user494779mpowel01, thanx for the reply
originally i was running this query in a file with lots of other queries and ending the query with a '/', when i put the reported query by itself, to try and debug, i ended it with '/' and after a few tries i changed it to ';', and that got rid of the listener message (ty).
however, the problem still remains with the buffer stuff, i still get the repeated data problems, meaning--that i get duplicate data, such as :
SSN FNAME
453453453 Joyce
666884444 Ramesh
888665555 James
987987987 Ahmad
999887777 AliciaSSN FNAME
453453453 Joyce
666884444 Ramesh
888665555 James
987987987 Ahmad
999887777 Alicia
any thoughts? -
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
제품: MFG_PO
작성날짜 : 2006-05-11
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
================================================================
PURPOSE
Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
transaction을 생성하기 위해 ROI에 data를 입력한다.
Receiving Transaction Processor는 insert 된 data를 실행한다.
Explanation
Instructions:
1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
edior에 script 내용을 cut&paste 한다.
2.사용가능한 PO no, User id, Org id를 결정한다.
3.sqlplus prompt에서 아래와 같이 입력한다.
SQL> @ezroi.sql
4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
rcv_transactions_interface tables에 insert 한다.
만일 PO shipment lind이 closed, cancelled, fully received 되었다면
ROI table에 data를 insert 하지 않는다.
Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
이 실행될 뿐이다.
6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
line이 pending 인지 error 상태인지 확인할 수 있다.
Notes:
1.Org_id parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: ORG_ID 를 선택한다.
b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
2.User_Name parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: USER_NAME 를 선택한다.
b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
Example
"eZROI.sql' script...
--*** eZROI ***
--*** by ***
--*** Preston D. Davenport ***
--*** Oracle Premium Applications Support ***
--*** Oracle Worldwide Global Support Services ***
--*** Date: 23-JUL-2003 - Beta release ***
--*** Date: 09-SEP-2003 - Rev A Added multi- ***
--*** shipment line capability ***
--*** Parameters: ***
--*** ORG_ID Organization ID ***
--*** USER_NAME FND User Name ***
--*** PO_NUMBER Purchase Order Number ***
--*** This script intended for a standard Purchase ***
--*** Order document to be inserted into the Oracle ***
--*** Receiving Open Interface (ROI) via the standard ***
--*** Oracle open interface api for a simple Receive ***
--*** transaction. ***
--*** Note: This script only considers open Purchase ***
--*** Orders. This script will not allow over- ***
--*** receipt, cancelled or closed PO's to be ***
--*** inserted into the ROI and received ***
CLEAR BUFFER
SET VERIFY OFF
SET LINESIZE 140
SET PAGESIZE 60
SET ARRAYSIZE 1
SET SERVEROUTPUT ON SIZE 100000
SET FEEDBACK OFF
SET ECHO OFF
DECLARE
X_USER_ID NUMBER;
X_PO_HEADER_ID NUMBER;
X_VENDOR_ID NUMBER;
X_SEGMENT1 NUMBER;
X_ORG_ID NUMBER;
X_LINE_NUM NUMBER;
BEGIN
DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
FROM PO_HEADERS_ALL
WHERE SEGMENT1 = '&PO_NUMBER'
AND ORG_ID = &ORG_ID;
SELECT USER_ID INTO X_USER_ID
FROM FND_USER
WHERE USER_NAME = UPPER('&USER_NAME');
INSERT INTO RCV_HEADERS_INTERFACE
HEADER_INTERFACE_ID ,
GROUP_ID ,
PROCESSING_STATUS_CODE ,
RECEIPT_SOURCE_CODE ,
TRANSACTION_TYPE ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
LAST_UPDATE_LOGIN ,
VENDOR_ID ,
EXPECTED_RECEIPT_DATE ,
VALIDATION_FLAG
SELECT
RCV_HEADERS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.NEXTVAL ,
'PENDING' ,
'VENDOR' ,
'NEW' ,
SYSDATE ,
X_USER_ID ,
0 ,
X_VENDOR_ID ,
SYSDATE ,
'Y'
FROM DUAL;
DECLARE
CURSOR PO_LINE IS
SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
FROM PO_LINES_ALL PL ,
PO_LINE_LOCATIONS_ALL PLL ,
MTL_PARAMETERS MP
WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
AND PL.PO_LINE_ID = PLL.PO_LINE_ID
AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
BEGIN
FOR CURSOR1 IN PO_LINE LOOP
IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
THEN
INSERT INTO RCV_TRANSACTIONS_INTERFACE
INTERFACE_TRANSACTION_ID ,
GROUP_ID ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
LAST_UPDATE_LOGIN ,
TRANSACTION_TYPE ,
TRANSACTION_DATE ,
PROCESSING_STATUS_CODE ,
PROCESSING_MODE_CODE ,
TRANSACTION_STATUS_CODE ,
PO_LINE_ID ,
ITEM_ID ,
QUANTITY ,
UNIT_OF_MEASURE ,
PO_LINE_LOCATION_ID ,
AUTO_TRANSACT_CODE ,
RECEIPT_SOURCE_CODE ,
TO_ORGANIZATION_CODE ,
SOURCE_DOCUMENT_CODE ,
DOCUMENT_NUM ,
HEADER_INTERFACE_ID ,
VALIDATION_FLAG
SELECT
RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.CURRVAL ,
SYSDATE ,
X_USER_ID ,
SYSDATE ,
X_USER_ID ,
0 ,
'RECEIVE' ,
SYSDATE ,
'PENDING' ,
'BATCH' ,
'PENDING' ,
CURSOR1.PO_LINE_ID ,
CURSOR1.ITEM_ID ,
CURSOR1.QUANTITY ,
CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
CURSOR1.LINE_LOCATION_ID ,
'RECEIVE' ,
'VENDOR' ,
CURSOR1.ORGANIZATION_CODE ,
'PO' ,
X_SEGMENT1 ,
RCV_HEADERS_INTERFACE_S.CURRVAL ,
'Y'
FROM DUAL;
DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
ELSE
DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
END IF;
END LOOP;
DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
END;
COMMIT;
END;
SET VERIFY ON
Reference Documents
Note 245334.1I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
Did you make any progress ??
Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
Makefile:120: recipe for target 'vmblock.ko' failed
Last edited by crankshaft (2014-01-10 11:32:32)
Maybe you are looking for
-
How do I assign a file to a drive other than the drive that contains my program software?
I've just installed a video editing program on my new Mac Pro Xeon 64 bit workstation. I want to ensure that all my media files reside on a drive other than the drive that contains programs. I had no problem doing this on my old Dell. How do I do thi
-
What is PB similar to? Where can i learn to grasp it?
Hi all, I am excited about Pixel Bender and id really like to learn more about it but i dont know where to look. I tried googling for "image processing formula" but that didnt really help much. I have also seen people recommend openGL or GSML or some
-
HT2513 The server responded with an error
I received the message "The server responded with an error" while copy and pasting details for an event into the iCalendar. It is now frozen and wont close or go away. UGH!!
-
Adobe Premiere shows "Created with Adobe Premiere trial version"
Adobe Premiere shows "Created with Adobe Premiere trial version" I thought it's a fully function trial isn't that right? I made one project to test the program and it didn't have that on the screen but when i started working on the second one it star
-
Help! I get this window: "You have made changes to your
I-photo library using a newer version of i-photo. Please quit and use the latest version of i-photo". I have been trying to recover files on a backup external drive. Should't this read "use an earlier version of i-photo? I have 2.0.1 in my computer.