Display recods when cliking save in screen painter

Hi all,
I am dispalying a table using screen painter.I have 5 records in my internal table.
My need is if i click "save" button in PAI first record should be displayed in the table,
again if i click the "save" button then next record from internal table should be displayed by replacing
first record and so on... until last record it shld be done.
I did it but records are not displayed one by one.
Kindly any one can  provide the required solution.
Regards
Ranjith C

Hi dinesh,
First we declare a global variable type i.
if sy-ucomm = 'SAVE' and glob_var is initial.
describe table int_table lines glob_var.
......count the total number of records
endif.
case sy-ucomm.
when save.
........if u need a particular order like 1,2,3,4,5
........sort internal table as 5,4,3,2,1....
........read the last record => u will read 1
sort int_tab by field descending
read table int_table index glob_var.  ( n = 5 )
........u have the required data in int_table's work area ..do the needful
........coding to process it
if glob_var > 0.   "if read index is done for index 0 ..shortdump will occur
glob_var = glob_var - 1.
endif.
.........decrement counter so that in next loop we read the nearby record
so everytime u press save...the table index read will be that of the next immediate record
based on the sort order
Hope it helps,Pls check and revert
Regards
Byju

Similar Messages

  • Is it possible to display the standard function keys in screen painter

    Hi ,
    I design a screen in se51 where I use push buttons and input/output buttons and so on in the layout, here in the layout or in my final output screen(when i assign this screen to a transaction) I would like to display other standard keys, ie the function keys and application toolbar items. I would like to know whether there is a possibility to do this , if yes then how?
    In a menu painter there is a possibility where I can customize the keys or I can use the standard keys by going to se41 extras->adjust template. Is there similar possibilities in the screen painter.

    Ok I see. I should use &var.
    Edited by: xerosaburu on Aug 18, 2009 11:37 AM

  • Display value in text element in screen painter

    Hi,
    I have created new sreen. I have I/O field and text field. My i/o field is zcust of data element kunnr. After I run transaction and when I chose value in this field (for example customer 123456) I want to be displayed customer name in text field. Customer name is value kna1-name1.
    How can i do this?
    Thanks.

    Hi Nihad,
    In the PAI of the screen use the field statement.
    field zcust module cust_name.
    in the program write the below code to populate the customer name.
    MODULE cust_name INPUT.
    select single name1 from kna1 into CUST_TEXT
    where kunnr eq zcust.
    ENDMODULE.  
    Regards,
    Charumathi

  • How do i change folder display options when I save a file?

    When I go save a file and select a folder to save it, the window shows all folders expanded. How do I change the options to all folders collapsing so that unless I click on that folder, it doesn't open automatically?
    This way it makes it easier for me to find the folder instead of looking through hundreds of file to find a folder that I want to save the file at.
    Thank you,

    I realized I probably should have included some images to make it easier to understand.
    As you see below, when I go and save a file it shows all the folders expanded with all the files in that folder.
    What I want to do is to have the folders displaying like below where I manually open the folder that I want to save this file in. I want it to do this every time instead of the first option where everything is showing all at once vs. me opening each folder manually.
    If there's an option to switch that that would be great!
    Thank you.

  • SP01: Screen Painter Unresponsive

    I just installed a new Windows 2003 system and then SAP B1 2005A SP1 P02 and the SDK, and then Screen Painter.  I can get the screen painter UI displayed (toolbar) but the screen is empty and unresponsive.  When I click the button to add a new form, nothing happens.  When I click the button to open a form from a file, nothing happens.  Is there some license or security setting that I'm missing?
    Message was edited by: Frank Moebius
    Hi Ben,
    Please add the "SP01:" prefix when reporting SP01 issues - as adviced in the available documentation.
    Thank you very much,
    Frank

    i think i found my problem.
    i used screen painter from SP00.
    when i uninstalled the screen painter and installed screen painter version from SP1 PL2. the screen painter works correctly
    hope it helps
    Moty

  • SCreen Painter working not correctly.

    Hi,
    In se53 when we go to screen painter it's not coming properly..
    some line is coming.
    and we got EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'  error message.
    we have sap gui 710 with patch level 7.
    the dumpfile also generated.
    Runtime Errors         STORAGE_PARAMETERS_WRONG_SET
    Date and Time          22.07.2008 12:44:27
    Short text
    The system is configured incorrectly.
    What happened?
    The current program had to be terminated because of an
    error when installing the R/3 System.
    The program had already requested 453411792 bytes from the operating
    system with 'malloc' when the operating system reported after a
    further memory request that there was no more memory space
    available.
    What can you do?
    Note which actions and input led to the error.
    For further help in handling the problem, contact your SAP administrator
    You can use the ABAP dump analysis transaction ST22 to view and manage
    termination messages, in particular for long term reference.
    In the system profile, set the parameters
    -abap/heap_area_dia and
    -abap/heap_area_nondia
    to a maximum of 453411792. To be on the safe side, reduce the value by 10,000,
    000.
    Then restart the SAP system.
    Error analysis
    When the program was running, it was established that more
    memory was needed than the operating system is able safely
    to provide. To avoid a system crash, you must prevent this
    situation from occurring.
    Last error logged in SAP kernel
    Component............ "EM"
    Place................ "SAP-Server mtw02sdec01_DE7_00 on host mtw02sdec01 (wp
    1)"
    Version.............. 37
    Error code........... 7
    Error text........... "Warning: EM-Memory exhausted: Workprocess gets PRIV "
    Description.......... " "
    System call.......... " "
    Module............... "emxx.c"
    Line................. 1881
    The error reported by the operating system is:
    Error number..... " "
    Error text....... " "
    How to correct the error
    Report the error to the group responsible for installing your
    R/3 System.
    Please help.
    regards
    deepak

    Dump is telling you what to do...
    Review abap/heap_area_dia and abap/heap_area_nondia
    I presume you try that before posting right?...
    Whats the issue then?
    Regards
    Juan

  • Problem in opening of screen painter layout

    When I am opening screen painter using SE51 it opens,but layout should not be opened in a desired format.

    ... also the settings should be graphical screen painter.
    If this is not the issue, please explain what you mean by layout should not be opened in a desired format.. Shoud not? Is not? Whats the desire?
    Regards,
    Clemens

  • Screen Painter not working?

    Hi All,
    When i Open my screen painter and click on "Layout" button
    it shows error "No response from Graphical Screen painter-Exiting".  I have IDES 4.7c version on my pc at home. I'm an ABAPer and don't know about basis. Pls help to sort this problem.
    Thanks & Regards.

    Hi Beradze,
    1. Gui version is: 6.40.
    2. Files "gnetx.exe" & "gneux.exe" are available in the
        system.
    3.  "eumfcdll.dll" file is not showing in my installation.
    4. Two "eusp.dat*"  files showing in the system
        (euspdynd.dat, euspdyne.dat).
    5. I check the "sapsetup.log" file in my system and found only
        this error "SapFeiSv  3   Shell : file 'D:\47ides\GUI 4.0
        \GUI\WINDOWS\WIN32\sapgui\saplogon.exe' does not
        exist.
    6. I also checked the trace file, the error shown is given below:
        Sapgui 640 [Build 8965] Sat May 17 19:54:18 2008
        : 'partner not reached (host 192.100.10.1, service sapdp00)
        WSAECONNREFUSED: Connection refused
        How to disable firewall and antivirus? Pls let me know if you
        require any other information.

  • SAP GUI 7.20 for Windows and problem with Screen Painter

    Hello,
    I just installed the SAP GUI 7.20 for Windows and it looks good.
    But when when I start the Screen Painter for a dynpro I get the following message:
    Graphical Layout Editor not available. Continue with alphanumeric editor.
    And: EU_SCRP_WN32 Connection broken  '..' / CPIC
    The SCreen Painter is installed correctly (I can start ist manually from file system) and the RFC destination works.
    Any idea?
    Regards,
    Ole.

    Hello,
    I've uninstalled all SAP installations, cleaned the registry of Windows XP and deleted all folders with SAP content. Then I've installed the SAP Gui 7.20 again and it works.
    And now I will update the Screen Painter with the information from the OSS-Note!
    Thank's for your help!
    Regards,
    Ole.

  • About Screen painter

    my senior are compelled me to develop an add-on witout screen painter.
    is it wright ? pls send me rply as early as possible.
    if wrong then send me about some help on screen painter and how to detect screen painter control from vb.net

    Mithun,
    I am not sure exactly how to answer your question.  The Screen Painter is typically used to assist the developer with creating new SAP Business One forms in an easy graphical environment.  It is a tool provided to the developer to assist with rapidly creating new forms.  You do not have to use the Screen Painter.  You can code your forms from scratch as part of your add-on code using the IDE of your choice such as VB.Net.  You can also look at this article which talks about how to auto generate and XML representation of your forms ...
    SAP Business One Tools [original link is broken]
    As far as help on the Screen Painter, that is available when you install the screen painter.
    HTH,
    Eddy

  • When downloading application updates, which are over a GB, my MacBook Air keeps logging me out and I have to start the download over.  I have the power settings set to never turn off, and the display set to never go to screen saver.

    When downloading application updates, which are over a GB, my MacBook Air keeps logging me out and I have to start the download over.  I have the power settings set to never turn off, and the display set to never go to screen saver.  Any suggestions?

    I have the exact same problem/situation since a few days
    I have not intalled a program lately.
    Any progress Voratima??
    Software  Mac OS X Lion 10.7.5 (11G63)

  • Screen Painter displays nothing and becomes hang.

    <b>Screen Painter displays nothing and becomes hang.</b>
    To duplicate:
    1. Create a new table and fields. (I created using SQL Enterprise Manager).
    2. Create a new form using Screen Painter.
    3. Bound several items to column to field of table created on step#1
    4. Save and close the form in .srf.
    5. Open the saved form and Screen Painter becomes hang.
    Is there any mistakes in my steps? Or this is just a Screen Painter Bug?
    Thanks in advance,
    Jemmy Sentonius

    When creating new tables, make sure to create them via SAP. You can achieve this by either manually creating tables via SAP client or programmatically using DIAPI.
    When you bind data to a form via UIAPI (either programmatically or via xml/srf) SAP needs to know the tables you refer to.
    When you create tables using Enterprise Manager, SQL Server knows about the tables, SAP does not. Hence your error, I guess.
    However Screenpainter should not hang when referencing "invalid" (to SAP) tables. This behaviour ought to be corrected.
    HTH Lutz Morrien

  • How to fetch last record from the table to display in screen painter?

    Hi Gurus,
                  I have a requirement where i have to fetch the last record value in the table.
    I have a screen where the TEXT name is REQUEST and I/P field name is REQ and SAVE push button.
    In this I/P field automatically 1 should display when i excecute the program and when i save this, the request number should turn to 2 that is dynamically..once agin save then 3 and so on....and this 1, 2, 3 will be storeing in table.
    I have succeeded till generating the values dynamically and saving in the table like 1 is displayed and when i click save it is changeing to 2..but the problem is when i am coming out of program and logon again the request number is again displaying as 1 rather it has to start with 4 because already 3 request are there in the table.
    My code is...
    Table zsave.
    data declarations....
    data req type i.
    req = 0.
    req = zsave-req.
    PROCESS BEFORE OUTPUT
    req = 0.
    select req into table fun_st from zsave.
    req = zsave-req.
    zsave-req = req.
    req = zsave-req + 1.
    PAI
    req = zsave-req + 1.
    zsave-req = req.
    when 'save'.
    wa_funst-req = zsave-req.
    Please can you provide me with the solution....answer will be rewared.
    THKS

    Can you tell me, when updaing the ZSAVE table with the counter value are you modifying the exisiting value or inserting the value as new record?
    From the code in your first post, i see that you are extracting records into internal table but when you are moving to variable REQ, you are moving from table work area which is blank, so everytime when you execute it may be starting as 0.
    Hope below code can help you understand on handling your requirement
    Global Declaration:
    >DATA: l_req TYPE i. 
    PBO:
      SELECT MAX( req ) INTO l_req FROM zsave.
      l_req = l_req + 1.
    PAI:
      DATA: wa TYPE zsave.
      CASE ucomm.
      WHEN 'SAVE'.
        wa-req = l_req.
        INSERT zsave FROM wa.
      ENDCASE.

  • Can't connect to my iMac when energy saver is active. Screensaver is okey, but if the screen is blacked out, I cant connect using vnc/teamviewer/logmein. SSH is okey. :(

    Can't connect to my iMac when energy saver is active.
    Screensaver is okey, but if the screen is blacked out, I cant connect using vnc/teamviewer/logmein. SSH is okey.
    Anyone else having this issue? Worked great in snow leopard. Updated to 10.7.1
    //Niklas

    Ok so I happened to figure it out while on the phone to apple support. Even though the guy was very nice, I think I knew more than him! He was explaining very basic resolution principles I played about. I had the second option in displays resolution. All I did was unplug the HDMI cable, click on 'best for display' then plugged the HDMI in and my resolution on the normal monitor changed to the normal blue, then went black momentarily and then changed to a strange resolution but another window appeared that said SONY BRAVIA HDMI at the top! Hey presto! Don't know why it didn't do it yesterday - I probably left the HDMI cable in or something! Oh well. Problem solved!

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

Maybe you are looking for

  • Webcam for OSX and Windows

    Hi, I would like to buy a webcam that can work on OSX and Windows XP as I have two computers but only want to buy one webcam. Can anybody recommend a webcam that works on both operating systems? Thanks. 6400 (7.5), G4 PB (10.3.x), MM (10.4.x), 15GB p

  • Order in message processing in XI

    Hi all!! I have a problem. I have a client ABAP Proxy that is called from R3. If this Proxy is call in several times in a loop (30 by example), the 30 messages come to XI in the same second, and XI process them in a ramdon order, not in the sending o

  • Function module to cretae Reference Operation

    Is there any function module which creates routing with type 'S' (Reference Operation Set) , I tried BAPI_ROUTING_CREATE and others but these create routing with type 'N' (Routing).

  • Process Chain Review Question: function module/ABAP program/Event

    Hi, 1. Can you tell me a bit more about function modules such as RSPC_CHAIN_ACTIVATE_REMOTE 2. What are function modules in general terms. i.e.  What is their role? 3. How do I see all function module available? 4. When is function module used instea

  • Transport Query and Query elements

    Dear all, I have a questions regarding transportation of a Query. When I transport the Query from the transport connection should I ticked also the Query elements or not? What happend if I choose just some of the Query elements? Thanks