Clear Entries in Variable Table

Hello Experts,
How can i clear the entries in variable table in PCR? what operation should i be using to clear entries in a pcr while processing payroll.
Thanks,
Janga K.

Create a PCR to clear all the temporary variables that will be created in a sub-schema,
and call it up at the beginning of that sub-schema with function ACTIO.
The PCR itself is for ESG * and WT ****, and uses operation ZERO=&xxxx over and over, as in:
ZVR2   *       ****       
        ZERO=&CURP
        ZERO=&FPAY
        ZERO=&LPAY
        ZERO=&SPLT
        ZERO=&9LLP
        ZERO=&JPAY
        ZERO=&TERM
        ZERO=&TLOA
        ZERO=&FLOA
        ZERO=&9HEJ
        ZERO=&P098
P.S. : Use program RPDASC00 to look at your sub-schema and it's rules, and search for operation ADDWT& to find them.

Similar Messages

  • How to clear entries from a table view

    Hi All,
      I am using a tableview in a BSP page. I am setting the attribute allrowseditable = 'TRUE'. The internal table I am using for the tableview contains only initial lines. Once the tableview is displayed i am entering some values on the cells. But even after triggering the DO_REQUEST the values i entered in the tableview remains, its not getting cleared eventhough my internal table contains only initial lines. I am not getting back the values from tableview in HANDLE_DATA or EVENT. Can anyone tell me why the cells in tableview is retaining the values. How can i overcome this.
    Thanks,
    regards
    Vishnu Aravind

    Hi Sebastian,
      The following is the code of my view
    <%@page language="abap"%>
    <%@ extension name="bsp" prefix="bsp" %>
    <%@ extension name="htmlb" prefix="htmlb" %>
    <%@ extension name="xhtmlb" prefix="xhtmlb" %>
    <%@ extension name="PlmHelp" prefix="plmhelp" %>
    <htmlb:gridLayout columnSize="1"
                      rowSize="2"
                      cellSpacing="10">
    <htmlb:gridLayoutCell rowIndex="1"
                          columnIndex="1">
    <htmlb:tableView
                        id                     = "attribute1"
                        allRowsEditable        = "X"
                        table                  = "<%= controller->tbl_attributes %>"/>
    </htmlb:gridLayoutCell>
    </htmlb:gridLayout>

  • Doubt in clearing entries in BSAD table.

    Hello All,
    I have came across with the reduction in table entries in BSAD table, since it was 31 before and now it has reduced to 25. Could someone please help in understanding in which scenario this can be reduced. Please confirm me whether any possibility due to the reverse posting? 
    Best Regards,
    Codewala

    Hi,
    use report RFBABL00 or tcode fb04 to analyse the documents
    A.

  • IDOC  error : Entry in inbound table not found

    Hello all...
    Iam gettin IDCO error when im processing inbound IDOC
    (basic type :FIDCCP02 and message type:FIDCC2)  like..
    <b>"Entry in inbound table not found..."</b>
    <b>in diagnosis:                                                                               
    Noinbound partner profile could be found with the following key:
        /XXXHUB/LS/LS/FIDCC2////  ..</b>
    but:
    I maintianed XXXHUB in logical system ( tcodeSALE  )    and
    in WE20 i maaintianed the parner profile in partner type LS with partner number XXXHUB   and also added  message type FIDCC2 with process code FID2  ...
    what else need to do/configure?....   
    let me know if u need more info...thnaks..

    Thanks guys...for your answers...
    there was some problem with message variant i assigned in the inbound parameters of sending system( XXXHUB)in the partner profile..( we20)...now i removed it...it is working fine..
    so  what's the problem if I assign the message varaint.do i have to declare the message variant anywhere?....
    one more thing...
    iam receiving idoc from XXXHUB to my DEV client200...i want to make clear which parameters(inbound/outbound) i have to maintain in WE20
    for sender  : XXXHUB (parter type LS).... inbound or outbound? ( i maintained both)
    for recipient :DEV200 ... inbound or outbound?(i maintained inbound)..
    Thnaks....

  • Removing entries in the table

    Hi,
    I need to delete entries in the table ,those may be anywhere between 1 to several thousand. If  I want to delete for every hundred records how could it be coded.
    Thanks,
    Kranthi.

    Here is a sample program which shows how to delete from a database table 100 records at a time. 
    report zrich_0001.
    data: itest type table of ztest with header line.
    data: itest2 type table of ztest with header line.
    data: index type i.
    * Get all the records that you want to delete
    clear itest. refresh itest.
    select * from ztest
          into corresponding fields of table itest
                        where mtart = 'ZNBW'.
    * Loop untill the first itab is empty, move 100 records * at a time into the second itab, then delete from that
    * second itab.
    while not itest[] is initial.
      clear index.
      loop at itest.
        index  = index + 1.
        check index <= 100.
        move-corresponding itest to itest2.
        append itest2.
        delete itest.
      endloop.
    delete ztest from table itest2.
    endwhile.
    Regards,
    Rich Heilman

  • Wrong entry in KNKK table

    Hi all,
    FD-32 transaction is used for the credit management and once we save the data the data gets updated in KNKK table.
    I want to know whether we can crreate an entry in KNKK table without having credit control area as if we try to do it through
    FD32 transaction then it is not possible.
    As i have a issue whic has blank credit control area in KNKK table.
    thanks,
    Anoop

    You can create an entry in the Table KNKK .
    FOr any specified data.
    But be sure of the Various redundencies... As and when you upload nay data in the System with the Help of an Abaper then the same table gets updated with the data
    But you never know homy other table and feilds should also to be changed as all the same are interrelated in the Net structure of the Database tables.
    So it may happen you face some error in the Same.
    But can you be clear why do you want to update a feilds with the table entry and not as a transaction entry.
    regards,
    Amlan Sarkar

  • How the Feature Variables Table BEFM_FV get populated in CRM Billing Eng?

    Hello Expert,
    Can you please tell me how the Feature Variables Table BEFM_FV get populated in CRM Billing Enge(BEFN)?
    We need to change the value of CANCEL_COPY_TYPE variable there. Please help.
    - FInd out the way to maintain this table from Billing Engine Frame(BEFN) Meta Data Entry.
    Edited by: Palash Dutta on Apr 25, 2011 4:10 PM

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Posting thro J1IEX error -  DEBIT ENTRY missing in table J_1ITRNACC

    Hello,
    While posting Cenvat Credit in J1IEX, the system is giving error as "Customization for DEBIT ENTRY missing in table J_1ITRNACC".
    - "The customization details have not been maintained for this company".
    When checked thro' SPRO>IMG>Logistics-General>Tax on goods movement>India>Account determination>Specify excise accounts per excise transaction', it shows all debit, credit entries for excise transaction type 'GRPO'.
    Kindly suggest me what else need to be checked? Part I entry is already done during MIGO.
    Thanking in advance.
    Regards
    Ratna

    Dear Velu & Pankaj Singh,
    Thanks for your prompt reply.
    We already had setting for the following.
    GRPO CR Credit CLEAR CENVAT clearing account
    GRPO DR Debit ONHOLD CENVAT on hold account
    GRPO DR Debit RG23AED RG 23 AED account
    GRPO DR Debit RG23AT1 RG 23 AT1 Account
    GRPO DR Debit RG23BED RG 23 BED account
    GRPO DR Debit RG23ECS RG 23 ECS Account
    The above is also maintained for sub trn type 'IP'
    But we do not have any entry for SED account i.e. record does not exist for GRPO DR Debit RG23SED RG 23 SED Account.
    The excise entries contains BED account, AED account, ECS account and AT1 account as SHE CEss account.
    Pl. suggest.
    Regards
    Ratna

  • Add entries to standard table

    Hey guys,
    how can i add entries to a standard table (generic table)?
    I have a function modul which has an export table of standard table and i'd to add some entries to this table. How can i do that? i don't know the table line type.
        thx,
           Wei-Ming

    Hi Wei-Ming,
    I was not sure what you were asking at the very first question, but it was clear for me at your 2nd post (but it seems it was not obvious for the other persons).
    You must use field symbols or data references to manipulate the generic complex data objects (structure or internal table).
    For example:
    FIELD-SYMBOLS <ls_line> TYPE ANY.
    FIELD-SYMBOLS <l_field> TYPE ANY.
    APPEND INITIAL LINE TO et_test ASSIGNING <ls_line>.
    ASSIGN COMPONENT 1 OF STRUCTURE <ls_line> TO <l_field>.
    or
    DATA dref TYPE REF TO DATA.
    CREATE DATA dref LIKE LINE OF et_test.
    ASSIGN dref->* TO <ls_line>. "dereferencing data reference
    I let you search the forum and the ABAP documentation for more information.
    BR
    Sandra

  • OM: CLEARING THE PROCESS MESSAGES TABLES

    제품 : MFG_OM
    작성날짜 : 2004-10-11
    OM: CLEARING THE PROCESS MESSAGES TABLES
    ==========================================
    PURPOSE
    OM 모듈을 어느 기간 사용하다 보면 process messages table -
    OE_PROCESSING_MSGS_TL/OE_PROCESSING_MSGS - 에 많은 data가 쌓여 있는것을
    확인할 수 있다.
    이 tables의 size를 줄임으로써 system performance 향상도 기대할 수 있다.
    Explanation
    OE_PROCESSING_MSGS_TL table은 Order Entry concurreny problem이 실행되거
    나 User interface process가 실행될때 발생하는 processing messages를
    저장하는 table이다.
    아래의 3가지 방법중 하나를 이용하여 process messagea tables
    - OE_PROCESSING_MSGS_TL/OE_PROCESSING_MSGS -의 정보를 delete 할 수 있다.
    1.SQL을 이용하여 table을 truncate
    (OE_PROCESSING_MSGS_TL를 먼저 truncate 시켜야 함을 주의)
    경고: 만약 truncate 방법을 선택했다면, 위 두 tables에 있는 모든 정보를
    잃게 될 것이다.
    2.OM application의 Process Messages form을 이용.
    Delete 될 messages는 사용자의 query에 따른다.
    Process Messages form에서 delete 하고자 하는 messages range를 설정하여
    조회한 후, 그 query된 messages만 delete 할 수 있다.
    1) Navigation: Orders, Returns>Process Messages
    2) Messages source를 선택
    3) Query를 원하는 Messages Request ID range를 입력
    4) Query를 원하는 Messages의 Order Number range를 입력
    5) Query를 원하는 Messages의 Request Date range를 입력
    6) Query를 원하는 Messages의 Program Name을 선택
    7) 특정한 Workflow Activity를 가지고 있는 Workflow Activity를 선택
    WF activity는 Order의 actual stage를 참조한다.
    8) Query를 원하는 Message의 Order Type을 선택
    9) Attribute를 선택, Default는 null
    10) Customer Name or Number를 선택
    11) Requester를 선택
    12) Find button을 선택
    Process Messages window displays.
    13) Query된 모든 messages를 delete 하기 위새 'Delete All' button을
    click.
    3.SQL을 이용하여 특정 일자전의 모든 process messages를 delete.
    (OE_PROCESSING_MSGS_TL 의 data를 먼저 delete 함을 명심!!)
    위 1번의 truncate option을 이용하면, SQL statement는 어떤 messages를
    delete하는지 전혀 식별할 수가 없다.
    만약 특정 process에 관련된 messages만을 delete하길 원하면 아래의
    truncate option 2를 이용한다.
    아래는 sample script이며, creation date를 근간으로 delete한다.
    만약 오늘 날짜(dd-mon-yy)를 입력하면 script는 7일전의 messages만을
    delete 할 것이다.
    ====================================================
    DECLARE
    l_date DATE := to_date('&delete_date');
    BEGIN
    Delete from oe_processing_msgs_tl
    Where creation_date <= l_date - 7;
    Delete from oe_processing_msgs
    Where creation_date <= l_date - 7;
    Exception
    WHEN Others THEN
    Null;
    END;
    After executing this script commit and exit from sqlplus.
    =======================================================
    Note: 꼭 기억해야 할 것은 'Delete/Truncate' 작업시 'OE_PROCESSING_MSGS'
    data를 delete 전에 꼭 'OE_PROCESSING_MSGS_TL' data를 먼저 delete
    해야 한다는 것이다.
    Example
    Reference Documents
    Note 123150.1

    You can include PSA's in process chain and schedule deletion periodically.
    You can include process type 'Deletion of Requests from PSA / Deletion of Requests from the Change Log   ' in process chain . After EHP1 upgrade you can define pattern like 2lis* or 0* it will delete all the PSA's starting with 2lis or 0 data source .
    Ravi

  • Help for "insert data to variable tables"

    hi, guys.
    I want to make a tool to upload mass-data then insert the data to tables of SAP for integrative test.
    for example, to input the object tablename "AAAA" from screen, the program willl find the information of this table then input the data to the "AAAA" tables.
    But i have no idea how to define the internal table to suit various tables ( by define dynamic table? or any other ways) ,could you kindly give me some advice?
    thanks a lot in advance.
    Message was edited by:
            huijuan zhao

    hi zhao,
    welcome to sdn,
    for your requirement u can use bdc to upload file to internal table then u can update these internal table fileds to sap tables.
    or
    use <b>gui_upload</b> function module to upload data to internal table then u can use just <b>insert</b> keyword to update sap tables.
    see this sample code to update the database table <b>edpar</b>,
    report  zsd_edpar_update no standard page heading.
    *&Purpose:
    *&        program will be used to update EDAPR table on a daily basis.
    *&        This update will be based on Customer Sold To / Ship To partner
    *&        functions assignment. Ship To customer(s) will be linked to
    *&        the appropriate Sold To customer using the ?Acct at Cust?
    *&        number as a reference.  Then, Ship To customer(s) will be
    *&        set up withthe appropriate partner function with the Sold
    *&        To customer.it updated the DB tabel and gives the information
    *&        of customer level visibility t account receivable.
    *define database tables...
    tables: edpar,
            knvv,
            knvp.
    *define types...
    types: begin of t_tab_edpar,
           mandt type mandt,
           kunnr type kunnr,
           parvw type parvw,
           expnr type edi_expnr,
           inpnr type edi_inpnr.
    types: end of t_tab_edpar.
    types: begin of t_tab_knvv,
           kunnr type kunnr,
           vkorg type vkorg,
           vtweg type vtweg,
           spart type spart,
           eikto type eikto.
    types: end of t_tab_knvv.
    types: begin of t_tab_knvp,
           kunnr type kunnr,
           vkorg type vkorg,
           vtweg type vtweg,
           spart type spart,
           parvw type parvw,
           kunn2 type kunn2.
    types: end of t_tab_knvp.
    type-pools: slis.
    *define data statments...
    data: g_tab_edpar type standard table of t_tab_edpar,
          g_wa_edpar  like line of g_tab_edpar.
    data: g_tab_edpar1 type standard table of t_tab_edpar,
          g_wa_edpar1  like line of g_tab_edpar1.
    data: g_tab_edpar2 type standard table of t_tab_edpar,
          g_wa_edpar2  like line of g_tab_edpar2.
    data: g_tab_knvv type standard table of t_tab_knvv,
          g_wa_knvv  like line of g_tab_knvv.
    data: g_tab_knvp type standard table of t_tab_knvp,
          g_wa_knvp  like line of g_tab_knvp.
    data: repid like sy-repid,
          l_tab_fieldcat  type slis_t_fieldcat_alv,
          l_tab_fieldcat1 type slis_t_fieldcat_alv,
          l_tab_fieldcat2 type slis_t_fieldcat_alv,
          layout type slis_layout_alv,
          events  type slis_t_event,
          events1 type slis_t_event,
          wa_events  like line of events,
          l_pos type i.
    *selection screen...
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_cust for knvv-kunnr obligatory,
                    s_sorg for knvv-vkorg,
                    s_dcha for knvv-vtweg,
                    s_divi for knvv-spart,
                    s_parf for knvp-parvw.
    selection-screen end of block b1.
    *start-of-selection...
    perform get_data.
    *to update the db table edpar...
    perform update_edpar.
    *display alv block...
    perform alv_block.
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
      select kunnr
             vkorg
             vtweg
             spart
             parvw
             kunn2
             from knvp
             into table g_tab_knvp
             where
             kunnr in s_cust
             and
             vkorg in s_sorg
             and
             vtweg in s_dcha
             and
             spart in s_divi
             and
             parvw in s_parf.
      loop at g_tab_knvp into g_wa_knvp.
        move: g_wa_knvp-kunnr to g_wa_edpar-kunnr,
              g_wa_knvp-kunn2 to g_wa_edpar-inpnr,
              g_wa_knvp-parvw to g_wa_edpar-parvw.
        append g_wa_edpar to g_tab_edpar.
      endloop.
      if not g_tab_knvp[] is initial.
        select kunnr
               vkorg
               vtweg
               spart
               eikto
               from knvv
               into table g_tab_knvv
               for all entries in g_tab_knvp
               where
               kunnr eq g_tab_knvp-kunnr
               and
               vkorg eq g_tab_knvp-vkorg
               and
               vtweg eq g_tab_knvp-vtweg
               and
               spart eq g_tab_knvp-spart.
        loop at g_tab_knvp into g_wa_knvp .
          sort g_tab_knvv by kunnr.
          clear g_wa_knvv-eikto.
          read table g_tab_knvv into g_wa_knvv with key kunnr = g_wa_knvp-kunnr.
          if sy-subrc eq 0.
            move: g_wa_knvv-eikto to g_wa_edpar-expnr.
            modify g_tab_edpar from g_wa_edpar transporting expnr where kunnr eq g_wa_knvp-kunnr.
          endif.
        endloop.
      endif.
      sort g_tab_edpar by kunnr.
      delete adjacent duplicates from g_tab_edpar comparing kunnr parvw.
    endform.                    " get_data
    *&      Form  update_edpar
          text
    -->  p1        text
    <--  p2        text
    form update_edpar .
      delete from edpar." FROM TABLE g_tab_delete.
      call function 'DB_COMMIT'.
      loop at g_tab_edpar into g_wa_edpar.
        insert into edpar values g_wa_edpar.
        if sy-subrc  eq 0.
          move-corresponding g_wa_edpar to g_wa_edpar1.
          append g_wa_edpar1 to g_tab_edpar1.
        else.
          move-corresponding g_wa_edpar to g_wa_edpar2.
          append g_wa_edpar2 to g_tab_edpar2.
        endif.
      endloop.
    reward points if helpful,
    regards,
    seshu.

  • Difference between Temp table and Variable table and which one is better performance wise?

    Hello,
    Anyone could you explain What is difference between Temp Table (#, ##) and Variable table (DECLARE @V TABLE (EMP_ID INT)) ?
    Which one is recommended to use for better performance?
    also Is it possible to create CLUSTER and NONCLUSTER Index on Variable table?
    In my case: 1-2 days transactional data are more than 3-4 Millions. I tried using both # and table variable and found table variable is faster.
    Is that Table variable using Memory or Disk space?
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Check following link to see differences b/w TempTable & TableVariable: http://sqlwithmanoj.com/2010/05/15/temporary-tables-vs-table-variables/
    TempTables & TableVariables both use memory & tempDB in similar manner, check this blog post: http://sqlwithmanoj.com/2010/07/20/table-variables-are-not-stored-in-memory-but-in-tempdb/
    Performance wise if you are dealing with millions of records then TempTable is ideal, as you can create explicit indexes on top of them. But if there are less records then TableVariables are good suited.
    On Tables Variable explicit index are not allowed, if you define a PK column, then a Clustered Index will be created automatically.
    But it also depends upon specific scenarios you are dealing with , can you share it?
    ~manoj | email: http://scr.im/m22g
    http://sqlwithmanoj.wordpress.com
    MCCA 2011 | My FB Page

  • Unable to display data no entry in the table without using Model clause

    Hi,
    I've an urgent requirement described below :
    The previously posted Question has been answerted using Model Clause:
    Is there any way out to solve it without using Model clause:
    I've a table named as "sale" consisting of three columns : empno, sale_amt and sale_date.
    (Please ref. The table script with data as given below)
    Now if I execute the query :
    "select trunc(sale_date) sale_date, sum(sale_amt) total_sale from sale group by trunc(sale_date) order by 1"
    then it displays the data for the dates of which there is an entry in that table. But it does not display data for the
    date of which there is no entry in that table.
    If you run the Table script with data in your schema, then u'll see that there is no entry for 28th. Nov. 2009 in
    sale table. Now the above query displays data for rest of the dates as its are in sale table except for 28th. Nov. 2009.
    But I need its presence in the query output with a value of "sale_date" as "28th. Nov. 2009" and that of "total_sale" as
    "0".
    Is there any means to get the result as I require?
    Please help ASAP.
    Thanks in advance.
    Create table script with data:
    CREATE TABLE SALE
    EMPNO NUMBER,
    SALE_AMT NUMBER,
    SALE_DATE DATE
    SET DEFINE OFF;
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('12/01/2009 10:20:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/30/2009 10:21:04', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/29/2009 10:21:05', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/26/2009 10:21:06', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (100, 1000, TO_DATE('11/25/2009 10:21:07', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 5000, TO_DATE('11/27/2009 10:23:06', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 4000, TO_DATE('11/29/2009 10:23:08', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 3000, TO_DATE('11/24/2009 10:23:09', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (200, 2000, TO_DATE('11/30/2009 10:23:10', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 7000, TO_DATE('11/24/2009 10:24:19', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 5000, TO_DATE('11/25/2009 10:24:20', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 3000, TO_DATE('11/27/2009 10:24:21', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 2000, TO_DATE('11/29/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into SALE
    (EMPNO, SALE_AMT, SALE_DATE)
    Values
    (300, 1000, TO_DATE('11/30/2009 10:24:22', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    Any help will be needful for me
    Regards,

    select sale_date,sum(sale_amt) total_sale
    from
    select empno,0 sale_amt,(sale_date + ao.rn) sale_date
    from
    select empno,sale_amt,sale_date ,(t.nxt_dt - t.sale_date) diff
    from
    select empno
    ,sale_amt,trunc(sale_date) sale_date
    ,trunc(nvl(lead(sale_date) over (partition by 1 order by sale_date),sale_date)) nxt_dt
    from sale
    ) t
    where (t.nxt_dt - t.sale_date) >1
    ) rec,(select rownum rn from user_objects where rownum<=200) ao
    where ao.rn <=(rec.diff-1)
    union all
    select empno,sale_amt,trunc(sale_date) sale_date
    from sale
    group by sale_date
    order by 1;
    ~~~~Guess this will serve the purpose...
    Cheers Arpan

  • Automatic Payment program -line item cleared not displaying in table

    automatic Payment program -line item cleared not displaying in table
    i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
    Can some one please guide me on this.

    Hi Priyanka,
    First, which table are you referring to.  If your fist APP run clears the line item, it will no longer be available in the open item. 
    Please be more specific on the problem so that we can try to help you.  If possible, please provide screenshots.
    Regards,
    Ganesh

  • How to schedule a job poles for a entry in a table.

    Hi All ,
    I have to schedule a job which runs somw stored procedures only on sunday and monday of a week at 3 AM in the morning.
    The condition is that another application puts an entry into a table around 3 AM (some times before and some times late), now my should query
    count in the table and runs the procs , however once its done ,it should do it monday and then it should not run till next sunday.
    I have successfully created a job which keeps failing till it receives the entry and successfully runs the proc once the entry is there...
    However how to schedule this thing ..correctly I need help , I want this job to disable itself on sunday once the procs are run wake up next morning
    run again..and then next week ..
    Following is the job ,
    BEGIN
    -- Job defined entirely by the CREATE JOB procedure.
    DBMS_SCHEDULER.create_job (
    job_name => 'TESTING_FIRST_JOB',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN SEODS.test_procedure_11292011(); END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=minutely; byminute=5',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Job defined entirely by the CREATE JOB procedure.');
    end;
    =====================================================
    and following is the proc...
    create or replace
    procedure
    test_procedure_11292011 as
    var number;
    begin
    insert into SEODS.job_status
    values (systimestamp, 'JOB TEST_PROCEDURE_11292011 HAS STARTED SUCCESSFULLY');
    commit;
    SELECT COUNT(*)
    INTO var
    FROM seods.student_weekend_status;
    if var=0 then
    raise_application_error(-20101, 'There is no record in the student_weekend_status table');
    else
    all_realtime();
    end if;
    insert into SEODS.job_status
    values (systimestamp, 'JOB TEST_PROCEDURE_11292011 HAS FINISHED SUCCESSFULLY');
    commit;
    end;
    Thanks in advance , please help

    Hi,
    This is a known issue in the previous SQL Server version and has been fixed in SQL Server 2012. You should be able to set 90 minutes and the change would be saved in SQL Server 2012.
    http://connect.microsoft.com/SQLServer/feedback/details/346786/ssms-does-not-support-job-schedule-frequencies-greater-than-60-minutes
    Currently, you may schedule the job to occur every 1 hour or you may refer to the suggestion by Latheesh to get around this.
    Thank you for your understanding.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Virtual XP on a Win 7 Pro no longer will work

    I have been running a virtual XP machine on my Windows 7 Pro PC for some time with no problem.  Now the virtual XP won't run properly.  It sometimes says it is running but a small window opens where what looked like some sort of script file used to r

  • PO Approval

    I try to explain my scanario as good as I can. Purchase orders will be used for 3 different form / Documents. I am creating 3 forms. Each of the 3 documents has different Approval procedures. For Example: I use PO for Documenta called A and B and C (

  • How do you get a fillable pdf to perform a new calculation if data is changed on form

    I have created a form to calculate payment terms. The forms work great however if you make a mistake inputting or change data after calculation has been preformed i need the new data to be calculated. Is there a way to do this? thanks

  • Letter of volatility for PXIe-1071

    I'm looking for a Letter (certificate) of Volatility for the following, please: PXIe-1071 PXIe-8135 PXIe-8234

  • How do i upload music from a cd to my ipod

    How do i upload music from a cd onto my ipod 4