ALV Program errors

Hello all,
   I've have a strange error, when trying to use buttons from top of an ALV list(eg. print). An error message appear with text "Program errors", but only when one button is used, in rest the list is ok.
  Do you have an ideea why?
  Thank you!
  Bogdan
  Here is the code, if is helping:
  IF g_cont_alv2 IS INITIAL.
      CREATE OBJECT g_cont_alv2
             EXPORTING container_name = 'G_CONT_ALV2'.
    CREATE OBJECT g_grid2
           EXPORTING i_parent = g_cont_alv2.
  ENDIF.
  l_layout-cwidth_opt = 'X'.
  l_layout-sel_mode = 'D'.
  l_layout-totals_bef = 'X'.
  CALL METHOD g_grid2->set_table_for_first_display
       EXPORTING is_variant = l_variant
                 i_save = 'A'
                 i_default = 'X'
                 is_layout = l_layout
                it_toolbar_excluding = lt_exclude
       CHANGING it_outtab = lt_stats
                it_fieldcatalog = lt_fcat.
  LEAVE TO SCREEN 200.

Hi,
It seems your data table <b>lt_stats</b> is a local internal table declared inside a subroutine and not a global internal table declared in TOP include or if it is a report then at the top.
Normally ALV Grid stores a reference of the internal table for accessing it later (in your case, for printing). If it is a local internal table then ALV will not be access it and hence the error message.
So try declaring your <b>lt_stats</b> table in the TOP include (for modulepools or function groups) or at the top (if it is a report).
<b>Did you try this out?</b> <b>You need to declare your internal table at GLOBAL level.</b>
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni

Similar Messages

  • Print ALV List error

    Hello,
    We have a custom ALV report which is very wide (more than 1000 chars).
    Now, when I try to print the list the field with the number of columns is grey (for some users it is grey and for some users it is editable). The format is set to X_65_255.
    When I don't change the number of columns to 255 and trigger the printout I receive the gui error "The memory could not be read blablabla" and the GUI closes. When I change the number of columns to 255 the printout is ok.
    Do you know why for some users the field is grey (user profiles are the same)? What I can do not to receive the gui error while printing.
    Regards,
    Piotr

    Hi,
    See this thread ALV Program errors
    Regards,
    Flavya

  • Program errors working with OOPS ALV in a Tabstrip control

    Hi Experts,
    I am displaying an ALV grid in a Tabstrip control in dialog program and its getting displayed fine. However when I am presing any of the standard push buttons like sort, export etc., I am getting a pop up with icon 'STOP' and beside its mentioned 'Program errors'. Please let me now if there is any solution for this issue.
    Thanks and Regards,
    Praveen.

    Got the solution. We must declate the internal table that is bening passed into the set_table_for_first_display as global variable always.

  • How to check the layout defined for an ALV program

    Hi All,
    I have an ALV-program which uses radio buttons to display the list either in an Hierarchical format or in a Simple list format. In the selection screen there is a field for specifying the layout.
    Now the problem is, if a layout is created for Hierachical display and that layout is used to display the list in a simple list format the program doesn't give the desired output and vice versa.
    So i need to put a check in the program, to check whether the layout given in the selection screen is meant for a Simple List display or for an Hierarchical display and accordingly throw an error message regarding the mismatch if any.
    Is there any standard Function Module to check whether the layout is defined for a Simple List display or an Hieracrchical List display? Or is there any other way to do this checking????
    Thanks in Advance!!!
    Anindya

    Hi Venkat,
    The problem is:
    I need to know whether the LAYOUT(given in the selection screen) is defined for a SIMPLE LIST DISPLAY or an HIERARCHICAL LIST DISPLAY. Now say for example user has selected a layout which has been defined for a Hierarchical List display but by mistake he has selected the radio button for a Simple List display. So, here is a mismatch and the program should detect this and throw some error message. Instead it is now displaying a wrong output which is resulting from the mismatch.

  • Handle exception 'Program errors' for CL_GUI_ALV_GRID

    Hi all,
    I am displaying ALV in a dialogbox container, with first column for checkbox.
    I have created a pushbutton named RELEASE in the toolbar. Pupose of the Release button is to further process the
    rows selected by the user. But clicking on the Release button after checkboxes are selected throws error 'Program errors' which I guess is probably is an exception for method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID. If the button is clicked without touching any of the checkboxes everything works fine. Probably the reference to outtab is lost on clicking the button.
    Appreciate any help.
    Many thanks.
    Vipin.

    Hi vipin,
    hard to say as you do not give any code detail. In a mixture of classic and oo ABAP a common reason for failure is the use of local (FORM routine) fields for controls and their contents: Entering a FORM routine, DATA is created on the stack, controls with grids may be created - they have their own lifetime, After leaving the Form routine, the stack is cleared. The control will not know this but as soon as a controls event tries to access data, it is a grip into emptiness.
    Regards,
    Clemens

  • Error:  "Could not complete your request because of a program error" (photoshop CS2 9.0.2 on MAC OSX

    Today I started my program (photoshop CS2 9.0.2) and opened a JPG file. When I went to print the file the program crashed and closed. When I restarted the program and went to open the file I got this error message, "Could not complete your request because of a program error".
    I have tried several different file types/sizes and all result in the same error message since the program crashed. It will not open any file I try to open. As I indicated above I am using Photoshop CS2 9.0.2 it is on a MAC with OSX 10.4.11.
    I called Adobe and the Rep directed me to Tech Note 331307 and told me to Re-create the Photoshop preferences files. Which I did and restarted the program, but when I tried to open a file (any file) I still get the same error message so it doesn't appear to be the preferences.
    Does anyone have any info as to what the problem may be and how to correct it.
    Thanks

    Thanks for the response. OK... This is the first day I have been able to get back to the problem.
    My system I am running Photoshop on is a Power Mac G4, AGP Graphics ATY Rage 128Pro chip set 16MB VRAM LCD 1280x1024 32-bit color, 500MHz, 1.75GB of memory, 1 MB L2 Cache, 100 MHz Bus Speed. I had installed the latest security update and repaired the permissions the day the problem started.
    Now to day I started the system and went in and created a Guest Account. I logged into the guest account and started Photoshop. Low and behold it worked just fine. So I logged out of guest and logged into my main user account And started Photoshop. Wouldn't you know it.... It works just fine. I can open any file I want with now problems.
    I got to thinking after I had done all of this that I wished I had tried to open a file in Photoshop today prior to creating the guest account to see if it still had the problem in my main user account.
    I did not change anything else on the system and all seems to work fine now. So at his point I am really not sure what the problem was.
    Again thanks for taking the time to respond to this issue.

  • Photoshop CS2 (program error msg)... Help please!!

    I have installed the full creative suite 2 on my new iMac. everything works fine except photoshop?!!?
    Illustrator works great, In-Design works great, But when i try to open a file or create a new page in PS it tells me "Could not create document because of a program error"???? ***?
    I had a previous version of CS and it worked fine for one day, then that started happening. I installed the CS2 trial version, and it would still give me the same error msg. I erased everything and installed the new CS2 (photoshop, illustrator , in-design and acrobat). It still gives me the same darn msg.???
    Any help would be greatly appreciated!
    thanks

    See the Adobe Knowledge Base document"Error 'Could not complete your request...' or 'Could not create a new document...' (Photoshop CS2 on Mac OS X v10.4)"
    I suggest whenever you have problems with third-party applications, the first place to start troubleshooting is with the application's documentation, then vendor's web site. Usually their sites have FAQs, lists of known bugs, or application-specific forums similar to these Discussions. Sometimes, unlike the Apple Discussions, the questions are even answered by employees of the vendor.
    The document cited above was found in 10 seconds by searching the Adobe support site.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • PhotoShop CS2 "Program Error" when printing

    I am posting this to the Adobe Forums as well, but thought someone here might have some ideas. am having an intermittent problem printing from PhotoShop CS2 to an Epson 9800. When printing large files (200 MB average) to the Epson, PhotoShop will spool the job, taking about 50% longer than normal, and when complete, displays the following message..."The file XXXX.tif could not be printed because of a program error" No job ever gets to the print que. This happens about 80% of the time when printing. Quitting and restarting PhotoShop generally fixes the problem, and the file can be printed from another computer without issue, so this is not file specific. I have 8GB of RAM installed and PhotoShop running under 100% available memory, cache level at 8, with a dedicated 180GB scratch disk. Memory should NOT be the problem, though I do often have the full layered version of the file open in the background (I am printing from a flattened copy. I have observed that the problem is less likely to occur if no other files are open. I have a second G5 with the exact same software setup (OS, Print Driver and PhotoShop down to the decimal version #) that works perfectly every time. I have run all of the System utilities (Repair Permissions, FSCK, etc), reset the OSX printing system, reset PS preferences, trashed and re installed CS, as well as the Epson printer driver, all with no success. Any other trouble shooting ideas would be greatly appreciated. I would love to avoid a System reinstall.

    See the Adobe Knowledge Base document"Error 'Could not complete your request...' or 'Could not create a new document...' (Photoshop CS2 on Mac OS X v10.4)"
    I suggest whenever you have problems with third-party applications, the first place to start troubleshooting is with the application's documentation, then vendor's web site. Usually their sites have FAQs, lists of known bugs, or application-specific forums similar to these Discussions. Sometimes, unlike the Apple Discussions, the questions are even answered by employees of the vendor.
    The document cited above was found in 10 seconds by searching the Adobe support site.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • ESYU: ENCOIN: ECO Open Interface Program 사용시 error 발생 문제

    Purpose
    Oracle Engineering - Version: 11.5.6
    ECOs import를 위해 ECO Open Interface(ENCOIN module)을 사용할 때,
    Interface program이 아래와 같은 error를 발생시킨다.
    "ORACLE error 6550 in FDPSTP
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00201: identifier 'ENG_LAUNCH_ECO_OI_PK.ENG_LAUNCH_IMPORT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    어떻게 ENCOIN: ECO Open Interface program을 사용해야 하는지 알아본다.
    Solution
    ECOs를 importing 하기 위해 ECO open interface를 사용하는 것은 권장하지도 않고,
    support 되지도 않는다.
    ECO data를 load 하기 위해 ECO open interface를 사용하는 대신 ECO Business Object
    이나 ECO form을 사용해야 한다.
    ECO Business Object 사용에 대한 보다 상세한 내용은 Manufacturing and Open Interfaces
    Manual을 참조한다.
    또한 Note 132874.1에 설명되어져 있는 ECOBOI module을 이용하도록 한다.
    만일 당신의 application version이 11.5.9 이상이라면 ENCOIN module(ECO Open Interface)는
    ECO details를 import 하기 위해 사용될 수 있고, ENCOIN은 11.5.9 이상의 version에서만
    지원이 된다.
    Reference
    Note 392011.1

  • "Program Error"  While trying to print in PSE 9

    Download and installed updates to PSE 9.0, Now 9.03. While in PSE mode I can no longer print images to Epson Photo R2880 or HP J4680. I can print to both printers using HP Media Smart Photo application, but if I attempt to print from PS Elements I get the following "could not print (image title) because of program error". I have since uninstalled the upgrade to PSE 9.03, I have also  done a system restore all to no avail. I still can't print while in PSE. Any experience with this? Any resolution ? Help !!!

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • Photoshop CS2 not working after 10.6.7 update? program error!

    Could not complete your request because of a program error. I opened an image RGB and wanted to save it as a CMYK.
    Save as and entered new name... thats it! Then the error popped up. The only thing that has changed is the update!
    Please help.

    If you updated to 10.6.7 then you should (go to your Apple menu at the far left and) check for updates.
    There was a problem with some types of Fonts that has been fixed by the Snow Leopard Font update:
    http://support.apple.com/kb/DL1377
    However, always wait after an OS update (true of Windows too) and see if it causes any problems with 3rd-party software, etc. - PRIOR to updating your system   And always, always have a full, known-good backup before you update. Especially for any computer that is used for business purposes !
    Last but definitely not least, you should know that Adobe CS2 is a Power-PC only application (circa G4 and G5 processors, before Apple moved to Intel processors), and requires Rosetta (PowerPC emulation).
    So you should consider any CS2 application running at all, as fairly miraculous.
    CS3 was released four years ago, and provided the first Intel-native ("Universal Binary") versions of the CS-suite applications.
    Mac OS 10.6 only runs on Intel-based Macs (ie: Intel processor required).
    If you are using Photoshop CS2 for any revenue-generating purposes, then it is (and was) incumbent upon you to properly allocate and budget for
    upgrades and you should - nay, must - be running a more current version of the software. If your budget does not allow for newer Adobe CS, then you should have kept a legacy system that can run an older Mac OS, and understand that your workflow is living on borrowed time - and you had best keep several old Macs that can still run an older Mac OS and run your CS2 natively.
    In no way shape or form is CS2 supported under Mac OS X 10.6 - certainly not in any official way by Adobe !
    You could also be irate about not being able to use your 8-track tape player in your brand new car. I'm exaggerating but not too much.
    Please read Adobe's response regarding CS3 (not CS2) and 10.6/Snow Leopard:
    http://blogs.adobe.com/jnack/2009/08/adobe_snow_leopard_faq.html
    With all of this in mind, you should know that your frustrations with Apple and the unsupported and not-recommended interaction of CS2 and 10.6 are misguided. Best of luck to you !

  • "Program error" When I click on the timeline/motion controls or try to export/save as my animation. PS CC late 2014

    I have been working on an animation for an online ad. The file is 300 by 250. It's about 24 seconds long. I had completed and saved my work as a GIF file. I also saved some static JPGs of the animation. Everything was still working at this point. Then I closed Photoshop and reopened the PSD file to export it to a different format, but when I clicked on the time-marker in the timeline window or tried to edit my animation, I got this error message: "could not complete your request because of a program error." Watch the following video to see exactly what happens:
    I'm running Adobe Photoshop CC November 2014. I'm working on a PSD file, 24 seconds long, 30 fps.
    I looked in my library/preferances/adobe folder for photoshop's error log file. This is the error in that file:
    2014:11:12 18:30:17 : /Volumes/workarea/PS_15_Mac_Daily_Retail/20140730.r.148/photoshop/main/photoshop/sources/ ULinkManager.cpp : 1380 : REQUIRE failed
    Thank you so much for reading this. It sucks to work so long on an ad and then have this happen for seemingly no reason. Please help if you can.

    Looks like issues with some linked smart objects... You could try and copy/ move the whole shebang to another location in the hopes that it either fixes the issue or PS completely forgets the linked files completely so you might relink/ replace them.
    Mylenium

  • Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help

    Using Adobe Photoshop CS2 version 9 and have updated it, but when stacking photos, it comes up with PSD, whereas I want Jpeg, and I change the format to Jpeg and the box then comes up with cannot save as there is a program error. Be very grateful for help with this, please.

    jpg does not support Layers.
    Just to make sure, what exactly do you mean by "stacking photos" and what do you want to achieve thereby?

  • I keep getting a message saying "Could not complete your request because of a program error"

    I keep getting a message saying ( Could not complete your request because of a program error??
    Does anyone know what this means or how to fix?

    blucoast,
    Can you please be more detailed? When are you getting this - what is causing it? Any specific tool or while starting Photoshop itself?
    Do you see an error number or error code or a report? Can you post that here?

  • Effects not working? "Could not complete your request because of a program error?"

    Hey guys&gals - I have always had this problem when working in RGB/CYMK modes - can anyone help me with that?
    More more importantly, now I am getting in in Grayscale mode as of this morning.
    I run Photoshop 6 V 13.1.2 x64 and just updated it this AM.
    Effects are crucial for my job, so I need this fixed asap!!
    I have tried the ctrl, alt, shift start up to no avail. Restarted, shutdown my PC as well.
    Please advise!
    Thanks,
    blaqgranitelaser

    Found the places I was supposed to - now what? Photoshop isn't crashing... doesn't give me any info other than a box saying "Could not complete your request because of a program error." And I have no choice but to click OK. This only happens when I try to use the layer effects in any color mode. Originally it was only in RGB/CMYK but now also happens in Grayscale.
    I'm not technologically savvy - I know what programs I use, but that is all.

Maybe you are looking for