Logic For Data Fetching

I am doing a dump program for qp02 change inspection plan and  unable to fetch the data for qualitative and quantitative fields these fields can be x or '' . iam not getting the fields in plmk table..when i changed these fields STEUERKZ in plmk table gets reflected by adding
X= . i think there is a different logic for it.If any one
knows then pls reply me.
regards.
Sanchit Sharma

Hi KR,
if you want particular items from the table VBREVE (Revenue Recognition: Revenue Recognition Lines)
Pass all the keyfields in where condition..
try to provide maximum field values from below list in where condition... if you are not be able to get it directly then try to get it from some other tables and then paas it here...
VBELN ==> Sales Document
POSNR ==> Sales Document Item
SAKRV ==> G/L Account Number
BDJPOPER ==> Posting year and posting period (YYYYMMM format)
POPUPO ==> Period sub-item
VBELN_N ==> Subsequent sales and distribution document
POSNR_N ==> Subsequent item of an SD document
also have a look on other tables related to this...
VBREF
VBREVAC
VBREVC
VBREVE
VBREVK
VBREVR
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya

Similar Messages

  • Write custom logic for data archiving using Open text(SAP archiving)

    Hi,
    We are currently doing archiving for sales documents and billing documents using Open text. As part of this we need to have a search functionality based on Sales document,customer number, customer address etc...
    since customer address doesn't exist in sales order tables we need to write logic so that the document gets archived and retrieved using the address.
    can you please help me out in how and where to write logic for this...can this be achieved?
    i observed an area on Attribute Object for a Node which gives an option for Event and User exit. can this be used..if so how?
    Thanks,
    Anil

    hi,
    please write more detailed information what do you really need...

  • Formula Logic for Dates in the Cell Editor in Query Designer

    Hi All
    We are on BI7. (This is in the Cell Editor in Query Designer)
    I am trying to create a formula in one cell that enters a date based on the following logic (Lets call this formula A):
    I also have a placeholder "Cell reference" for a Date in another cell in the Cell Editor (Lets call it B).
    I also have two other dates in seperate cells in the Editor (Lets call them C and D)
    What i need to do is check that either C or D are not blank i.e one at least has a date and if so enter the date that is in B in A.
    My formula logic in (Cell A) at the moment is as follows:
    ( Cell C <> 0 ) OR ( Cell D <> 0) * Cell B
    When I run the query It is coming back with either a 1 or  0 depending if there is a date in C or D.
    What I want it to do is to display the actual date of  'Cell B'  in 'Cell A' if  ( Cell C <> 0 ) OR ( Cell D <> 0)
    If the value of B is blank ie no date I also want A to be blank i.e not equal zero or a blank date ie 00/00/0000
    Example 1
    Cell A    08/09/2009
    Cell B    08/09/2009
    Cell C   15/03/2010
    Cell D
    Cell A should = 08/09/2009 as there is a Date in Cell C or D and if so enter the date of Cell B in cell A
    Example 2
    Cell A   
    Cell B    08/09/2009
    Cell C  
    Cell D
    Cell A should = BLANK as there is a NO Date in Cell C or D
    Example 3
    Cell A   
    Cell B  
    Cell C   15/03/2010
    Cell D
    Cell A should = BLANK as there is a No Date in Cell B although a Date in cell C or D.
    Thank you for assistance in advance
    Kind regards
    Stevo

    Hi there,
    It seems you have done almost everything...
    What it seems that is missing is probably the cell reference for Cell C and for Cell D, or did you forget to mention it here?
    So here it is the big idea:
    - In the Cell Editor of the query designer, create a new cell reference for Cell C, let's name it ref_cell_c;
    - In the Cell Editor of the query designer, create a new cell reference for Cell D, let's name it ref_cell_d;
    - In the Cell Editor of the query designer, create a new cell reference for Cell B, let's name it ref_cell_b;
    - In the Cell Editor of the query designer, create a new formula for Cell A, let's name it form_cell_a;
    The form_cell_a should be created by the following:
    ( COUNT(ref_cell_c) + COUNT(ref_cell_d) ) * ref_cell_b
    So COUNT(operand) returns 1 if operand is different of 0 else it returns 0; So if ref_cell_c has any valu or ref_cell_d has any value it should return the value of ref_cell_b.
    Please note that with this formula, if you have values in both ref_cell_c and ref_cell_d this formula returns 2 * ref_cell_b, which is not what you pretend, I'm assuming you'll have value only for the following combinations:
    ref_cell_c has value but ref_cell_d don't have any
    ref_cell_c don't have any value but ref_cell_d has a value
    ref_cell_c don't have any value neighther has ref_cell_d any
    Diogo.

  • Logic for date

    hi all,
    in the selection screen i have fields like BUKRS, COST CENTER, PROFIT CENTER, PERIOD, AND YEAR.
    The problem is if i give period as 5 i.e., may and year as 2008
    i need fetch the records from 1 st may to 31st may only.
    can any one please help me how to write code for this.
    thanks in advace

    Hi,
    you the code below :
    ranges : gr_date for bsis-budat.
    CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
        i_gjahr              = sp_gjahr
    *     i_monmit             = gp_monat
          i_periv              = 'K4'
          i_poper              = sp_monat "Period
    IMPORTING
         e_date               = gv_firstday
    EXCEPTIONS
       input_false          = 1
       t009_notfound        = 2
       t009b_notfound       = 3
       OTHERS               = 4
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          i_gjahr              = sp_gjahr
    *           I_MONMIT             = gp_monat
          i_periv              = 'K4'
          i_poper              = sp_monat "Period
       IMPORTING
               e_date               = gv_lastday
             EXCEPTIONS
               input_false          = 1
               t009_notfound        = 2
               t009b_notfound       = 3
               OTHERS               = 4
    gr_date-sign = 'I'.
    gr_date-option = 'BT'.
    gr_date-low = gv_firstday.
    gr_date-high = gv_lastday.
    append gr_date.
    "And use gr_date in the date field of select statement while
    "retrieving the data.
    "And declare period as T009B-POPER
    Thanks,
    Sriram Ponna.
    Edited by: Sriram Ponna on Jun 19, 2008 12:29 PM

  • Calculation logic for date with respect to time.

    Dear all,
    In BI, i want to get the time for two different dates - how to caculate this
    For example
    Initial date :- 01.08.2007
    Final date :- 24.08.2007  - I want system to calculate the total hours between these dates - the logic should also be applicable if years,months and days are different.
    Regards,
    M.M

    Dear ....
    By subtracting final from the initial we will be able to get if the difference is only in days but if the month or year is differing will the same logic hold good - kindly explain?
    Regards,
    M.M

  • Logic for data transfer

    Hello,
    I have a requirement, wherin there are 10 tables for which the data changed/inserted/deleted for any field needs to be transferred to third party.
    I have gone through the change pointer concept and found that SAP does not recommend this as this will create large number of change pointers in the system
    Second option was to create techincal log for each table to log the change.But here again it will slow down the system as everytime system has to write the log when updating the table.
    Third option was to write report to get all the record for a particular date based on change date from the table and write down into custom table. The custom table is then treated as source. But here the problem comes when there is no 'Change date' field in the table. For some table we do not have change date field.
    Can somebody suggest what should be the best approach to filter the changed data.
    Thank you!
    Arvind

    Hello Arvind,
                       why not u try to achieve IDOC's concept as whatever the change will occur in Database that will store in idoc.And most beneficial thing is this that u can see idoc whenever u want and can easily find out what changes has done by which idoc.So i suggest u to try IDOCs.
    Thanx,
    Vaneet Thakur

  • What should be my selection screen criteria for data fetching..............

    A process is required to trigger an employe's master datat from sap to EWA( some other system) for  any of rthe below actions.
    NEW HIRE
    TERMINATION
    FMLA PAID LOA
    NON-FMLA PAID LOA
    FMLA UNPAID LOA
    RETURN FORM LEAVE
    REHIRE
    CHANGE OF POSITION
    STATUS CHANGE
    EXPATRIATION
    I AM NOT SURE WHAT SHOULD BE MY SELECTION SCREEN CRITERIA.

    Hi Anil,
    One option can be to write a custom program for this.
    Schedule it as a job at the end of the day.
    Consider all the required actions that were run on that day & the data that was changed.
    The changed data can then be sent to legacy as per your requirement as a daily interface file.
    I think you shud have a look at the standard utility program RPUAUD00 , which logs the infotype changes or might be you can think of adding the change indicator includes from the std program to your custom program & write the custom interface.
    Well i already see some good ideas placed in the above posts but i think this
    can be one option as well so thought of putting this to you.
    Hope this helps.
    Kindly reward in case useful.
    Regards & Thanks,
    Darshan Mulmule

  • Basic logic for date

    Hi Folks,
    I have a v_date variable to hold a date value.Now my requirement is:
            v_date:= SYSDATE+2 if date is going to change in next 1 Hour.
    Else assign v_date:= SYSDATE+1
    How to achieve it please.
    Thanks in advance.
    gvk.

    Hi,
    Here's one way:
    v_date := SYSDATE + CASE
                            WHEN  SYSDATE <= TRUNC (SYSDATE) + (23/24)
                            THEN  1
                            ELSE  2
                        END;

  • Treasury - Cash Management 0TR-CM-1 logic for Data Source

    Hi all,
    I am trying to understand how the value of the DATA_SOURC field in the extract structure FTI_BIW_CM in DS 0TR-CM-1 is populated. This value propagates to the InfoProvider (0TRCM_RC1) and standard content queries have a hard-coded restriction to a value of '2' The DS is returning values of 1 and 2 and I need to understand the implications of the two values. The help pages don't provide this information.
    Any help is greatly appreciated.

    Hi,
    Extractor 0TR_CM_1 reads from table FDSB and FDSR. Not sure what could be
    the reason for this code to avoid zero values. Please check with application
    colleagues if zero values are allowed for this field in ECC system.
    Thanks,
    Vimal

  • ABAP OO data fetch logic

    Hi Experts,
                     I have normal report with dat fetch logic. I need to convert my normal code logic to OO abap logic using classes & methods..
    Exp:
          select knumh kotabnr vakey datab datbi knuma_bo
                 from konh
                 into corresponding fields of table i_konh
                 for all entries in i_kona
                 where knuma_bo eq i_kona-knuma.
    Is there any easy way to write the code in OO using classes & methods.
    Thanks.

    Hi Khan,
    Here is the code for your query with OO abap logic i.e. Class and methods.
    Code.
    TABLES: konh.
    data: i_konh TYPE TABLE OF konh,
          i_kona Type TABLE OF kona.
    CLASS class_name DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS get_details.
    ENDCLASS.
    CLASS class_name IMPLEMENTATION.
    METHOD get_details.
    DATA: knumh   TYPE REF TO konh-knumh,
               kotabnr  TYPE REF TO konh-kotabnr,
               vakey    TYPE REF TO konh-vakey,
               datab     TYPE REF TO konh-datab,
               datbi       TYPE REF TO konh-datbi,
              knumabo TYPE REF TO konh-knuma_bo.
    select knumh kotabnr vakey datab datbi knuma_bo
                 from konh
                 into corresponding fields of table i_konh
                 for all entries in i_kona
                 where knuma_bo eq i_kona-knuma.
    ENDMETHOD.
       ENDCLASS.
    *Global data.
      data: obj TYPE REF TO class_name.
    *Event block.
      START-OF-SELECTION.
    CREATE OBJECT: obj.
    CALL METHOD obj->get_details.
    Regards,
    Soundarya.
    Edited by: K.Soundarya Singh on Mar 24, 2010 8:42 AM
    Edited by: K.Soundarya Singh on Mar 24, 2010 8:43 AM

  • Urgent:Logic needed to fetch data from Internal Table

    Here i have an internal table having Emp no,Emp name,Salary fields....
    With unique Emp no.
    My requirement is i want to fetch all the details of the employees(like empno,emp name, emp address..) whose salary is the third highest salary.
    Note: Many employees can have unique salary.
    I need the logic for that,
    helpfull ans ill be rewarded.

    suppose ur table has three fields like
    types : begin of typ_emp,
                 num type i ,
                 name type char20 ,
                 salary type char10 ,
               end of typ_emp.
    data : it_emp type table of typ_emp ,
             it1_emp TYPE TABLE OF typ_emp ,
            wa_emp type typ_emp .
    DATA : count TYPE i ,
               w_salary type i .
    code is
    SORT it_emp BY salary ASCENDING .
    it1_emp = it_emp .
    Take the all data to another table and delete all adjacent duplicates .
    DELETE ADJACENT DUPLICATES FROM it_emp COMPARING salary .
       READ TABLE IT_EMP INTO WA_EMP INDEX 3.
    MOVE  WA_EMP-SALARY TO W_SALARY .
    now the third highest salary will come into w_salary .
    and now again process your internal table and retrieve whose salary is equal to w_salary ...
    thanks
    reward if helpfull..............
    Edited by: sam k on May 27, 2008 12:43 PM
    Edited by: sam k on May 27, 2008 12:55 PM

  • Using logical database to fetch data in Module Pool programming

    I am unable to use logical database to fetch data in case of Module pool programming. Has anyone ever faced problems with it...?

    use f.m LDB_PROCESS....
    refer demo program DEMO_LOGICAL_DATABASE

  • Need logic for invoice due date and discount due date uncear

    Hi Experts.. am new to ABAP
    i had an issue please need some logics for these..
    Formatting of the Invoice due dates and Discount due date is unclear e.g 20101109,
    Invoice due date and Discount due dates are in correct on 10 and 20 days  reminders on missing credit notes for blocked invoices.
    <removed by moderator>
    Thanks & Regards
    Edited by: Thomas Zloch on May 18, 2011 1:55 PM

    Can you provide more info?
    are you talking about BSID open accounts?
    if yes, use function module DETERMINE_DUE_DATE.
    <removed by moderator>
    Edited by: Thomas Zloch on May 18, 2011 2:10 PM - please do not ask for "award"

  • Logic for finding transfer order creation date for a given delivery??

    Hi,
    I am trying to find a logic for connecting the table LTAK which has ERDAT as the T.O. creation date with LIKP/ LIPS table.
    Can you please help me with this information. 
    Regards,
    Peeyoosh.

    Hi,
      Go to LTAP to get the transfer order number based on delivery ltap-vbeln. Then got to ltak to get the Creation date.
    Hope it helps
    Vinod.

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

Maybe you are looking for

  • Error while rendering menus/slideshows--HELP!!

    Ok. I've done my homework on this forum and the Mac help pages and nothing fixes this problem. Initial issue: I have an iDVD project with pictures in drop zones, audio in the background, two menu pages each with 3-4 movies (both .dv and .mpg4), and a

  • How can i copy and paste from one spreadsheet to another?

    Trying to shuffle around the rows as part of an everchanging schedule.  When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another. Is

  • Unable to view Flash content after Norton Utilities scan

    I ran a Norton Utilities scan yesterday, and afterwards various websites looked extremely strange in Firefox. Worse, I lost the ability to view embedded videos on such sites as the BBC, YouTube etc. Further testing this morning shows that the problem

  • Shef life expire report

    Hi Experts, We are using the t.code: MB5M for Self life expire list, in this special stock not showing. How we can check the special stock "Q" shelf life expire. Regards, Hanuman

  • Very unstable powerbook, sleep problem

    I'm having a hard time figuring this one out. When I try to wake my power book from sleep, the pulsing led stops blinking and it appears to wake, but the screen will not turn on. After holding the power button to force a shut down, if I try to restar