BPC 7.0MS Validation Report isn't displayed

Hello colleage,
This question is related to the following thread.
[BPC - Submitted data did not pass validation|Re: BPC - Submitted data did not pass validation;
<Procedure>
-eSubmit > Validate submission
-The message is displayed:
"Submitted data did not pass validation; you may need to resubmit it.
A Validation report cannot be generated because there is no Validation report template."
I think that Validation report can be opened on this timing.
Are there missing settings?
If you have any information or ideas, could you please help me?
<Setting>
Application Parameter
LOCKREPORT: Validate.xlt
Validation Report
eExcel\Input Schedules\Wizard\Validate.xlt
Thank you in advance.
Best regards,
Kei Ogino
Edited by: Kei Ogino on Jun 24, 2009 11:00 AM

Hi Ki Ogino,
We have tested the behaviour for the same scenario.
You get this error, if the template is opened from the /INPUT SCHEDULE/WIZARD or the template not accessible from the relevant location.
Otherwise, able to succesfully validate the data submission by both ways:
1. eSubmit :: Validate Submission
2. Send Data :: Validate Submission before sending.
The issue noticed is that data not refreshed / displayed in the input template after succesful sending into BPC database, whereas the same data can be viewed by new template or ANYBYANY report.
Setting -- APPLICATION PARAMETER for LOCKREPORT.
The report launches when submission validation for a data region is not u20180u2019 in BPC Excel. The template should be located in the eExcel\Report\ folder., though it is currently available in the path eExcel\Input Schedules\Wizard\Validate.xlt.
Try this.
Cheers
Uma

Similar Messages

  • BPC Validation Report

    Hello
    I have put a control on the work statut that work find
    When I do a esubmit>Validate data if there is an error a message appear that tell me I have no validation report and that administration report are maintain by administrator.
    What shall I do to build a validation report ?
    Thanks for help
    Regards
    Anne Forcinal

    Hi Tim,
      the office_ug mentioned that one should validate the data before submitting it, i am wondering how validation can even be done if data is not submitted into the database?
      having said that, i am trying to simulate a simple validation and work status update exercise, my settings are as followed:
    work status setting:
    account - no - validation
    category - yes
    datasrc - no - totaladj
    entity - owner
    intco - no - all_interco
    rptcurrency - no - lc
    time - yes
    validation rules:
    validation account - remark - validation operand - other - other - applicable periods - validation tolerance
    validation - testing validation - = - blank - blank - 0
    validation rules details:
    validation account - account1 - flow1 - sign1 - account2 - flow2 - sign2 - remark
    validation - sales - blank - 1 - cost - blank - 1 - testing validation
    work status:
    work state - dm ...docs - controlled by
    unlocked - all ... all - both
    submitted - all ... all - both
    approved - all ... all - both
      i am just trying to validate that my "sales" and "cost" entries are the same, i tried validating before and after submitting my data using evsen(10,"finance","sales) and evsen(10,"finance","cost") respectively with the other cv values being budget, input, worldwide1, non_interco, subtotal, lc - 2007.total1 - periodic.
      i received the message "submitted data did not pass validation. you may need to resubmit data" on both ocassions.
      any pointers?
    cheers

  • CRVS2010 Beta - Error: No valid Report Source is available

    I am new to using crystal reports in .NET so any (un-jargoned) help is much welcomed and appreciated.
    I am implementing an web application on a Windows XP machine using VS2010 and have downloaded and installed the CR4VS2010 beta 2 and the CRforNET40_x86.  All installed OK with no errors.
    I have embedded a crystal report viewer into my web page and have populated a dataset (myDS) successfully from my SQL server connection earlier in the code.
    The report (stoppages.rpt) is an untyped report stored in a separate folder and has 2 datetime parameters to pass in.  When I run the web app it runs fine until the parameter boxes appear - I enter 2 valid date values into the parameter boxes when I hit OK I get an error - No valid report source is available.
    My code is shown below - I have searched other forums and it was suggested to put in the session.add part but the error occurs with or without this bit in...
    Please help - newbie and desparate! Thanks
    Dim myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
                myReportDocument.Load("C:\Reports\stoppages.rpt")
                myReportDocument.SetDataSource(myDS)
                Session.Add("Report", myReportDocument)
                crvThisReport.ReportSource = myReportDocument
    Subject modified as per the sticky post at the top of this forum; [Crystal Reports for Visual Studio 2010 Beta - read before posting|Crystal Reports for Visual Studio 2010 Beta - read before posting;
    Edited by: Ludek Uher on Oct 13, 2010 7:22 AM

    Hi Ludek,  I tried adding
    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0"/>
    </startup>
    to the config file but it didnt resolve the problems. 
    However I think I have found a work-around solution to setting the parameters programmatically rather than use the crystal report viewer pop-up boxes.  I am posting my code to help anyone else who might be experiencing the same problems:
    Dim myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    myReportDocument.Load(Server.MapPath(strRptPath))
    myDS.WriteXml(Server.MapPath(strXMLPath), XmlWriteMode.WriteSchema)
    myReportDocument.SetDataSource(myDS)
    myReportDocument.Refresh()
    myReportDocument.SetParameterValue("DateFrom", #9/1/2010 6:35:00 AM#)
    myReportDocument.SetParameterValue("DateTo", #9/8/2010 6:35:00 PM#)
    crvThisReport.ReportSource = myReportDocument
    DateFrom and DateTo are the parameter names within my crystal report.
    It seems to be working fine, it stops the crystal report viewer from displaying the parameter pop-up box which stops the error occurring.  However, the error still occurs when you want to interact with the report in other ways, ie page navigation, group tree navigation.  It still allows me to print, export and zoom in and out, so I will have to disable some buttons and features until this error is resolved - the search continues!
    Thanks for all your help and advise.
    Edited by: juliep68 on Oct 14, 2010 11:33 PM

  • Report Viewer not displaying on deployment server

    Hi,
    I am using Visual Studio 2010 with the crystal reports down load to use the viewer. I am using version 13.0.2 with SP1. I have the redistributable package installed on the windows server 2003(32-bit) with .NET Framework 4 where the web app is being deployed. The problem that I am having is that the report view isn't displaying, although it appears that the report itself is being processed. It all works on my development machine which is running windows 7 enterprise(64-bit) with .NET Framework 4. I have been reading through where other people have had problems getting parts of the view to display, like the buttons or charts, but my problem is that the viewer doesn't show up at all. I am not sure why this is happening but I think that it has something to do with the application not know where to look for the viewer dlls or something.
    Any help that people can give me would be very much appreciated. Also let me know if I have put this in the wrong spot.
    Thank you in advance.
    Mark.
    Edited by: Mark Witte on Jun 22, 2011 10:14 PM

    See the following articles. I suspect you are using a custom website and thus as you suspect, the CR engine has no idea where to find the viewer. Forget about red x in the articles, just read up on how to configure custom web site. Also, the article does not go as far as CRVS2010, so the directories are a bit different, but the ideas are the same.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Technology Stack Inventory Validation Report r12.1

    How do you run the Technology Stack Inventory Validation Report on R12.1?
    I knew how to run it in 11i but it is not in the same place on R12.1

    Thanks,
    That provided some of what I was looking for but the Technology Stack Inventory Validation Report used to be
    $ADPERLPRG $ORACLE_HOME/appsutil/bin/TXKScript.pl
    -script=$ORACLE_HOME/appsutil/bin/txkVal11510MP.pl
    -txktop=$ORACLE_HOME/appsutil
    -appspass=<apps_password>
    -outfile=$ORACLE_HOME/appsutil/temp/txkVal11510MP_DB.html
    and the output looked like this:
    Technology Validation Utility report for 11.5.10 Maintainance Pack.
    ===================================================================
    The latest version of the Technology Validation Utility and instructions
    are available in Oracle MetaLink Note 259484.1 .
    Date :Mon Jun 28 16:19:52 2004
    Hostname :apposf45.us.oracle.com
    Node Type :Admin,Conc,DB,Web,Forms
    Instance :PROD_apposf45
    Platform :OSF1
    DB Host :apposf45.us.oracle.com
    Context File :/scratch/apps/disks/disk3/_apps_11510_ab_apps_prodappl/admin/PROD_apposf 45.xml
    Report File :/scratch/disk1/_apps_11510_ab1.5/temp/txkVal11510MP.txt
    Validation of Administration Server Node (apposf45):
    [PASS] Database version from dbms_utility 9.2.0.3.0
    [PASS] JOB_QUEUE_PROCESSES in parameter table 2
    [PASS] Undo management in parameter table AUTO
    [PASS] Database check confirms the fix for
    materialized view
    bug 2328821 has been applied.
    [PASS] Amount of temporary tablespace in MB 1500
    assigned to Apps Schema (determined
    by querying DBA_TEMP_FILES and
    DBA_USER)
    [PASS] UTL_RECOMP package is found in the
    database.
    [PASS] The patch 2949941 for UTL_RECOMP has
    been applied.
    [PASS] The parallel_max_servers parameter is 8
    set to
    [PASS] Your Applications database contains 3.0.9.8.4
    Portal version
    [PASS] Your Applications database contains 3.0.9.8.4
    Login Server version
    Validation of Concurrent Processing Server Node (apposf45):
    [PASS] 'X11 DISPLAY' parameter from the fuji01.us.oracle.com:35.0
    Applications Context file
    [PASS] JDK on Concurrent Processing node 1.3.1
    [PASS] AF_JRE_TOP, AF_CLASSPATH and AFJVAPRG
    variables are correct.
    ....

  • FDM validation report issue

    Hi,
    I am working on validation reports in FDM.
    My logic works fine and I see result by all Entities in Validation report.
    I need to see result by other dimension in validation report other than Entity dimension in FDM.
    Can you let me know how can we achieve this.
    Thanks in advance

    Hi,
    Thanks for the reply, I have placed the dimensions in the rule.. But when I see the report, it is getting displayed for every entity in the file that is processed in FDM.
    But I want my report to have data for each Product dimension instead of Entity ie. sum by each product
    Thanks in advance

  • Intersection Validation Report error

    After clicking the Validate step to get the intersection validation report (Enable Intersection Validation) is turned on, I get the following error in a new window
    "The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later."
    Any help would be appreciated

    You can't open the XML directly from the outbox. The user ID that you are accessing the file with will likeyl not have access to the directory where the XSL file is stored. The XSL file is used to translate the XML file into a viewable format.
    You can copy the XSL file into a directory where you do have access and modify the XML to look to that directory.
    BTW, please open new threads for your questions.
    Edited by: TonyScalese on Apr 14, 2011 1:35 PM

  • Validation Report warnings

    In my application, I have 3 processes, and a PDF form,
    the 3 processes reference the PDF form,
    so each time I make a change to the PDF form, I got 3 warnings in the Validation Report tab, saying that the PDF that these processes depend on has been changed.
    I can get rid of those warnings manually by doing the "Validate" on those processes.
    my question is, why it doesn't do the Validate automatically? and stop displaying those warnings all the time?
    is there a way to let it do the Validate automatically?
    thanks

    Hi,
    you need to run iso files at your cluster nodes often?
    Well i think you need to provide iso files to your VMs. This is possible without "Virtual CloneDrive"!
    I have seen many errors with this kind of software up to bluescreens.
    But ok if you really need this software just ignore the warning from cluster validation report.
    The cluster will work correctly if this are the only warnings from cluster validation report.
    Regards
    Sebastian

  • BPC 7.0MS Performance problem

    Hello All
    We are working on SAP BPC 7.0MS - SQL Server 2005 and are facing performance issues for reports.
    Some reports retrieving close to 60k records using EVGET formulaes do not open, while it works fine in OS 4.2 version and opens in 1-2 minutes.
    To add, we donot see any activity on SQL server for first 2-3 minutes after opening these reports.
    We even tried by redesigning the reports with EVDRE, but it does not help.
    Please suggest how we can improve this performance.
    Thanks in advance for your suggestions
    Abhishek

    Hi all
    We have upgraded to SQL 2008 in our test environment but still the report based on EVGET responds in 8-9 minutes.
    Although the response time for EVDRE based reports have improved to 2 minutes.
    We donot have any complex dimension formulae.
    Since currently we have more reports based on EVGET calculation, please suggest how I can improve there performance.
    Thanks
    Abhishek

  • Report does not display data

    I have a crystal XI report that when run will not display data; if the report should be six pages that is the number of pages that will be generated.  The problem is that the pages show up as blank.  If the blank pages are exported the exported file will contain data, if the report is sent to a printer the report will contain data, but no data is ever displayed on the screen.  This report has been loaded on 15 other computer and runs perfectly. Any help would be greatly appreciated.  By the way if this user logs in remotely and runs this report it will display data.

    A few ideas;
    1) Make sure you are working with [SP 6|https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe].
    You are on SP 2...
    [SP6 msm|https://smpdl.sap-ag.de/~sapidp/012002523100000634032010E/crxir2sp6_rdc_mm.zip]
    2) Try different resolutions
    3) Try to see if there is an updated video driver
    4) Make sure there is a default printer driver installed.
    5) Run [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] see if there are any differences in dlls loading on a box that works and the one that does not (CR and non CR dlls).
    Ludek
    Edited by: Ludek Uher on Feb 22, 2010 10:32 AM

  • Report that would display difference against BOM and Final Prod Orders

    Hello SAP Gurus,
    Is there a report that would display BOM and Final Materials that are used in production orders?
    Thanks in advance.

    Nanz,
    You can use COOIS as well as CO28 for this.
    In COOIS, select 'Components' in the 'List'.
    Give desired selection input & execute.
    In CO28, select 'Components in the initial screen.
    In the next screen give input as required & execute.
    Hope this helps you.
    SmanS

  • Report is not displayed on the browser

    We have a 9iAs Oracle application(built in developer6i(forms and reports) patch12).The database version is Oracle 9.2.0.6.0.My problem is I have a report that is called from the form. If the print_receipt = 'Y', display the report.I have also an afterreport trigger that updates this print_receipt to 'N'.Somehow the afterreport trigger fires before the report is display thus giving a blank pdf output on the browser.My user has new pc and new operating system, Windows XP but they're still using Novell Netware for signing on to the network. Before she does not have any problem displaying the report, she was using Windows NT4 and Novell Netware for signing on to the network.Is there any limitations in Windows XP that interferes with the report? Is this known problem in report's afterreport triggers?Is there a workaround here so the report can be displayed?Thanks for the help.

    Hi,
    Try this may be it will help.
    Go to Iexplorer property - settings - Change (Check for newer version of stored pages to Automatically.
    This error is coming because the report runs twice, so the after report trigger is fired before anything is displyed & hance your report is not displayed.
    Thanks,
    Awadh

  • REP-1057: ' PATH_TO_REPORT/report.rdf' is not a valid Report Builder file.

    Current Level : Report Builder 6.0.8.27.0
    We migrated custom reports build on Report 2.5 to 6.0.8.27.0 on apps/db version
    from 11.0.3 / 8.0.5 to 11.5.10.2/9.2.0.6. Platform was moved from HPUX to Redhat
    Linux 4.
    When we open migrated reports then original reports get converted and compiled
    by Report Builder 6 without any problem. But once saved and when modified some
    of the reports get corrupted and have 'REP-1057' error.
    Anyone had any similar problem and found solution?
    Thanks

    I have a .rdf file. When I try to open the same in Report Builder for 6i, nothing happens! It just does not open!
    I tried to convert the report into .REX from unix - I get the following error
    REP-1057: 'FAIAPXINROH.rdf' is not a valid Report Builder file.
    But, the report is running fine from Oracle apps.
    I need to open this .rdf to change somethings.
    Any suggestions?
    Regards,
    Arun Tirumale

  • TS1456 My 4th Gen iPod Nano isn't displaying a "Use iTunes to restore" message, but iTunes is displaying a restore message when I connect it. I have original music that I can't back up on my iPod. Is there any way that I can fix the iPod without restoring

    My 4th Gen iPod Nano isn't displaying a "Use iTunes to restore" message, but iTunes is displaying a restore message when I connect it. I have original music that I can't back up on my iPod. Is there any way that I can fix the iPod without restoring it?

    It's not designed to work like this. When you sync, the iPod stores some information that basically says 'this iPod belongs to computer xyz'. Apple did this to prevent copyright issues (syncing someone else's music).
    If you really want to do this, you'll have to at least tie both iTunes installations to the same account. Maybe have them sync with each other.

  • To change the colour of the particular cell of ALV report in Grid display.

    Hai Friends,
                      I have created an Alv report in grid display .In that i want to change the colour of the particular cell.Plz provide the answer with a solved example.
             Thank u.

    This works for a Custom Control and OO ALV in a Dialog Module
    TABLES: kna1.
    * Data (for the ALV Grid)
    TYPES:
      BEGIN OF t_alv_data,
        cust_id    TYPE kunnr,        "Customer Number
        cust_name  TYPE name1_gp,     "Customer Name
        cust_color TYPE i,
    *   cell coloring field
        color     TYPE lvc_t_scol,   "Cell coloring
      END OF t_alv_data.
    DATA:
      v_alv_data TYPE t_alv_data,
      i_alv_data TYPE STANDARD TABLE OF t_alv_data.
    * ALV grid containers and objects
    DATA:
      o_alv_grid TYPE REF TO cl_gui_alv_grid,
      o_alv_cont TYPE REF TO cl_gui_custom_container.
    * ALV field catalog
    DATA:
      i_alv_fc TYPE lvc_t_fcat,
      v_alv_fc LIKE lvc_s_fcat.
    * ALV Layout (colors)
    DATA:
      v_alv_layout TYPE lvc_s_layo,
      i_alv_color TYPE lvc_t_scol,
      v_alv_color TYPE lvc_s_scol,
      v_alv_color_cell TYPE lvc_s_colo.
    * ALV variant
    DATA:
      v_alv_variant  TYPE disvariant.
    PARAMETERS:
      p_alvvar TYPE disvariant-variant DEFAULT 'DEFAULT'.
    DATA: ok_code LIKE sy-ucomm.
    * Class for event handling
    *       CLASS lcl_event_receiver DEFINITION
    * [+] Event listener for the ALV grid
    * [+] Handles hotspots and data changes
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
    *     Hotspot clicking
          hotspot_click
               FOR EVENT hotspot_click OF cl_gui_alv_grid
                 IMPORTING e_row_id
                           e_column_id
                           es_row_no,
    *     Data changed (such as checkbox clicking)
          handle_data_changed
            FOR EVENT data_changed OF cl_gui_alv_grid
                IMPORTING er_data_changed.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    *       CLASS lcl_event_receiver IMPLEMENTATION
    * [+] Implementation of the ALV Grid event handler class
    CLASS lcl_event_receiver IMPLEMENTATION.
    *       METHOD hotspot_click                                          *
    * [+] Calls evvent_hotspot_click when a hotspot is clicked in the ALV
      METHOD hotspot_click.
        PERFORM event_hotspot_click
                      USING e_row_id
                            e_column_id.
      ENDMETHOD.                    "hotspot_click
    *       METHOD handle_data_changed                                    *
    * [+] Updates the source data when the data in the ALV display has
    * been changed, such as by clicking a checkbox.
      METHOD handle_data_changed.
        DATA: lv_changed TYPE lvc_s_modi.
        LOOP AT er_data_changed->mt_good_cells INTO lv_changed
          WHERE fieldname = 'CUST_NAME'.
          READ TABLE i_alv_data INTO v_alv_data INDEX lv_changed-row_id.
          IF sy-subrc = 0.
            MOVE lv_changed-value TO v_alv_data-cust_name.
            MODIFY i_alv_data FROM v_alv_data INDEX lv_changed-row_id.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    * Reference to the event listener class
    DATA: event_receiver TYPE REF TO lcl_event_receiver.
    *       FORM build_event_listener
    * [+] Set the event handler on the ALV Grid
    FORM build_event_listener.
    * Assigning the event listener to the ALV
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_data_changed FOR o_alv_grid.
      SET HANDLER event_receiver->hotspot_click       FOR o_alv_grid.
    ENDFORM.                    "build_event_listener
    *       AT SELECTION-SCREEN
    *         ON VALUE-REQUEST FOR p_alvvar
    * [+] Calls choose_alv_variant to ask the user to select an alv grid
    *     layout variant
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_alvvar.
      PERFORM choose_alv_variant
        CHANGING
          p_alvvar
          v_alv_variant.
    *       START_OF_SELECTION
    START-OF-SELECTION.
      PERFORM get_data.
      SET PF-STATUS 'ALVSCREEN' IMMEDIATELY.
      CALL SCREEN 2000.
    *       FORM get_data
    * [+] Gets the data for the ALV grid
    FORM get_data.
      SELECT kunnr name1
        INTO (v_alv_data-cust_id,
              v_alv_data-cust_name)
        FROM kna1.
        APPEND v_alv_data TO i_alv_data.
      ENDSELECT.
    ENDFORM.                    "get_data
    *       MODULE build_alv_grid
    *   THIS SHOULD BE IN THE "PROCESS BEFORE OUTPUT" OF THE ALV SCREEN
    * [+] Builds the ALV Grid objects
    * [+] Calls to build the field catalog table
    * [+] Loads the field catalog table into the ALV Grid
    * [+] Loads the table data into the ALV Grid
    MODULE build_alv_grid OUTPUT.
      SET TITLEBAR  '2000'.
    * Also enables layout saving
      PERFORM set_alv_variant
        USING
          p_alvvar
        CHANGING
          v_alv_variant.
    * Building the grid and container on the screen
    * NOTE: the container name MUST be upper-case
    * Also, we don't want the objects to be created if in batch mode!
      IF sy-batch IS INITIAL.
        CREATE OBJECT o_alv_cont
          EXPORTING
            container_name = 'O_ALV_TABLE'.
      ENDIF.
      CREATE OBJECT o_alv_grid
        EXPORTING
          i_parent = o_alv_cont.
    * builds the event listener
      PERFORM build_event_listener.
    * Color the cells
      PERFORM color_cells.
    * Build the field catalog
      PERFORM build_alv_fc.
    * Loads the data into the grid
      CALL METHOD o_alv_grid->set_table_for_first_display
        EXPORTING
          i_save          = 'A'
          i_default       = 'X'
          is_variant      = v_alv_variant
          is_layout       = v_alv_layout
        CHANGING
          it_outtab       = i_alv_data
          it_fieldcatalog = i_alv_fc.
    ENDMODULE.                    "build_alv_grid OUTPUT
    *       FORM build_alv_fc
    * [+] Constructs the ALV Grid field catalog table
    FORM build_alv_fc.
      CLEAR i_alv_fc.
      REFRESH i_alv_fc.
    * NOTE: the field name MUST be upper-case
    *                   field       heading         hide  hot
    *                   name                        zero  spot  just
      PERFORM:
        alv_field USING 'CUST_ID'    'Cust ID'        ' '  'X'  'R',
        alv_field USING 'CUST_NAME'  'Customer Name'  ' '  ' '  'L',
        alv_field USING 'CUST_COLOR' 'Color'          ' '  ' '  'R'.
    ENDFORM.                    "build_alv_fc
    *       FORM alv_field
    * [+] Describes and constructs a single field for the ALV Grid field
    *     catalog. The field length and type are both obtained from the
    *     actual field passed in to this method.
    * [+] Adds the constructed field to the ALV Grid field catalog table
    FORM alv_field
      USING
        p_field_name TYPE c
        p_heading    TYPE c
        p_hide_zeros TYPE c
        p_hotspot    TYPE c
        p_justify    TYPE c.
      CLEAR v_alv_fc.
      DATA:
        lv_type(1) TYPE c,
        lv_length TYPE i,
        lv_heading_length TYPE i.
    * get the type and length of this field
      FIELD-SYMBOLS <field>.
      ASSIGN p_field_name TO <field>.
      DESCRIBE FIELD <field> TYPE lv_type OUTPUT-LENGTH lv_length.
    * re-adjust the length to the length of the header, if too short
      lv_heading_length = strlen( p_heading ).
      IF lv_length < lv_heading_length.
        lv_length = lv_heading_length.
      ENDIF.
    * NOTE: the field name MUST be upper-case
      v_alv_fc-fieldname = p_field_name.
      TRANSLATE v_alv_fc-fieldname TO UPPER CASE.
      v_alv_fc-inttype   = lv_type.
      v_alv_fc-outputlen = lv_length.
      v_alv_fc-coltext   = p_heading.
      v_alv_fc-seltext   = p_heading.
      v_alv_fc-hotspot   = p_hotspot.
    * Determining which fields should show zeros
      IF p_hide_zeros = 'X'.
        v_alv_fc-no_zero = 'X'.
        v_alv_fc-lzero   = ' '.
      ELSE.
        v_alv_fc-no_zero = ' '.
        v_alv_fc-lzero   = 'X'.
      ENDIF.
      v_alv_fc-just = p_justify.
    * Add the field to the field catalog
      APPEND v_alv_fc TO i_alv_fc.
    ENDFORM.                    "alv_field
    *       FORM choose_alv_variant
    * [+] Shows a popup that allows the user to choose the layout variant
    *     for the alv grid of the current program
    * [+] Usually called by an AT SELECTION-SCREEN method.
    FORM choose_alv_variant
      CHANGING
        p_variant_name TYPE disvariant-variant
        p_variant      TYPE disvariant.
      CLEAR p_variant.
      DATA:
        p_exit_check(1) TYPE c.
      MOVE sy-repid TO p_variant-report.
      CALL FUNCTION 'LVC_VARIANT_F4'
           EXPORTING
                is_variant = p_variant
                i_save     = 'A'
           IMPORTING
                e_exit     = p_exit_check
                es_variant = p_variant
           EXCEPTIONS
                not_found  = 1
                OTHERS     = 99.
      IF sy-subrc = 0.
        IF p_exit_check <> 'X'.
          p_variant_name = p_variant-variant.
        ENDIF.
      ENDIF.
    ENDFORM.                    "choose_alv_variant
    *       FORM set_alv_variant
    * [+] Sets the alv grid layout variant. Used for setting the variant
    *     when its name is entered in a parameter rather than by using the
    *     popup, or when loading the variant from a variable of type C
    FORM set_alv_variant
      USING
        p_variant_name TYPE disvariant-variant
      CHANGING
        p_variant      TYPE disvariant.
      MOVE sy-repid TO p_variant-report.
      p_variant-variant = p_variant_name.
    ENDFORM.                    "set_alv_variant
    *       FORM color_cells
    * [+] Loop through the data and apply coloring
    FORM color_cells.
      DATA:
        my_color  TYPE i.
    * tell the ALV grid what field in v_alv_data contains color information
      v_alv_layout-ctab_fname = 'COLOR'.
      my_color = 0.
    * loop through each row of the table
      LOOP AT i_alv_data INTO v_alv_data.
    *   clear the variables
        CLEAR:
          v_alv_color,
          v_alv_color_cell,
          i_alv_color.
        REFRESH:
          i_alv_color.
        v_alv_data-cust_color = my_color.
        PERFORM color_cell USING 'CUST_COLOR' my_color. "negative
    *   apply the colors
    *    IF v_alv_data-cust_name = 'Testing Credit'.
    *      PERFORM color_cell USING 'CUST_NAME' 6. "negative
    *    ELSEIF v_alv_data-cust_name = 'Goober Goober Also'.
    *      PERFORM color_cell USING 'CUST_NAME' 5. "positive
    *    ENDIF.
    *   set the color data for this table row
        v_alv_data-color = i_alv_color.
        MODIFY i_alv_data FROM v_alv_data.
        my_color = my_color + 1.
        IF my_color GT 7.
          CLEAR my_color.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "color_cells
    *       FORM color_cell
    * [+] Colors a cell in the ALV grid
    FORM color_cell
      USING
        p_cellname TYPE c
        p_color    TYPE i.
      CLEAR:
        v_alv_color_cell,
        v_alv_color.
    * set the color for the cell
    *  IF p_color = 0.
    *    v_alv_color_cell-col = 0. "cl_gui_resources=>list_col_background.
    *  ELSEIF p_color = 1.
    *    v_alv_color_cell-col = 1. "cl_gui_resources=>list_col_heading.
    *  ELSEIF p_color = 2.
    *    v_alv_color_cell-col = 2. "cl_gui_resources=>list_col_normal.
    *  ELSEIF p_color = 3.
    *    v_alv_color_cell-col = 3. "cl_gui_resources=>list_col_total.
    *  ELSEIF p_color = 4.
    *    v_alv_color_cell-col = 4. "cl_gui_resources=>list_col_key.
    *  ELSEIF p_color = 5.
    *    v_alv_color_cell-col = 5. "cl_gui_resources=>list_col_positive.
    *  ELSEIF p_color = 6.
    *    v_alv_color_cell-col = 6. "cl_gui_resources=>list_col_negative.
    *  ELSEIF p_color = 7.
    *    v_alv_color_cell-col = 7. "cl_gui_resources=>list_col_group.
    *  ENDIF.
      v_alv_color_cell-col = p_color.
      v_alv_color-nokeycol = 'X'.
      v_alv_color-fname = p_cellname.
    *  v_alv_color-color = p_color.
      v_alv_color-color = v_alv_color_cell.
      APPEND v_alv_color TO i_alv_color.
    ENDFORM.                    "color_cell
    *       FORM event_hotspot_click
    * [+] What to do when clicking on a hotspot in the ALV Grid
    FORM event_hotspot_click
      USING
        p_row    TYPE lvc_s_row
        p_column TYPE lvc_s_col.
      DATA:
        lv_docnum TYPE kunnr.
      READ TABLE i_alv_data INTO v_alv_data INDEX p_row-index.
      IF p_column = 'CUST_ID'.
    *   call a transaction when the cust_id is clicked
        SET PARAMETER ID 'AUN' FIELD v_alv_data-cust_id.
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDFORM.                    "event_hotspot_click
    *&      Module  USER_COMMAND_2000  INPUT
    *       text
    MODULE user_command_2000 INPUT.
      CASE ok_code.
        WHEN 'BACK'
          OR 'STOP'
          OR 'CANCEL'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2000  INPUT

Maybe you are looking for

  • Cannot Connect to Mac App Store

    When I open the MAS, I get a "Cannot Connect to the App Store" alert in the window. When I try to signin, I receive a red "Connection failed" message in the signin dialog box. When I go to Software Update from the Apple Menu, I receive a notice that

  • Difference in Maintenance Plan date to Order basic start date

    If i creat a strategy plan and schedule, i am getting difference in PLan date in Maint plan to Basic start date. What is making this difference. How to overcome this. I need Order start date same as PLan date. Plz help me frnds. Guruprasad

  • Modify a value of a node

    Hi fellow developers I�m trying to modify a value of a node. But I think I�m missing something. Please help. thanks in advance for(int i=0;i<List.getLength();i++){                     node=List.item(i);                     if(node.getChildNodes().ite

  • User-exit / Badi for changin vendors(fk01/02) and customers(fd01/02)

    Hi, I'm looking for an user-exit or an Badi which can be used, when creating/changing a vendor or customer. Has anybody used it? Thanks. Regards, Dieter

  • I phone 4 gets no service anywhere... why???

    I Upgraded the i phone 4 to the ios 5 and i get NO service anywhere even when im at home im connected to wi fi and every 1 else has service but me..... why is that i had the i phone 3g before and it worked great!! but ever since i upgraded and took m