Query statement of 'Get BP Code of last AR Invoice'

Hi,
I have the query for A/P Invoice to show the last A/P BP when I click Shift + F2. The statement in Query is as follows:
Select T0.CardCode from OPCH T0 where T0.DocNum = $[$8.0.Number] - 1
Could anybody tell me what the statement would be if I want to have the last A/R BP automatically show in A/R Invoice when I click Shift + F2?
Thanks!

Yes, Shift + F2 is for FMS. I would like to have FMS for the field of BP Code under A/R invoice to be linked with the query - - show the BP code of last A/R Inovice.
Could you please tell me what the query statement (conneted to FMS) would be? Thanks!
Currently I have the Query workable under A/P Invoice, the statement for this query is:
Select T0.CardCode from OPCH T0 where T0.DocNum = $[$8.0.Number] u2013 1

Similar Messages

  • How to use : bind character in DB adapter Select Query SOA11g. Getting Error code :17003 .java.sql.SQLException: Invalid column index error

    Hi All,
    The Actual query to perform is below.
    SELECT name,number from emp  WHERE CASE WHEN :1='T' AND term_date IS Not NULL THEN 1 WHEN :1='A' AND term_date IS NULL THEN 1 WHEN :1='ALL' THEN 1 ELSE  1 END = 1;
    I have tried in DB adapter like below as a parameter for :1 as #vInputParam
    SELECT name,number from emp  WHERE CASE WHEN #vInputParam='T' AND term_date IS Not NULL THEN 1 WHEN #vInputParam='A' AND term_date IS NULL THEN 1 WHEN #vInputParam='ALL' THEN 1 ELSE  1 END = 1;
    Getting Error code :17003 .java.sql.SQLException: Invalid column index error.
    Please suggest me on using ':' bind character in DB adapter Select Query SOA11g.
    Can someone help me on this please?
    Thanks,
    Hari

    Hi,
    Could you please make sure your binding style(Oracle Positional,Oracle named..etc) of the Seeded VO and Custom Vo are same.
    This is the option you will get when you are extending your vo. So make sure that both are same.
    You can refer the below link too
    VO extension leads to "Invalid column index" exception
    Thanks
    Bharat

  • HT4009 How long does it take for apple to return with the needed code for in app purchases.  We have a developer working through elance that states he submitted a finalized version last friday to apple and is still waiting to get the code back from Apple?

    We are being told by our elance developer that he is just waiting on apple to return the code for in app purchases with our app.  he says he had to submit a complete version before they would give it to him and that he did that last friday.  Needless to say i don;t beleive him.  Can anyone validate for me the process of getting the code installed into our app and how long it should really take.

    I'd say an average of one week, depending on backlog. Expect two if you are outside the US.
    The outage has caused some lingering effects that seem to be delaying things for some, however.
    Patience is key in all things when it comes to being a developer

  • How to get the SQL Query statement of a Search Form ?

    Hi all,
    We have a requirement to send the query result of an ADF Search Form into report application (Crystal rpt).
    Crystal can accept data source as query statement. SO I think of getting the exact query statement "generated" by the ADF Search form and send it to crystal.
    Is this possible ?
    Thank you very much,
    xtanto

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How to get these Attribute class in Query Statement ?

    Hi All,
    I have 2 SCCM primary site, the first one is a migrated site from SCCM 2007 to SCCM 2012 SP1 & then upgraded to SCCM 2012 R2, the second one is a newly created SCCM 2012 R2 site.
    I was trying to create a collection membership rule using the query statement on the second site & i found there are attribute classes which were missing on this site.
    Under query rule /edit query rule in the criteria tab i am trying to define a new criteria with Criteria type : Simple value & then i click the select under "Where" for chossing the attribute class & a value called "Winlogon64"
    don't exists there. There are other classes which are missing too.
    then i go to my first site & i can see the classes there, collection query rule are also defined using the attribute classes.
    Now my questions are :-
    1. Does these settings gets migrated from SCCM 2007 to SCCM 2012 on the first site?
    2. How can we get this in SCCM 2012 R2 on the second site?
    Experts please help.
    Thanks,
    Pranay.

    It sounds a lot like you where using an extension on your hardware inventory. Changes to your hardware inventory are not migrated, so you would need to recreate that change in the hardware inventory.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • To get first day and last day of month.

    Please help, I need a sql function that will return the first day of a month when I enter a date that is on or before the 15th and then returns the last day of the month when I enter a date of the 16th or later.
    This is my query but I get ORA-00932: inconsistent datatypes: expected DATE got CHAR error.
    select CASE
    WHEN to_char(:p_date, 'DD') < 15 THEN
    add_months((LAST_DAY(:p_date)+1), -1)
    WHEN to_char(:p_date, 'DD') > 15 THEN
    TO_CHAR(LAST_DAY(:p_date))
    end
    from dual;
    Thanks

    Hi,
    please use the good habit to mark your questions as answered when you are satisfied with the answers.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Spool process running on "Querying" state

    Hi,
    One of the work process is running on "querying" state, for every 3 minutes. And raising up even we kill it on process overview. At the end of the process it is core dumping on system with the error below;
    ABAP runtime errors    SYSTEM_CORE_DUMPED
           Occurred on     16.07.2008 at 00:31:48
    Process terminated by signal 11.
    What happened?
    Error in the SAP Basis system
    ABAP/4 processor detected an internal system error.
    The current ABAP program "RSPOWP00 " had to be terminated because the ABAP
    processor discovered an invalid system state.
    Even though we set "Do not query host spooler for output status" on SPAD, the system is still querying those printers that we already set this parameter.
    The system is HP-UX and the spool access method "S" configured for each printer. I am sure that there's no any network problem between server and the host spooler. Kernel version is 4.6C.
    What can cause the problem? Anyone has a suggestion?
    Thank you


    ** W34 LOOP (SPO) *********
    T  alloc memory 14252ee80 (96)
    T  module rspoerrh matches rspo* -> project Sp
    T  alloc memory 14252eee0 (56)
    T  alloc memory 14252ef18 (80)
    T  alloc memory 14252ef68 (80)
    T  alloc memory 14252efb8 (64)
    T  alloc memory 14252eff8 (64)
    M  invalidate act fields from T34/M0
    M  ThRqWaitFor: wait for next request new time slice
    M  event-handling: W34, key 905, flag 956
    M  ThRqWaitFor: wait for request
    M Wed Jul 16 13:06:41 2008
    M  ThRqAccept: allowed rq_type = 0
    M  set act fields to T34/M0
    M  ThSetDefaultTaskType: set task type ZTTASPO
    M  ThIsAsyncInput (T34, M0, ..), allowed rq_type = TH_ALL_RQ
    M  LOCK WP ca_blk 2
    M  LOCK APPC ca_blk 1800
    M  set act fields to T34/M0
    M  ThClearNextFields ()
    M  rq_id 839 for T34 U35 M0 I0 recv 0 (Mstat 66, len -1) (from dispatcher)
    M    resCheck=0 Tname:
    M  set MSG_SPOASYNC in Overhead
    S  Create Spool Alarm Message
    M  set SPOOL ALARM
    M  ThRqInCheck: o.k.
    M  ThRqAccept: saved MODE_REC = 40
    M  Adresse   Offset  SPOASYNC-Request
    M  -
    M  a00fa60  000000  00000000 02000000 41000000 00000000 |........A.......|
    M  a00fa70  000016  00000000 00000000 00000000 00000000 |................|
    M  a00fa80  000032  00000000 00000000 00000000 00000000 |................|
    M  a00fa90  000048  00000000 00000000 00000000 00000000 |................|
    M  a00faa0  000064  00000000 00000000 00000000 00000000 |................|
    M  a00fab0  000080  00000000 00000000 00000000 00000000 |................|
    M  a00fac0  000096  00000000 00000000 00000000 00000000 |................|
    M  a00fad0  000112  00000000 00000000 00000000 00000000 |................|
    M  a00fae0  000128  00000000 00000000 00000000 00000000 |................|
    M  a00faf0  000144  00000000 00000000 00000000 00000000 |................|
    M  a00fb00  000160  00000000 00000000 00000000 00000000 |................|
    M  a00fb10  000176  00000000 00000000 00000000 00000000 |................|
    M  a00fb20  000192  00000000 00000000 00000000 00000000 |................|
    M  a00fb30  000208  00000000 00000000 00000000 00000000 |................|
    M  a00fb40  000224  00000000 00000000 00000000 00000000 |................|
    M  a00fb50  000240  00000000 00000000 00000000 00000000 |................|
    M  a00fb60  000256  00000000 00000000 00000000 00000000 |................|
    M  a00fb70  000272  00000000 00000000 00000000 00000000 |................|
    M  a00fb80  000288  00000000 00000000 00000000 00000000 |................|
    M  a00fb90  000304  00000000 00000000 00000000 00000000 |................|
    M  a00fba0  000320  00000000 00000000 00000000 00000000 |................|
    M  a00fbb0  000336  00000000 00000000 00000000 00000000 |................|
    M  a00fbc0  000352  00000000 00000000 00000000 00000000 |................|
    M  a00fbd0  000368  00000000 00000000 00000000 00000000 |................|
    M  a00fbe0  000384  00000000 00000000 00000000 00000000 |................|
    M  a00fbf0  000400  00000000 00000000 00000000 00000000 |................|
    M  a00fc00  000416  00000000 00000000 00000000 00000000 |................|
    M  a00fc10  000432  00000000 00000000 00000000 00000000 |................|
    M  a00fc20  000448  00000000 00000000 00000000 00000000 |................|
    M  a00fc30  000464  00000000 00000000 00000000 00000000 |................|
    M  a00fc40  000480  00000000 00000000 00000000 00000000 |................|
    M  a00fc50  000496  00000000 00000000 00000000 00000000 |................|
    M  a00fc60  000512  00000000 00000000 00000000 00000000 |................|
    M  a00fc70  000528  00000000 00000000 00000000 00000000 |................|
    M  a00fc80  000544  00000000 00000000 00000000 00000000 |................|
    M  a00fc90  000560  00000000 00000000 00000000 00000000 |................|
    M  a00fca0  000576  00000000 00000000 00000000 00000000 |................|
    M  a00fcb0  000592  00000000 00000000 00000000 00000000 |................|
    M  a00fcc0  000608  00000000 00000000 00000000 00000000 |................|
    M  a00fcd0  000624  00000000 00000000 00000000 00000000 |................|
    M  a00fce0  000640  00000000 00000000 00000000 00000000 |................|
    M  a00fcf0  000656  00000000 00000000 00000000 00000000 |................|
    M  a00fd00  000672  00000000 00000000 00000000 00000000 |................|
    M  a00fd10  000688  0000                                |..              |
    M  -
    M  new request: THFCSPO
    M  TskhLoop: handle thfc 24
    M  set task type/act rqtype = ZTTADIA/1
    M  PfRecCreate: create record (0)
    M  set cpu stamp
    M  tskh_spainit: install saved spa pointer 141cf7570
    M  tskh_spainit: U35 M0 I0
    A  + not rolled in
    A  + not rolled in
    M  ThSavUsrClient: set usr >SAPSYS      <
    M  ThSavUsrClient: set client >000<
    M  ThEmInit: call EmContextCreate (U35/M0, ..)
    M  ThEmInit: em context for T34/M0 created (em_hdl=116)
    M  set task type/act rqtype = ZTTASPO/5
    M  Thdynpen00: call dynp handler (21) ...
    Y
    Y  ======================== DYNP entry 21:
    Y  RollEnvir UNDEF 00035_00_0000000000 00 SAPSYS
    Y  start spool
    Y  init new session
    Y  init_imode_spa
    A  ab_resize 0 2896 141d37780 DYNBPT
    M  NiIHostToAddr: hostname yssux01 = addr 10.80.1.30
    Y  init_dynpro
    A  Initialize Task.
    A  +                      SAPSYS       90  cleaned up ...   rlv=clean
    A  ab_resize 0 131072 141d38300 abstor
    A  ab_resize_imode(): 0 131072 131088 141d38300
    A  ab_resize 0 28463 141d58330 abinit
    A  +                      SAPSYS       90  Starting task ...   rlv=running
    A  ab_resize 0 12000 141d5f280 abgetw
    A  ab_resize 0 8000 141d62190 abgetw
    A  ab_resize 0 1000 141d64100 abgetw
    A  LOAD SEGMENT
    A  ab_resize 0 240 141d64510 abstor
    A  ab_resize 0 5280 141d64630 abinit
    A  LOAD SEGMENT /%_LISTTABLES
    A  ab_resize 0 16384 141d65b00 abdseg
    A  ab_resize 0 5232 141d69b30 abdseg
    A  ab_resize 0 4608 141d6afd0 abstac
    A  ab_resize 0 4096 141d6c200 abstac
    A  ab_resize 0 2048 141d6d230 abstac
    A  ab_resize 0 1200 141d6da60 abstac
    A  LOAD SEGMENT stack area
    A  ab_resize 0 16384 141d6df40 abgetw
    B  db_rtab ( fcode = 'READ_ONLY', tname = 'TCP0C                         ' )
    B  NTAB: tabname: TCP0C                         , fcode: 1
    B  NTAB: tabname: TCP0C                         , fcode: 7
    A  ab_resize 0 281 141d71f70 abloca
    B  NTAB: tabname: SYST                          , fcode: 6
    D   SET-TITLE TEXT: SAP R/3
    A  +                      SAPSYS       90  Task running ...   rlv=running
    Y  dy_new_trans_key: set new enq keys (dia + upd)
    M  ThNewEnqKey: new dia/update enqueue key
    E  New Enq-Owner (dia): 20080716130641371478003400yssux01.........................
    M  ThNewEnqKey: new dia/update enqueue key
    E  New Enq-Owner (upd): 20080716130641371478013400yssux01.........................
    Y  dy_new_trans_key: set new trans id (form=1)
    D    SET-STATUS: MENUSYST                                 MEN
    D   SET-TITLE TEXT: SAP R/3
    A  Initialize Task.
    A  +                      SAPSYS       90  cleaned up ...   rlv=clean
    A  ab_resize 0 131072 141d720b0 abstor
    A  ab_resize_imode(): 0 131072 131088 141d720b0
    A  ab_resize 0 28463 141d920e0 abinit
    A  +                      SAPSYS       90  Starting task ...   rlv=running
    A  ab_resize 0 12000 141d99030 abgetw
    A  ab_resize 0 8000 141d9bf40 abgetw
    A  ab_resize 0 1000 141d9deb0 abgetw
    A  LOAD SEGMENT
    A  ab_resize 0 240 141d9e2c0 abstor
    A  ab_resize 0 5280 141d9e3e0 abinit
    A  LOAD SEGMENT /%_LISTTABLES
    A  ab_resize 0 16384 141d9f8b0 abdseg
    A  ab_resize 0 5232 141da38e0 abdseg
    A  ab_resize 0 4608 141da4d80 abstac
    A  ab_resize 0 4096 141da5fb0 abstac
    A  ab_resize 0 2048 141da6fe0 abstac
    A  ab_resize 0 1200 141da7810 abstac
    A  LOAD SEGMENT stack area
    A  ab_resize 0 16384 141da7cf0 abgetw
    A  ab_resize 0 281 141dabd20 abloca
    D   SET-TITLE TEXT: SAP R/3
    A  +                      SAPSYS       90  Task running ...   rlv=running
    A  LOAD PROGRAM RSPOWP00
    A  ab_resize 0 11264 141dabe60 abload
    A  ab_resize 0 56 141daea90 abload
    A  ab_resize 0 1026 141daeaf0 abdseg
    A  LOAD SEGMENT
    A  ab_resize 0 56 141daef20 abgetw
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT SYST
    A  LOAD SEGMENT SY
    A  LOAD SEGMENT RSJOBINFO
    A  LOAD SEGMENT /%_SYS%%
    A  LOAD SEGMENT
    A  LOAD SEGMENT /%_SSCR
    A  LOAD SEGMENT VARI
    A  LOAD SEGMENT
    A  ab_resize 0 272 141daef80 abgetw
    A  +                      SAPSYS       90  IsGuiOn ... (flag: 0, mode: off, task_type: off, term_io_set: -1)   rlv=running
    A  +                      SAPSYS       90  Program loaded.   rlv=running
    Y  dyLoadAndInitDynpro
    Y    Type Main
    Y    Name >RSPOWP00 2000
    Y  ->load dynpro RSPOWP00 2000
    Y   RSPOWP00<
    Y    dy_abrt
    A  ab_resize 0 32968 141daff20 ablink
    A  LOAD PROGRAM SAPMSSYD
    A  ab_resize 0 56 141d377e0 abload
    A  LOAD SEGMENT
    A  ab_resize 0 64 141d37840 abgetw
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT SYST
    A  LOAD SEGMENT SY
    A  LOAD SEGMENT RSJOBINFO
    A  LOAD SEGMENT /%_SYS%%
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  +                      SAPSYS       90  Program loaded.   rlv=running
    D  DiagGuiSupport (RESET) value EMERGENCY_REPAIR
    A  LOAD PROGRAM SAPFSYSCALLS
    A  ab_resize 0 56 141d378b0 abload
    A  LOAD SEGMENT
    A  ab_resize 0 56 141d37910 abgetw
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  LOAD SEGMENT SYST
    A  LOAD SEGMENT SY
    A  LOAD SEGMENT RSJOBINFO
    A  LOAD SEGMENT /%_SYS%%
    A  LOAD SEGMENT
    A  LOAD SEGMENT
    A  +                      SAPSYS       90  Program loaded.   rlv=running
    D  DiagGuiSupport (RESET) value ITS
    Y    lock 43 (cnt=1)
    S  <== unlock 43 (cnt=2)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  sending spool admin message (type=SRV op=I)
    M  ThISendMsg: send message (11) to all server (wp) matching types 1
    M  ThISend: (tm/type = 34/0x1000, mode_deleted=0)
    M  ThRqOutCheck: o.k.
    M  abap strategy ROLL / O.K.
    M  ThNewWpStat: new state of T34/M0 = 0x42
    M  ThISend: new wp stat: 0x0
    M  Adresse   Offset  Message by type
    M  -
    M  a01f4c0  000000  00000000 0b000000 41442d45 59454341 |........AD-EYECA|
    M  a01f4d0  000016  54434800 01012020 20202020 20203130 |TCH...        10|
    M  a01f4e0  000032  34202020 20202020 20202031 2c000000 |4          1,...|
    M  a01f4f0  000048  53525620 20497973 73757830 315f5953 |SRV  Iyssux01_YS|
    M  a01f500  000064  535f3030 20202020 20200000 00000000 |S_00      ......|
    M  a01f510  000080  00000000 00020000 00000000 00000000 |................|
    M  a01f520  000096  00000000 00000000 00000000 00000000 |................|
    M  a01f530  000112  00000000 00000000 00000000 00202020 |.............   |
    M  a01f540  000128  20202020 20202020 20202020 20202020 |                |
    M  a01f550  000144  20202020                            |                |
    M  -
    M  make DISP owner of wp_ca_blk 4
    M  put request into queue (reqtype 0, prio LOW, rq_id 850)
    M  -OUT- sender_id    WORK_PROCESS   tid  34    wp_ca_blk   4       wp_id 34
    M  -OUT- action    SEND_MSG_TYPE     uid  35    appc_ca_blk -1      type  NOWP
    M  -OUT- new_stat  NO_CHANGE         mode 0     len         148     rq_id 850
    M  -OUT- forward   DIA
    M  -OUT- req_info  MSG_WITH_REQ_BUF MSG_WITH_OH
    M  wake_evt_udp_now 1, no dgram needed
    M  LOCK WP ca_blk 6
    S  spool admin message received (type SRV op I (raw))
    T  alloc memory 14252f758 (96)
    T  module rsposerv matches rspo* -> project Sp
    T  alloc memory 14252f7b8 (56)
    T  alloc memory 14252f7f0 (80)
    T  alloc memory 14252f840 (56)
    T  alloc memory 14252f878 (80)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    T  alloc memory 14252f8c8 (56)
    T  alloc memory 14252f900 (80)
    T  alloc memory 14252f950 (56)
    T  alloc memory 14252f988 (80)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    T  alloc memory 14252f9d8 (56)
    T  alloc memory 14252fa10 (80)
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  setting spool action querying
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S  ==> lock 43 (cnt=1)
    S  <== unlock 43 (cnt=2)
    T  alloc memory 14252fa60 (56)
    T  alloc memory 14252fa98 (80)
    S    found next entry 0 'IZMB' (status temp,ndqy,asyn,used,exst,resp,vald)
    T  alloc memory 14252fae8 (56)
    T  alloc memory 14252fb20 (80)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    T  alloc memory 14252fb70 (56)
    T  alloc memory 14252fba8 (80)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S    found next entry 1 'IZ27' (status actw,asyn,exst)
    S    found next entry 2 'PR72' (status actw,asyn,exst)
    S    found next entry 3 'PR35' (status asyn,used,exst,vald)
    S    found next entry 4 'LP01' (status actw,ndqy,exst,resp)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    T  alloc memory 14252fbf8 (96)
    T  module rspohjob matches rspo* -> project Sp
    T  alloc memory 14252fc58 (56)
    T  alloc memory 14252fc90 (80)
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  Query Printer LP01 not required
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S    found next entry 5 'TP62' (status actw,asyn,exst)
    S    found next entry 6 'PR69' (status asyn,used,exst,vald)
    S    found next entry 7 'IZ38' (status actw,asyn,exst)
    S    found next entry 8 'STL4' (status actw,asyn,exst)
    S    found next entry 9 'IZ45' (status asyn,used,exst,vald)
    S    found next entry 10 'MER1' (status actw,asyn,exst)
    S    found next entry 11 'TP80' (status asyn,used,exst,vald)
    S    found next entry 12 'IZ24' (status asyn,used,exst,vald)
    S    found next entry 13 'IZ39' (status actw,asyn,used,exst,vald)
    S    found next entry 14 'PR62' (status actw,asyn,used,exst,vald)
    S    found next entry 15 'TP14' (status actw,asyn,used,exst,vald)
    S    found next entry 16 'PR34' (status actw,asyn,used,exst)
    S    found next entry 17 'TP38' (status actw,asyn,used,exst,vald)
    S    found next entry 18 'IZMC' (status actw,asyn,used,exst,vald)
    S    found next entry 19 'PR23' (status actw,noqy,ndqy,asyn,exst,resp)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  Query Printer PR23 not required
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S    found next entry 20 'ANT0' (status actw,noqy,ndqy,asyn,used,exst,resp,vald)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=1)
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=2)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    T  alloc memory 14252fce0 (56)
    T  alloc memory 14252fd18 (80)
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  Doing: querying ANT0
    S  setting spool action querying ANT0
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  ==> lock 31 (cnt=1)
    S  <== unlock 31 (cnt=2)
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  ==> lock 31 (cnt=0)
    S  SemRq(31) done
    S  <== unlock 31 (cnt=1)
    S  SemRel(31) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    S  Query Printer ANT0:
    T  alloc memory 14252fd68 (96)
    T  module rspooms matches rspo* -> project Sp
    T  alloc memory 14252fdc8 (56)
    T  alloc memory 14252fe00 (80)
    T  alloc memory 14252fe50 (56)
    T  alloc memory 14252fe88 (80)
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    T  alloc memory 14252fed8 (56)
    T  alloc memory 14252ff10 (80)
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    B  db_rtab ( fcode = 'READ_FUPD', tname = 'TSP02                         ' )
    B  NTAB: tabname: TSP02                         , fcode: 1
    B  NTAB: tabname: TSP02                         , fcode: 1
    B  NTAB: tabname: TSP02                         , fcode: 10
    B  NTAB: tabname: TSP02                         , fcode: 6
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=14225faf0)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=SELECT "PJIDENT" , "PJNUMMER" , "PJDEST" , "PJPAPE ..., stmt_ln=549, stmth_p=14225faf0)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=142265f70, iters=1, rowoff=0, query=0)
    C  -->oci_bind (stmth_p=14225faf0, cnt=2)
    C  -->oci_define (stmth_p=14225faf0, cnt=35)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225faf0, iters=1, rowoff=0, query=1)
    B  db_rtab ( fcode = 'READ_ONLY', tname = 'TSP02L                        ' )
    B  NTAB: tabname: TSP02L                        , fcode: 1
    B  NTAB: tabname: TSP02L                        , fcode: 1
    B  NTAB: tabname: TSP02L                        , fcode: 10
    B  NTAB: tabname: TSP02L                        , fcode: 6
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=14225fc70)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=SELECT "PJIDENT" , "PJNUMMER" , "LINES" , "COLUMNS ..., stmt_ln=306, stmth_p=14225fc70)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=142265f70, iters=1, rowoff=0, query=0)
    C  -->oci_bind (stmth_p=14225fc70, cnt=2)
    C  -->oci_define (stmth_p=14225fc70, cnt=19)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225fc70, iters=1, rowoff=0, query=1)
    S  print job 30829/1 has no list attributes
    B  db_rtab ( fcode = 'UPDATE', tname = 'TSP02                         ' )
    B  NTAB: tabname: TSP02                         , fcode: 1
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=142265bb0)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=UPDATE "TSP02" SET "PJDEST" = :A0 , "PJPAPER" = :A ..., stmt_ln=734, stmth_p=142265bb0)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=142265f70, iters=1, rowoff=0, query=0)
    C  -->oci_bind (stmth_p=142265bb0, cnt=35)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=142265bb0, iters=1, rowoff=0, query=0)
    M  ThICommit3: commit and keep resources
    M  ThCheckComOrRb (event=1, full_commit=1)
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    S  no temse root so far
    B  db_con_commit (con_da={R/3,0,0},th_commit=1,forced=1,tx=1,hold_cursor=1)
    B  db_con_commit (com_total=5, com_forced=1, com_tx=1)
    C  -->oci_commit (con_hdl=0)
    B  Connection 0 committed
    M  ThCheckComOrRb (event=3, full_commit=1)
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThNoClearPrevErr: clear prev no err
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    S  no temse root so far
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  ThICommit3 o.k.
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    B  db_rtab ( fcode = 'READ_FUPD', tname = 'TSP02                         ' )
    B  NTAB: tabname: TSP02                         , fcode: 1
    B  NTAB: tabname: TSP02                         , fcode: 6
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225faf0, iters=1, rowoff=0, query=1)
    S  ==> lock 43 (cnt=0)
    S  SemRq(43) done
    S  <== unlock 43 (cnt=1)
    S  SemRel(43) done
    B  db_rtab ( fcode = 'READ_FUPD', tname = 'TSP02                         ' )
    B  NTAB: tabname: TSP02                         , fcode: 6
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225faf0, iters=1, rowoff=0, query=1)
    B  db_rtab ( fcode = 'READ_ONLY', tname = 'TSP02L                        ' )
    B  NTAB: tabname: TSP02L                        , fcode: 1
    B  NTAB: tabname: TSP02L                        , fcode: 6
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225fc70, iters=1, rowoff=0, query=1)
    S  print job 435/1 has no list attributes
    M  signal was in UNBLOCKED mode
    M  -
    C-STACK -
       0: 0x1205d8028
          OSF_stacktrace
          dptstack.c :   879
          dw.sapYSS_DVEBMGS00  .text
       1: 0x1205d7f44
          CTrcStack2
          dptstack.c :   265
          dw.sapYSS_DVEBMGS00  .text
       2: 0x12139cbbc
          SigIGenAction
          sigux.c :   738
          dw.sapYSS_DVEBMGS00  .text
       3: 0x3ff800d5d00
          __tis_init
          /usr/shlib/libc.so  .text
       5: 0x1210897e0
          strfcpy
          sapstr.c :   236
          dw.sapYSS_DVEBMGS00  .text
       6: 0x120e9fec4
          SetJobInfo
          rspohjob.c :   316
          dw.sapYSS_DVEBMGS00  .text
       7: 0x120ea0f24
          FindDoneJobs
          rspohjob.c :   559
          dw.sapYSS_DVEBMGS00  .text
       8: 0x120ea3d90
          SpHostSpoolFindDoneJobs
          rspohjob.c :  1291
          dw.sapYSS_DVEBMGS00  .text
       9: 0x120f75e64
          LPD_query_hostspool
          rspoyunx.c :  3581
          dw.sapYSS_DVEBMGS00  .text
      10: 0x120f74a40
          rspoqh__query_hostspool
          rspoyunx.c :  3144
          dw.sapYSS_DVEBMGS00  .text
      11: 0x120f21cb4
          SpDevQueryHostspool
          rspopcc.c :  2838
          dw.sapYSS_DVEBMGS00  .text
      12: 0x120f9bc0c
          rspoget2_on_unix
          rspowunx.c :   978
          dw.sapYSS_DVEBMGS00  .text
      13: 0x120f932f8
          rspopsd_process_start_dynpro
          rspodynp.c :    64
          dw.sapYSS_DVEBMGS00  .text
      14: 0x12067af74
          N_rspopsd_process_start_dynpro
          dymainstp.c :  4023
          dw.sapYSS_DVEBMGS00  .text
      15: 0x120675e44
          dynpmcal
          dymainstp.c :  2084
          dw.sapYSS_DVEBMGS00  .text
      16: 0x1206723a8
          dynppbo0
          dymainstp.c :   464
          dw.sapYSS_DVEBMGS00  .text
      17: 0x120671b2c
          dynprctl
          dymainstp.c :   301
          dw.sapYSS_DVEBMGS00  .text
      18: 0x12066e7cc
          dynpen00
          dymain.c :  1204
          dw.sapYSS_DVEBMGS00  .text
      19: 0x1204c6b6c
          Thdynpen00
          thxxhead.c :  3863
          dw.sapYSS_DVEBMGS00  .text
      20: 0x1204c604c
          TskhLoop
          thxxhead.c :  3686
          dw.sapYSS_DVEBMGS00  .text
      21: 0x1204bdab0
          tskhstart
          thxxhead.c :   951
          dw.sapYSS_DVEBMGS00  .text
      22: 0x120453140
          DpMain
          dpxxdisp.c :   850
          dw.sapYSS_DVEBMGS00  .text
      23: 0x120451984
          main
          thxxanf.c :    50
          dw.sapYSS_DVEBMGS00  .text
    M  -
    M Wed Jul 16 13:06:44 2008
    M  ***LOG Q0E=> SigIGenAction, signal ( 11)
    M  SigIGenAction: call exithandler ThSigHandler(FALSE)
    M  ThSigHandler: call ThErrHandle
    M  in_ThErrHandle: 1
    M  ThSigHandler: signal (step 4, th_errno 11, action 4)
    M
    M  Info for wp 34
    M
    M    stat = 4
    M    reqtype = 5
    M    act_reqtype = 5
    M    tid = 34
    M    mode = 0
    M    len = 690
    M    rq_id = 839
    M    rq_source = 1
    M    rq_info = 270336
    M    last_tid = 34
    M    last_mode = 0
    M    int_checked_resource = 0
    M    ext_checked_resource = 0
    M    report = >querying ANT0                           <
    M    action = 0
    M    tab_name = >                              <
    M
    M  Modeinfo for User T34/M0
    M
    M    tm state = 2
    M    uid = 35
    M    term type = 0x0
    M    display = 0x0
    M    cpic_no = 0
    M    cpic_idx = -1
    M    usr = >SAPSYS      <
    M    terminal = >                    <
    M    client = >000<
    M    conversation_ID = >        <
    M    appc_tm_conv_idx = -1
    M    imode = 0
    M    mode state = 0x42
    M    th_errno = 11
    M    rollout_reason = 0
    M    last_rollout_level = 0
    M    async_receives = 0
    M    cpic_receive = 0
    M    em handle = 116
    M    roll state = 2
    M    abap state = 2
    M    em state = 3
    M    eg state = 1
    M    spa state = 3
    M    enq state = 0
    M    next hook = T-1/U-1/M255
    M    master hook = T-1/U-1/M255
    M    slave hook = T-1/U-1/M255
    M    debug_tid = -1
    M    mode type = 0x1
    M    debug = 0
    M    tcode = >                    <
    M    client conversation_ID = >        <
    M    server conversation_ID = >        <
    M    lock = 0
    M    max enq infos = 0
    M    act enq infos = 0
    M    em_hyper_hdl = NULL
    M
    M
    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server yssux01_YSS_00 on host yssux01 (wp 34)
    M  *  ERROR       ThSigHandler: signal
    M  *
    M  *  TIME        Wed Jul 16 13:06:44 2008
    M  *  RELEASE     46D
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          11
    M  *  MODULE      thxxhead.c
    M  *  LINE        8435
    M  *  COUNTER     12
    M  *
    M  *****************************************************************************
    M
    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALL_HOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  Entering ThSetStatError
    M  ThErrHandle: incomplete previous roll out, do a full roll out
    M  ThRollOut: roll out T34/U35/M0/I0 (level=7, short_roll_out=0)
    M  ThRollOut: call rrol_out
    R  enter roll_out:  rollkey: 35 0 0
    R  roll out area[0]
    R  rrol_area_end[0] = 141cf755f
    R  HEADER: id USRINF class 4 len 528 n_len 528
    R  <ROLL-UA> get first(1): user:35  not found
    R  SemRq
    R  <ROLL-FL> get block (1): 3029
    R  roll out: next free block 3029
    R  <ROLL-UA> set first(1): user:35  level:0  bnr:63/127  block:3029
    R  out: next[0] = 3029 first 1 rnum 48
    R  HEADER: id -CCCI- class 4 len 176 n_len 176
    R  HEADER: id -CCCO- class 4 len 176 n_len 176
    R  HEADER: id M2CCCI class 4 len 176 n_len 176
    R  HEADER: id M2CCCO class 4 len 176 n_len 176
    R  HEADER: id TS1CCC class 4 len 176 n_len 176
    R  HEADER: id TS2CCC class 4 len 176 n_len 176
    R  HEADER: id USRDAT class 4 len 208 n_len 208
    R  HEADER: id PRADPT class 20 len 16048 n_len 20
    R  HEADER: id abdebu class 4 len 1504 n_len 1504
    R  HEADER: id USRAUT class 4 len 48048 n_len 48048
    R  <ROLL-FL> get block (1): 3332
    R  roll out: next free block 3332
    R  out: next[3029] = 3332 first 0 rnum 48
    R  <ROLL-FL> get block (1): 3037
    R  roll out: next free block 3037
    R  out: next[3332] = 3037 first 0 rnum 48
    R  <ROLL-FL> get block (1): 3038
    R  roll out: next free block 3038
    R  out: next[3037] = 3038 first 0 rnum 48
    R  <ROLL-FL> get block (1): 3039
    R  roll out: next free block 3039
    R  out: next[3038] = 3039 first 0 rnum 48
    R  <ROLL-FL> get block (1): 3040
    R  roll out: next free block 3040
    R  out: next[3039] = 3040 first 0 rnum 48
    R  <ROLL-FL> get block (1): 3041
    R  roll out: next free block 3041
    R  out: next[3040] = 3041 first 0 rnum 48
    R  roll out area[1]
    R  rrol_area_end[1] = 141d3386f
    R  HEADER: id SPAAPT class 4 len 9952 n_len 9952
    R  <ROLL-UA> get index (1): user:35  bnr:63
    R  <ROLL-UA> get first(3): user:35 mode:0 not set
    R  <ROLL-FL> get block (1): 3042
    R  roll out: next free block 3042
    R  <ROLL-UA> get index (1): user:35  bnr:63
    R  out: next[0] = 3042 first 1 rnum 49
    R  <ROLL-FL> get block (1): 3217
    R  roll out: next free block 3217
    R  out: next[3042] = 3217 first 0 rnum 49
    R  HEADER: id DTADPT class 20 len 2048 n_len 20
    R  HEADER: id PRADPL class 20 len 16048 n_len 20
    R  HEADER: id BICIOB class 4 len 5168 n_len 5168
    R  HEADER: id BIPIOB class 4 len 5168 n_len 5168
    R  <ROLL-FL> get block (1): 1228
    R  roll out: next free block 1228
    R  out: next[3217] = 1228 first 0 rnum 49
    R  HEADER: id BICQCB class 4 len 400 n_len 400
    R  HEADER: id BIPQCB class 4 len 400 n_len 400
    R  HEADER: id BILOGK class 4 len 96 n_len 96
    R  HEADER: id BIPRIN class 4 len 576 n_len 576
    R  HEADER: id DEXT   class 4 len 480 n_len 480
    R  HEADER: id BTCKEY class 4 len 304 n_len 304
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  <ROLL-FL> get block (1): 803
    R  roll out: next free block 803
    R  out: next[1228] = 803 first 0 rnum 49
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  <ROLL-FL> get block (1): 876
    R  roll out: next free block 876
    R  out: next[803] = 876 first 0 rnum 49
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  <ROLL-FL> get block (1): 3015
    R  roll out: next free block 3015
    R  out: next[876] = 3015 first 0 rnum 49
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id RSTSOO class 4 len 1616 n_len 1616
    R  HEADER: id CUABPT class 20 len 180048 n_len 10148
    R  <ROLL-FL> get block (1): 3898
    R  roll out: next free block 3898
    R  out: next[3015] = 3898 first 0 rnum 49
    R  <ROLL-FL> get block (1): 3889
    R  roll out: next free block 3889
    R  out: next[3898] = 3889 first 0 rnum 49
    R  roll out area[2]
    R  rrol_area_end[2] = 141db7fff
    R  HEADER: id FADM__ class 4 len 16080 n_len 16080
    R  <ROLL-UA> get index (1): user:35  bnr:63
    R  <ROLL-UA> get first(4): user:35 mode:0 imode:0 not set
    R  <ROLL-FL> get block (1): 3643
    R  roll out: next free block 3643
    R  <ROLL-UA> get index (1): user:35  bnr:63
    R  out: next[0] = 3643 first 1 rnum 50
    R  <ROLL-FL> get block (1): 3644
    R  roll out: next free block 3644
    R  out: next[3643] = 3644 first 0 rnum 50
    R  HEADER: id Id: // class 4 len 48 n_len 48
    R  HEADER: id dyrdyp class 4 len 96 n_len 96
    R  HEADER: id abload class 4 len 96 n_len 96
    R  HEADER: id abgetw class 4 len 112 n_len 112
    R  <ROLL-FL> get block (1): 4344
    R  roll out: next free block 4344
    R  out: next[3644] = 4344 first 0 rnum 50
    R  HEADER: id abload class 4 len 96 n_len 96
    R  HEADER: id abgetw class 4 len 96 n_len 96
    R  HEADER: id ÿÿÿÿÿÿ class 1 len 2448 n_len 20
    R  HEADER: id abstor class 4 len 131120 n_len 131120
    R  <ROLL-FL> get block (1): 4343
    R  roll out: next free block 4343
    R  out: next[4344] = 4343 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4342
    R  roll out: next free block 4342
    R  out: next[4343] = 4342 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4341
    R  roll out: next free block 4341
    R  out: next[4342] = 4341 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4340
    R  roll out: next free block 4340
    R  out: next[4341] = 4340 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4339
    R  roll out: next free block 4339
    R  out: next[4340] = 4339 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4356
    R  roll out: next free block 4356
    R  out: next[4339] = 4356 first 0 rnum 50
    R  <ROLL-FL> get block (1): 678
    R  roll out: next free block 678
    R  out: next[4356] = 678 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2396
    R  roll out: next free block 2396
    R  out: next[678] = 2396 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2156
    R  roll out: next free block 2156
    R  out: next[2396] = 2156 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2100
    R  roll out: next free block 2100
    R  out: next[2156] = 2100 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2891
    R  roll out: next free block 2891
    R  out: next[2100] = 2891 first 0 rnum 50
    R  <ROLL-FL> get block (1): 783
    R  roll out: next free block 783
    R  out: next[2891] = 783 first 0 rnum 50
    R  <ROLL-FL> get block (1): 670
    R  roll out: next free block 670
    R  out: next[783] = 670 first 0 rnum 50
    R  <ROLL-FL> get block (1): 687
    R  roll out: next free block 687
    R  out: next[670] = 687 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3212
    R  roll out: next free block 3212
    R  out: next[687] = 3212 first 0 rnum 50
    R  <ROLL-FL> get block (1): 1796
    R  roll out: next free block 1796
    R  out: next[3212] = 1796 first 0 rnum 50
    R  HEADER: id abinit class 4 len 28496 n_len 28496
    R  <ROLL-FL> get block (1): 1555
    R  roll out: next free block 1555
    R  out: next[1796] = 1555 first 0 rnum 50
    R  <ROLL-FL> get block (1): 1145
    R  roll out: next free block 1145
    R  out: next[1555] = 1145 first 0 rnum 50
    R  <ROLL-FL> get block (1): 52
    R  roll out: next free block 52
    R  out: next[1145] = 52 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 12048 n_len 12048
    R  <ROLL-FL> get block (1): 4001
    R  roll out: next free block 4001
    R  out: next[52] = 4001 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 8048 n_len 8048
    R  <ROLL-FL> get block (1): 691
    R  roll out: next free block 691
    R  out: next[4001] = 691 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 1040 n_len 1040
    R  <ROLL-FL> get block (1): 3970
    R  roll out: next free block 3970
    R  out: next[691] = 3970 first 0 rnum 50
    R  HEADER: id abstor class 4 len 288 n_len 288
    R  HEADER: id abinit class 4 len 5328 n_len 5328
    R  HEADER: id abdseg class 4 len 16432 n_len 16432
    R  <ROLL-FL> get block (1): 1958
    R  roll out: next free block 1958
    R  out: next[3970] = 1958 first 0 rnum 50
    R  <ROLL-FL> get block (1): 67
    R  roll out: next free block 67
    R  out: next[1958] = 67 first 0 rnum 50
    R  HEADER: id abdseg class 4 len 5280 n_len 5280
    R  <ROLL-FL> get block (1): 2818
    R  roll out: next free block 2818
    R  out: next[67] = 2818 first 0 rnum 50
    R  HEADER: id abstac class 4 len 4656 n_len 4656
    R  <ROLL-FL> get block (1): 3179
    R  roll out: next free block 3179
    R  out: next[2818] = 3179 first 0 rnum 50
    R  HEADER: id abstac class 4 len 4144 n_len 4144
    R  HEADER: id abstac class 4 len 2096 n_len 2096
    R  HEADER: id abstac class 4 len 1248 n_len 1248
    R  HEADER: id abgetw class 4 len 16432 n_len 16432
    R  <ROLL-FL> get block (1): 3166
    R  roll out: next free block 3166
    R  out: next[3179] = 3166 first 0 rnum 50
    R  <ROLL-FL> get block (1): 450
    R  roll out: next free block 450
    R  out: next[3166] = 450 first 0 rnum 50
    R  HEADER: id abloca class 4 len 320 n_len 320
    R  HEADER: id abstor class 4 len 131120 n_len 131120
    R  <ROLL-FL> get block (1): 896
    R  roll out: next free block 896
    R  out: next[450] = 896 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3856
    R  roll out: next free block 3856
    R  out: next[896] = 3856 first 0 rnum 50
    R  <ROLL-FL> get block (1): 310
    R  roll out: next free block 310
    R  out: next[3856] = 310 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3684
    R  roll out: next free block 3684
    R  out: next[310] = 3684 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3803
    R  roll out: next free block 3803
    R  out: next[3684] = 3803 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3804
    R  roll out: next free block 3804
    R  out: next[3803] = 3804 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3782
    R  roll out: next free block 3782
    R  out: next[3804] = 3782 first 0 rnum 50
    R  <ROLL-FL> get block (1): 616
    R  roll out: next free block 616
    R  out: next[3782] = 616 first 0 rnum 50
    R  <ROLL-FL> get block (1): 1850
    R  roll out: next free block 1850
    R  out: next[616] = 1850 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3851
    R  roll out: next free block 3851
    R  out: next[1850] = 3851 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3852
    R  roll out: next free block 3852
    R  out: next[3851] = 3852 first 0 rnum 50
    R  <ROLL-FL> get block (1): 474
    R  roll out: next free block 474
    R  out: next[3852] = 474 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3801
    R  roll out: next free block 3801
    R  out: next[474] = 3801 first 0 rnum 50
    R  <ROLL-FL> get block (1): 3112
    R  roll out: next free block 3112
    R  out: next[3801] = 3112 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4109
    R  roll out: next free block 4109
    R  out: next[3112] = 4109 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2695
    R  roll out: next free block 2695
    R  out: next[4109] = 2695 first 0 rnum 50
    R  HEADER: id abinit class 4 len 28496 n_len 28496
    R  <ROLL-FL> get block (1): 1002
    R  roll out: next free block 1002
    R  out: next[2695] = 1002 first 0 rnum 50
    R  <ROLL-FL> get block (1): 1355
    R  roll out: next free block 1355
    R  out: next[1002] = 1355 first 0 rnum 50
    R  <ROLL-FL> get block (1): 459
    R  roll out: next free block 459
    R  out: next[1355] = 459 first 0 rnum 50
    R  <ROLL-FL> get block (1): 585
    R  roll out: next free block 585
    R  out: next[459] = 585 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 12048 n_len 12048
    R  <ROLL-FL> get block (1): 342
    R  roll out: next free block 342
    R  out: next[585] = 342 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 8048 n_len 8048
    R  <ROLL-FL> get block (1): 1984
    R  roll out: next free block 1984
    R  out: next[342] = 1984 first 0 rnum 50
    R  HEADER: id abgetw class 4 len 1040 n_len 1040
    R  <ROLL-FL> get block (1): 3259
    R  roll out: next free block 3259
    R  out: next[1984] = 3259 first 0 rnum 50
    R  HEADER: id abstor class 4 len 288 n_len 288
    R  HEADER: id abinit class 4 len 5328 n_len 5328
    R  HEADER: id abdseg class 4 len 16432 n_len 16432
    R  <ROLL-FL> get block (1): 2285
    R  roll out: next free block 2285
    R  out: next[3259] = 2285 first 0 rnum 50
    R  <ROLL-FL> get block (1): 239
    R  roll out: next free block 239
    R  out: next[2285] = 239 first 0 rnum 50
    R  HEADER: id abdseg class 4 len 5280 n_len 5280
    R  <ROLL-FL> get block (1): 3733
    R  roll out: next free block 3733
    R  out: next[239] = 3733 first 0 rnum 50
    R  HEADER: id abstac class 4 len 4656 n_len 4656
    R  HEADER: id abstac class 4 len 4144 n_len 4144
    R  <ROLL-FL> get block (1): 2382
    R  roll out: next free block 2382
    R  out: next[3733] = 2382 first 0 rnum 50
    R  HEADER: id abstac class 4 len 2096 n_len 2096
    R  HEADER: id abstac class 4 len 1248 n_len 1248
    R  HEADER: id abgetw class 4 len 16432 n_len 16432
    R  <ROLL-FL> get block (1): 2911
    R  roll out: next free block 2911
    R  out: next[2382] = 2911 first 0 rnum 50
    R  <ROLL-FL> get block (1): 2935
    R  roll out: next free block 2935
    R  out: next[2911] = 2935 first 0 rnum 50
    R  HEADER: id abloca class 4 len 320 n_len 320
    R  HEADER: id abload class 4 len 11312 n_len 11312
    R  <ROLL-FL> get block (1): 2675
    R  roll out: next free block 2675
    R  out: next[2935] = 2675 first 0 rnum 50
    R  <ROLL-FL> get block (1): 851
    R  roll out: next free block 851
    R  out: next[2675] = 851 first 0 rnum 50
    R  HEADER: id abload class 4 len 96 n_len 96
    R  HEADER: id abdseg class 4 len 1072 n_len 1072
    R  HEADER: id abgetw class 4 len 96 n_len 96
    R  HEADER: id abgetw class 4 len 320 n_len 320
    R  HEADER: id dyrdyp class 4 len 3680 n_len 3680
    R  HEADER: id ablink class 4 len 33008 n_len 33008
    R  <ROLL-FL> get block (1): 4143
    R  roll out: next free block 4143
    R  out: next[851] = 4143 first 0 rnum 50
    R  <ROLL-FL> get block (1): 4142
    R  roll out: next free block 4142
    R  out: next[4143] = 4142 first 0 rnum 50
    R  <ROLL-FL> get block (1): 1682
    R  roll out: next free block 1682
    R  out: next[4142] = 1682 first 0 rnum 50
    R  <ROLL-FL> get block (1): 936
    R  roll out: next free block 936
    R  out: next[1682] = 936 first 0 rnum 50
    R  compres factor 75
    R  SemRel
    R  leave rrol_out: ok
    M  M  ThRollOut: act roll state = DP_ROLLED_OUT
    M  ThRollOut: roll level <> 0, don't call ab_rollout
    P  enter pg_com
    P  pg_com: 0 blks in buf, 0 in file, 0 new since last commit
    P  leave pg_com: ok
    M  ThRollOut: full roll out of U35 M0 I0 (Level 7) ok
    C  -->oci_break (con_hdl=-1, cb=0)
    M  *** WARNING => sql break failed (-1)
    M  ThErrHandle: don't try rollback again
    M  ThErrHandle: call ThrCoreInfo
    A  + not rolled in
    A  RFC get SPA_SESSION_ARFC: NORMAL
    E  EnqRollback: No action required
    M  SigIRegisterRoutine: handler for signal 11 installed (catch_dumperror)
    M  SigIRegisterRoutine: handler for signal 10 installed (catch_dumperror)
    B Wed Jul 16 13:06:49 2008
    B  dsql_open (con_da=(0,R/3),stmt="SELECT TLINE, SEQNO FROM SNAPT ...",#binds=3,name=SNAPT                         ,#input=3)
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=14225feb0)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=SELECT TLINE, SEQNO FROM SNAPT WHERE LANGU = :A0 A ..., stmt_ln=0, stmth_p=14225feb0)
    C  -->oci_bind (stmth_p=14225feb0, cnt=3)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225feb0, iters=0, rowoff=0, query=1)
    B  dsql_fetch (con_da=(0,R/3),cu_id=1,#output=2)
    C  -->oci_define (stmth_p=14225feb0, cnt=2)
    C  -->oci_fetch (con_hdl=0, stmth_p=14225feb0, nrows=650)
    B  dsql_close (con_da=(0,R/3),cu_id=1)
    C  -->oci_free_stmt (stmth_p=14225feb0)
    B  dsql_open (con_da=(0,R/3),stmt="SELECT TLINE, SEQNO FROM SNAPT ...",#binds=3,name=SNAPT                         ,#input=3)
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=14225ff70)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=SELECT TLINE, SEQNO FROM SNAPT WHERE LANGU = :A0 A ..., stmt_ln=0, stmth_p=14225ff70)
    C  -->oci_bind (stmth_p=14225ff70, cnt=3)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225ff70, iters=0, rowoff=0, query=1)
    B  dsql_fetch (con_da=(0,R/3),cu_id=1,#output=2)
    C  -->oci_define (stmth_p=14225ff70, cnt=2)
    C  -->oci_fetch (con_hdl=0, stmth_p=14225ff70, nrows=650)
    B  dsql_close (con_da=(0,R/3),cu_id=1)
    C  -->oci_free_stmt (stmth_p=14225ff70)
    B  dsql_open (con_da=(0,R/3),stmt="SELECT TLINE, SEQNO FROM SNAPT ...",#binds=3,name=SNAPT                         ,#input=3)
    C  -->oci_alloc_stmt (con_hdl=0)
    C  <--oci_alloc_stmt (stmth_p=14225feb0)
    C  -->oci_prepare_stmt (con_hdl=0, stmt=SELECT TLINE, SEQNO FROM SNAPT WHERE LANGU = :A0 A ..., stmt_ln=0, stmth_p=14225feb0)
    C  -->oci_bind (stmth_p=14225feb0, cnt=3)
    C  -->oci_execute_stmt (con_hdl=0, stmth_p=14225feb0, iters=0, rowoff=0, query=1)
    B  dsql_fetch (con_da=(0,R/3),cu_id=1,#output=2)
    C  -->oci_define (stmth_p=14225feb0, cnt=2)
    C  -->oci_fetch (con_hdl=0, stmth_p=14225feb0, nrows=650)
    B  dsql_close (con_da=(0,R/3),cu_id=1)
    C  -->oci_free_stmt (stmth_p=14225feb0)
    M  RmCleanUpResources2: hdr/tbl/ext_tbl = 9029188/0/0
    M  RmCleanUpResources2: no resources registered
    M  SigIRegisterRoutine: handler for signal 11 installed (catch_dumperror)
    M  SigIRegisterRoutine: handler for signal 10 installed (catch_dumperror)
    M  ThIErrHandle: Entering ThErrHdlUser
    M  ThErrHdlUser: set th_errno (11)
    M  ThErrHdlUser: save context
    M  ThEmContextDetach2: detach T34/M0 from em memory (em_hdl=116)
    M  ThDBDisconnect: disconnect from data base
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName              ConCnt ConState     TX  PRM RCT Date     Time
    B  034 000 R/3                  000000 ACTIVE       YES YES NO  20080716 130546
    C  Disconnecting from connection 0 ...
    C  -->oci_free_stmt (stmth_p=142265af0)
    C  -->oci_free_stmt (stmth_p=142265a30)
    C  -->oci_free_stmt (stmth_p=14225fa30)
    C  -->oci_free_stmt (stmth_p=14225faf0)
    C  -->oci_free_stmt (stmth_p=14225fc70)
    C  -->oci_free_stmt (stmth_p=142265bb0)
    C  -->oci_logoff(con_hdl=0)
    C  -->oci_free_stmt (stmth_p=142265f70)
    C  Now I'm disconnected from ORACLE
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=5, com_forced=1, com_tx=1)
    B  statistics db_con_rollback (roll_total=0, roll_forced=0, roll_tx=0)
    M  ThErrHandle: disconnect o.k.
    M  ***LOG Q02=> wp_halt, WPStop (Workproc34 1557514)
    M  SigIGenAction: return from exithandler ThSigHandler(FALSE)
    M  set mode of sig 11 to BLOCKED and send to own pid
    M
    M  CORE DUMP ...

  • A query statement

    SELECT SCN_TO_TIMESTAMP(TIMESTAMP_TO_SCN(startup_time)) "DB Shutdown Time" , startup_time "DB Startup Time" FROM v$instance;
    Hi All
    I find above sql statement from internet. It is said that this SQL will shows the database down time and start time.
    I tried and it did.
    I understande the startup_time from v$instance shows the db start up time.
    But I dont understand why SCN_TO_TIMESTAMP(TIMESTAMP_TO_SCN(startup_time)) can shows the db shut down time.
    From my understanding SCN_TO_TIMESTAMP(TIMESTAMP_TO_SCN(startup_time)) just include two steps
    1. turn the startup_time into SCN
    2. turn the SCN into TIMESTAMP
    How come it turn out to be the shut down time?
    Regards
    Mingwei

    See the sql language reference - http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions183.htm
    >
    TIMESTAMP_TO_SCN takes as an argument a timestamp value and returns the approximate system change number (SCN) associated with that timestamp. The returned value is of datatype NUMBER. This function is useful any time you want to know the SCN associated with a particular timestamp.
    Note:
    The association between an SCN and a timestamp when the SCN is generated is remembered by the database for a limited period of time. This period is the maximum of the auto-tuned undo retention period, if the database runs in the Automatic Undo Management mode, and the retention times of all flashback archives in the database, but no less than 120 hours. The time for the association to become obsolete elapses only when the database is open. An error is returned if the SCN specified for the argument to TIMESTAMP_TO_SCN is too old.
    >
    When you shutdown an instance normally a checkpoint will be taken and written to the control file.
    You can see some of the other SCNs if you query v$database
    select scn_to_timestamp(v$database.current_scn) cur_scn,
    scn_to_timestamp(v$database.controlfile_change#) ctrl_scn,
    scn_to_timestamp(v$database.checkpoint_change#) ckpt_scn,
    scn_to_timestamp(v$database.archive_change#) arc_scn
    from v$databaseWhen the database is shutdown no SCNs are generated so the association list (between SCN and timestamp) doesn't get added to.
    The startup_time will actually use an SCN from the list but when you convert it back it converts it to the actual encoded time.
    Run your query to see the value for startup_time and then plug it in to the query below and you will get the same shutdown value.
    select scn_to_timestamp(timestamp_to_scn(to_timestamp('02/19/2012 8:03:43 PM', 'MM/DD/YYYY HH:MI:SS PM')))
    from dualNow if you modify the value above by a minute or two you will still get the same shutdown value but if you vary it too much
    you will start getting different values. Try adding 1, 2, 3, 4, 5 minutes and subtracting 1, 2, 3, 4, 5 minutes and you will see the range.
    --edited to add following tests
    I shutdown a server for just over an hour and then started it back up.
    When I run your query now I get
    SELECT SCN_TO_TIMESTAMP(TIMESTAMP_TO_SCN(startup_time)) "DB Shutdown Time" , startup_time "DB Startup Time" FROM v$instance;
    DB Shutdown Time                                      DB Startup Time
    2/19/2012 9:06:51.000000000 PM     2/19/2012 10:12:00 PMNow if I run my query with some different times I always get the same LAST_SCN_TIME (your DB Shutdown Time)
    2/19/2012 9:06:51.000000000 PM     2/19/2012 9:55:43.000000000 PM
    2/19/2012 9:06:51.000000000 PM     2/19/2012 9:45:43.000000000 PM
    2/19/2012 9:06:51.000000000 PM     2/19/2012 9:10:43.000000000 PMBut if I use a time before the shutdown I get the value for the SCN prior to the checkpoint done at shutdown
    2/19/2012 9:00:43.000000000 PM     2/19/2012 9:00:43.000000000 PMThe 'timestamp_to_scn' function doesn't really do a direct conversion. It gets the SCN from the 'saved' list that is the latest SCN equal
    or earlier than the timestamp you ask for.
    But the 'scn_to_timestamp' function actually does do a direct conversion (within 3 seconds) to the timestamp represented by the SCN.
    These functions are used by FLASHBACK functionality. When you FLASHBACK to a prior point in time Oracle really does the flashback to an
    SCN from the past by looking it up in its saved list as the manual quote indicates. If I had shutdown the instance for a week and just
    restarted it today I could do a FLASHBACK to yesterday but I will really get the data the way it looked last week when I shut it down.
    Edited by: rp0428 on Feb 19, 2012 10:18 PM

  • How to get footer only in last page of report

    anybody tell me
    1).how to get footer only in last page while we are displaying reports
        and header only in first page .
    2) how to create search help and how to use it .
    3) how to create lock objects and how can we use it

    Hi
    This posting has an example of using a splitter container:
    Changing width of a custom container dynamically
    This posting has a discussion about using TOP-OF-PAGE:
    Display Page numbers in ALV
    This posting has an example of using picture control:
    Insert picture in selection screen.
    This posting has an example of putting a picture on top of an ALV grid:
    Logo in OO ALV Grid
    The page footer is defined using the statement END-OF-PAGE.
    The processing block following END-OF-PAGE is processed only if you reserve lines for the footer in the LINE-COUNT option of the REPORT statement.
    <u><b>CREATION:</b></u>
    Go to SE11 Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    <b>Creating Search Help:</b>
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_imp.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee2b446011d189700000e8322d00/frameset.htm
    A lock object is a virtual link of several SAP tables which is used to synchronize simultaneous access by two users to the same set of data ( SAP lock concept).
    Locks are requested and released in the programming of online transactions by calling certain function modules which are automatically generated from the definition of the lock objects. These lock objects must be explicitly created in the ABAP Dictionary.
    <b>To set locks, you must perform the following steps:</b>
    1. You must define a lock object in the ABAP Dictionary. The name of the lock object should begin with E.
    2. The function modules for requesting and releasing locks which are created automatically when the lock object is activated must be linked to the programming of the relevant online transactions.
    <u><b>Reasons for Setting Locks</b></u>
    Suppose a travel agent want to book a flight. The customer wants to fly to a particular city with a certain airline on a certain day. The booking must only be possible if there are still free places on the flight. To avoid the possibility of overbooking, the database entry corresponding to the flight must be locked against access from other transactions. This ensures that one user can find out the number of free places, make the booking, and change the number of free places without the data being changed in the meantime by another transaction.
    <u><b>Lock Mechanisms in the Database System</b></u>
    The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.
    Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System.
    <u><b>SAP Locks</b></u>
    To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.
    The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.
    Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary. A lock object definition contains the database tables and their key fields on the basis of which you want to set a lock. When you create a lock object, the system automatically generates two function modules with the names ENQUEUE_<lock object name> and DEQUEUE_<lock object name> . You can then set and release SAP locks in your ABAP program by calling these function modules in a CALL FUNCTION statement.
    <u><b>Lock Types</b></u>
    There are two types of lock in the R/3 System:
    <u><b>
    Shared lock</b></u>
    Shared locks (or read locks) allow you to prevent data from being changed while you are reading it. They prevent other programs from setting an exclusive lock (write lock) to change the object. It does not, however, prevent other programs from setting further read locks.
    <u><b>Exclusive lock</b></u>
    Exclusive locks (or write locks) allow you to prevent data from being changed while you are changing it yourself. An exclusive lock, as its name suggests, locks an application object for exclusive use by the program that sets it. No other program can then set either a shared lock or an exclusive lock for the same application object.
    example uses the lock object ESFLIGHT and its function modules ENQUEUE_ESFLIGHT and DEQUEUE_ESFLIGHT to lock and unlock the object.
    For more information about creating lock objects and the corresponding function modules, refer to the Lock objects section of the ABAP Dictionary documentation.
    The PAI processing for screen 100 in this transaction processes the user input and prepares for the requested action (Change or Display). If the user chooses Change, the program locks the relevant database object by calling the corresponding ENQUEUE function.
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'SHOW'....
        WHEN 'CHNG'.
    * <...Authority-check and other code...>
          CALL FUNCTION 'ENQUEUE_ESFLIGHT'
    EXPORTING
    MANDT = SY-MANDT
    CARRID = SPFLI-CARRID
    CONNID = SPFLI-CONNID
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3.
    IF SY-SUBRC NE 0.
    MESSAGE ID SY-MSGID
    TYPE 'E'
    NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    The ENQUEUE function module can trigger the following exceptions:
    FOREIGN_LOCK determines whether a conflicting lock already exists. The system variable SY-MSGV1 contains the name of the user that owns the lock.
    The SYSTEM_FAILURE exception is triggered if the enqueue server is unable to set the lock for technical reasons.
    At the end of a transaction, the locks are released automatically. However, there are exceptions if you have called update routines within the transaction. You can release a lock explicitly by calling the corresponding DEQUEUE module. As the programmer, you must decide for yourself the point at which it makes most sense to release the locks (for example, to make the data available to other transactions).
    If you need to use the DEQUEUE function module call several times in a program, it makes good sense to write it in a subroutine, which you then call as required.
    The subroutine UNLOCK_FLIGHT calls the DEQUEUE function module for the lock object ESFLIGHT:
    FORM UNLOCK_FLIGHT.
         CALL FUNCTION 'DEQUEUE_ESFLIGHT'
              EXPORTING
                  MANDT     = SY-MANDT
                  CARRID    = SPFLI-CARRID
                  CONNID    = SPFLI-CONNID
              EXCEPTIONS
                  OTHERS    = 1.
         SET SCREEN 100.
    ENDFORM.
    You might use this for the BACK and EXIT functions in a PAI module for screen 200 in this example transaction. In the program, the system checks whether the user leaves the screen without having saved his or her changes. If so, the PROMPT_AND_SAVE routine sends a reminder, and gives the user the opportunity to save the changes. The flight can be unlocked by calling the UNLOCK_FLIGHT subroutine.
    MODULE USER_COMMAND_0200 INPUT.
      CASE OK_CODE.
        WHEN 'SAVE'....
        WHEN 'EXIT'.
          CLEAR OK_CODE.
          IF OLD_SPFLI NE SPFLI.
             PERFORM PROMPT_AND_SAVE.
          ENDIF.
          PERFORM UNLOCK_FLIGHT.
          LEAVE TO SCREEN 0.
        WHEN 'BACK'....
    <b>
    Another Example</b> :
    please see this link with Screen shot .....
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm
    Reward all helpfull answers
    Regards
    Pavan

  • Can i add an if statement anywhere in this code?

    I need to add an if statement anywhere in this code, it doesnt matter where, but if it is nested it would be better. any ideas?
    import java.text.DecimalFormat;
    import javax.swing.JOptionPane;
    import javax.swing.*;
    import java.util.*;
    import static java.lang.System.out;
    import java.util.Scanner;
    //Defines the counter for the student count and the lists for students
    //to be saved in
    public class EdronProject {
      private              int           studentCount;
      private static final String        USAGE = "Usage: java EdronProject <student count>";
      private              List<Student> list;
    //Set up the counter fo the number of students and the list in which
    //each student's information is saved once processed
      public EdronProject(int count) {
        studentCount = count;
        list = new ArrayList<Student>();
    //Checks the number or arguments, and it executes the rest of the code
    //if there is 1 argument or more (the number of arguments = the number
    //of students being processed)
      public static void main( String args[] )  throws NumberFormatException {
       int count = 0;
       switch (args.length) {
         case 1: count = Integer.parseInt(args[0]); break;
         default: System.out.println(USAGE);
      //Defines method for processing and printing students within the
      //EdronProject class 
        EdronProject edp = new EdronProject(count);
        edp.processStudents();
        edp.printStudents();
      class Student {
      //Define integer values for the 5 subject's grades, the gradeCounter (used
      //in the processing stage) and the student name string
          private int 
                    gradeCounter,
                    grade1,
                    grade2,
                    grade3,
                    grade4,
                    grade5;
         private double total;
         private String studentName;
    //Use setter getter methods for the student name to be retrieved
        public void setStudentName(String name) {
           studentName = name;
        public String getStudentName() {
          return( studentName );
    //Use setter getter methods for the grades inputted to be retrieved
    //by the processing stage
        public void setGrade(int gradeNo, int grade)  throws IllegalArgumentException {
          switch( gradeNo) {
            case 1 : grade1 = grade; break;
            case 2 : grade2 = grade; break;
            case 3 : grade3 = grade; break;
            case 4 : grade4 = grade; break;
            case 5 : grade5 = grade; break;
            default: throw new IllegalArgumentException("ERROR: Bad grade number passed!");
      //Increase grade counter for it to register the number of grades inputted
      //by user
          gradeCounter++;
        public int getGrade(int gradeNo)  throws IllegalArgumentException {
          int grade = 0;
          switch( gradeNo) {
            case 1 : grade = grade1; break;
            case 2 : grade = grade2; break;
            case 3 : grade = grade3; break;
            case 4 : grade = grade4; break;
            case 5 : grade = grade5; break;
            default: throw new IllegalArgumentException("ERROR: Bad grade number passed!");
      //Return grade values for them to be used by the processing stage   
          return( grade );
      //Calculate the total by adding al 5 grade values 
        public double getTotal() { 
          total = (getGrade(1) + getGrade(2) + getGrade(3) + getGrade(4) + getGrade(5));
      //Total value returned for it to be used to calculate the average   
          return total;
      //Average is calculated by dividing the total over the grade
      //counter (number of grades inputted)
        public double getAverage() { 
          return ( (gradeCounter == 0) ? 0 : total / gradeCounter);

    //Get input from user for student's 5 grades which are set as Grade 1, 2, 3, 4, 5
      //and each five inputs for the student are saved to their own list along with the
      //student name
      public void processStudents() {
        for (int counter = 0; counter < studentCount; counter++) {
          Student student = new Student();
          student.setStudentName(JOptionPane.showInputDialog("Enter student's name:"));
          student.setGrade(1, Integer.parseInt(JOptionPane.showInputDialog( "Enter the student's grade for Psychology \n(You may ONLY use whole positive numbers ranging from 0 to 10)")));
          student.setGrade(2, Integer.parseInt(JOptionPane.showInputDialog( "Enter the student's grade for Math \n(You may ONLY use whole positive numbers ranging from 0 to 10)")));
          student.setGrade(3, Integer.parseInt(JOptionPane.showInputDialog( "Enter the student's grade for Art \n(You may ONLY use whole positive numbers ranging from 0 to 10)")));
          student.setGrade(4, Integer.parseInt(JOptionPane.showInputDialog( "Enter the student's grade for Science \n(You may ONLY use whole positive numbers ranging from 0 to 10) ")));
          student.setGrade(5, Integer.parseInt(JOptionPane.showInputDialog( "Enter the student's grade for English \n(You may ONLY use whole positive numbers ranging from 0 to 10)")));
          list.add(student);
    //Begin printting stage for each student entered
      public void printStudents() {
        for ( int i = 0; i < list.size(); i++ ) {
          Student s = list.get(i);
          printStudent(s);
    //Print the student name along with each grade entered separated by commas
    //and the total and average values in separate lines
      private void printStudent(Student student) {
        System.out.println("Student Name: "+student.getStudentName()
                          +", Pych: "+student.getGrade(1)
                          +", Math: "+student.getGrade(2)
                          +", Art : "+student.getGrade(3)
                          +", Sci : "+student.getGrade(4)
                          +", Eng : "+student.getGrade(5)
                          +",\n Total  : "+student.getTotal()         
                          +",\n Average: "+student.getAverage()+"\n");
     

  • When I try to open Photoshop CS6 I get "Error Code 16"

    When I try to open Photoshop CS6 I get "Error Code 16"
    I have researched Internet - ADOBE and others - to find a solution, but no luck! (see under)
    The problem started around one year ago but I was able to open Bridge and go to Photoshop from there until recently.
    Now I get "Error Code 16" in Bridge too when I am trying to go to Photoshop.
    I have tried everything I could think of (including creating a new Administrator-user) with help from my Internet research and my own pretty good experience (I started working with computer systems as a Systems Analysts 1968...... - now it is only PCs)
    I miss my Photoshop and Bridge a lot - it is very frustrating to have this problem, but I can see I am not the only one!!!
    I also have these Adobe products:
    Adobe Photoshop
    1045-1297-1724-5553-8938-xxxx
    Adobe InDesign
    1037-1476-0290-3491-8464-xxxx
    Adobe Audition
    1137-1169-5106-2253-7226-xxxx
    Adobe Photoshop
    1045-1007-5934-1160-3319-xxxx
    Adobe Photoshop Elements
    1057-4535-7945-2468-2014-xxxx
    and some more.
    I am grateful for all help.
    /// Björn Andrén   -   [email protected]   (member ID)
    =======================================================================
    Configuration error 16 when you start a Creative Cloud (CC) or Creative Suite (CS) application
    https://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html
    ========================================================================
    Adobe CC/CS6 - Error 16 and no SLStore or PCD File
    https://forums.adobe.com/message/7157810
    https://forums.adobe.com/thread/1243845?tstart=0
    =========================================================================
    How to Erase an Adobe Registration File
    http://smallbusiness.chron.com/erase-adobe-registration-file-45714.html
    =========================================================================
    Why can't I open Photoshop CS6? Missing Adobe PCD and SLstore folders!?
    https://answers.yahoo.com/question/index?qid=20130608085953AAuWzEA
    ========================================================================
    Issue with getting an Error code '16' if trying to install Adobe Photoshop CS5
    http://thedailybuggle.com/forum/issue-getting-error-code-16-if-trying-install-adobe-photos hop-cs5-66.html
    ========================================================================
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Mon Feb 09 17:24:22 2015] ---------------------------------------------------------
    [Mon Feb 09 17:24:22 2015] *=*=*=*=*=*=*=*=* :: Start Session :: *=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:24:22 2015] ---------------------------------------------------------
    [Mon Feb 09 17:24:22 2015] Win OS Version: 6.1
    [Mon Feb 09 17:24:22 2015] Cleaner Tool version        : 2.0.0.0
    [Mon Feb 09 17:24:22 2015] Cleanup source directory    : C:\Program Files (x86)\Common Files\Adobe\AdobeCreativeCloudCleanerTool
    [Mon Feb 09 17:24:22 2015] [AdobeProgramFiles]        : C:\Program Files (x86)\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeProgramFiles_x64]    : C:\Program Files\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeCommon]            : C:\Program Files (x86)\Common Files\Adobe
    [Mon Feb 09 17:24:22 2015] [AdobeCommon_x64]        : C:\Program Files\Common Files\Adobe
    [Mon Feb 09 17:24:22 2015] [UserRoamingAppData]        : C:\Users\BEAR2\AppData\Roaming
    [Mon Feb 09 17:24:22 2015] [UserLocalAppData]        : C:\Users\BEAR2\AppData\Local
    [Mon Feb 09 17:24:22 2015] [StartMenu]                : C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    [Mon Feb 09 17:24:22 2015] [System32Folder]            : C:\Windows\system32
    [Mon Feb 09 17:24:22 2015] [SharedApplicationData]    : C:\ProgramData
    [Mon Feb 09 17:24:28 2015] Language selected: English
    [Mon Feb 09 17:24:28 2015] Displaying the Adobe End User License Agreement
    ADOBE
    Gen_WWCombined-en_US-20121017_1230
    [Mon Feb 09 17:24:28 2015] Please enter (y) for Yes or (n) for No. ... >>
    [Mon Feb 09 17:24:38 2015] Choose from one of the following options to clean up :
    [Mon Feb 09 17:24:38 2015] 1.  All
    [Mon Feb 09 17:24:38 2015] 2.  Adobe Flash Player 10.2
    [Mon Feb 09 17:24:38 2015] 3.  Creative Cloud 2014 , Creative Cloud & CS6 Products
    [Mon Feb 09 17:24:38 2015] 4.  Creative Cloud 2014 only
    [Mon Feb 09 17:24:38 2015] 5.  Creative Cloud only
    [Mon Feb 09 17:24:38 2015] 6.  CS6 only
    [Mon Feb 09 17:24:38 2015] 7.  CS5-CS5.5-CS6
    [Mon Feb 09 17:24:38 2015] 8.  CS5-CS5.5
    [Mon Feb 09 17:24:38 2015] 9.  CS3, CS4
    [Mon Feb 09 17:24:38 2015] 10.  Adobe Id credentials
    [Mon Feb 09 17:24:38 2015] 11.  Quit
    [Mon Feb 09 17:24:38 2015] Choice :>
    [Mon Feb 09 17:24:44 2015] User selected: CS6 Only
    [Mon Feb 09 17:24:44 2015] Executed the command : call copy /Y "C:\Program Files (x86)\Common Files\Adobe\caps\pdb.db" "C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444\pdb.db"
    [Mon Feb 09 17:24:44 2015] Executed the command : call copy /Y "C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db" "C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444\Media_db.db"
    [Mon Feb 09 17:24:44 2015] Opened DB connection with path: C:\Program Files (x86)\Common Files\Adobe\caps\pdb.db
    [Mon Feb 09 17:24:44 2015] DB does not exist at: C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db
    [Mon Feb 09 17:24:44 2015] List of products installed on this machine
    [Mon Feb 09 17:24:44 2015] Listing products for cleanup:
    [Mon Feb 09 17:24:44 2015] Please enter the option number of the product you wish to remove; enter (q) to quit ... >>
    [Mon Feb 09 17:25:02 2015] response 1
    [Mon Feb 09 17:25:02 2015] Are you sure you want to clean all the listed products and associated files?
    [Mon Feb 09 17:25:02 2015] Type (y) to confirm and remove or (n) to quit ... >>
    [Mon Feb 09 17:25:07 2015] Please wait for Adobe Creative Cloud Cleaner Tool to finish........
    [Mon Feb 09 17:25:07 2015] User selected: 'Clean All'
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*-* Start removing product : ALL *-*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*-* Finished removing product : ALL *-*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] Action : Deleting the C:\Program Files (x86)\Common Files\Adobe\backup20150209T172444 folder as there is no product deleted.
    [Mon Feb 09 17:25:07 2015] LOG FILE SAVED TO: C:\Users\BEAR2\AppData\Local\Temp\Adobe Creative Cloud Cleaner Tool.log
    [Mon Feb 09 17:25:07 2015] Adobe Creative Cloud Cleaner Tool completed successfully
    [Mon Feb 09 17:25:07 2015]
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*- ::START:: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Mon Feb 09 17:24:44 2015] DB does not exist at: C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db
    [Mon Feb 09 17:25:07 2015] *-*-*-*-*-*- :: END :: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Mon Feb 09 17:25:07 2015] ---------------------------------------------------------
    [Mon Feb 09 17:25:07 2015] *=*=*=*=*=*=*=*=* :: End Session :: *=*=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:25:07 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] *=*=*=*=*=*=*=*=* :: Start Session :: *=*=*=*=*=*=*=*=*=*
    [Mon Feb 09 17:28:53 2015] ---------------------------------------------------------
    [Mon Feb 09 17:28:53 2015] Win OS Version: 6.1
    [Mon Feb 09 17:28:53 2015] Cleaner Tool version        : 2.0.0.0
    [Mon Feb 09 17:28:53 2015] Cleanup source directory    : C:\Program Files (x86)\Common Files\Adobe\AdobeCreativeCloudCleanerTool
    [Mon Feb 09 17:28:53 2015] [AdobeProgramFiles]        : C:\Program Files (x86)\Adobe
    [Mon Feb 09 17:28:53 2015] [AdobeProgramFiles_x64]    : C:\Program Files\Adobe
    ================================================================================
    OS Name    Microsoft Windows 7 Professional
    Version    6.1.7601 Service Pack 1 Build 7601
    Other OS Description     Not Available
    OS Manufacturer    Microsoft Corporation
    System Name    BEAR-PC
    System Manufacturer    System manufacturer
    System Model    System Product Name
    System Type    x64-based PC
    Processor    Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz, 3401 Mhz, 4 Core(s), 8 Logical Processor(s)
    BIOS Version/Date    American Megatrends Inc. 0801, 2011-08-15
    SMBIOS Version    2.6
    Windows Directory    C:\Windows
    System Directory    C:\Windows\system32
    Boot Device    \Device\HarddiskVolume1
    Locale    United States
    Hardware Abstraction Layer    Version = "6.1.7601.17514"
    User Name    BEAR-PC\BEAR2
    Time Zone    Eastern Standard Time
    Installed Physical Memory (RAM)    16.0 GB
    Total Physical Memory    16.0 GB
    Available Physical Memory    12.1 GB
    Total Virtual Memory    31.9 GB
    Available Virtual Memory    28.1 GB
    Page File Space    16.0 GB
    Page File    C:\pagefile.sys

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • Bind Variable in SELECT statement and get the value  in PL/SQL block

    Hi All,
    I would like  pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
    Please seee below
    I want to get the below value
    Expected result:
    select  distinct empno ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    100, HR
    select  distinct ename ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    TEST, HR
    select  distinct loc ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    NYC, HR
    Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
    Please suggest
    ----- TABLE LIST
    CREATE TABLE EMP(
    EMPNO NUMBER,
    ENAME VARCHAR2(255),
    DEPT VARCHAR2(255),
    LOC    VARCHAR2(255)
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
    COMMIT;
    CREATE TABLE COLUMNAMES(
    COLUMNAME VARCHAR2(255)
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
    COMMIT;
    CREATE TABLE DEPT(
    DEPT VARCHAR2(255),
    DNAME VARCHAR2(255)
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    COMMIT;
    PL/SQL BLOCK
    DECLARE
      TYPE EMPCurTyp  IS REF CURSOR;
      v_EMP_cursor    EMPCurTyp;
      l_col_val           EMP.ENAME%type;
      l_ENAME_val       EMP.ENAME%type;
    l_col_ddl varchar2(4000);
    l_col_name varchar2(60);
    l_tab_name varchar2(60);
    l_empno number ;
    b_l_col_name VARCHAR2(255);
    b_l_empno NUMBER;
    begin
    for rec00 in (
    select EMPNO aa from  EMP
    loop
    l_empno := rec00.aa;
    for rec in (select COLUMNAME as column_name  from  columnames
    loop
    l_col_name := rec.column_name;
    begin
      l_col_val :=null;
       l_col_ddl := 'select  distinct :b_l_col_name ,pr.dept ' ||'  from emp pr, dept ps where   ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
       dbms_output.put_line('DDL ...'||l_col_ddl);
       OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
    LOOP
        l_col_val :=null;
        FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
        EXIT WHEN v_EMP_cursor%NOTFOUND;
          dbms_output.put_line('l_col_name='||l_col_name ||'  empno ='||l_empno);
       END LOOP;
    CLOSE v_EMP_cursor;
    END;
    END LOOP;
    END LOOP;
    END;

    user1758353 wrote:
    Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
    As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
    However, the data structures are just that - structured. Logical.
    Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
    There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model.

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get "error code 3: Could not load front panel" for each of my agilent spectrum analyzer VIs. I have to click "OK" about ten times, once for each VI. (My executable runs fine on all machines that have labview 8.5) The front panel does load with a broken arrow. The errors listed when the arrow is clicked for all of the Agilent VIs state: Missing subVI AGE444xInitialize.VI (or close.VI or read.VI etc.)
    There is an AGE444x32.DLL in the data folder with the EXE file so I included as support both the DLL and all of the agilent drivers in the application build. Still no luck. I have built the application and installer about 6 times in various forms. I NEED AIR SUPPORT.
    Unfortunately I do not have access to the internet at my jobsite so bear with me.
    Rob

    Hi V-rob,
    I'm glad to hear the executable is working now that NI-VISA is installed.  Thanks for posting the solution!
    Jennifer R.
    National Instruments
    Applications Engineer

  • How do i get my code to be applicable in a certain case

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments i.e. pass execution onto SAP so to speak.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
    check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
    check pppar-fcode = 'INSE'.
    *Data declarations
    data: lt_hrp1001 type table of hrp1001,
    ls_hrp1001 type hrp1001,
    lv_sobid type sobid,
    lv_sclas type sclas,
    lv_rsign type rsign,
    lv_relat type relat,
    lv_plvar type plvar,
    lv_otype type objid.
    Clear the local table and local variables
    refresh lt_hrp1001.
    clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
    lv_sclas = old_innnn-vdata+0(2). "target object type
    lv_sobid = old_innnn-vdata+2(10). "target object ID
    lv_rsign = old_innnn-subty+0(1). "relationship direction
    lv_relat = old_innnn-subty+1(3). "relationship type
    lv_otype = old_innnn-otype.
    lv_plvar = old_innnn-plvar. "planned version
    *Check for existing relationships between a BP of that type with other external objects
    select * from hrp1001 into table lt_hrp1001
    where plvar = old_innnn-plvar
    and sobid = lv_sobid
    and sclas = lv_sclas
    and rsign = lv_rsign
    and relat = lv_relat
    and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
    loop at lt_hrp1001
    into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
    if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
    message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
    exit.
    endif.
    endloop.
    endmethod.

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

  • How do i get my code to be applicable in a certain case only

    Greetings ABAPers. I would like to know the various ways in which i can get my code to be applicable in a certain case. Ive include the code below. I want the code to execute only when the object type is 'BP' for business partner. That is, i want my logic (code) to execute only when the object type is an external object (BP) otherwise it should be handled normally the way SAP handles internal objects. The tricky part for me isnt the actual check because i could have used the CHECK statement. The tricky part is how do i tell it to handle it the way SAP handles normal internal object assignments.
    Any suggestions as to how i can clean up my code and improve my commenting is also greatly appreciated.
    Code:
    method if_ex_hrbas00infty~before_output.
    Ensure that this validation only occurs for this user
      check sy-uname = 'LMANDIMIKA'.
    If the function code is an insert then continue or stop otherwise
      check pppar-fcode = 'INSE'.
    *Data declarations
      data: lt_hrp1001 type table of hrp1001,
            ls_hrp1001 type hrp1001,
            lv_sobid type sobid,
            lv_sclas type sclas,
            lv_rsign type rsign,
            lv_relat type relat,
            lv_plvar type plvar,
            lv_otype type objid.
    Clear the local table and local variables
      refresh lt_hrp1001.
      clear: lv_sobid, lv_sclas, lv_rsign, lv_relat, ls_hrp1001, lv_plvar, lv_otype.
    *Take our data declarations and insert data elements from the new relationship which we are trying to create.
      lv_sclas = old_innnn-vdata+0(2).    "target object type
      lv_sobid = old_innnn-vdata+2(10).   "target object ID
      lv_rsign = old_innnn-subty+0(1).    "relationship direction
      lv_relat = old_innnn-subty+1(3).    "relationship type
      lv_otype = old_innnn-otype.
      lv_plvar = old_innnn-plvar.         "planned version
    *Check for existing relationships between a BP of that type with other external objects
      select * from hrp1001 into table lt_hrp1001
        where plvar = old_innnn-plvar
          and sobid = lv_sobid
          and sclas = lv_sclas
          and rsign = lv_rsign
          and relat = lv_relat
          and otype = lv_otype.
    *Loop through the table and compare the existing relationship with the new one
      loop at lt_hrp1001
        into ls_hrp1001.
    Check that the end date for the existing relationship is after (greater than) the start date for the new relationship.
        if ls_hrp1001-endda > old_innnn-begda and ls_hrp1001-begda < old_innnn-endda.
          message e004(/cco/a3_msg) with lv_relat lv_sobid '' ''.
          exit.
        endif.
      endloop.
    endmethod.
    Edited by: Lovemore Mandimika on May 14, 2008 10:36 AM

    Hello kpmolinarivera,
    The iTunes Store country can be changed in Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311
    Cheers,
    Allen

Maybe you are looking for

  • How to track cost of damaged material reparied at workshop

    Hi Pm gurus My scenario is : Material is damaged and replaced at site with new one from stores and Damaged material is send to workshop to repair. After repairing then we have to send the material back to stores from the workshop and stock it in stor

  • Web proxy 3.6 SP5 installation steps

    Hi there, During iWPS installation, there is a step where we specify the LDAP server. This should be entered as ldap://<hostname>:<port>/<base dinstinguished name> 1. How can i know the base dinstinguished name. Is it the root dn (dc=acme,dc=com)? 2.

  • Just synced to mac book pro and then after that my apps will not open what to do?

    I synced to my Mac book pro which is only six months old and then once i finshed that and exited i tried to open my apps on iphone4 and none of the apps i have downloaded work the original apple ones do but none of my other ones... how do i fix this

  • Mobile Viewing of my PDF files

    How do I view pdf files from my home computer on my andriod phone?

  • Wrong version of an entity bean object being updated

    We are having a problem with an entity bean that uses bean managed persistence. The "order" entity bean has been used as part of our Order Routing System for the last 2 years with no problems. The entity bean is accessed via calls from a "Order Manag