The work area itab is not enough

HI all,
i have written the following code to print data from yemptab
But i'm gettin an error saying that "the work are itab is not enough ". can anyone please guide me here. i'm a fresher in abap.
REPORT  YEMPDETAILS.
TABLES: YEMPTAB.
DATA:  BEGIN OF ITAB OCCURS 20,
          EMPNO TYPE YEMPTAB-EMPNO,
          EMPNAME TYPE YEMPTAB-EMPNAME,
          EMPCITY TYPE YEMPTAB-EMPCITY,
       END OF ITAB.
SELECT * FROM YEMPTAB INTO TABLE ITAB.
LOOP AT ITAB.
  WRITE: /
    ITAB-EMPNO,ITAB-EMPNAME, ITAB-EMPCITY.
ENDLOOP.
Edited by: user2487 on Jul 2, 2010 12:29 PM

Hi,
Use TYPES and Workarea.
types : begin of ty,
       EMPNO TYPE YEMPTAB-EMPNO,
       EMPNAME TYPE YEMPTAB-EMPNAME,
       EMPCITY TYPE YEMPTAB-EMPCITY,     
     end of ty.
DATA: itab type standard table of ty,
      wa type ty.
SELECT * FROM YEMPTAB INTO TABLE ITAB.
LOOP AT ITAB into wa.
WRITE: /
wa-EMPNO,wa-EMPNAME, wa-EMPCITY.
ENDLOOP.
Regards
Vinod

Similar Messages

  • Work area "itab" is not long enough

    Hi All,
    Here am facing a trouble with internal tables.
    I need an internal table for processing. I declared a table type refering to an structure. The program is throwing me an error "Work area "itab" is not long enough. "
    Can anyone telme what's wrong with the code?
    Thanks,
    Anjum.

    Hi Nasarat,
    if you look at carefully you definitions of tables
    TYPES: BEGIN OF tbl,
    rc_n TYPE c,
    rec_n(2) TYPE n,
    END OF tbl.
    DATA: itab_org type tbl1 occurs 0 with header line,
    itab_rc type tbl1.
    your DATA statement referes ITAB_ORG to a Type tbl1 which does not  exist in your TYPES statement.
    your DATA statement refers to ITAB_ORG is not a internal table but a WORK Area as you have declared it as ITAB_ORG type tbl1.
    If you want to declare and internal table ITAB_ORG - decalre it as
    Data:ITAB_Org type standard table of tbl.
    and define a explicit work area
    DATA: wa_org type tbl.
    Never use Occurs 0 and Header line as it coccupies lots of memories and your programs may dump in future . So please avoid occurs 0 and header line and instead decalre an explicit WORK AREA.
    Similary declaration for internal table ITAB_RC it should be
    DATA: ITAB_RC type standard table of tbl,
              WA_RC type tbl.
    then after these declarations when you do a SELECT statement it should be
    SELECT rc_n rec_n into ITAB_ORG from<DB table>.
    The fields as declared in types should be called in the same sequence as you have defined above OR use INTO CORRESPONDING-FIELDS OF ITAB_ORG.
    Hope this reolves your query and was useful.
    if yes please do reward suitably
    Thanks
    Venugopal

  • The work area "IT_ITAB" is not long enough

    I created a interna table IT_ITAB with OCCURS 0, But it's giving error as
    <i><b>The work area "IT_ITAB" is not long enough</b></i>.
    So pls send the correct syntax to solve the error....

    <i><b>data : it_data like standard table of  mara occurs 0 with header line.</b></i>
    Above syntax is not working...its giving error as "OCCURS 0 is not expected".
    I have one more dought...In the report I am providing some of the fields from my own database table.
    1. Can I provide the fields when using the WITH HEADER LINE concept.?
    2.Can I avoid BEGIN OF after "DATA :"?
    3.Pls tell me the exact use of STANDARD key word.
    4.What is the memory sys assigning dynamically when using OCCURS 0?
    5.What is the syntax to increase the memory?

  • Lighting effects not working, 'Could not apply the workspace because there is not enough memory (RAM)' with 4GB RAM?

    Tried to use 'render/lighting effects' on 5 more or less new different laptops now. All kind of Window versions.
    They all have at least 4GB RAM. The Graphic Card is compatible.
    Layer to work on is RGB-Type.
    It's all about Photoshop CC 2014, trial version.
    When I go to 'Lighting effects' it says first:
    'The 3D features require that 'Use Graphics Processor' is enabled in the Performance preferences. Your video card must meet the minimum requirements and you may need to check that your driver is working correctly.'
    - I switched the 'Use Graphics Processor' on and off and restarted new - nothing happens.
    - Video card is compatible.
    Second it says:
    ''Could not apply the workspace because there is not enough memory (RAM)'
    - RAM on all the computers I tested it with is at least 4GB
    Please help!

    We would need to know the amount of Video ram you have. If it is above 512 MB, then check for driver updates.
    Windows OS
    Click Start.
    On the Start menu, click Run.
    In the Open box, type "dxdiag" (without the quotation marks), and then click OK.
    The DirectX Diagnostic Tool opens. Click the Display tab.
    On the Display tab, information about your graphics card is shown in the Device section. You can see the name of your card, as well as how much video memory it has.
    Once you know the kind of graphics card you have, visit the manufacturer's website to download the latest driver. Here are links for downloading drivers from the most common graphics card manufacturers:
    NVIDIA: http://www.nvidia.com/content/drivers/drivers.asp
    AMD: http://support.amd.com/en-us/download
    Intel: http://support.intel.com/support/graphics/

  • Work area it_input is not long enough

    Hi,
    when am trying to check this one it is saying that it_input is not long enough.
    tables: lfa1.
    types: begin of t_input,
           lifnr type lifnr,
           end of t_input.
    data: it_input type standard table of t_input.
    data: wa_input type t_input.
    select * from lfa1 into table it_input where lifnr = lfa1-lifnr.
    write:/ lfa1-lifnr.

    hi,
    As you are using statement in which select *  wil get all the fields in the lfa1 table into your internal table, but  you are taking wa_input sturcture type t_input which is having only one field so u are getting error work are is no longer enough.
    so u use like this
    select lifnr from lfa1 into table it_input where lifnr = lfa1-lifnr.
    loop at it_input into wa_input.
    write : / wa_input-lifnr.
    endloop.
    hope this helpful
    regards
    dilip

  • Work area or table not referenced statically in the program

    Hi Friends,
    When i make extended syntax check for my program, i am getting error as this work area or table not referenced statically in the program .
    How can i overcome that .
    Please give solution nfor this .
    Thanx.
    Title was edited by:
            Alvaro Tejada Galindo

    While Rich has already provided you the right solution, I think you are concerned about this error only because of your "Project Standards" - which says no EPC errors.
    So delete the work area or field from your data definitions if you think that it is not being used.
    If you think it being used dynamically put a comment of " #EC NEEDED next to it. The error will now be hidden.
    Regards,
    Srihari

  • G'day, i am trying to type into an adobe document using the typewriter function. However everytime after i type the text vanishes. It is almost as if the text is white and vanishes into the background. However this is not the case as the works are not vis

    G'day,
    I need some help, i am trying to type into an adobe document using the typewriter function.
    However every time after i type the text vanishes. It is almost as if the text is white and vanishes into the background.
    This is not the case as the works are not visible regardless of the background color.
    The text box remains available and can be edited if clicked on, also if i double click on it the typed words become visible and editable, however once i close the box i cannot see them on the screen.
    I would appreciate any help i can get, i cant seem to do anything using properties or view.
    Thanks 
    Tiernan

    Hi Sara,
    See response to your questions below:
    1.     Are you running into this issue in a specific PDF, or in all of them?
    A.     All of them
    2.     What version of Acrobat are you using (and, are you on Mac OS or Windows?).
    A.     Using Acrobat 10.0\Acrobat on Windows
    3.     If you look at the text properties on the Tools panel (under Format), what color is the text swatch?
    A.     Test swatch for the text is black
    4.     What happens if you change the text color?
    A.     Nothing.
    I look forward to hearing back from you.

  • Can't open the illustration.  There is not enough room for the window.  Increase document area and try again?

    When i double click on a file in AI (CS6) I get the message:  Can't open the illustration.  There is not enough room for the window.  Increase document are and try again

    We can't know. We know nothing about your system nor your documents since you haven't told us.
    Mylenium

  • The work area (or internal table) "IT_ZLE_LAGERPLANUNG" is not flat,

    ***Data declaration
    TYPES : BEGIN OF t_zle_lagerplanung,
               SEl,                               "stores which row user has selected
               kdauf TYPE zle_lagerplanung-kdauf,
               kdpos TYPE zle_lagerplanung-kdpos,
               etenr TYPE zle_lagerplanung-etenr,
               papiermaschine TYPE zle_lagerplanung-papiermaschine,
               runnr TYPE zle_lagerplanung-runnr,
               prio  TYPE zle_lagerplanung-prio,
               werk TYPE zle_lagerplanung-werk,
               durchmesser TYPE zle_lagerplanung-durchmesser,
               breite TYPE zle_lagerplanung-breite,
               anzle TYPE zle_lagerplanung-anzle,
             occupied TYPE zle_lagerplanung-text30,
             free TYPE zle_lagerplanung-text30,
               lgpla TYPE zle_lagerplanung-lgpla,
               lgtyp  TYPE zle_lagerplanung-lgtyp,
               art TYPE zle_lagerplanung-art,
               anzhoehe TYPE zle_lagerplanung-anzle,
             zindicator TYPE zle_lagerplanung-text30,
               fa TYPE zle_lagerplanung-fa,
               field_style  TYPE lvc_t_styl, "FOR DISABLE
    END OF t_zle_lagerplanung.
    I am getting the data in internal table by using thiis select statement.
      SELECT kdauf kdpos etenr papiermaschine runnr prio werk durchmesser breite
             anzle lgpla lgtyp art anzhoehe fa
        FROM zle_lagerplanung INTO CORRESPONDING FIELDS OF TABLE it_zle_lagerplanung
       WHERE kdauf IN s_kdauf
    "     AND kdpos = p_kdpos
          AND KDPOS IN s_kdpos
         AND werk = p_werks.
    But while updating the particular field in ztable using this statement
          UPDATE zle_lagerplanung from table it_zle_lagerplanung.
    it is giving syntax error
    "The work area (or internal table) "IT_ZLE_LAGERPLANUNG" is not flat, or
    contains reference or internal tables as components. components.
    components. components. components."
    Could any one help me out how to resolve this problem....
    Thanks in advance

    Hi Shyamal,
    lvc_s_styl is a structure so you will get the same error.
    for your select and update statement you dont need field "field_style".
    regards
    rea

  • Safari could not download the file because there is not enough disk spacr

    safari could not download the file because there is not enough disk space I have a 1TB hard drive and only use a small amout of space.Mac os x mountain lion (12.8.2), HD 978.59 free out of 999.35GB.Please help Brenton

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Can't Open the Illustration. There is not enough room for the window;

    This is more of a nusance than an actual problem. But, when I double click on an AI document to open it the Illustrator window will shrink down to what is in the attached image and throw an error. The error reads "Can't open the Illustration. There is not enough room for the window; increase document area and try again."
    I can drag and drop the file into Illustrator and file>open of course, but the double-click method isn't working.
    I'm not sure if this is a Windows 7 issue or an Illustrator issue.

    dual monitors. And i'm on windows so the application frame cannot be toggled.
    I was able to fix it. Detached the application and then resized the scrunched window. that seems to have done the trick. Weird since I had never squeezed it all the way down like that.
    thanks! Didn't know about the preferences reset.

  • Work area field value not getting populated in table control grid.

    Hi all,
    I am currently facing an issue where I have declared a variable and have fetched the workarea field name in it. To be exact, the variable contains the workarea name whose value I am finally populating to the table control. Now although the workarea name when manually copied and pasted in field name in debugging mode exhibits the value of the it, Im unable to fetch the same value in the variable as I have only the work area name in it. I need the value of the workarea-field to be in the variable.Please provide your valuable suggestions for this issue...
    Regards,
    Edited by: Vishwanath Sreedharen on Jan 2, 2012 3:25 PM

    Hi Nabheet,
    Please consider the below example...
    DATA: l_var(30) TYPE C.
    CONCATENATE 'wa' '-' I_FIELD2-NAME INTO l_var.
    The i_field2-name contains the name of a custom table field CP_CUSTOM_GRP. So now the l_var contains wa_cp_custom_grp.
    Now consider the wa_cp_custom_grp has a value 'BA'.
    Now my issue is the l_var contains wa_cp_custom_grp but not its value(too obvious)... Would like to know whether is there a way through which the value of this wa_cp_custom_grp  'BA' could be populated to the variable l_var...

  • How do you reset the Work Area Bar to auto adjust?

    This is something that's been a thorn in my side for a while. Maybe I'm just being OCD about it... but I've been wondering if there is a way, once you reposition the I / O points of the Work Area Bar (WAB) you can get Pr to go back to auto adjusting it to the end of your clip.
    You can double-click it to get it to expand to the full length of the sequence, if you remember to do that... Sometimes I'm in a rush, or I have 10 sequences and I miss the fact that my WAB is not all the way to the end. I select and batch drag them all to Media Encoder and *POW*... I've forgotten to stretch the Out to end on one sequence ... and I have to re-render. A pain, yes, something I should have double checked, but at 2am these things can get missed.
    So, can you get the Work Area Bar to auto adjust again?
    If yes, it's probably something ridiculously obvious – but I'll take it!
    Thanks
    Stephen

    I would have an issue with auto or a default  for a number of reasons.
    Not least this one...
    I now place dummy clip ( black video)  a  distance off the end of my sequence to prevent the End of Sequence Marker displaying at the end of my edited material.  I dont want that included in an export.
    Here is another...
    As I get to lock down and I am sending previews to clients...I insert Black Video head and tail of the edit so that the preview does not start  jarringly on first frame video.  I have I and Os marked so that I can simply  export "Program at length (without black head and tail) when I  come to master.
    and...
    Often I have edit versions (TVCs) on the same time line ( sequence) and I need to adjust WAB or I/Os to export them separately.
    Automating stuff to eliminate our dumb moments doesnt help much because it just opens the chance of another dumb moment driven by expectation and forgetfulness. .
    Mental checklist is the only way IMHO.

  • How to delete a shortcut favorite from the browser in the WORK Area

    Hiho,
    creating a shortcut favorite icon of a browser-website in the work area shows up a symbol to use this shortcut. In the private area I can delete this favorite-symbol by tapping longer on the icon an a trashcan shows up, so I can delete the icon (and the browser favorite from the private area). Not so in the work (buisiness) part of the BlackBerry, there is no possibility to delete this icon. I can't find a policy on the BES10 server or thomething on the Z10, any ideas how i can remove the icon?
    Greetings... Ifrani

    Hi Ifrani!
    I´ve the same problem on my Z10!
    CommanderApollo

  • System message 38 from work area ssfcomposer does not exist in va03

    Hi,
    I created a smartform copy from standard, it is working good for all sales order,but for perticular one sale order it shwing error like
    system message 038 from work area ssfcomposer does not exist.
    i have long item line in this sale order what can i do please help me.
    Regards
    KK

    If I am not wrong, I guess you are using template/table inside your smartform.. which is causing the error.
    I issue could be because of the condition on the text inside the template which might be overlapping the output structure line and column. The issue can be also be because of your table cell.
    To trouble shoot place a false condition(like 1 = 2) first on table and if error still occurs then remove condition on table and place it on structure.
    I guess, the above answer will help you to close the thread.
    Regards,
    SaiRam

Maybe you are looking for