Error when using the method cl_gui_frontend_services= file_open_dialog

Hello Experts,
I am currently practicing BDC and I think the first step is to locate where my text file is. Now based on my code below, after selecting my text file nothing happens.
Also, what will be my next after getting the file from a specific location? Thanks guys!
REPORT  z_aris_practice_bdc_0
        NO STANDARD PAGE HEADING
        LINE-SIZE 255
        LINE-COUNT 64
        MESSAGE-ID zz.
*BDC Data
DATA: BEGIN OF bdc_tab OCCURS 0.
        INCLUDE STRUCTURE bdcdata.
DATA: END OF bdc_tab.
*Internal Table
DATA: BEGIN OF it_input OCCURS 0,
         user     TYPE usr02-bname,
         title    TYPE sza5_d0700-title_medi,
         lname    TYPE addr3_data-name_last,
         fname    TYPE addr3_data-name_first,
         initials TYPE addr3_data-initials,
         nickname TYPE addr3_data-nickname,
         function TYPE addr3_data-function,
      END OF it_input.
DATA: gt_lines TYPE sy-tabix,
      gt_file  TYPE filetable,
      wa_file  TYPE filetable,
      gt_subrc TYPE i.
*CONSTANTS
CONSTANTS: c_mask(60) TYPE c  VALUE ',..'.
*Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_input LIKE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_input.
  CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
   WINDOW_TITLE            =
   DEFAULT_EXTENSION       =
   DEFAULT_FILENAME        =
   FILE_FILTER             =
      initial_directory       = 'C:\Temp\'
      multiselection          = 'X'
    CHANGING
      file_table              = gt_file[]
      rc                      = gt_subrc
   USER_ACTION             =
    EXCEPTIONS
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      OTHERS                  = 4.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
*START-OF-SELECTION
START-OF-SELECTION.
  PERFORM put_in_itab.
  PERFORM process_records.
*&      Form  get_files
      text
FORM put_in_itab.
  DATA: lv_file TYPE string.
  lv_file = p_input.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = lv_file
    FILETYPE                      = 'ASC'
     has_field_separator           = 'X'
    HEADER_LENGTH                 = 0
    READ_BY_LINE                  = 'X'
    DAT_MODE                      = ' '
    CODEPAGE                      = ' '
    IGNORE_CERR                   = ABAP_TRUE
    REPLACEMENT                   = '#'
    CHECK_BOM                     = ' '
    VIRUS_SCAN_PROFILE            =
    NO_AUTH_CHECK                 = ' '
  IMPORTING
    FILELENGTH                    =
    HEADER                        =
    TABLES
      data_tab                      = it_input
   EXCEPTIONS
     file_open_error               = 1
     file_read_error               = 2
     no_batch                      = 3
     gui_refuse_filetransfer       = 4
     invalid_type                  = 5
     no_authority                  = 6
     unknown_error                 = 7
     bad_data_format               = 8
     header_not_allowed            = 9
     separator_not_allowed         = 10
     header_too_long               = 11
     unknown_dp_error              = 12
     access_denied                 = 13
     dp_out_of_memory              = 14
     disk_full                     = 15
     dp_timeout                    = 16
     OTHERS                        = 17
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    DESCRIBE TABLE it_input LINES gt_lines.
  ENDIF.
ENDFORM.                    "get_files
*&      Form  process_records
      text
FORM process_records.
  LOOP AT it_input.
  ENDLOOP.
ENDFORM.                    "process_records

Hii viraylab,
go throgh this link..This sample code solves ur problem....
/people/milind.upasani/blog/2007/03/07/step-by-step-approach-to-ceate-simple-bdc-session-program-using-reusable-template
    U are new to BDC it seems...
    first u read the sap help ... then u will come know what to do after wards....
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/097720543b11d1898e0000e8322d00/frameset.htm
Be familiar with the structure BDCDATA.
<b>Data transfers</b>  In this page..
Next u need to know about the <b>transaction RECORDER the tcode is SHDB.</b>
Nothing is difficult in this ..
For example When u r creating a data element in SE11 u go through some screens in a flow, by clicking some pushbuttons and by generating some function codes manually, and entering values manually...
But here u wont do it manually, these values will be populated from file into an internal table...
Before calling a transaction into which u r going to populate the data is to be filled into a table with structure <b>BDCDATA.</b>
<b>U need to use CALL TRANSACTION 'SE11' using BDCDATA or
the session method..</b>
Reward points for helpful answers...
sai ramesh

Similar Messages

  • Error when using findbykey method

    hi am having this error when using below method cannot assign of type sms1405.common.agrROW TO variable of type oracle.jbo.row[]. type 'oracle.jbo.row[]' excepected but 'sms1405.common.agRROW' found the error is in this line agrRows = (AGRRow)agrRows[0]; the methos is
    am using this sample
    http://amulyamishras-tech-blog.blogspot.com/2011/01/viewobject-getrow-vs-findbykey.html
    where does EmpVORow in EmpVORow empRow =
    (EmpVORow)EmpVO.getRow(key); define from above sample
    where does EmpVO from EmpVORow empRow =
    (EmpVORow)EmpVO.getRow(key); define from above sample
    am in Jdeveloper 11.1.2.1.0
    Edited by: Tshifhiwa on 2012/07/03 4:36 PM

    Man, you should be able to find this out your self by now!
    Hint: there is one 's' too much in the line you get the error (i guess cut & past error)
    Try to understand the code you copied!
    Timo

  • Intermittent  error when using the Disco Viewer client

    Hi, I have a user receiving the following intermittent error when using the Discoverer Viewer client:
    “The application encountered an invalid state.
    - Discoverer Beans XML Exception. Method: findNode Class: XMLUtils Error: Cannot find parent node. Parent element does not exist in XML document, looking for database_account/eul
    OracleBI Discoverer Viewer was unable to find the necessary data for displaying the results of this event. Please correct any errors and try again.”
    Any idea what this might be? Any help or direction would be very much appreciated! Thank you!

    Hello
    Is this related to a single machine or common to a single report or is it purely random?
    I did a search on your behalf and came up with nothing related to this error. You may therefore need to raise the problem with Oracle Support.
    Just out of curiosity which version of Discoverer are you using?
    Michael

  • Multivalue error when using the previous() function

    I am getting a multivalue error when using the previous() function on a dimension object in the report.  I thought that the previous function was supposed to look at the current report and then look at the previous record's contents.  How could this possibly give me a multivalue error when the value is clearly output in the previous row?  Anyone have any ideas?
    By the way, this is a valuable function for the types of reports that I design.  The next() function would be even more valuable.
    Thanks for your help.

    Hi Michael,
    Could you please test the following solutions it might help you to resolve the issue.
    Solution1:
    Use slice and dice to reset all the tables that have #multivalue in it. The only problem with this workaround is they have to do the formatting manually.
    Solution2:
    Also, test the issue by changing the object to dimension if it is a measure or to measure if it is a dimension.
    Regards,
    Sarbhjeet Kaur

  • TS1702 unknown error when using the app store

    unknown error when using the app store

    Im sorry I will try to be more clear.. and I appreciate all of ur input. Wi-fi works fine.. everything opens and functions fine on the I pad. The problem is I will click on app store or the I tunes store...it opens fine and I am able to look at and download apps  etc... but after being in the appstore or I tunes store for a couple of minutes I get kicked out to the I pads home screen. Its like pushing the home button but I didn't. It only seems to do this when im in the app store or I tunes store. I have been using the chrome browser and other downloaded apps such as ebay just fine with out this problem occurring. Not sure about safari as I dont use it and use chrome instead. Um I don't think the home button its self is faulty because it works fine and as stated before this only happens when I am in the appstore or I tunes . I've only had this I pad 1 64gb wi-fi for a few days .. I got it off of ebay it was stuck in restore mode getting error code 1611.  I was able to successfully Restore it with I tunes and it running ios 5.1. Seams to work great besides the problem being mentioned.

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • UDESEncrypt Errors when using the JAVA engine (NW IDM 7.0)

    Folks,
    I'm seeing an error when I use the uDESEncrypt function with the Java Engine in NW IDM SP2 Patch 3.
    The error I am getting is:
    runFunctionsInString($FUNCTION.encrPWD()$$) got exception
    org.mozilla.javascript.EvaluatorException: uDESEncrypt: Key should be exactly 24 bytes long.
    The code calling it is:
    // Main function: encrPWD
    function encrPWD(Par){
         //Example calling DSE internal function
         //UserFunc.uStop("Terminated by user");
         key = "C:\Program Files\SAP\IdM\Workflow\configs\KEY\keys.ini";
         OutString = UserFunc.uDESEncrypt(key, Par);
         return OutString;
    I have also seen this error when using Patch 4.
    Interestingly enough, the error does not occur when using the Windows Engine.  Anyone else seeing this?
    Thanks,
    Matt

    Hi Matthew,
    Try to replace the '\' with '
    key = "C:
    Program Files
    SAP
    IdM
    Workflow
    configs
    KEY
    keys.ini";
    Alternative approaches,
    1) setting key empty and it will look into %DSE_HOME%\KEY\key.ini
      which should be C:\Program Files\SAP\IdM\Identity Center\Key\key.ini on default installation path.
    2) or setting the key to something like = 6D5A2AF59B1CDD7F9592484F178331C891537A3F9B91D362
       a 24 byte key...
    Also when using DES you should ensure that in Identity Center underneath Options/General
    you have encryption algorithm set to 3DES.
    Normally if you intend to use this for password provisioning in IC you would also
    on the identity store (for instance 'Enterprise people') underneath 'password policy' check
    of for 'enable password provisioning.'
    By doing so the MX_ENCRYPTED_PASSWORD with be set when operating through
    workflow (3DES encryption version of the MX_PASSWORD) which allows you to obtain password
    when provisioning to other target systems...

  • 500 internal server error when using the web interface

    I've created several tables in Visual Studio, and I'm using a .NET backend for my mobile services.
    The table code looks something like this...
    using Microsoft.WindowsAzure.Mobile.Service;
    namespace AzureService.DataObjects
    public class Country : EntityData
    public string Name { get; set; }
    I then added a scaffolded item to generate the controller for my table, then published.
    I then went to my azure service, flipthechipservice.azure-mobile.net, and tried to run the default POST with default data.
    I then get back a popup, which looks like the following...
    Now what baffles me is I have already created another table, called 'Call', which has exactly the same 'Name' field as the above Country table, yet the Call POSTs work.
    I then tried creating another table, with a Name field, and I get the 500 error again. 
    How can this be possibly happening? Nothing is different, and now I get 500 errors? 
    This makes no sense.
    Thanks

    Thank you, I looked at the logs, and this is the error...
    System.NotSupportedException: Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations.
     at System.Data.Entity.Internal.ModelCompatibilityChecker.CompatibleWithMode
    I looked this error up, and tried
    this proposed solution on StackOverFlow
    I changed the line of code in my WebApiConfig Register() method from...
    Database.SetInitializer(new MobileServiceInitializer());
    to 
    Database.SetInitializer<MobileServiceContext>(new DropCreateDatabaseIfModelChanges<MobileServiceContext>());
    I also have this in my WebApiConfig...
    public class MobileServiceInitializer : DropCreateDatabaseIfModelChanges<MobileServiceContext>
    protected override void Seed(MobileServiceContext context)
    base.Seed(context);
    My understanding is that the database should drop and create if the model changes? So why is this not happening?
    I then tried another solution, and changed DropCreateDatabaseIfModelChanges to DropCreateDatabaseAlways. I still get an internal error. Then the logs show this problem...
    System.Data.SqlClient.SqlException (0x80131904): Cannot open database "master" requested by the login. The login failed.
     Login failed for user 'QEOzFqAnDXLogin_flipthechipservice'.
     This session has been assigned a tracing ID of 'a3b12e78-90f2-4db0-a5ca-6895eebd246c'. Provide this tracing ID to customer support when you need assistance.
     at System.Data.SqlClient.SqlInternalConnection.OnError
    As an additional question, how do I re-generate my local SQL database when debugging on my local PC's web browser? I deleted the database, but can't seem to get it back?
    Thanks

  • Content search is it normal to get an error when using the PublishedDateOWSDATE (blog) property

    basic use of Content search employed on a single blog
    I use the template called 2 lines. First line is for the title, second line I would like to have either the published date or the categories (of the blog). While the latter is more complicated, I thought the date was fairly simple.
    I have placed PublishedDateOWSDATE and when I saved, I got the error message 
    Object does not support property or method 'indexof' (corerender: {path}item-twolines.js)
    What am I doing wrong?

    Hi suxxxann,
    Let's verify the followings:
    Whether you used a custom display templete for the Content Search web part.
    Whether you mapped the managed property to the associated crawled property.
    I did a test, however, I couldnot reproduce your issue. My steps are:
    Create a column in a library, and upload some documents into it.
    Do a crawl for my content source, then create a managed property called "Test" and map it to the related crawled property.
    Create a page, insert a Content Search web part.
    Edit the Content Search Web Part. Expand the Display Templates section, Item: Two lines.
    Expand Property Mappings, Line 1: Title, Line 2: Test.
    Click OK, and save the page
    In my testing, everything worked well. Please try to do as my above steps, compare the result.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Exec error when using the messagebox

    Hi ,
    We used the peoplecode function Exec in the application engine. We also used the function Messagebox to show the error message when the exec is error. But the system prompted us
    Think-time PeopleCode event (Exec), but a SQL update has occurred in the commit interval.
    Anyone has the same experience on this ? Thanks in advance!
    The code for example,
    Local number &rc = Exec(&command, %Exec_Synchronous + %FilePath_Absolute);     
    If &rc = 1 Then
    MessageBox(0, "", 0, 0, &command);
    End-If;

    Well if you have any SQL in your Application Engine preceding the Exec function that it will give that error. These are think time function:
    Avoid think-time functions in the following PeopleCode events:
    SavePreChange.
    Workflow.
    RowSelect.
    SavePostChange.
    Any PeopleCode event that executes as a result of a ScrollSelect, ScrollSelectNew, RowScrollSelect, or RowScrollSelectNew function call.
    Any PeopleCode event that executes as a result of a Select or SelectNew rowset method.
    Violation of this rule can result in application failure.
    The following are think-time functions:
    Calls to an external DLL.
    DoCancel.
    DoModal.
    DoModalComponent.
    Exec (this is think-time only when synchronous).*
    File attachment functions.
    InsertImage.
    Object functions, such as CreateObject, ObjectDoMethod, ObjectSetProperty, and ObjectGetProperty (these are think-time only when the object requires user action).
    Prompt.
    RemoteCall.
    RevalidatePassword.
    WinExec (think-time only when synchronous).
    WinMessage and MessageBox (depending on the style parameter).
    You should process the execute function Asynchronously, because it doesn't require any user intervention (assumption since it's an application engine). %Exec_Synchronous should be set to %Exec_Asynchronous.

  • GET_FILTER_VALUES_CHA:3  Error when using the Filters

    Hi All,
    I get the below error messgage when trying to use the Filters in the web application. I checked the OSS notes (932154, 902393 & 832485) but didn't get a solution. This is a query on a Basic Cube.
    SQL 904.
    Error in SQL Statement.
    SYSTEM ERROR CL_RSR_WWW_RENDERER and form space GET_FILTER_VALUES_CHA:3
    Looking forward for some help in this regard.
    BW Version: 3.5 SP15
    Thanks & regards,
    Sree

    Hi,
    It worked for me, I dont for your case.
    Mine syptom:
    When filtering by using the context menu's "keep filter"  and then filter by using a "Hierarchy Web Item" (based on Calendar month),
    then I was getting the message <i>"System error in program CL_RSR_WWW_RENDERER and form SUBMIT_FILTER"</i>
    It is solved by adding a "Filter Web Item" to display the filter values. If you dont want that object in your report, you can hide it.
    Vasso

  • Error when using the variable System::ErrorDescription

    HI All,
    When I try to use the variable System::ErrorDescription I get the following error:
    The element cannot be found in a collection. This error happens when you try to retrieve an element from a collection on a container during execution of the package and the element is not there.
    Do I need to declare it or it's a variable that always is available to get exceptions from the execution states?

    if this is in a Script Task then:
    - add the variable in the Script task property ReadOnlyVariables list
    - in the Script Code refer to it as
    string ErrorDesc = (string) Dts.Variables["System::ErrorDescription"].Value;
    Jan D'Hondt - SQL server BI development

  • Error when starting the Method of a business Object

    Hi,
    A Zworkflow is created for Compensation adjustment in 4.7 . It has been moved to ECC 6.0 . A ZBusiness object is created without a keyfield which has a zmethod is created for updating a infotype 380. Its i/p parameter is a workqueue no. which is the key field for bus7022.
       Now in ECC 6.0, when I try to execute the method it is showing the errror  "<b>Access 'C' is not valid for the verb type 'A'</b> ".
      Can anyone tell me why is this error occuring??
    Thanks,
    Sivagami.R

    Hi,
      It was having a Unicode error. But tht is rectified. After tht i am not able to execute tht method.
      Help me in this..
    Thanks,
    Sivagami

  • Errors when using the Call statement for MS SQL Server

    I've tried executing a Stored Procedure using the Call method of Portal 2 Go. But it gets an internal error b/c of it. Any Ideas why and how to resolve?

    Hello,
    Which version of SAP BOBJ XI3.1 you are using?
    What I am aware is BEGIN_SQL was very well working for SQLServer2005 in case of ODBC connection.
    Can you try one thing for SQLServer2008 have a Native driver installed on your client machine and use ODBC connection rather than OLEDB connection.
    If that works fine, its good
    Otherwise you can raise a message for resolving this problem with the support team.
    Thanks,
    Vivek

  • Error when using the admin photo mass upload service

    I created a who's who iview and then I wanted to dispaly the photos of the asociates in the user details iview. I used the photos upload task provided.
    I created the task, then when I run it I get an error (when looking in the log file)
    error :
    Control  5/5/08 10:53:07 AM  AdminPhotoService  TaskID=2104533975041, start batch photo upload for: ; Path=H:\photos; Photo Type=JPG; PortalNode=local 
    Error  5/5/08 10:53:07 AM  AdminPhotoService  TaskID=2104533975041_Parameter 'directory' is not a directory_
    I tried different locations but I'm always getting the same error, Directory is not a directory and the photos are not uploaded.
    Please help!!

    Here is what I did,
    I've put it in KM the photo and called it benelmou.jpg. I'm not using any mapping file because the file name is my ID.
    I put in the directory :
    accpgdci.apps.mars:50200\irj\go\km\docs\mars\Sales Portal\Sales Associates Photos
    and I get in the log file:
    Control  5/6/08 11:06:46 AM  AdminPhotoService  TaskID=2108828942357, start batch photo upload for: ; Path=
    accpgdci.apps.mars:50200\irj\go\km\docs\mars\Sales Portal\Sales Associates Photos; Photo Type=jpg; PortalNode=local 
    Error  5/6/08 11:06:46 AM  AdminPhotoService  TaskID=2108828942357Parameter 'directory' is not a directory
    I tried other names for the directory:
    Path=
    accpgdci.apps.mars:50200\irj\go\km\docs\mars\Sales Portal\Sales Associates Photos
    Path=
    accpgdci.apps.mars:50200\irj\go\km\docs\mars\Sales%20Portal\Sales%20Associates%20Photos
    Path=
    accpgdci.apps.mars:50200/irj/go/km/docs/mars/Sales%20Portal/Sales%20Associates%20Photos
    Path=http://accpgdci.apps.mars:50200/irj/go/km/docs/mars/Sales%20Portal/Sales%20Associates%20Photos
    And All of them failed, giving the same error Directory is not a directory.

Maybe you are looking for

  • ITunes 7.3.1 STILL not resolving Itunes freeze-up

    When I installed 7.3 the other day, every time I go into ITunes the application freezes up. I see all my songs in the grid, but I cannot click on anything nor navigate within the application. My only choice is to go to Task Manager and kill the appli

  • Installer User Interface Mode not supported

    Hello, I get this error when I try to install Flash Builder on my Windows 8 machine (any version 4.5, 4.6, 4.7). Can you help me solve this issue? Thanks, Francois

  • Qosmio X300 asking for Username and password

    Good evening I just bought I Toshiba laptop and m really not tech. I bought it new and sealed from ebay but it is asking for a password!! Username it is telling me it was zjmarkeecomp and its hint for the password is iggy. Does this mean it was used

  • For what are "CREATE  SEQUENCE ... INCREMENT BY 1 START WITH 1" ?

    I have seen SQL statements for Oracle Databases in the form like CREATE SEQUENCE sq_ordernum INCREMENT BY 1 START WITH 1 For what are these kind of statements and how can I access/use them? Peter

  • XML FOREST Output as XMLTYPE

    Hi , When I am using the Xml with many attributes for the tags creation it displays the output as xml type only. Is there a different way to read this output or there is any characters limitation for display because when I pass few attributes the out