CR 2008 & VS 2008 - Record Selection Gets Empty String on Report Refresh

I'm using CR2008 in VS 2008 (WinForms not Web).   This seems like a fairly easy thing to do (was in VB6/CR8.5).
My program provides a list of reports via the FileDialog, grabs the report name, loads the report document with the report, then the viewer displays the report.  Everything works great to that point, but then the user refreshes the report and the selection string is changed to "" (empty) and all records from the table are displayed.  Is there something that I'm missing here?
I have tried both 8.5 and CR2008 reports with the same results.  The login seems to be working fine.
Any help would be appreciated,
Thanks
RA Smith
Puzzled
Code:
    Private Sub OpenCrystalReportDirectoryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenCrystalReportDirectoryToolStripMenuItem.Click
        If FileIO.FileSystem.DirectoryExists(dirPath) = False Then
            MsgBox("Crystal Reports Directory not valid. " & _
                   "Check that drive is mapped to S: drive.", MsgBoxStyle.Exclamation)
        Else
            Me.OpenFileDialog1.InitialDirectory = dirPath
            If OpenFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
                Try
                    rptName = OpenFileDialog1.FileName
                    If FileIO.FileSystem.DirectoryExists(rptName) = True Then
                        MsgBox("File not found", MsgBoxStyle.Exclamation)
                    Else
                        Me.reportDocument1.Load(rptName, OpenReportMethod.OpenReportByTempCopy)
                        Me.CrystalReportViewer1.ReportSource = Me.reportDocument1
                    End If
                Catch Ex As Exception
                    MessageBox.Show("Cannot read file from disk. Original error: " & Ex.Message)
                End Try
            End If
        End If
    End Sub

Hi,
Post your question in SDK forum.
[NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio;
That forum is monitored by qualified technicians and you will get a faster response there. Also, all SDK queries remain in one place and thus can be easily searched in one place.
Thank you for your understanding,
Shweta

Similar Messages

  • Crystal 2008 problem with Record Select Expert

    I had a Crystal 10 report that worked fine where the Record Select Expert had a database table ID equal to a parameter... it was only supposed to report on 1 record.  After using Crystal 2008 on the same report it completely ignores this Select Record Expert setting.  I have tried deleting and re-adding the parameter.  It acts like there is no record select setting.
    Here is the formula that it shows me it is using:    {Components.ID} = {?@ID}
    If I go to the application opening the same record on a different machine using the old crystal, it works fine.
    This used to only show me the 1 record, now it shows me the report on every record in the table.  I tried upgrading the report to a 2008 report and it still does the same thing.  The report filter no longer works.   Do I need to do something different to select only 1 record in 2008 ?
    After installing Crystal 2008 on my computer none of my reports work correctly anymore - all of them are ignoring my Record Select ...they worked fine before I installed 2008.  The reports are older reports... they worked fine when I had Crystal XI R2 installed.  This all started after installing Crystal 2008
    Thanks,
    Jeff
    Edited by: Jeff Dressing on Aug 27, 2008 12:06 PM

    Hello, Jeff;
    I noticed the Record Selection Formula uses a Stored Procedure parameter:
    {Components.ID} = {?@ID}
    A parameter created in the report (not by a stored procedure) would be:
    {Components.ID} = {?ID}
    A report based on a Stored Procedure does not need a Selection formula for the Stored Procedure parameter. Connecting to the Stored Procedure automatically creates the parameter in the report and the value is passed automatically when the report is run.
    Does the report work in the Crystal Reports 2008 designer?
    Open the report in the designer. Go to Database Set Datasource location. Are the properties of the database at runtime still the same as what is saved in the report.
    If the database is different at runtime, just as a test, change to the new database in a copy of your original report. Do a Database|Verify Database. Does it come back the "Database is uptodate" or are there changes?
    Elaine

  • Pushing record selection to database.

    I am using a Crystal report for bursting through publication.
    My requirement is to filter the report on a date field where the report picks up all the records that were updated since u2018last report refresh dateu2019 (datadate function)
    I am trying to use record selection to filter the records like-
    {Query.modifyDt}>datadate
    1.      I get the desired results but I believe this is acting like a report level filter since I canu2019t see the where clause in u2018Show SQLu2019 under database menu.  I am using Crystal report 2008 with a universe based on Teradata.
    2.     When I use the direct tables/views instead of a universe I can see the where clause in the SQL which indicates that the filtering is being pushed to the database.
    Is the u2018pushing record selection to databaseu2019 available with universe connection?  OR  only when direct tables are used?
    I also noticed that in the formula editor, the u2018SQL expression fieldsu2019 is not available when I use universe.  Are there any drivers that I could be missing or which needs an update. (ODBC Driver For Teradata Version: 12.0.0.2)
    Thanks in advance for your help!
    Girish
    Edited by: girishks11 on Sep 26, 2011 8:55 PM

    Hi Girish,
    When reporting off a Universe,the record selection is done locally unless of course, you've defined filters at the Universe level.
    So, to push 'most' of the record selection to the database, I would suggest that you connect directly to the database.
    And to clear some air about SQL Expressions, you can indeed write a SQL Expr in CR to fetch a single field not more!
    -Abhilash

  • Opening updated report fails because record selection filter is invalid

    I am trying to update a report stored in BOE XI.  The report has been modified and the main part of the report has been moved to a subreport.   I first replace the .rpt file with the updated report.  Then I attempt to open the report using the code below it, but it throws an error and complains about an unknown field being mentioned in the filter
    oReportAppFactory = (IReportAppFactory) es.getService("", "RASReportService");
    oReportClientDocument = oReportAppFactory.openDocument((IInfoObject) oReport, 0, Locale.ENGLISH);
    ERROR MESSAGE: Cannot open report document. --- This field name is not known.
    Details: errorKind
    Error in File /opt/bobje/bobje/tmp/{F395AC11-26FC-11DF-A70C-00065B8B38B5}.rpt:
    Error in formula  <Record Selection>.
    '// Filter on desired date range
    This field name is not known.
    Details: errorKind
    If I manually delete the record selection filter in CMC before upgrading the report all works fine.  So, do I need to remove the filter before attempting to open the report or is there another step I'm missing to refresh the report using the newly updated .rpt file? 
    thanks,
    Brett

    The relevant part of the stacktrace is below.  
    java.lang.UnsupportedOperationException
            at com.crystaldecisions.sdk.properties.internal.AbstractSDKList.remove(Unknown Source)
            at java.util.AbstractList$Itr.remove(AbstractList.java:436)
            at com.crystaldecisions.sdk.plugin.desktop.common.internal.i.do(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.f(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.f(Unknown Source)
            at com.crystaldecisions.sdk.plugin.desktop.report.internal.e.refreshProperties(Unknown Source)
    The context is the same as the original post...
    An existing report is being updated.  The original report uses a single view and has a record selection filter.  The updated report uses the same view in a subreport, and the main report has no record selection filter.
    .rpt file is updated using IReport.replaceUnique(int, File).  
    Changes are committed to IInfoStore -> iStore.commit(IReport)
    Refresh options are enabled
    IReportRefreshOptions refreshOptions = oReport.getReportRefreshOptions();
    refreshOptions.removeOption(IReportRefreshOptions.CeRefreshOption.TITLE);
    refreshOptions.removeOption(IReportRefreshOptions.CeRefreshOption.DESCRIPTION);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.PROMPT_VALUES);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.RECORD_SELECTION_FORMULA);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.GROUP_SELECTION_FORMULA);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.PRINTER_OPTIONS);
    refreshOptions.addOption(IReportRefreshOptions.CeRefreshOption.DEFAULT_LOGON_INFO_VALUES);
    Properties are then refreshed using IReport.refreshProperties() which throws the UnsupportedOperationException
    changes are again committed.
    thanks,
    Brett

  • Database DLL error on editing the record selection formula?

    Post Author: Aravind
    CA Forum: Older Products
    Hi All,I recently edited the record selection formula of an old report and since then the report is issuing me an "Error detected by database DLL" error.The report was running fine earlier and still continues to run fine if I undo the changes. Earlier, the records were selected based on a 'date' field and I edited the formula to select records based on another date field, but the report doesn't work.The report runs fine on my local PC using Crystal Reports, but web based reporting fails with the error message. The data is selected from a view and the date parameters I talked about are the fields in the same view.This view has around five date parameters and the report runs fine for all of them, except one date field.Any pointers are appreciated.Crystal reports version is 8.5. Regards,Aravind.

    Post Author: DPowell
    CA Forum: Older Products
    Ah, yes, the good old generic date error.
    The problem is likely an invalid date value in one (or all) of your records with that field.  You don't say what database engine you are connected to or which driver you are using for the report, but I'll give you some "pointers".
    Basically, the SQL fetch has encountered an error in your date field and the driver you are using in the report can't handle it.
    A null date could cause that problem.  Also a date-time field with an invalid value or truncated time value.  A robust ODBC driver, like one of the Microsoft drivers might be able to overcome it.  Likewise, vendors frequently release updated drivers to improve error handling just like this.
    1.  Analyze your data, specifically the contents of the "new" date field you are using for some kind of invalid date.
    2.  Experiment with different ODBC drivers by creating alternate ODBC connections to the same database using different ODBC drivers.
    3.  Browse and experiment with options in Crystal Reports Properties that allow you to specify data conversions for NULLs and Dates.
    Good luck !

  • Record Selection doesn't work with VS 2005 & CR 2008

    Hi all,
    Recently I installed CR 2008 with Service Pack 1 and integrate with Visual Studio 2005. I converted all the CR reports to CR 2008 while opening the VS project which was created earlier.
    My problem is when I load the Crystal report via created application, record selection formula doesn't work instead it shows all records. But in designing time it works fine. Reports which designed with SQL Server Stored Procedure working fine. But reports which designed by adding Tables don't work. It shows all the records without record selection.
    I used simple Record selection formula without using any parameter fields. like this
    tTransactionDetails.acid} = 1
    . still it didn't work.
    When I put break point and see assigned values in Report Document object. It shows
    Function evaluation timeout
    . and then run, it do the record selection. I did this several times, all the time if I see assigned values in Report Document object then the report showed the selected records only otherwise it shows all the records.
    I tried this just running the application exe, still the problem remaining.
    I have saved the reports without the data, so that it will always load the data from the SQL database.
    Please help me to solve this problem.

    Sorry i couldn't do search before I posted the thread. After posted, I just did a search and found the solution by reading [this thread|https://forums.sdn.sap.com/click.jspa?searchID=20348355&messageID=6774564|https://forums.sdn.sap.com/click.jspa?searchID=20348355&messageID=6774564].
    As it has suggested, I just delete the existing Crystal Report Viewer Control from the form and add it again by clicking on CrystalReportViewer version 12.0.2000.0. It worked.

  • Using Crystal 2008 to insert records into a table

    Hi,
    We have a unique need to use Crystal to insert records into a table. We have managed to test a report that can write into a temporary table.  This is done by using sql command object  and uses  the following code :
    INSERT INTO TEMP_TABLE  (ORDERID)
    VALUES ({?orderid})   (-- where orderid a parameter).
    This test report asks for an order id and then inserts the record perfectly fine.
    Now moving on to the real report - This report basically prints orders in batches and we want to insert order id into a temporary table to ensure we don't print orders that were already printed. To do this we created a sub report "insert orders" that has the above insert command. The main report passes the orderid to subreport and the idea is that the subreport would insert each time an order is passed. So if main report printed 50 orders ids, the then it would do 50 inserts individually into the temp table. 
    This however is NOT working. The report runs fine but there is no insert.  Our hunch is that  Crystal is not committing after every order id is passed from the main report.  Not sure if we can set the AUTO COMMIT ON  as a default somewhere?
    Wondering if any one has attempted this or has any insights?
    Regards,
    Mohit.
    Environment is - Crystal 2008 and Oracle 11GR2, we are using Oracle drivers (and not odbc)

    Hmmm... I don't use Oracle but the syntax looks good...
    You've already tested it and I assume that you are using the same driver in the production report as you used in the test, so that shouldn't be an issue...
    how are you pulling the data? Is the final SELECT statement that pulls the report data in the same command as the INSERT script, or is the INSERT script in it's own command?
    The reason I ask... If you are trying to pass a multi-valued parameter to a command, it won't work. If you have the insert command as it's own command while the data is being pulled with linked tables or a separate command, it is possible that the report itself will execute as expected w/o passing a value to the insert script.
    If it's all in 1 command (as it should be), a bad parameter would fail in the final SELECT causing an error.
    Also... are rows null or empty string values being added to table when the report executes? This would be an indication that the command is being executed but isn't getting the parameter value.
    Jason

  • Report Selection Formula Error with Crystal Reports 2008 SP3 Fix Pack 3.5

    Hello,
    My name is Carlos, and I would like to report a defect found in the Crystal Reports 2008 SP 3 Fix Pack 3.5 Runtime that is affecting the majority of our reports.  As well, I would like to ask if there is a simple workaround that does not involve updating hundreds of reports.
    The issue is that the runtime engine incorrectly returns the report selection formula.  I have included sample code showing what I mean.
    To reproduce;
    1. Create a simple report that has a date range filter like: 
      ({Orders.Order_Date} >= {?START_DATE})  
      AND ({Orders.Order_Date} <= {?END_DATE})
    2. Create a test app as follow that loads a report using the following code:
    ReportDocument rpt = null;
    try
      rpt = new ReportDocument();
      rpt.Load("TestReport.rpt");
      this.txtMessage.Text = string.Format(
        "ReportSelectionFormula:{0}{1}",
         Environment.NewLine,
      rpt.RecordSelectionFormula);
    catch (Exception ex)     
      this.txtMessage.Text = ex.ToString();     
    3.  Install Crystal Reports 2008 SP3 Fix Pack 3.5 Runtime [https://smpdl.sap-ag.de/~sapidp/012002523100006341772011E/cr2008fp35_redist.zip]..
    4.  Execute the app.
    At this stage, the screen shows
    ReportSelectionFormula:
    (   (  NOT  {Orders.Order_Date} >= {?START_DATE}  )   AND   (  NOT  {Orders.Order_Date} <= {?END_DATE}  )   ) 
    The expected value is:
    ReportSelectionFormula:
    (   (  {Orders.Order_Date} >= {?START_DATE}  )   AND   (  {Orders.Order_Date} <= {?END_DATE}  )   ) 
    If we were to repeat the same test above but use the Crystal Reports 2003 SP3 runtime (i.e. no Fix Pack), which can be dowloaded from [https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip], we would get the correct report selection formula. A side-effect for this incorrect report selection formula is a runtime exception complaining about an errorkind and a boolean being expected. 
    Do you know if there is any workaround that I can apply in code, perhaps a different Fix Pack?  Is there a Fix Pack expected to be released soon?  It is not practical for us to update our reports and use a different style in the record selection formula because we have many such reports, and our customers probably have even more.
    Thank you.
    -Carlos.

    Already a known issue, here's the [KB 1584095 - A boolean NOT is added at the beginning of a record selection formula when the report is loaded by the Crystal Reports .NET SDK |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533383334333033393335%7D.do]

  • Oracle ADF -  popup table's record gets empty or blank after any db action.

    Hi,
    I am using Oracle jDev 11.1.1.4.0.
    In my application i have find button in my jspx.
    On click of find button i have shown popup with table.
    As user selects record from popup table that record get displayed in form fields of jspx
    and user can edit that record and save it in the database.
    Suppose I have edited a record and saved the same in database.
    Now, when I click on that find button, pop up opens but the record which I have just edited is not getting displayed correctly in the table.
    Some fields are getting emptied.
    I have set the property of entity object's attribute, refresh after update and insert.
    But still selected record get empty in popup table after database transaction.
    appreciate your help..
    thanks
    Rupashree
    Edited by: 888077 on Sep 28, 2011 5:54 AM

    By the sounds of it you are in the wrong forum :)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Oracle adf - popup table's record get empty after any database tranasction.

    Hi,
    I am using Oracle jDev 11.1.1.4.0.
    In my application i have find button in my jspx.
    On click of find button i have shown popup with table.
    As user selects record from popup table that record get displayed in form fields of jspx
    and user can edit that record and save it in the database.
    Suppose I have edited a record and saved the same in database.
    Now, when I click on that find button, pop up opens but the record which I have just edited is not getting displayed correctly in the table.
    Some fields are getting emptied.
    I have set the property of entity object's attribute, refresh after update and insert.
    But still selected record get empty in popup table after database transaction.
    appreciate your help..
    thanks
    Rupa

    By the sounds of it you are in the wrong forum :)
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • I need help to transfer CS4 from a dead G5 to a new Macbook Pro. Can't find my program discs but purchased CS4 in 2008 and have record of it.

    I need help to transfer CS4 from a dead G5 to a new Macbook Pro. Can't find my program discs but purchased CS4 in 2008 and have record of it.

    Sounds like you got it installed and activated. Don't forget your updates.
    Adobe - Photoshop : For Macintosh
    Gene

  • Records are getting overwritten in the internal table using Select query.

    Hi All,
    I have following query :
    Loop at i_salesplant.
           select maramatnr mvkeVKORG mvkeVTWEG maraZZCOEAFE maraZZCOEAFEUOM mvkeZZALLPOL
           into corresponding fields of table i_zallocpol from mara inner join mvke on
           mvkematnr = maramatnr
           where MARA~zzobjtype = I_ZZOBJTYPE
             and MVKE~VKORG = i_salesplant-vkorg
             and MVKE~VTWEG = T_VTWEG.
         ENDLOOP.
    My Que : For example lets say first it selects all the records for Sales Org 1000. Next when you select the records for the Sales Org 2000 the earlier records are getting overwritten.
    Please let me know your valuable inputs.
    Thanks,
    Chandravadan

    Hi,
    Thanks alot for the reply.
    I changed query using appending as follows :
          Loop at i_salesplant.
            select maramatnr mvkeVKORG mvkeVTWEG maraZZCOEAFE maraZZCOEAFEUOM mvkeZZALLPOL
             into appending corresponding fields of table i_zallocpol from mara inner join mvke on
            mvkematnr = maramatnr
            where MARA~zzobjtype = I_ZZOBJTYPE
              and MVKE~VKORG = i_salesplant-vkorg
              and MVKE~VTWEG = T_VTWEG.
          ENDLOOp.
    But it is giving error saying " Field "APPENDING" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "     
    Please suggest.
    Thanks,
    Chandravadan

  • While installing the sql server 2008 management studio I am getting the below error.So what do I do?

    Hi,
    While installing the sql server 2008 management studio I am getting the below error.
    unhandled exception has occured in your application.if you click continue,the application will ignore this error and attempt to continue.if you click quit,the aplication will close immediatly.
    An error occured creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings:Could not load file or
    assembly 'system.version=4.0.0.0. culture=neutral, publickey token=b77a5c561934e089' or one of its dependencies.the system cannot find the file supplied.
    (C:\users\harsha\appdata\local\microsoft_corporation\landingpage.exe_strongname_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config
    and finally it is giving the options like continue and quit the installation.
    So what do I do?
    regards,
    harsha.

    Hello,
    Please try deleting the following sub folder to see if this will work:
      C:\users\(my profile)\AppData\Local\Microsoft_Corporation
    If you can't see AppData folder, you could use following steps to show hidden files:
     1. Open an explorer window, hit "ALT-T" choose Folder Options then go to the view tab.
     2. Turn on Show hidden files, folders or drives and
    disable Hide protected Operating System files (recommended).
    SQL Server 2008 setup fails with a Microsoft .NET Framework exception:
     http://blogs.msdn.com/b/vsnetsetup/archive/2009/10/29/sql-server-2008-setup-fails-with-a-microsoft-net-framework-exception.aspx.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Getting message : The result set for this selection was empty on sm20

    Hi,
       I assigned below parameters in rz10 :
    rsau/user_selection                                 1
    rsau/max_diskspace/per_day                  1950M
    rsau/max_diskspace/per_file                 650M
    rsau/enable                                               1
       I activated security audit profile in sm19 also.But when iam going to sm20 for analysis of security audit log iam not getting report iam getting this message  :     The result set for this selection was empty.
    Gudie me for the same.
    Thanku

    Hi,
    The result set for this selection was empty.
    I think your configuration is OK except one thing...
    Check in SM19, if you have selected "Filter Active" check box in "Filter 1 and Filter 2" screen and Also "Audit Classess".
    Even though security audit is enabled in SM19, without selecting filter it will not log the events and give you the above message.
    Regards.
    Rajesh Narkhede

  • Pop Up to Display, Select & get multiple records

    Hi all,
    I want to Display a Pop Up with internal Table & then User should be able to select some of the records & get those entries .
    Is it possible to use REUSE_ALV_POPUP_TO_SELECT FM?
    I hv tried but i m not getting how to select & get mutliple entries.
    Regards
    Sandeep

    hi sandeep,
    well refer to this code
    *&      Form  ZF_USER_COMMAND
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                               RS_SELFIELD TYPE SLIS_SELFIELD .
      CASE R_UCOMM.
    *&-- when hotspot is clikced
        WHEN '&IC1'.
          IF RS_SELFIELD-FIELDNAME = 'WERKS'.
            READ TABLE I_FINAL INTO WA_FINAL INDEX RS_SELFIELD-TABINDEX.
            IF SY-SUBRC = 0.   "if succesful
    *PERFORM FOR POPUALTING THE INITIAL FETCH OPERATION
              PERFORM ZF_POPUALTE_TABLE.
            ELSE.              "if unsuccesful
              MESSAGE E004.    "Error- Record does not exist
            ENDIF.
    *&--PERFORM TO Call POPUP FUNCTION
            PERFORM ZF_POPUP_DISPLAY.
            REFRESH: I_FINAL.
          ENDIF.
      ENDCASE.
    ENDFORM       " ZF_USER_COMMAND
    *&      Form  ZF_POPUALTE_TABLE
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_POPUALTE_TABLE .
      SELECT MATNR
             WERKS
             LGORT
             FROM MARD
             INTO CORRESPONDING FIELDS OF TABLE I_MARD
             WHERE MATNR = WA_FINAL-MATNR AND WERKS = WA_FINAL-WERKS.
    selection of storage location filtered by material no.of mard
      IF I_MARD[] IS NOT INITIAL.
    *SELECT PLANT DESCRIPTION
        SELECT  WERKS
                NAME1
                INTO TABLE I_P_DESC
                FROM T001W
                FOR ALL ENTRIES IN I_MARD WHERE WERKS = I_MARD-WERKS.
        IF SY-SUBRC <> 0.                    " if unsucessful
          WA_P_DESC-NAME1 = TEXT-028.         "NO DESCRIPTION
        ENDIF.
    *SELECT STORAGE LOCATION DESCRIPTIONS
        SELECT  WERKS
                LGORT
                LGOBE
                INTO TABLE I_S_LOC_DESC
                FROM T001L
                FOR ALL ENTRIES IN I_MARD WHERE WERKS =  I_MARD-WERKS AND
                LGORT = I_MARD-LGORT.
        IF SY-SUBRC <> 0.                         " if unsucessful
          WA_S_LOC_DESC-LGOBE = TEXT-028.         "NO DESCRIPTION
        ENDIF.
    *&--sorting the tables
        SORT: I_MARD BY MATNR WERKS LGORT,
              I_P_DESC BY WERKS,
              I_S_LOC_DESC BY WERKS LGORT.
    *&--Clearing workareas.
        CLEAR: WA_MARD,
               WA_P_DESC,
               WA_S_LOC_DESC,
               WA_FINAL.
    *PROCESSING [2nd time]
        LOOP AT I_S_LOC_DESC INTO WA_S_LOC_DESC .
    *moving values to final workarea
          WA_FINAL-WERKS = WA_S_LOC_DESC-WERKS .
          WA_FINAL-LGORT = WA_S_LOC_DESC-LGORT .
          WA_FINAL-LGOBE  = WA_S_LOC_DESC-LGOBE.
          READ TABLE I_P_DESC INTO WA_P_DESC
          WITH KEY WERKS = WA_S_LOC_DESC-WERKS BINARY SEARCH.
          READ TABLE I_MARD INTO WA_MARD
          WITH KEY WERKS = WA_S_LOC_DESC-WERKS BINARY SEARCH.
          IF SY-SUBRC = 0.
    *for t001w  [plant desc] values
            WA_FINAL-NAME1 = WA_P_DESC-NAME1.
    *for matnr values
            WA_FINAL-MATNR = WA_MARD-MATNR.
          ENDIF.
    *append final workarea
          APPEND WA_FINAL TO I_FINAL.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " ZF_POPUALTE_TABLE
    *&      Form  ZF_POPUP_DISPLAY
          text
    -->  p1        text
    <--  p2        text
    FORM ZF_POPUP_DISPLAY .
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          I_TITLE       = 'POPUP- DISPLAYING MATERIAL-STORAGE'
          I_TABNAME     = 'I_FINAL'
          IT_FIELDCAT   = I_FIELDCAT
        TABLES
          T_OUTTAB      = I_FINAL
        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.
    ENDFORM.                    " ZF_POPUP_DISPLAY
    reward point if useful
    Rohan Malik

Maybe you are looking for

  • I have an Ipad 2 and never updated the Ios bfore now. When syncronizing it I lost everything I have bought on Itunes. How do I get it back?

    I bought an Ipad 2 some years back and never hooked it up to my computer (somehow). I was now to update the Ios on it, but when doing that I lost all the music I bought in Itunes. When trying to buy it back it states "you have already bought this ite

  • Add button to QA33 ALV output list

    Hi, SAP experts: I need to add a custom button to the ALV output list display in QA33 transaction. I´ve only found the BAdi ALV_SWITCH_GRID_LIST, but it doesn´t fit my requirements at all. Any idea? Thank you very much!

  • File Content Conversion (receiver) and special characters

    Hi all, I have a scenario that has a file receiver channel with content conversion. The record structure in the flat file is field-width delimited (hence no field separator) and the parameter 'fieldLengthTooShortHandling' has the value 'Cut' because

  • Missing Punctuation

    I was helping if anyone can help. I have made a pdf from an indesign (cs4) document but when I open the pdf in Acrobat Pro all of the punctuation is missing. Just replaced with a blank space. The strange thing is, when I open the same pdf in Apple's

  • Load P-Card in T&E

    Hi Experts, My client issued P-Card to its employees for purchases and travel related expenses. The P-Card interface file from JP Morgan is to be loaded into SAP T&E. Would I be able to use the standard SAP program to load the file or would I need a