Select - next  logic for copy data

Hi,
I have 3 main values from an excel template: a specific data value (i.e. 35), in that same template one is TIME  and the other one is  $$$.
What I have to do is copy  the $$$ amount starting from the date set in the template (TIME) through X number of months (i.e.35).
All this is going to be obtained from a template, I cant use prompt.
Lets say:
X: 35
$$. 100
TIME: 2011.July
To do:
Repeat 35 times the amount 100, starting from 2011.July to the next months.
Therefore, 2011.August, 2011.September,etc,etc---> 2012.Jan....2013-Jan  and so on until the 35 months are reached.
I am trying to make some logic using the Select command, however I dont quite understand how to perform this. Equally using the logic NEXT i think it will be helpful.
Any suggestions...? I cant share my logic because im still trying and mine does not work.
Thanx in advance.
Velázquez

Hi Madis,
Thanx for the response, i reaally appreciate it.
I created the dim DURACION as user defined. Included for the moment 25 members (numbers) and it wasnt matched to any application.
Now, the script where i am working is called Test.
1. I typed in my script the following:
**SELECT (%MYSET%,ID,Duracion,"[ID]<=MYDURACION")
2.Entered to BPC Excel - eData - organize package list - select script Test  and added the following:
'DEBUG(ON)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,,,"Please select category, entity and time for restatement",%TIME_DIM%)
PROMPT(Text,%INPUTDURACION%,"Enter No of duracion",,"")
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,FORMULASCRIPT,"FUNCTION MYDURACION=H%INPUTDURACION%")*
TASK(Execute formulas,LOGICFILE,%APPPATH%..AdminApp%APP%TestAlldoraVentas2.lgx)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
Now... im having trouble because after validating & saving, it shows the error:
- Invalid column name 'MYDURACION' in:select ID from mbrDURACION where <=MYDURACION
Can you please help me...
So far, I have the following logic for performing a "calc each period"  once  YEAR.MONTH  is introduced by a prompt.
The xdim members are making reference to a particular situation, the important stuff here is that if I pass a hardcored # of periods to the XDIM - next logic it works, and im trying to apply your suggestion...
*CALC_EACH_PERIOD
*XDIM_MEMBERSET lob=servicios_out
*XDIM_MEMBERSET consumibles=consumibles_dummy
*XDIM_MEMBERSET vendedor=04
*XDIM_MEMBERSET cliente=5
*XDIM_MEMBERSET oi=400000
*XDIM_MEMBERSET TIEMPO=%tiempo_set%,next
*WHEN METRICA
*IS importe
*REC(metrica="importe",tiempo=next(1))
*ENDWHEN
**SELECT (%MYSET%,ID,Duracion,"[ID]<=MYDURACION")
However, is there still a way to pass a # of periods by excel?... this is, not using a prompt but by reading the number form a specific CV ?
Thanx again
Velázquez

Similar Messages

  • Logic for sending data files to multiple instances of Central

    We are using Central Pro Output Server 5.6 with a single Central instance as of default installation on a Windows Server 2003. Data for the transaction files coming from our iSeries system via a printer queue (\\.\pipe\jetform\queuename)
    Now we want to be able to produce more documents from Central much faster and therefore setting up multiple instances of Central. The problem is then where to put the logic for choosing instances.
    The simplest way to do this would be to have iSeries to alternate the data files to different pipes (printer queues) for Central. But as we dont want to change our iSeries configuration for this, is there a way to solve this problem in Central?
    Any help with this is much appreciated

    Central provides no mechanism that I'm aware of that would do anything resembling the job distribution that you are wanting. Central is written to monitor it's input folders and process the files it finds there. Each instance is essentially separate from each other.
    Your source system will need to select the appropriate instance to be used. Either that or you will need to have something between the source system and Central that is doing the distribution. For example, you could have the source system write to a folder that is not being monitored by Central and write a program that runs as a service that does monitor that folder. This program would then distribute the files. The likely drawback of having an intermediary program is that you are likely to not end up getting the documents printed any faster than with a single instance.
    Another possible way, if the source system can create files with different file name extensions, would be to have them all written to the same folder and have each instance checking that particular folder but looking for files with different extensions. This might be problematic, though, because it might also end up with each instance watching the same "control" folder so that doing things like pausing Central would end up with no control of which instance was going to be paused.
    The default setting for Central has it pausing for 5 seconds if it completes a job and there are no more files waiting for it. If your jobs are not coming in faster than Central is processing them then you would be getting some of this delay for your jobs. You could reduce this time or even set Central to process a job as soon as it shows up. I don't know if version 5.6 still has the problem but an earlier version would not "see" a file if it happened to show up exactly when it was looking for more (it was probably showing up milli-seconds after Central looked). This caused that job to just sit there until the next job showed up.
    A major factor in getting the documents produced faster is going to be the speed and number of printers that they are going to - plus the number of pages in each document. For us, the single instance of Central that we are currently using can produce print much faster than our HP9050 printers (50 ppm) can actually print it.
    You must be doing a lot of forms or each job is doing a lot of processing. Our typical print job does 4 tasks (depending on the job this can include things like: passing the file through the transformation agent, updating a mainframe database, FTPing the file to another server for archiving, and producing the print). A typical job with 11 output pages takes only 2-3 seconds. We have a task that runs every morning that retrieves mainframe generated jobs. I just checked one of our servers and it processed 208 jobs in exactly 8 minutes (26 jobs per minute at an average of 2.3 seconds per job). We also thought we'd need multiple instances due to speed but that just isn't the case for us. We have other reasons to move to multiple instances but speed in not a major factor any more.

  • Logic for the date

    I am running a (Ordinary Depreciation report) for this i am going to txcode SAP1 -> Financial Accounting -> Asset Accounting report ->Explanations for P&L-> International ->Depreciation -> Ordinary Depreciation .
    I went to status of the report to find how the report is running but i am not able to point the exact logic which i want.
    I need to find how the Report date is working in the report i mean i need logic behind report date can anyone help me out to find
    out the logic.
    Regards
    VEnk@
    Edited by: Venkat Reddy on Sep 25, 2009 4:13 PM

    It seems that the program is genarated fom a query.
    Infoset: /SAPQUERY/AM07
    Query : 07
    User group : /SAPQUERY/AM
    Logical database : ADA

  • Ask for a sql sentence(procedure) for copy data to themselves' table

    two tables
    order and orderitem,there are relationship table;
    order's id is PK
    orderitem's id is PK,and parentId is FK.
    and all id are created by sequences:order_id_seq and orderitem_id_seq.
    order
    id name
    1 aaa
    2 bbb
    orderitem
    id parentId num
    1 1 100
    2 1 150
    3 2 200
    4 2 300
    now I want to copy these data to themselves table.how to code the sql or the procedure??the main problem i encoutered is how to update the parentId of the orderitem table?
    Message was edited by:
    user577067
    Message was edited by:
    user577067

    now i want to copy order table's data to order,and copy data of orderitem table to orderitem.and after that the table data should be
    order
    id name
    1 aaa
    2 bbb
    3 aaa
    4 bbb
    orderitem
    id parentId num
    1 1 100
    2 1 150
    3 2 200
    4 2 300
    5 3 100
    6 3 150
    7 4 200
    8 4 300
    Message was edited by:
    user577067

  • Function Module Call Via CMOD Logic for Master Data Enhancement

    Hi Friends Please help me to resolve this, would really be very kind of all of you.
    Requirement. I want to Enhance the field ZFACTREG from VIBDBE table in my datasource 0busentity_attr extract structure l_s_REIS_BUSENTITY_ATTR, I want to create the logic in CMOD exit_saplrsap_002 to call my function module for enhancement of master data. Please help me Step by Step
    Thanks
    Poonam Roy
    <b>Step #1</b>
    I put this code which gives me error in CMOD like this
    ERROR : Das formale Argument 'OTHERS' muss am Schluss der Ausnahmeliste stehen.
    ABAP Code#1 IN exit_saplrsap_002     
    DATA: l_d_fmname(30) TYPE c.
    CONCATENATE 'Z_DS_' i_datasource(25) INTO l_d_fmname.
    TRY.
    CALL FUNCTION l_d_fmname
    EXPORTING
    I_DATASOURCE = I_DATASOURCE
    I_UPDMODE = I_UPDMODE
    TABLES
    I_T_SELECT = I_T_SELECT
    I_T_FIELDS = I_T_FIELDS
    I_T_DATA = I_T_DATA
    C_T_MESSAGES = C_T_MESSAGES
    EXCEPTIONS
    RSAP_CUSTOMER_EXIT_ERROR = 1
    OTHERS = 2
    IF FOUND.
    IF SY-SUBRC <> 0.
    RASIE RSAP_CUSTOMER_EXIT_ERROR.
    END IF
    CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC.
    ENDTRY.
    <b>Step#2</b>
    I simple created the Function module Z_DS_BUSINESS
    and put the code in source code  which gives me error . what should i put in other tabs like"Import", Export", Tables" i kept blank
    ABAP CODE give me error : The Dictionary structure or table "FIELD-SYMBOLS" is either not active. i have to remove include in the FM. WHY SO??
    FUNCTION Z_DS_BUSINENSS
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(I_DATASOURCE) TYPE  RSAOT_OLTPSOURCE
    *"             VALUE(I_CHABASNM) TYPE  SBIWA_S_INTERFACE-CHABASNM
    *"             VALUE(I_UPDMODE) TYPE  SBIWA_S_INTERFACE-UPDMODE
    *"       TABLES
    *"              I_T_SELECT TYPE  SBIWA_T_SELECT
    *"              I_T_FIELDS TYPE  SBIWA_T_FIELDS
    *"              I_T_DATA
    *"              C_T_MESSAGES STRUCTURE  BALMI OPTIONAL
    *"       EXCEPTIONS
    *"              RSAP_CUSTOMER_EXIT_ERROR
    INCLUDE ZXRSAU02.
      WRITE: / 'INSIDE THE Z_DS_MEASUREMENTS PROGRAM'.
    TABLES: REIS_BUSENTITY_ATTR,
            VIBDBE,
    field-symbols:.<fs_REIS_BUSENTITY_ATTR> like REIS_BUSENTITY_ATTR.
    DATA: BEGIN OF i_c_t_data OCCURS 0.
              include structure REIS_BUSENTITY_ATTR.
    DATA END OF i_c_t_data.
    DATA: i_c_t_data_copy like i_c_t_data OCCURS 0 WITH HEADER LINE,
          begin of i_vibdbe occurs 0,
          INTRENO like vibdbe-INTRENO,
          ZFACTREG like vibdbe-ZFACTREG,
                  end of i_vibdbe.
    i_c_t_data_copy[] = i_c_t_data[] = c_t_data[].
    sort i_c_t_data_copy by vibdbe.
    Select  INTRENO
            into table i_VIBDBE from VIBDBE
            for all entries in i_c_t_data_copy
            where  INTRENO = i_c_t_data_copy- INTRENO.
    if sy-subrc = 0.
      sort i_VIBDBE by INTRENO.
      loop at i_c_t_data assigning <fs_REIS_BUSENTITY_ATTR>.
        clear: i_VIBDBE.
        read table i_VIBDBE with key INTRENO = <fs_REIS_BUSENTITY_ATTR>-INTRENO
        BINARY SEARCH
        transporting ZFACTREG .
        if sy-subrc = 0.
          <fs_REIS_BUSENTITY_ATTR>-ZZFACTORY = i_vibebe-ZFACTREG
        endif.
    null

    (I leave office until Monday morning, Europe time)
    in include from customer-exit ZXRSAU01, etc.
    CASE I_DATASOURCE.
    WHEN '0CUSTOMER_ATTR'.
       PERFORM 0customer_attr changing i_t_data...
    ENDCASE.
    In each perform, doing what you wrote ; select (needed fields) from complementary-database-table into an internal table with a for all entries. sort the table. LOOP and MODIFY on i_t_data.
    In some case i had to insert lines of i_t_data to an internal table of DS_structure when entering subroutine and back at exit. (on 4.6C PI 2003 if i remember)
    Some optimization done when reading small tables (T001 society and the same, these are filled once and not for each packet of data.
    Your idea of creating different FM is of interest, but the cost of passing i_t_data between two programs (two function groups) may overcome the gain of performance. In a job only one DataSource is processed so only one routine is actually called.
    Regards.

  • Need Logic for Inserting data into table from another table

    Hi,
    Could you please give me some logic on below:
    TABLE_A has columns A,B,C,D
    What i did
    ==========
    Created new table
    TABLE_1_A with columns A1,A2,B1,B2,B3
    Requirement
    ===========
    I should populate columns A1,A2 (table TABLE_1_A) with the data from column A (table TABLE_A)
    & simillarly populate columns B1,B2 with the data from B.
    the data is huge in the table_a.
    Database: 10g
    Thanks.

    Hi,
    Here's one way:
    INSERT INTO  table_1_a
            (a1, a2, b1, b2)
    SELECT      a,  a,  b,  b
    FROM      table_a
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    See the forum FAQ {message:id=9360002}

  • How to use NAS for copying data on?

    Well, this may sound like a simple question, but apparently it's not as simple as it seems.
    I have a Raidon SL3620 NAS. I managed to set it up with help of one of our community members.
    However, now I found the problem of not being able to copy all my data on there. I want to copy my movies etc to the NAS, so I created a user (myself) and a group (called public), with no shared space limits. I granted access to all to make things easy, and after the harddrives were formatted, I drag-dropped the relevant folders into the new user directory on the NAS.
    First of all, it predicted some 100 hours to complete the task (and my iMac only has a 1TB harddrive), whilst my Mac and the NAS are both connected via ethernet. I find that unlikely.
    Then when I woke up this morning, it had aborted the transfer due to lack of space. It has 2x 2TB storage in RAID 1, and as I said, my iMac has a 1TB HD. So why does it say it's full after 900MB??
    Also, when I then decided to remove the data, I was told some files were in use. Which surprised me because the copy was cancelled. I checked airport utility and no one was using it, so I wonder what's happening there!
    Can anyone help me out?

    right, I think this was caused by using a wireless connection, which takes longer than smoke signals. Using ethernet seems to have solved the issue for now

  • Logic for Header data required

    1.I have a Sales Cube.
    2.i have field called Header Data.
    3.I need to populate Header data by calculating Net Order amount based on Sales order no and Sales order item details.
    For Example:- 
                        Sales order  ,  Sales Item Data    ,      Net order amount ,   Header Data
                               001              ,             1             ,                    200             ,    500
                               001              ,            2             ,                    300           ,      500
                               002              ,          1             ,                    300         ,       1000
                               002               ,          2              ,                   500         ,       1000
                               002                ,           3                ,                 200           ,     1000
    4. I need to Sum all the items for each order to populate my Header data.
    I m using BI 7.0 .... how and where should i write the logic to populate my Header data field.

    Hi,
    Why do you maintain Header level data in Infocube? Just create a report with Sales Order in rows and Net order amount (Change description to Header Data)in Rows system will automatically give header level data as shown below:
    Sales order , Header Data
    001              ,     500
    002              ,    1000
    hope it helps...
    regards,
    Raju

  • FOX Code for COPYING Data

    Hi,
    I am trying to write a FOX function for key figure 0AMOUNT. The users will be choosing FROM and To Versions (I have created two input variable-ZVERFROM and ZVERTO), From and To Forecast Plan Years (ZYRFROM and ZYRTO). I have to combine them into the following code,
    1) If the TO plan year (ZYRTO) is less than current fiscal year, the TO version becomes 100 ( actuals)
    else.
    2) If the TO plan year (ZYRTO) is greater than or equal to current fiscal year, copy the chosen FROM Version (ZVERFROM) to TO Version (ZVERTO).
    Can someone give me the exact code for the same.
    Thanks
    Rashmi.

    DATA VF TYPE 0VERSION.
    DATA VT TYPE 0VERSION.
    DATA YF TYPE 0FISCYEAR.
    DATA YT TYPE 0FISCYEAR.
    DATA CY TYPE 0FISCYEAR.
    VF = VARV('ZVERFROM').
    VT = VARV('ZVERTO').
    YF = VARV('ZYRFROM').
    YT = VARV('ZYRTO').
    CY = VARV('ZCURRYR').  "Create a variable in BeX to give the current fiscal year from sy-datum and read this variable value here
    "You can call a function module also to get the current fiscal year instead of creating an exit variable
    IF YT < CY.
    {0Amount,100,YT} = {0Amount,VF,YF}.  "Copying FROM version, FROM the year chosen to version 100 and TO year
    ELSE.
    {0Amount,VT,YT} = {0Amount,VF,YF}.   "Copying FROM version, FROM the year chosen to TO version and TO year
    ENDIF.

  • Need some logic for displaying data from Internal Table

    Hi Guys,
                  I have a Internal Table with multiple entries.
    My ITAB looks like below.
    PN  VBELN  MATNR MATKX
    1     111       P-101    XXX
    2     121       P-102    XYZ
    2     112       P-103    ABC
    3     134       P-104    DEF
    3     124       P-105    EFG
    Now my requirement is I need to display the out put as follows through ALV or normal display.
    <Header>                                                  <Date>
                                                                      <Time>
    PN = 1
    VBELN   MATNR  MATKX
    111         P-101   XXX
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 2
    VBELN   MATNR  MATKX
    121         P-102   XYZ
    112         P-102   ABC
    <Footer>
    Some gap (May be a line to differentiate)
    <Header >                                                <Date>
                                                                     <Time>
    PN = 3
    VBELN   MATNR  MATKX
    134         P-104   DEF
    124         P-105   EFG
    <Footer>
    Thanks in Advance.
    Prasad.

    HI,
    Use:
    Data: W_PNlike PN.
    LOOP AT ITAB.
    If Itab-PN ne W_PN.
    <Header> <Date>
    <Time>
    PN = 1.
    VBELN MATNR MATKX   >>>>>>>>>>>>>>>First Line enter
    ELSE.
    VBELN MATNR MATKX  > line Next entry
    ENDIF.
    W_PN = ITAB-PN.
    AT-END PN.
    <Footer>
    ENDAT.
    ENDLOOP.
    Hope this resolve your issue.
    Regards,
    Gurpreet

  • Not able to select physicalschema directory for file data server in ODI 11g

    Hi,
    I am a beginner to ODI tech and stuck up with an error while doing a tutorial (mentioned in this link - http://st-curriculum.oracle.com/obe/fmw/odi/odi_11g/ODIproject_ff-to-ff/ODIproject_flatfile-to-flatfile.htm).
    While creating a physical schema for default file server(FILE_GENERIC) , I am not able to select schema directories and the name field with value 'FILE_GENERIC.Directory' is grayed out (non editable)
    I have gone through many documents but could not find any relevant information for this.
    So could you please let me know if any configurations required for this?
    Thanks,
    Anusha

    Hi Oleg,
    Thanks for your reply.
    While creation of physical schema , Name field is grayed out , is that the default behaviour of the screen? because in the tutorial I could see the name filead is pointing to a file directory path.
    Thanks,
    Anusha

  • Enhance Business Logic for Time Data

    Hello,
    I implemented a BADI "ZCL_IM_PT_BLP_USER" for definition PT_BLP_USER for our uses in Time Management, and also implemented the BADI PT_BLP_PSV, "ZCL_IM_PT_BLP_PSV" for the process after SAVE.
    for those infotypes which I have some process after Save,
    if there is any Error message and try to save,i get a dump
    RECUID_NOT_FOUND from program "CL_PT_TMW_BLP_TPHANDLER=======CP"
    do anyone know the problem and it's solution?
    Thanks in advance,

    Hi,
    Here is your scenario
    Deleted one duplicate entry from IT2011.
    The record which you have deleted from IT2011 will be there in TEVEN and database tables always with "X" in the STOKZ field which means cancelled entries.
    In order to delete the same entries from the TEVEN & Data base table , please use report RPTCCXDBDEL. Now you have compare the Number 188799 with PDSNR number from TEVEN table and delete the line item.
    So now you know deleted entries from IT2011 or PTMW still exists in TEVEN & Database tables with an "X"
    Regards,
    Raja Sekhar

  • Change logic for pricing date in CRM sales order

    Hi,
    We have a requirement in B2B sales order where in default pricing date should be set to u201CRequested delivery dateu201D entered by customers in B2B sales order. Is this feasible through IMG configurations in CRM 5.0? I am aware its feasible in R3 while configuring sales order type (In the sales order type configuration, there is a field called as u2018Proposed Pricing Dateu2019). Do we have similar options in CRM 5.0?
    Thanks & Regards,
    Namita Singh

    You can implement the BAdI - method CRM_COND_COM_BADI method ITEM_COMMUNICATION_STRUCTURE
    You can use FM CRM_ORDER_READ to read the current order information, in your case the RDD and use this value to change the pricing date in the item-communication structure.
    CS_ACS_I_COM-PRICE_DATE = l_rdd.

  • Copying data to another database after little transformation

    Hi,
    Is there any better pattern for
    copying data from one database to another database after some little transformation(can be simple SQL join).
    I see couple of options like..
    1. Using materialized views
    2. Writing a simple procedure to do copy and transformation.
    3. Using a pure ETL tool.
    Is there any other simple and secure way of doing this ?
    Thanks in advance,
    Vijay.
    Message was edited by:
    user487780

    Hi Justin,
    A couple of questions
    1) Are you copying from an Oracle database to another
    Oracle database? Or are there non-Oracle databases
    involved?I am copying from Oracle to Oracle.
    2) Are there just two databases? Or more?Only two.
    3) Are you copying all the data from one database to
    another? Or are you copying just a subset of data?I just need to copy a subset(can get using SQL join) of data
    4) How frequently does the data need to be copied?exactly 500 times, but at different intervals..
    How soon after the data changes in the source system
    m does in need to be changed in the destination
    system?the copying process has to be triggered based on some data in source database.
    5) Is the data flowing in only one direction?Yes
    6) Is there some drawback to the three options you've
    outlined that you're trying to avoid? If one of
    these options meets all your requirements, I'd assume
    that you wouldn't bother posting a question. That
    implies to me that there is some unstated requirement
    that you're trying to meet...I just want to know, whether there is any standard(typical) way to do this.
    Thanks,
    Vijay.
    >
    Justin

  • Logical solution in data selection

    Hi Experts,
    I have one problem in in my code.  I have a selection sceen for input two dates and a check box in my screen. For Extractind data i m using folloing statement.
    SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
         (itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE  TDATE BETWEEN FDATE AND EDATE.
    FDATE and Edate my selection screen dates name.
    but i need when i select checkbox and click on ok button the data should be extract on between these date as well as one more month of EDATE.
    iternal table hold only between table data of FDATE and EDATE. Whenever i select checkbox the EDATE should be icremented by 1.(Ex. If EDATE  is 28.02.2009  it should be 31.03.2009)
    I hope u guys r getting my point.
    Regards,
    Swapnika

    Hi,
    Try the below.
    if the check box is not checked
    SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
    (itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE TDATE BETWEEN FDATE AND EDATE.
    if checkbox = 'X'.
    now fill the ranges.
    like
    ranges : r_dates for tdate.
    r_dates-sign = 'I'.
    r_dates-option = 'BT'.
    r_dates-low    = fdate.
    r_dates-high   = edate.
    append r_dates. clear r_dates.
    now find the begin and end date from your edate for the next month of edate.
    keep it in next_begin_date and next_end_date.
    r_dates-sign = 'I'.
    r_dates-option = 'BT'.
    r_dates-low    = next_begin_date.
    r_dates-high   = next_end_date.
    append r_dates. clear r_dates.
    now use this in ur select.
    SELECTdebit credit profit loss tdate FROM Zpfaccount INTO
    (itab-debit, itab-credit, itab- profit , itab-loss,i tab-tdate) WHERE TDATE IN r_dates
    Hope this helps.
    Guru.

Maybe you are looking for

  • MacBook Pro performance issues w/2nd monitor and FCP7

    I have this MacBook Pro bought brand-new in January 2010:   Model Name: MacBook Pro   Model Identifier: MacBookPro5,2   Processor Name: Intel Core 2 Duo   Processor Speed: 3.06 GHz   Number Of Processors: 1   Total Number Of Cores: 2   L2 Cache: 6 MB

  • Phone needs constant resetting

    I have a iPhone 5S and everymorning I am unable to receive or send texts and unable to make or receive phone calls.  I have to tuern the phone off and then back on and it works fine until the next day.

  • G4 with 10.2.1 (or maybe 10.3.9) won't start after software upgrade

    A little history...bought this PowerBook G4 new from Fry's (no + testimonials will be provided!!!). Since machine was floor model they did a clean install of 10.2.1. Discs they gave me were not the same OS version, however. The computer did work unti

  • Brushes Randomly Stopped Working

    I recently downloaded some new actions for Photoshop Elements 12, and they have been working just fine until now. Now, whenever I play a brush action, and select the black image layer to brush on the layer, nothing happens. I'm sure I sound really st

  • Menubar in IE

    OK, i posted a couple days ago about this same site, and I have one more problem that I can't seem to crack. In IE the submenus are dropping down, everything looks great, but they are dropping down under the menu button to the right of where they nee