"Deep data objects not supported" when writing into a file

Hello everybody,
I am having some issues about a program that i made which puts the content of any table in a file that i created.
The problem is when my table (transparent table) has a deep data type in it (example : a string field, so with undefined length).
Here is my code :
  DATA : lt_gentable TYPE REF TO data.
  DATA : ls_gentable TYPE REF TO data.
  FIELD-SYMBOLS : <ft_lines> TYPE STANDARD TABLE.
  FIELD-SYMBOLS : <fs_line> TYPE ANY.
  CREATE DATA lt_gentable TYPE TABLE OF (p_tab).
  CREATE DATA ls_gentable TYPE (p_tab).
  "creation of links
  ASSIGN ls_gentable->* TO <fs_line>.
  ASSIGN lt_gentable->* TO <ft_lines>.
  DATA : l_fname     TYPE char80.
  CONCATENATE '\dir\dir2\' l_fname_log INTO l_fname.
  OPEN DATASET l_fname FOR OUTPUT IN BINARY MODE.
  OPEN CURSOR WITH HOLD l_c FOR SELECT * FROM (p_tab).
  DO.
    FETCH NEXT CURSOR l_c INTO TABLE <ft_lines> PACKAGE SIZE p_size.
    IF sy-subrc = 0.
      LOOP AT <ft_lines> INTO <fs_line>.
        TRANSFER <fs_line> TO l_fname.   <=====> GOES INTO DUMP BECAUSE MY TABLE (p_tab) has a string field
      ENDLOOP.
      CLEAR <ft_lines>.
    ELSE.
      CLOSE CURSOR l_c.
      EXIT.
    ENDIF.
  ENDDO.
  CLOSE DATASET l_fname.
Here is the message i am getting :
At the statement
   "TRANSFER f TO ..."
no deep data objects are supported at the a
for strings.
Elementary deep data types are internal tabl
data object) references and strings (STRING,
General deep data objects are elementary dee
that contain deep data objects.
In this particular case, the operand "f" has
internal identification "v".
  List of internal ABAP types:
  C    Text (Character)
  N    Numerical text
  D    Date (YYYYMMDD)
  T    Time (HHMMSS)
  X    Hexadecimal
  I    Integer
  P    Packed number
  F    Floating point number
  h    Internal table
  r    Object reference
  l    Data reference
  g    String of type C
  y    String of type X
  s    2-byte integer with plus/minus sign
  b    1-byte integer without plus/minus sig
  u    Structure (flat structure)
  v    Structure (deep structure)
Can you help me to go through this issue ?
Any kind of help would be appreciated.
Christian

Sandra is correct I agree with him,
TRANSFER dobj TO dset [LENGTH len]
                      [NO END OF LINE].
dobj must be character-type . Use String.
Please read the F1 help for the TRANSFER Statement and also please check the example
In your case assign the <fs> to Casting File asfollows
DATA: file TYPE string VALUE `flights.dat`,
      wa TYPE spfli.
FIELD-SYMBOLS TYPE x.
  ASSIGN wa TO CASTING.
  TRANSFER TO file.
Hope this helps...

Similar Messages

  • Why do I get a NI-488 error massage when writing into a file and at the same time copiyng this file with a backup softwarre like Easy2Sync?

    I have a small LabVIEW program which writes random numbers very fast into a ASCII-file. I want that file to be copied to a new position every 10 min. Therefor I use a backup/synchronisation software which is doing a copy operation every 10 min. It works fine a certian amount of time and after a while I get either an LabVIEW error (LabVIEW: Fiel already open: NI-488 Comand requieres GPIB Controller to be System controller) or an backup-software error (couldn´t open file...whatever). I´m guessing, it has something to do with file-access but I don´t know why?!? If I run the LabVIEW program and I copy and paste the random-number-file with the windows explorer very fast (pressing ctrl+v rapidly) while LabVIEW is still writing into this file, no error appears. Can sombody help me?
    LabVIEW 2011

    Hi Serdj,
    you don't get a GPIB error, the error number has just 2 different explanations...
    Well, you have two programs accessing the same file. One program just wants to make a copy, the other (LabView) is trying to write to the file. When copying a file that is written to you get inconsistent results! That's why one of both programs is complaining an error...
    You can't have write and read access at the same time! (But you can have more than one read access at the same time...)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Date o/p probelm when download into flat file inf110 tcode in fi

    hi,
      when im create payment transaction in f110 tcode in fi , and selct the record and down load into flat file
    in flat file first line it shows run date same as we given in transaction,but in second line it shows same date as before
    but it shows different date example : firstline it shows 12 .10.2008 and second line 12.10.2008 is right o/p.
             but it shows as first line 12.10.2008,and seconde line 6.10.2008. why it show like that.

    Hi Ganesh,
    As per my understanding you have an issue with the date while downloading it into the Flat file.
    It is displaying the incorrect date in the second line in Flat file. 
    Are you downloading the data in Notepad or in the Excel sheet?
    Can you please elaborate the issue, if it is in Excel sheet then check if it is displaying multiple records for the same date.
    Ex :
                        Date                   Records
                 12 .10.2008             ad
                                             fg
                                             as
                 6.10.2008               we
                                            af
    Check if this is the case...
    Regards,
    Kittu

  • Master data check not working when loading into and ODS object

    Hi guys,
    we are loading transactional data into an ODS from a flat file.
    In the infopackage, we have checked the option :                                                
    "Do not update data if no master data exists for a characteristic".
    This option seems to be unreliable :
    For some characteristics (it seems those loaded using transfer rules (routines)), incorrect data is still loaded into the ODS even if no entry exist in the associated infoobject master data table.
    Any help appreciated.
    Many thanks !
    Pierre-Yves

    Hi Dear,
       please delete all the incorrect master data from the master data characteristic first and then try to uploading the data again .It should work, because there migth be some master data created when data were loaded with out the check before.
    And please check whether all your characteristic info object are of master data , I mean that in the infoobject defination you have checked the master data check box on the info object. If you have only text then it might fail the master data check.
    hope this help.
    cheers,
    balaji
    Message was edited by: Balaji NS

  • Are the Frame or JFrame objects not supported when used by applets??????

    Hi,
    Is there anyone to help me ?
    I've an applet which uses Frame objects. With the "appletViewer" executable the results are
    perfect.
    But Netsacape Communicator seems not to support Frames..?!? Is this possible?????
    Thanks
    deniz

    Oh..Thanks for the replies.
    But the reason was that I was still using Netscape Communicator 4.5.
    With Netscape Communicator 6.1 installed yesterday; everything is
    normal. i.e. I can observe the frames that applet creates... :-))

  • Are .mp4 files not supported when trying to merge 2 videos into 1 video?

    Are .mp4 files not supported when trying to merge 2 videos into 1 video? The steps in the manual seem simple enough.  But the paste function won't work on the 1st video after selecting all and then copy on the 2nd video.

    There are 9 different versions of iPhoto and they run on eight different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.

  • "Date formatting not supported yet"??

    When I add imports to get around the problem described in my previous
    email, I run into an exception that says "Date formatting not supported
    yet". The exception is thrown in util/HtmlUtil.java. What's the
    intention here? Why don't we just return the value unformatted? How
    should I handle this so I can take advantage of the formatting if it is
    supported someday? Are there any other formatting types which I need
    to "handle" in order to run?

    Dan--
    When I add imports to get around the problem described in my previous
    email, I run into an exception that says "Date formatting not supported
    yet". The exception is thrown in util/HtmlUtil.java. What's the
    intention here? Why don't we just return the value unformatted? How
    should I handle this so I can take advantage of the formatting if it is
    supported someday? Are there any other formatting types which I need
    to "handle" in order to run?The exception lets you know that there is a specific issue you need to work
    around during migration. The reason we don't just return the unformatted
    value is that we didn't want to give the impression that date formatting
    worked when it doesn't (yet).
    If you just want the value to come through without an attempt at formatting,
    the correct thing to do is to change your JSP tags to eliminate the date
    formatting attributes. If this is a loss of data (the format masks), then
    you should just comment them out rather than delete them.
    The whole issue of date formatting is unfortunately complex. Suffice to say
    that it is far easier for the developer to format the date as they wish in
    their code then it is for us to try and provide generic date formatting.
    The issue revolves around having all the necessary information in order to
    do the formatting in a generic way.
    Todd

  • IPod Nano 7th Gen says "Unsupported. Accessory is not supported" when trying to charge / sync

    iPod Nano 7th Gen says "Unsupported. Accessory is not supported" when trying to charge / sync with official apple lightening cable.
    It worked for almost a year then suddenly began to say that. My computer [windows], lightening cable and my power brick [all apple official] are all the same as they were when it was working. The iPod is almost a year old now, and has worked perfectly up until about a week ago.
    I have tried resetting the iPod, plugging it into different charging sources but it keeps saying "Unsupported. Accessory is not supported"
    Does anyone have any ideas on how to fix it?
    Thanks.

    Your iPod Nano firmware and iTunes updated to the current versions? 
    It is very difficult to offer troubleshooting suggestions when the "os version" you are using is unknown as each os has their own troubleshooting solutions. 

  • Error when Writing Metadata to Files in Bridge (Mac) but not in Bridge (PC)

    We get an error when writing metadata to files in Bridge (Mac) but not in Bridge (PC). In the same drive and folder, the PC can successfully write a keyword to a file on the PC, where the Mac returns an error. I have researched this at the Adobe Knowledgebase, but their answer seemed to indicate it was a global issue, and we don't see that behavior on the PC.
    The client is a Mac of course, and the server volume is a Windows share volume. The Mac is bound to AD, and the domain\username and username formats have both been tried when logging in, but you receive the error in both.
    Any help would be appreciated.
    Thanks!
    Rich Oliver

    Hi, I'm having the same problem using FreeNAS (which uses Samba and Netatalk in the backend), but I tried with both AFP and SMB on Mavericks and Yosemite, I still have the same issue.  I think it might be a timing issue with how lightroom interact with a slower write delay using network shares.  I suggest you also chime into this thread:  Lightroom 5 can't write metadata to DNG files   I really hope this is resolved as this is impacting my productivity as I moved my workflow to my Macbook with a shared NAS.

  • ERROR OGG-01148 programming error, data type not supported for column

    I am getting following error when I put null in insert statement
    2011-03-31 18:30:45 ERROR OGG-01148 programming error, data type not supported for column TXID in table advoss.tblaudittrail.
    I am replicating MySQL 5.5.9 to Oracle 11g rel2 via goldengate 11

    I am able to diagnose what is cuasing the problem
    unsigned flag was the culprit of this error
    I am able to insert null after removing unsigned flag.
    thank you very much for your kind support

  • Keep getting accessory not supported when charging in romania.  I have a converter for wall and a att USB cord

    Keepgettimg accessory not supported when charging in romania. I have all the correct connections. ie wall converter, USB cord etc.

    If you know the IP address of the printer, then you can check if there is a working path between the Mac and printer. This can be done using Network Utility or a web browser.
    If you open Network Utility and select the Ping tab, you can enter the IP address of the Kodak and then press the Ping button. If there is a working connection then you should get a reply to each packet sent.
    With the web browser, many devices have a built-in web server so you can type the IP address of the printer into the browser and if there is a working connection then you will open the printers web page.
    So, are you able to confirm you have a working connection between the Mac and printer?

  • Why charger saying not supported when it is a genuine apple charger

    Why charger saying not supported when it is a genuine apple charger

    Do you mean the AC wall adapter or the cable when you say "charger"? Neither is a charger; the charger is built into the phone. You need to do some basic troubleshooting. First, try a different cable with the same AC adapter. Then try a different USB source such as the USB port on your computer. If you get the same message after both tests the problem lies in the phone. The most common cause of this message is dirt, moisture or pocket lint in the lightning connector on the bottom of the phone. Inspect it with a bright light and clean it with a plastic or wood toothpick. If none of these steps resolve the problem take the phone, cable and adapter to an Apple store for diagnosis. Make an appointment first: http://concierge.apple.com/reservation/us/en/techsupport/
    Note: You should register the iPhone on Apple's website first, if it isn't already registered: https://supportprofile.apple.com/. This will speed up the appointment process.

  • Additional data connections not supported.

    Hello,
    I am currently using SharePoint 2013 and InfoPath 2013.
    I want to create a drop down list in InfoPath that points to external data content (in this case a lookup table in SQL server).
    The process works in the InfoPath "preview" mode, but when I go to publish it to my SharePoint website, I get the following error:
    "Additional data connections not supported."
    I've also tried deploying the data source to my InfoPath Connection library on the SharePoint website and pointing it to that, but to no avail.
    Any help would be greatly appreciated.
    One further thing to note is that I am limited to a non-HTML5 web brower so I can't use Light Switch.
    Kind regards,
    Joshua

    Hi Joshua,
    Based on my research, we cannot add data connections to External List forms. They are not supported just like the error says. It's a limitation of InfoPath and there is no workaround for this issue so far.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • MetaData operations are not supported when

    Dear Experts
    I am facing below error when trying to run my add-on in Windows  Server 2008 R2 and SQL Server 2008 service pack 2.
    Error: MetaData operations are not supported when a user transaction is active
    It runs fine in Sql Server 2005.
    Kindly tell me a solution to sort this out.
    Regards
    Shibin

    Can we see your code, it looks to me like the error is quite descriptive - its saying you can't do any metadata operation (creating/updating user fields, user tables using userfieldsMD or usertablesMD objects) while in a transaction.
    Previous SDK examples have shown that you can do it, but they it is not possible - it may be that SQL 2008 has a tighter control over this. (Did you also do a B1 upgrade, or just change SQL version?)
    Are you running a transaction?

  • My new iPad mini will not charge when plugged into adapter. Any suggestions?

    my new ipad mini will not charge when plugged into adapter. What should I try?

    Does the charger get warm at all? Plug the cable into your computer with iTunes open. Does it say not charging.? If it does, the cable is good. The iPad will charge very slowly when pluged into your computer.
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

Maybe you are looking for