Need to compare data of field of a report

Hi All ,
I need to make a report in report builder 6i , i need ti make two things but unable to do it
1) update a column in the database after runing of the report so i did the following in after Report Trigger
function AfterReport return boolean is
begin
update AP_CHECKS_all set attribute5 = 'yes'
where CHECKRUN_ID = :batch_id ;
commit;
return (TRUE);
end;
it's compiling successfully but when i run i get error "REP-1316:After report trigger references column 'batch_id' at wrong frequency " .
NOte : even when i put static value to get sure update statement is working it doesn't update database

Number of datasets have no relation with print and layout. The number of datasets depends on how many data sources you want to get the data from and in how many different wasys.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • Not able populate correct data into fields in alv report

    hi experts,
    question: from delivery document number(likp-vbeln) go to delivery items to get lips-matnr,lips-lgort
    TYPE-POOLS:SLIS.
    TABLES: MARC,LIPS,LIKP,VBAK,VBAP,VBRP.
    SELECT-OPTIONS:S_VKORG FOR LIKP-VKORG,
                   S_VBELN FOR LIKP-VBELN,
                   S_MATGR FOR MARC-MATGR,
                   S_AUART FOR VBAK-AUART.
    DATA: BEGIN OF ITAB OCCURS  0  ,
           MATGR LIKE MARC-MATGR,
           MATNR LIKE LIPS-MATNR,
           LGORT LIKE LIPS-LGORT,
           WADAT_IST LIKE LIKP-WADAT_IST,
           AUART LIKE VBAK-AUART,
           WAVWR LIKE VBRP-WAVWR,
           KWMENG LIKE VBAP-KWMENG,
           VBELN LIKE LIKP-VBELN,
          VBELN LIKE VBAK-VBELN,
          <GORT TYPE LIPS-LGORT,
           END OF ITAB.
       DATA: BEGIN OF JTAB OCCURS 0,
             VBELN LIKE VBAK-VBELN,
             END OF JTAB.
      DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
             I_EVENTCAT TYPE SLIS_T_EVENT WITH HEADER LINE.
      START-OF-SELECTION.
      SELECT AMATNR ALGORT INTO TABLE ITAB   FROM LIPS AS
    A INNER JOIN
    LIKP AS B ON BVBELN EQ AVBELN  WHERE BVBELN IN S_VBELN AND BVKORG
    IN
    S_VKORG.
    ENDSELECT.
    *I_FIELDCAT-COL_POS = 1.
    *I_FIELDCAT-FIELDNAME = 'VBELN'.
    *I_FIELDCAT-TABNAME = 'ITAB'.
    *APPEND I_FIELDCAT TO I_FIELDCAT.
    *CLEAR I_FIELDCAT.
    I_FIELDCAT-COL_POS = 1.
    I_FIELDCAT-FIELDNAME = 'MATNR'.
    *I_FIELDCAT-TABNAME = 'ITAB'.
    I_FIELDCAT-REF_TABNAME = 'MATNR'.
    I_FIELDCAT-REF_TABNAME = 'LIPS'.
    APPEND I_FIELDCAT .
    *CLEAR I_FIELDCAT.
    I_FIELDCAT-COL_POS = 2.
    I_FIELDCAT-FIELDNAME = 'LGORT'.
    *I_FIELDCAT-TABNAME = 'ITAB'.
    I_FIELDCAT-REF_TABNAME = 'LIPS'.
    APPEND I_FIELDCAT .
    *CLEAR I_FIELDCAT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK              = ' '
        I_BYPASSING_BUFFER             =
        I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = SY-REPID
        I_CALLBACK_PF_STATUS_SET       = ' '
        I_CALLBACK_USER_COMMAND        = ' '
        I_STRUCTURE_NAME               =
        IS_LAYOUT                      =
         IT_FIELDCAT                    = I_FIELDCAT[]
        IT_EXCLUDING                   =
        IT_SPECIAL_GROUPS              =
        IT_SORT                        =
        IT_FILTER                      =
        IS_SEL_HIDE                    =
        I_DEFAULT                      = 'X'
        I_SAVE                         = ' '
        IS_VARIANT                     =
         IT_EVENTS                      = I_EVENTCAT[]
        IT_EVENT_EXIT                  =
        IS_PRINT                       =
        IS_REPREP_ID                   =
        I_SCREEN_START_COLUMN          = 0
        I_SCREEN_START_LINE            = 0
        I_SCREEN_END_COLUMN            = 0
        I_SCREEN_END_LINE              = 0
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER        =
        ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = ITAB
      EXCEPTIONS
        PROGRAM_ERROR                  = 1
        OTHERS                         = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    i am unable to populate correct data into fields i am getting matnr values as all 1's
    and lgort as empty
    can anyone help me out
    thanks.

    HI there
    This is what i found on the Forum
    "You can use FM RS_VARIANT_CONTENTS to display ONE variant associated to a report
    If you want to see the information of ALL VARIANTS associated to a report I think the only way is checking table VARID to get all the variants associated to the report and then do a loop and call RS_VARIANT_CONTENTS for each variant."
    Regards
    Tatenda

  • Comparing Date/Time Field In Select Expert

    I have a Formula field defined INVDATE as follows:
    WhileReadingRecords;
    tonumber(totext(year({INV1.DocDate}),'##')totext(month({INV1.DocDate}),'#')totext(day({INV1.DocDate}),'#'))
    I need to select a date range by passing parameters in the Select Editor as follows:
    {@INVDATE} in {?Begin Date} to {?End Date}.
    My questions is this doesn't select only the records i have entered for the date range, it gives me all records in the table. Any idea how to code this so it only give me the records I have passed a date range for.
    Thanks Jim Dyer

    Mark I have replicated to what you have mentioned in your post and my dates are coming out perfectly.
    Here is what I did...
    Created two date parameters (Start date and End Date)
    Created formula exactly like yours
    WhileReadingRecords;
    tonumber(totext(year({order_header.date_entered}),'##')+
    totext(month({order_header.date_entered}),'#')+
    totext(day({order_header.date_entered}),'#'))
    placed it in the detail section.
    Created a Report--->Record Selection formula
    {order_header.date_entered} in {?Start Date} to {?End Date}
    Ran the report and chose the date range for today and I got all the dates which are for today.
    Can you please let me know if you are doing the same what I did? or perhaps a screenshot of what you are getting and what you expecting?
    Regards
    Jehanzeb

  • Help! Need to save data from field point in excel sheet!!!

    Hey colleagues,
    I need help. I am writing on my diploma thesis.Main topic is to develop a visualization of a process of a process plant which is used for an internship in uni. My meain problem is that I need a vi where I can save my fieldpoint data only in special cycles. At the moment I use a vi which can only save every second in form of a while loop and a metronom. I am searching for a vi where I can choose the time between every saving step in excel. In addition to that I would like to have a boolean button where i can start/stop the saving within running process.
    please help me urgently!!!
    Marco

    Hello Marco,
    the answer
    for your problem is called “Software Control Timing”.
    If a
    desired time has elapsed, you can write data’s to a file.
    The explicit
    timing is the timing for your while loop, e.g. 10ms.
    If a
    desired time has elapsed, you get a flag from a timing-function and an
    additional block of your code (e.g. a subVI) will executed.
    The set
    time for the timing function is settable dynamically, while your program is
    running.
    Find the VI
    in the attachment, which will provide this functionality for you.
    I hope this
    VI will bring you further ahead…..
    Have nice
    day…
    Ulrich
    AE-NIC  
    Attachments:
    SoftControlTiming.vi ‏41 KB

  • How to compare the two field in jasper report design

    hi to all,
    I am new to jasper report design
    I want to compare two fields (or) variable using if..else condition.
    pls help me out

    Check out these postings:
    http://forum.java.sun.com/thread.jspa?threadID=5286462
    http://forum.java.sun.com/thread.jspa?threadID=5286468

  • Need to add Purchase Order field in Standard report in report painter

    Hi Gurus,
    I have a requirement to add an extra field in Cost center:Act/Plan/Comm CC Cur report.This is otherwise a Z report in report painter with 0% code (T-code : GR55-> Report group->Report).But,when we go to technical information of this report,it has four standard sap programs,which contains code for this selection screen.It does not even have a modification scope.
    Selection screen of this report contains following parameters:
    Selection values:
    Controlling Ar
    Fiscal Year
    From Period
    To Period
    Plan Version
    Selection Groups:
    Cost Center Group
    Or value(s)
    Cost Element Group
    Or value(s)
    My requirement is to add one more parameter : Purchase oeder in new block:
    Is there any way to achieve it.
    Note: Copying the standard progs into custom prog is not working,i already tried that.
    Please let me know your suggestions,if any one of you came across such requirement before.it is very impoertant for me.
    Thanks in advance,
    Meenakshi

    Hi Subramaniyam,
    You can find enhancement in me28 by following steps and then apply your logic in include of this enhancement.
    cmod>Give a project name>in enhancement column give the package name ME >f4>in package write ME-->ENTER>It will show you all enhancements available in me28> find which ever suits your requirement>save > click on components> from there you can make changes in include program.to add that particular field.

  • Need to compare 2 fields

    I have a table in which i need to compare 2 different fields for the same
    record. I only need Kodo to retrieve the row if the 2 fields are not equal.
    I have tried using a few filter string.
    1) fieldA != fieldB
    This does not work.
    Can anybody help?
    Thanks in advance!

    Teo Seng Guan-
    I think what Steve meant is that he wanted you to enable verbose logging
    (with the "kodo.Log: DefaultLevel=TRACE" property) and let us know if
    the SQL that Kodo generates for that query looks correct.
    I just ran a quick test, and the filter "fieldA != fieldB" worked as
    expected for me. Are the fields of the same type?
    Teo Seng Guan, Eric wrote:
    Ya, I think sql might be easily to use in this case. But was wondering
    whether kodo can still be used in this kind of cases..
    Thanks!
    Stephen Kim wrote:
    Are you seeing SQL appropriate to this filter?
    Teo Seng Guan, Eric wrote:
    I have a table in which i need to compare 2 different fields for the same
    record. I only need Kodo to retrieve the row if the 2 fields are not equal.
    I have tried using a few filter string.
    1) fieldA != fieldB
    This does not work.
    Can anybody help?
    Thanks in advance!
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Compare date with time

    Hi ,
    Oracle 10.2.0.1.0
    I need to compare date field with time stamp as well . I tried doing byt getting time stamp using to_char and on convertion into date by using to_date , I'm loosing time stamp please help

    804282 wrote:
    I need to compare date field with time stamp as well Compare how exactly?
    If you for example want to see if the date and timestamp are "equal", you can use the following approach - where in this specific approach it is deemed that if the difference between the timestamp and date is less than 1 sec, the two values are equal. E.g.
    SQL>
    SQL> create table test_tab(
      2          d       date,
      3          t       timestamp
      4  );
    Table created.
    SQL>
    SQL> insert into test_tab values( sysdate, systimestamp );
    1 row created.
    SQL> --// is the date and timestamp within 1 sec of one another?
    SQL> select * from test_tab where t-d <  to_dsinterval('0 0:0:1.00');
    D                   T
    2011/07/12 07:25:06 12/JUL/11 07:25:06.744832
    SQL> --// the reverse test
    SQL> select * from test_tab where t-d >=  to_dsinterval('0 0:0:1.00');
    no rows selected
    SQL>

  • Comparing data in different resultsets

    Hi everybody!
    I am working on an web application involving some EAI, as a requirement i need to compare data from two different sources (databases to be precise) and fill a XML based on certain rules. I wish to know if there is a way to compare two ResultSet objects (with almost similar data) directly, or the only way to do is compare each value seperately.
    Also please suggest from efficiency point of view if its viable to store data from resultSet to a certain struc kind of object and then comparing, as it would involve lots of overhead compared to directly comparing the two resultsets.
    TIA
    Abhishek

    i have to compare various columns of each row and assign flags in output xml as to note if data is inconsistant, though i am taking measures so as to get the rows in the same order in both result sets, but the primary purpose of this comparison is indeed to check data integrity between both the sources.

  • Less Than operator not working, Greater Than operator works comparing dates

    I need to compare dates to conditionally display a row. If the DateDueJulian_ID5<= AsOfDate_ID47 display otherwise don't. I get all rows but if I reverse the logic >= the condition works and only displays the one matching row.
    I am using the Template Builder 10.1.3.4.1 and WORD 2007.
    Any help is appreciated!
    Thanks
    XML Source:
    <Header_Section_S3>
    <Delinquency_Report_ID225>DELINQUENCY NOTICE</Delinquency_Report_ID225>
    <VersionName_ID270>0001</VersionName_ID270>
    <Report_or_Video_Title_ID53></Report_or_Video_Title_ID53>
    <Remit_To_Text_ID68>Remit To:</Remit_To_Text_ID68>
    <RemitToAddressLine1_ID2>XXXXX</RemitToAddressLine1_ID2>
    <XX_XX_XX_ID259>2010-08-25</XX_XX_XX_ID259>
    <Date__ID258>Date</Date__ID258>
    <RemitToAddressLine2_ID5></RemitToAddressLine2_ID5>
    <RemitToAddressLine3_ID8></RemitToAddressLine3_ID8>
    <As_of_Date__ID46>As of Date</As_of_Date__ID46>
    <AsOfDate_ID47>2007-11-29</AsOfDate_ID47>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-12-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    <A_R_Delinquency_Notice_Detail_Join_S2>
    <DocVoucherInvoiceE_ID1>1897265</DocVoucherInvoiceE_ID1>
    <DateInvoiceJ_ID3>2007-10-11</DateInvoiceJ_ID3>
    <DateDueJulian_ID5>2007-11-10</DateDueJulian_ID5>
    <NameRemark_ID7></NameRemark_ID7>
    <AmountOpen_ID11></AmountOpen_ID11>
    <AddressNumber_ID17></AddressNumber_ID17>
    <UniqueKeyIDInternal_ID19></UniqueKeyIDInternal_ID19>
    <KAV_CustomerPONumber_ID23></KAV_CustomerPONumber_ID23>
    </A_R_Delinquency_Notice_Detail_Join_S2>
    RTF:
    <?for-each:Header_Section_S3?>
    <?if:DateDueJulian_ID5 <= AsOfDate_ID47?>
    <?DocVoucherInvoiceE_ID1?>
    <?DateDueJulian_ID5?>
    <?AsOfDate_ID47?>
    <?end if?>
    <?end for-each?>

    Found the solution! Use Date_Diff.
    <?if:xdoxslt:date_diff('d',DateDueJulian_ID5,AsOfDate_ID47,$_XDOLOCALE,$_XDOTIMEZONE)>=0?>

  • How to compare a database field and form field and highlight differences

    Hi there,
    I have been trying to find a coldfusion function that will help, I have tried comparing two strings but the results of -1 1 or 0 aren't very useful.
    I need to compare a database field with a form field and highlight all the differences in the form field in red.
    Thanks
    Katie

    This is a non-trivial process.  Rather than doing a compare, you really are wanting to do a diff.  CF doesn't do this out of the box, but you might want to have a sniff around on Google to see if anyone has implemented anything for CF.
    Some reading:
    http://en.wikipedia.org/wiki/Diff#Algorithm
    Adam

  • Require data from field: STATUS belonging to structure: MEREQ3330

    Gurus,
    I am MM consultant, so please excuse me if its a simple question,
    I need to pull data from field: STATUS belonging to structure: MEREQ3330.
    Data element: MMPUR_PR_EXTSOURCE_STATUS_TY
    This field belongs to Purchase Requisition.
    Can you please explain in simple english, how can I extract data of the
    above mentioned field from structure.
    I read the forum threads, but most of them are talking for programming or pulling
    data of FM. I dont understand, what to do there.
    Edited by: Afshad Irani on Jun 4, 2010 7:44 PM

    Thank you Vaas, your answer was very close, I could not find my DATA Element, but I was getting closer results through this
    Data Element: MEREQ_PROC_STATUS.
    Can anyone, Please tell me whether to find field data belonging to any other structure, I can view the table the same way as mentioned by Vaas e.g. for structure of PO, I can check EKKO_tech or EKPO_TECH.
    Your answers are appreciated.
    Edited by: Afshad Irani on Jun 13, 2010 9:36 AM

  • Problem dislaying an Informix LVARCHAR field in Crystal Reports

    Post Author: littlew
    CA Forum: Data Connectivity and SQL
    I am creating a report using Crystal Reports XI from a BOXI Universe.  The Universe is connecting to an Informix Dynamic Server 9.21 database.  The Informix database contains a field which is a LVARCHAR data type.   A LVARCHAR data type is one which allows the storing of more than 255 characters (up to 2KB). 
    When I attempt to place the LVARCHAR data type field onto my report, Crystal Reports displays no data in my report for most of the other fields, and all the formulas return invalid results.  If I go into the Informix database and change the LVARCHAR field to CHAR (255) field, the Crystal Report will run with no problems.
    Does anyone know if Crystal Reports can support the displaying of fields from the database, which are greater than 255 characters?
    Also, I have created a Crystal Report which uses the same Informix data source using an ODBC connection and the LVARCHAR field caused the entire report not to display.   By changing the field from LVARCHAR to CHAR (255) the report runs fine.
    -bill

    Post Author: V361
    CA Forum: Data Connectivity and SQL
    I don't remember where I read it, but the field limit is 255 characters. Unless that has changed in CR 2008

  • How to increase the width of a field in oracle reports 6i

    Hello,
    I'm facing a problem related to width of field. I have a table with field abc varchar2(1500) and when I try to show it in report. I'm unable to see complete data because field size in report is 300.
    Kindly guide me to increase the size/width of field in oracle report 6i
    thanks in advance
    sadiq

    Post your question on Reports forum
    Reports

  • R12 Format Payment Instructions - new field required in report output

    Hi
    I need to add a new field in the report "Format Payment Instructions " output. How can I add the logic to pick this field and then add to the layout.
    As per note 562806.1, it gives instructions on how to re-arrange the layout of the format payment instructions but not regarding adding logic to pick new fields.
    Any help would be appreciated.
    Regards,
    Alister

    Hello
    Could you plse help me out in adding new filed in BaCS format program .
    We are in Release 12,I need to customize the format program by adding new fields
    I tried generating a new template by following meta link note .. but that itself is erroring out.
    If you have any sample code and the steps plse send it across
    Any help is deeply appreciated
    Regards,
    Priya

Maybe you are looking for