전체 DEFFER TRASACTION 에 대한 DEFCALL을 알아볼수 있는 SCRIPT

제품 : ORACLE SERVER
작성날짜 : 2002-04-29
전체 DEFFER TRASACTION 에 대한 DEFCALL을 알아볼수 있는 SCRIPT
==============================================================
PURPOSE
다음은 REPLICATION MANAGER에서 확인이 가능한 DEFFER TRANSACTION에
대한 DEFCALL의 내용을 알수있는 SCRIPT를 제공한다.
Explanation
REPLICATION MANAGER 에서 GUI 환경에서 알수 있었던 DEFFER TRAN-
SATION에 대한 DEFFER CALL 을 알수 있는 SCRIPT이다.
Exaplanation
------------------------ start script ----------------------------
REM ==============================================================
REM This routine displays all calls for all TXN
REM
REM
REM Run the script in sqlplus connected as the
REM REPADMIN or a user who has permissions
REM to query the deftran and defcall views.
REM
REM Note: Output is limited to 1000000 bytes.
REM
REM ==============================================================
spool trans.log
set serveroutput on size 1000000
DECLARE
argno number;
argtyp number;
typdsc char(15);
rowid_val rowid;
char_val varchar2(255);
date_val date;
number_val number;
varchar2_val varchar2(2000);
raw_val raw(255);
callno number;
start_time varchar2(255);
destination varchar2(255);
v_tranid deftran.deferred_tran_id%TYPE;
local_node varchar2(300);
tranid varchar2(70);
schnam varchar2(35);
pkgnam varchar2(35);
prcnam varchar2(35);
operation varchar2(35);
argcnt number;
cursor c_deftran is
select deferred_tran_id
from deftran;
cursor c_defcall is
select callno,
deferred_tran_id,
schemaname,
packagename,
procname,
argcount
from defcall
where deferred_tran_id = v_tranid;
cursor c_operation is
select substr(procname,5,12)
from defcall
where deferred_tran_id = v_tranid;
cursor c_started is
select to_char(start_time,'MON-DD-YYYY:HH24:MI:SS')
from deftran
where deferred_tran_id = v_tranid;
cursor c_destination is
select dblink from deftrandest
where deferred_tran_id = v_tranid;
begin
select global_name into local_node from global_name;
dbms_output.put_line(chr(10)||'PRINTING ALL CALLS FOR SITE:
'||local_node||chr(10));
FOR c_deftran_rec in c_deftran
LOOP
v_tranid := c_deftran_rec.deferred_tran_id;
argno := 1;
open c_defcall;
open c_operation;
open c_started;
open c_destination;
while TRUE LOOP
fetch c_defcall into
callno,tranid,schnam,pkgnam,prcnam,argcnt;
fetch c_operation into operation;
fetch c_started into start_time;
fetch c_destination into destination;
exit when c_defcall%NOTFOUND;
dbms_output.put_line('*******************************************');
dbms_output.put_line('Transaction id: '||tranid);
dbms_output.put_line('Transaction logged on: '||start_time);
dbms_output.put_line('DML operation is a ' || operation||'.');
dbms_output.put_line('Destination to: ' || destination);
dbms_output.put_line('Call to ' || schnam||'.'||pkgnam||'.'||prcnam);
dbms_output.put_line('ARG ' || 'Data Type ' || 'Value');
dbms_output.put_line('--- ' || '--------------- '
|| '-----------------------');
argno := 1;
while TRUE LOOP
if argno > argcnt then
exit;
end if;
argtyp := dbms_defer_query.get_arg_type(callno, argno, tranid);
if argtyp = 1 then
typdsc := 'VARCHAR2';
varchar2_val := dbms_defer_query.get_varchar2_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '|| varchar2_val);
end if;
if argtyp = 2 then
typdsc := 'NUMBER';
number_val := dbms_defer_query.get_number_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '|| number_val);
end if;
if argtyp = 11 then
typdsc := 'ROWID';
rowid_val := dbms_defer_query.get_rowid_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '|| rowid_val);
end if;
if argtyp = 12 then
typdsc := 'DATE';
date_val := dbms_defer_query.get_date_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '
|| to_char(date_val,'YYYY-MM-DD HH24:MI:SS'));
end if;
if argtyp = 23 then
typdsc := 'RAW';
raw_val := dbms_defer_query.get_raw_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '|| raw_val);
end if;
if argtyp = 96 then
typdsc := 'CHAR';
char_val := dbms_defer_query.get_char_arg(callno, argno);
dbms_output.put_line(to_char(argno,'09')
|| ') ' || typdsc||' '|| char_val);
end if;
argno := argno + 1;
end loop;
end loop;
close c_defcall;
close c_operation;
close c_started;
close c_destination;
END LOOP;
end;
spool off
Reference Documents
<Note:117756.1>

Similar Messages

  • Error in executing eCATT GUI Script

    Hi
    I am getting following error (in bold) while executing eCATT GUI Script. This happens only for GUI Scripts and not for TCD scripts. Please help me to solve this issue.
    <b>0000000195  Test Scrpt ZGUI_SCRIPT4 Version 1 - SECATT [Without Interruption]
    R01 800 SANDEEPK1 E 620 sapnw10 Windows NT MSSQL 26.05.2006 12:42:29
    ZGUI_SCRIPT4 [0,109 sec] Version 1 ZGUI_SCRIPT4
    Tgt System TEST_ECAT->ECATT_SAPNW10_800_E->T90CLNT090 (R01 800 ALEREMOTE E 620 sapnw10
    Windows NT MSSQL)
    Error in eCATT function SAPGUI
    Destination ECATT_SAPNW10_800_E RFC error
    service 'sapgw-1' unknown / CPI-C error CM_PRODUCT_SPECIFIC_ERROR.</b>
    Thanks in Advance.
    Regards,
    Sandeep K.

    Hi Sandeep,
        My self , Sreedhar D, working eCATT using SAPGUI recording.
        i think ur problem is resolved. Can u help for the below issue.
          Scenario:       
           And i working on testing server which does not have any trasaction, i have to record the transaction using RFC connection to different machine.
           I did all the that process and able to connect  remote machine.
          i started doing the recoding in SAPGUI after creation of sys. Data container by specifying RFC connection.
            I recorded the script, but when i try to execute the same this attached error r coming.
           But i recorded the same using TCD(Recorded) using remote connection and able to sucessfully execute.
           One more thing also, we used write the script for reading the test data from Excel and pass as parameters using TCD(Recording).
    Below is the error
         Target sys ECATT_SAPTD120_400_E_0002
         Destination ECATT_SAPTD120_400_E_0002 RFC Error
          Waiting for ur response. Thanks in Adavance.
    Sreedhar d

  • Find Script/Smart form

    Hi, I have been given the program name. How do I find out which form/script is attached to that program?

    Hi,
    Using the NACE trasaction code you come to know which form and the Drier Program is used, first select the application type in NACE then Press the Output Types, you need to know the Output type then Select the output type then press the Processing Routines then you will get the Program name and the Layout nmae
    and also, Look at the table TNAPR to know the Layout name
    Regards
    Sudheer

  • Executing Chained eCATT scripts

    Hi Gurus,
    I have created a chain of scripts (F-47,F-48,FB60 & F-54). In Test Configuration I have added 4 different Test Data Containers, each containing data for each T-Code.In the Variants tab, I have added the Internal Variants using the 'Variant Maintenance Assistance'. So, now for one full run of the script I have four variant, one for each T-code.
    The problem is, when I run the chained script, F-47,F-48 & F-54 is fetching data from the Test Data Containers but the FB60 variant is  not fetching any data from the Test Data Container, but is using the default value only.
    Please help.
    Best Regards,
    Debojit Dey

    Hello Debojit,
    the test configuration is the binding element between testdata and one testscript.
    If you "chain" testscripts as you describe, I assume you are using REF command.
    The testconfiguration can link only one script, let's call it master script, invoking  transaction scripts (F-47,..) by using REF.
    Building such chains makes sense in terms of testing business processes, where one trasaction is a successor to the next, consuming data created by the predecessor.
    On the other hand executing multiple independend tests requires building of multiple test configurations and packaging of them in the SAP Test Workbench (Transaction STWB_1 STWB_2 STWB_WORK ) for collective execution.
    Comming back to your sample and implied you are testing a business process, you can transfer testdata from one REF to the next by using eCATT parameters in your masterscript. Defining these eCATT parameters as import parameters of the master script, they will appear in you test configuration and can be liked to parameters from test data containers.
    Best regards
    Jens

  • 하나의 DEFERRED TRANSACTION 에 대한 DEFCALL을 알수있는 PROCEDURE.

    제품 : ORACLE SERVER
    작성날짜 : 2002-11-15
    하나의 DEFERRED TRANSACTION 에 대한 DEFCALL을 알수있는 PROCEDURE.
    =================================================================
    PURPOSE
    다음은 하나의 DEFERRED TRANSACTION 에 대한 DEFCALL을 알수 있는
    PROCEDURE를 제공한다.
    Explanation
    각각의 DEFERRED TRANSACTION에대한 DEFCALL을 알 수 있음에 따라
    DEFERRED TRANSACTION 의 ENTRY 에 대하여 다음과 같은 PROCEDURE를
    이용하여 TRANSACTION을 추적할수 있다.
    Example
    다음의 SCRIPT는 REPADMIN으로 실행하여야 하며(sys user도 가능)
    SQLPLUS에서 SET SERVEROUTPUT ON 을 실행후 사용하여야 한다.
    CREATE OR REPLACE PROCEDURE show_call (t IN VARCHAR2) IS
    -- Print the argument type and values of a deferred call.
    -- Modified for Oracle8 and supports all replicated datatypes including
    -- NCHAR, NVARCHAR and all LOBs. (BFILES are not replicated [yet])
    -- NOTE: set serveroutput on before calling this procedure
    -- set serveroutput on size 100000
    argno number;
    argtyp number;
    argform number;
    callno number;
    tranid VARCHAR2(30);
    typdsc char(15);
    rowid_val rowid;
    char_val varchar2(255);
    nchar_val nvarchar2(255);
    date_val date;
    number_val number;
    varchar2_val varchar2(2000);
    nvarchar2_val nvarchar2(2000);
    raw_val raw(255);
    cursor c_defcall (t VARCHAR2) is
    select callno, deferred_tran_id, schemaname, packagename, procname,
    argcount
    from defcall
    where deferred_tran_id = t;
    BEGIN
    FOR c1rec in c_defcall (t) LOOP
    dbms_output.put_line('Call Number: ' ||c1rec.callno);
    dbms_output.put_line('Call to '
    ||c1rec.schemaname||'.'||c1rec.packagename||'.'||c1rec.procname);
    dbms_output.put_line('# of arguments: '||c1rec.argcount);
    dbms_output.put_line(' ARG ' || 'Data Type ' || 'Value');
    dbms_output.put_line(' --- ' || '--------------- ' ||
    argno := 1;
    callno := c1rec.callno; tranid := c1rec.deferred_tran_id;
    WHILE TRUE LOOP
    if argno > c1rec.argcount then
    exit;
    end if;
    argtyp := dbms_defer_query.get_arg_type(callno, argno, tranid);
    argform := dbms_defer_query.get_arg_form(callno, argno, tranid);
    if argtyp = 1 and argform = 1 then
    typdsc := 'VARCHAR2';
    varchar2_val := dbms_defer_query.get_varchar2_arg(callno, argno,
    tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(varchar2_val,'(NULL)'));
    elsif argtyp = 1 and argform = 2 then
    typdsc := 'NVARCHAR2';
    nvarchar2_val := dbms_defer_query.get_nvarchar2_arg(callno, argno,
    tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(translate(nvarchar2_val using char_cs),'(NULL)'));
    elsif argtyp = 2 then
    typdsc := 'NUMBER';
    number_val := dbms_defer_query.get_number_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(to_char(number_val),'(NULL)'));
    elsif argtyp = 11 then
    typdsc := 'ROWID';
    rowid_val := dbms_defer_query.get_rowid_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(rowid_val,'(NULL)'));
    elsif argtyp = 12 then
    typdsc := 'DATE';
    date_val := dbms_defer_query.get_date_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(to_char(date_val,'YYYY-MM-DD HH24:MI:SS'),'(NULL)'));
    elsif argtyp = 23 then
    typdsc := 'RAW';
    raw_val := dbms_defer_query.get_raw_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(raw_val,'(NULL)'));
    elsif argtyp = 96 and argform = 1 then
    typdsc := 'CHAR';
    char_val := dbms_defer_query.get_char_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(char_val,'(NULL)'));
    elsif argtyp = 96 and argform = 2 then
    typdsc := 'NCHAR';
    nchar_val := dbms_defer_query.get_nchar_arg(callno, argno, tranid);
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(translate(nchar_val using char_cs),'(NULL)'));
    elsif argtyp = 113 then
    typdsc := 'BLOB';
    varchar2_val := dbms_lob.substr(dbms_defer_query.get_blob_arg(callno,
    argno, tranid));
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(varchar2_val,'(NULL)'));
    elsif argtyp = 112 and argform = 1 then
    typdsc := 'CLOB';
    varchar2_val := dbms_lob.substr(dbms_defer_query.get_clob_arg(callno,
    argno, tranid));
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(varchar2_val,'(NULL)'));
    elsif argtyp = 112 and argform = 2 then
    typdsc := 'NCLOB';
    nvarchar2_val :=
    dbms_lob.substr(dbms_defer_query.get_nclob_arg(callno, argno, tranid));
    dbms_output.put_line(to_char(argno,'09')||') '||typdsc||'
    '||nvl(translate(nvarchar2_val using char_cs),'(NULL)'));
    end if;
    argno := argno + 1;
    end loop;
    end loop;
    end;
    Examples
    SQL> select * from deftran;
    DEFERRED_TRAN_ID DELIVERY_ORDER D START_TIM
    3.6.74010 4.9392E+12 R 05-SEP-98
    2.8.74149 4.9392E+12 R 05-SEP-98
    3.0.73506 4.9392E+12 D 02-SEP-98
    SQL> set serveroutput on size 1000000
    SQL> execute show_call('2.8.74149');
    Call Number: 0
    Call to SCOTT.DEPT$RP.REP_UPDATE
    # of arguments: 11
    ARG Data Type Value
    01) RAW 06060707
    02) NUMBER 70
    03) NUMBER (NULL)
    04) CHAR WGT
    05) CHAR (NULL)
    06) CHAR ORLANDO
    07) CHAR RMSC
    08) VARCHAR2 INITIAL
    09) VARCHAR2 MOBAY.WORLD
    10) VARCHAR2 MOBAY.WORLD
    11) VARCHAR2 N
    Call Number: 1
    Call to SCOTT.DEPT$RP.REP_UPDATE
    # of arguments: 11
    ARG Data Type Value
    01) RAW 06060707
    02) NUMBER 75
    03) NUMBER (NULL)
    04) CHAR WGT
    05) CHAR (NULL)
    06) CHAR ORLANDO
    07) CHAR RMSC
    08) VARCHAR2 MOBAY.WORLD
    09) VARCHAR2 MOBAY.WORLD
    10) VARCHAR2 MOBAY.WORLD
    11) VARCHAR2 N
    PL/SQL procedure successfully completed.
    Reference Documents
    <Note:2103883.6>

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • If Statement in SAP Scripts

    Hi All,
    I have written the below If statement in  SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..
    /:           IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /:           &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /:           &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /:           &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /:           ELSE
    /:           ENDIF.

    Hi neha,
    Try to use the '/E' fo rnext line
    /E->Extended line
    Here is a code:
    /: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /E  &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /E  &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /E &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /: ELSE
    /: ENDIF.
    Hope this helps you.
    Regards,
    Rajani

  • Installation Problem on 11g, RHEL 5 - Unable to generate temporary script

    Hello all,
    This is for the first time i am encountering this kind of error on 11g. Half way through installation i get this error.
    All parameters set correct, used the official installation technique (works fine previously), except for this time i am getting a weird error, which does not allow me to continue with the installation.
    Please help.
    Environment
    Oracle 11g
    RHEL 5
    Error on GUI -
    OUI-10053: Unable to generate temporary script: {0}. Unable to continue install
    Error on command prompt -
    OUI-10053:Unable to generate temporary script: /u01/app/oraInventory/orainstRoot.sh. Unable to continue install.
    Help appreciated.
    Thanks

    Hi Monu Koshy
    Can you please control the user rights and also the df ?
    ls -al /u01/app/oraInventory/
    df -h /u01/app/oraInventory/
    Regards,
    Hub

  • 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.1

    I 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)

  • Pluginspage is not working in embed script in firefox 36 version. Actually wanna downlaod jre 1.8 . It was working on firefox 22 version. Please suggest

    <pre><nowiki>function createEmbed(divID, context, locale, server,client)
    var d = document.getElementById(divID);
    d.innerHTML = '<EMBED type="application/x-java-applet;version=1.8" CODE="com.cybertrust.webrao.WebRAOApplet.class"'+
    'JAVA_CODEBASE="'+context+'" '+
    'ARCHIVE="WebRAO.jar" '+
    'NAME="WebRAOApplet" '+
    'MAYSCRIPT="true" '+
    'pluginspage="http://javadl.sun.com/webapps/download/GetFile/1.8.0_31-b13/windows-i586/xpiinstall.exe"'+
    'L="'+locale+'" ' +
    'PinTimeout="'+server+'"'+
    'ClientTimeout="'+client+'"'+
    'separate_jvm="true"'+
    'java_version="1.8.0_31" />';
    }</nowiki></pre>
    We are using the above script. Defined the application/x-java-applet;version=1.8 So. as per the oracle documentation, Firefox has to check whether java version 1.8 or above is available and then run the applet thereby opening the run window and finally the applet window has to open. So the expectation is if 1.8 jre is not available it has to trigger the pluginspage attribute thereby redirecting to the jre autodownload url mentioned in pluginspage. This code use to work for firefox 21. Not sure why it will not work with any of the versions above 21. Right now we are trying with firefox 36. The same code works with IE 11 also. Please suggest is there any solution for the same.

    There are some updates happening to [https://www.mozilla.org/en-US/plugincheck/]
    However to further investigate I would suggest troubleshooting the installation of Java:
    *[http://kb.mozillazine.org/Java#Java_Deployment_Toolkit_plugin]
    *[https://support.mozilla.org/en-US/kb/troubleshoot-issues-with-plugins-fix-problems]
    Or also checking with Mozillazine or stackoverflow.com for compatibility and development troubleshooting is a good place to also look.

  • Questions on scripts, tables & transfer objects between clients.

    1. In script, how to use the same print program for two different layouts? with procedure.!
    2. Why cant sapscripts be client independent.?
    3. Want to maintain a table in dev server and if i update the data, it should simultanously update in Quality and Production servers. How? please explain in details.
    4. How to transfer object between clients.? explain.
    Points will be promptly rewarded for HELPFULL answers.!

    Hi!
    3. With SE01, you can create a transport request for all table entries.
    SE01 - Create button - Workbench request - Give description and save
    Select the created request and click on Display object list.
    Click on Display - Change button
    Insert line button
    ProgID: R3TR
    Object: TABU
    Object name: Z_YOUR_TABLE
    Double click on the table name
    Insert line
    Key: *
    Save everything
    Release the transport in SE10 transaction and transport with STMS transaction.
    Regards
    Tamá

  • Need scripting help to open and save 250 MSWord files

    I'm clueless about programming and I have 250 Word files that need to be saved down as Word 5.1. I briefly tried to learn Word Macros, AppleScript, Automator, with no luck so far.
    What's the best software to use for this and how do I do it? Is there already a script somewhere that I can download?
    Thanks!

    I'm clueless about programming and I have 250 Word files that need to be saved down as Word 5.1. I briefly tried to learn Word Macros, AppleScript, Automator, with no luck so far.
    What's the best software to use for this and how do I do it? Is there already a script somewhere that I can download?
    Thanks!

  • TS2570 Still cant access my computer, followed instructions to perform a safe boot and last line of script it shows: BootCacheControl: Unable to open /Var/db/BootCache.playlist:2 No such file or directory. Any idea?

    Brand new Mac Book Pro
    Purchased in Mexico's Department store Liverpool on June 20th 2012
    Purchased Memory upgade to 8Gb, on june 27th, at Apple Store Memorial City, Houston
    Upgraded memory from 4Gb to 8Gb on June 28th.
    Tried to write on my external HD (previously written on a windows based PC) with no success.
    Upon reccomendation from a Mac assistant, copied all my external HD contents into my Mac Hard drive.
    Then formatted my external HD and copied back all my information to it.
    deleted all the  information from my MacBook Pro HD.
    Attempted to repeat the same operation with another external HD, but got a message saying there was not enough epace on the computer HD (even though I have a 750Gb Hard Drive.
    Looked in the trash bin and there it was, all the information previously deleted..
    Could not empty the trash bin, although I got a message asking me to safely delete all the information from the trash bin,
    Could not get enough space released, after several attpempts the trash bin was finally emptied.
    All happy getting acquainted with my new MacBook Pro. Two days later, got a gray screen and not able to start the computer.
    Looking in to Mac support I found article http://support.apple.com/kb/TS2570 and followed instructions to perform a safe boot:
    "Perform a Safe Boot
    Simply performing the Safe Boot may resolve this issue.
    Shut down your Mac. If necessary, hold your Mac's power button for several seconds to force it to power down.
    Start your Mac, then immediately hold the Shift key. This performs a Safe Boot. Advanced tip: If you want to
    see the status of a Safe Boot as it progresses, you can hold Shift-Command-V during start up (instead of just Shift).
    Note: A Safe Boot takes longer than a typical start up because it includes a disk check and other operations.
    The following is the script that appears on the screen upon safe boot. and halt after the last line.
    AppleACPICPU:Processor Id=6 LocalAplicId=255 Disabled
    AppleACPICPU:Processor Id=7 LocalAplicId=255 Disabled
    AppleACPICPU:Processor Id=8 LocalAplicId=255 Disabled
    calling mpo_policy_init for TMSafetyNet
    Security policy loaded: Safety net for Time Machine (TMSafetyNet)
    calling mpo_policy_init for Sandbox
    Security policy loaded: Seatbelt sandbox policy (Sandbox)
    calling mpo_policy_init for Quarantine
    Security policy loaded: Quarantine Policy (Quarantine)
    Copyright (c) 1982, 1986, 1989, 1991, 1993
            The Regents of the University of California. All Rights Reserved.
    MAC Framework Succesfully initializad
    using 16384 buffer headers and 10240 cluster IO buffer headers
    IOAPIC: Version 0x20 Vextors 64:87
    ACPI: System State [SO S3 S4 S5] (S3)
    PFM64 (36cpu) 0xf10000000, 0xf0000000
    Aplconsole relocated to 0xf1000000
    PCI configuration changed (bridge=16 device=4 cardbus=0)
    [ PCI configuration end, bridges 12 devices 16 ]
    Firewire (OHCI) Lucent ID 5901 built-in now active, GUID 3c0754fffe9b2aa2; max speed s800.
    Pthread support ABORTS when sync kernel primitives misused
    com.apple.AppleFSCompressionTypeZlib kmod start
    com.apple.AppleFSCompressionTypeDataless kmod start
    com.apple.AppleFSCompressionTypeZlib load succeeded
    com.apple.AppleFSCompressionTypeDateless load succeeded
    AppleIntelCPUPowerManagementClient: ready
    BTCOEXIST off
    wl0: Broadcom BCM4331 802.11 Wireless controller
    5.100.98.75
    AppleUSBMultitouchDriver::checkStatus - received Status Packet, Payload 2: device was reinitializad
    rooting via boot-uuid from /chosen: 6E918706-FC0D-37460-A3A0-6268A51DF93B
    Waiting on <dict ID="0"><key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleAPIPCI/SATA@1F,2/AppleIntelPchSe riesAHCI/PRT0@0/AOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlock
    storageevice /IoBlockStorageDriver/TOSHIBA MK7559GSXF Media/IOGUIDPartit
    BSD root: disk0s2, major 14, minor 2
    Kernel is LP64
    com.apple.launchd 1   com.apple.launchd 1   *** launchd[1] has started up. ***
    com.apple.launchd 1   com.apple.launchd 1   *** Verbose boot, will log to /dev/console. ***
    Running fsck on the boot volume...
    ** /dev/rdisk0s2 (NO WRITE)
    ** Root file system
       Executing FSCK_HFS (version diskdev_cmds-540.1~25).
    BootCacheControl: UNable to open /Var/db/BootCache.playlist:2 No such file or directory
    launchctl:Dubious permissions on file (skipping): /Library/LaunchDaemons
    launchctl:Dubious permissions on file (skipping): /System/Library/LaunchDaemons
    Any help or suggestions on what to do next would be welcomed.
    I am in the middle of the Atlantick, stuck with a brand new, non working Apple MacBook Pro.
    Best regards
    Sergio Ramos

    Reinstalling MacOS does NOT fix the problem for me.  I'm still searching a solution !
    Bernard

Maybe you are looking for