Max no of function keys in a screen . What do u mean by SSCR fields...

give any simple understandable examples how to create function key...event driven programs...

Hi,
Try the following code n let me know if it works fine.
Tables *
tables:
sflight, " Flight master
sbook. " Single flight booking
Field string to hold flight master data *
data:
begin of fs_sflight,
carrid type sflight-carrid, " Carrier Id
connid type sflight-connid, " Connection Id
seatsmax type sflight-seatsmax, " Maximum seats
seatsocc type sflight-seatsocc, " Occupied seats
end of fs_sflight.
Internal table to hold flight schedule data *
data:
t_sflight like
standard table
of fs_sflight.
Field string to hold flight booking master data *
data:
begin of fs_sbook,
carrid type sbook-carrid, " Carrier Id
connid type sbook-connid, " Connection Id
fldate type sbook-fldate, " Departure date
bookid type sbook-bookid, " Booking number
loccuram type sbook-loccuram, " Price of booking
order_date type sbook-order_date, " Posting date
end of fs_sbook.
Internal table to hold single flight booking *
data:
t_sbook like standard table
of fs_sbook.
START-OF-SELECTION EVENT *
start-of-selection.
perform selection.
END-OF-SELECTION EVENT *
end-of-selection.
loop at t_sflight into fs_sflight.
write:/ fs_sflight-carrid,
15 fs_sflight-connid,
30 fs_sflight-seatsmax,
45 fs_sflight-seatsocc.
hide: fs_sflight-carrid.
endloop. " LOOP AT T_SFLIGHT...
at pf13.
if sy-curow le 3.
message 'invalid line selection'(001) type 'I'.
else.
perform select_data.
perform display_data.
endif.
at pf14.
if sy-curow le 3.
message 'invalid line selection'(001) type 'I'.
else.
perform select_data.
sort t_sbook by bookid.
perform display_data.
endif.
at pf16.
if sy-curow le 3.
message 'invalid line selection'(001) type 'I'.
else.
perform select_data.
sort t_sbook by loccuram.
perform display_data.
endif.
FORM SELECTION *
This subroutine retrieves necessary data from flight master table *
There are no interface parameters to be passed to this subroutine. *
form selection.
select carrid " Carrier Id
connid " Connection Id
seatsmax " Maximum seats
seatsocc " Seats occupied
from sflight
into table t_sflight.
if sy-subrc ne 0.
message 'No records found'(002) type 'S'.
endif. " IF SY-SUBRC...
endform. " SELECTION
FORM SELECT_DATA *
This subroutine retrieves necessary data from flight booking table *
There are no interface parameters to be passed to this subroutine. *
form select_data.
select carrid " Carrier Id
connid " Connection Id
fldate " Flight date
bookid " Booking number
loccuram " Price of booking
order_date " Booking Date
from sbook
into table t_sbook
where carrid eq fs_sflight-carrid.
if sy-subrc ne 0.
message 'No records found'(002) type 'S'.
endif. " IF SY-SUBRC...
endform. " SELECT_DATA
FORM DISPLAY_DATA *
This subroutine displays data from flight booking table *
There are no interface parameters to be passed to this subroutine. *
form display_data.
loop at t_sbook into fs_sbook.
write: / fs_sbook-carrid,
15 fs_sbook-connid,
30 fs_sbook-fldate,
45 fs_sbook-bookid,
60 fs_sbook-loccuram currency sbook-loccurkey,
75 fs_sbook-order_date.
endloop. " LOOP AT T_SBOOK...
endform. " DISPLAY_DATA
Regards,
Satish

Similar Messages

  • Using FUnction keys on selection screen

    Hi All,
    I want to submit a report if the user presses any assigned function key when he is on the selection screen of a t-code.
    how can i capture the commands of function key on selection screen.

    hi
    try below code
    TABLES sscrfields.
    INITIALIZATION.
    PARAMETERS : p_1 TYPE c.
    SELECTION-SCREEN : FUNCTION KEY 1.
    SSCRFIELDS-FUNCTXT_01 = 'Report'.
    SELECTION-SCREEN : FUNCTION KEY 2.
    SSCRFIELDS-FUNCTXT_02 = 'Report2'.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'FC01'.
        SUBMIT ZXXX1 VIA SELECTION-SCREEN AND RETURN.
      ENDIF.
      IF sscrfields-ucomm = 'FC01'.
        SUBMIT ZXXX2 VIA SELECTION-SCREEN AND RETURN.
      ENDIF.

  • My ipod touch 4 has frozen with multicoloured lines on the screen, what does that mean?

    my ipod touch has frozen with multicoloured horizontal lines on the screen, what does this mean??

    - Try here:
    iOS: Not responding or does not turn on
    - If not successful and yu can't furrly turn the iPod off, let the battery fuly drain. After charging for at least an hour try again
    - If not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Function Keys on Selection-Screen

    Hi,
    I used function keys in one of my report program.
    Now, if some check box is checked in the customization that function should be displayed, otherwise shouldnot be displayed.
    I made use of "loop at screen" to make that application button invisible but i don't know the name of the button. I have given the name as same given while creating the button using "SSCRFIELDS".
    Is there anyy other way to disable the button??
    Regards,
    Yadesh

    Hi,
    Your requirement can be solved with two approaches:
    1) simpler one is to use different GUI statuses depending on checkbox state
    AT SELECTION-SCREEN OUTPUT.
    refresh it_exclude.
    if checkbox = 'X'.
      append 'BUTTON_FCODE'.
    endif.
    "you in turn swith on/off your desired button
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
        EXPORTING
          p_status  = 'GUI_STATUS'
          p_program = sy-repid
        TABLES
          p_exclude = it_exclude.
    2) as SELECTION-SCREEN FUNCTION KEY n statement cannot be processed within PAI/PBO block you cannot set it dynamically like
    AT SELECTION-SCREEN.
    IF check = 'X' .
    SELECTION-SCREEN FUNCTION KEY n.
    ELSE.
    "no selection button here
    ENDIF.
    Moreover you cannot change standard application toolbar of selection screen within Loop at screen statement (this will only affect selection screen parameters not toolbar).
    The only way here is dynamically generate report's code. When checkbox is check what you do is
    data: it_code type table of char72 with header line.
    READ REPORT sy-repid INTO it_code.
    Then looping through the code table you either remove entry having SELECTION-SCREEN FUNCTION KEY n. or add it to the table.
    Finally you switch reports code with
    INSERT REPORT sy-repid FROM it_code.
    And execute new one with
    SUBMIT (sy-repid).
    This will ensure that new SELECTION-SCREEN parameters (or function keys in your case can be switched and report will be executed with new screen look).
    Nevetherless be carefull! You need to ensure that submit will not create and endless loop. ABAP Memory will help you here (exchange flags within program indicating whether program is executed for the first time or another one).
    Hope this will give you some idea how to solve it.
    Regards
    Marcin

  • Function keys on the screen

    hi folks,
    I have a question, I created a new function key called 'display' for the screen using the menu painter used that in the program and executed the program successfully in DEV environment. when I moved the changes (moved all) to QAS the function key 'display' did not show up. I checked to see that the function key item got moved using the menu painter in QAS. The item is there in QAS amd checked for the changes in the program using version management. no changes How come the function key is missing on the screen in QAS?
    Am I missing anything here?
    Thanks,
    SK

    If you activate your program after you've made your screen changes, sometimes you lose those screen changes.  You may need to go back in to the screen and reactivate, then transport it.  If necessary, make a small change (like adding a blank line somewhere in the flow logic of the screen) in order to get the screen changes into a transport.  I hope this helps.
    - April King

  • In CM01 selection screen, what is the meaning of "Operator"

    Hello,
    (1) In CM01 selection screen, there are 3 fields with column heading "Operator". There is no documentation available for those fields. Can someone help me understand what is the meaning and use of those 3 fields. Thanks.
    (2) We are in the process of writing a wrapper program for CM01 - so that we have more detailed selection options and also download to Excel. Any help/suggestion for this is welcomed. Thanks.
    - Chetan

    Hi Chetan
    the operator field is just to select your input values and it has these following options
    and has no significance on the report
    =     equal to
    <>     not equal to
    >     Greater than
    >=     greater than/equal to
    <     less than
    <=     less than/equal to
    EQ     equal to
    NE     not equal to
    GT     Greater than
    GE     greater than/equal to
    LT     less than
    LE     less than/equal to
    CP     contains pattern
    NP     does not contain pattern
    regarding downloading the report to excel file, it is a standard functionality and any ABAP developer should be able to add it to your report and if you plan to add some additional fields to make your report more details, you need to do some enhance ment and build a custom report depending on what you want to add
    if helpful please reward your points

  • On my older macbook pro, i just started getting a green line down the left hand side of the screen. what does this mean

    what does it mean to have  green line on your screen?

    other users have had that problem. Do a quick search here. Here is a link to one such discussion
    https://discussions.apple.com/message/15251434#15251434

  • My on/off and home function key is not working. what can i do?

    I tried to do a software update and i did not have enough available space. i deleted some apps and now the on/off button as well as the home function does work.

    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    Fixing an iPad Home Button
    http://tinyurl.com/om6rd6u
    iPhone, iPad, and iPod: Understanding capacity
    http://support.apple.com/kb/ht1867
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    How to Remove “Other” Data from iPhone, iPad and iPod Touch
    http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
    What is “Other” and What Can I Do About It?
    https://discussions.apple.com/docs/DOC-5142
    iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
    http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
    6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
    http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
    Also,
    How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
    http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
    What is Stored in iCloud and What is Not
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/what-is-s tored-in-icloud
     Cheers, Tom

  • My iphone has a red screen, what does this mean and how do I fix it?

    I Left my Iphone on charge when I got home and went to use my phone it had a red screen, no idea what caused it or what if any underlaying problem the phone may have. Any one know anything about a red screen???????

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
    (66745)

  • Max wait from a trace file...what does it mean

    Hi,
    following is a part of an extended sql trace file :
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    library cache lock 5 0.00 0.00
    row cache lock 7 0.00 0.00
    library cache pin 3 0.00 0.00
    rdbms ipc reply 2 0.00 0.00
    SQL*Net message to client 8185 0.00 0.01
    SQLNet message from client 8185 1671.98 1688.26*
    here what does the column max.wait mean? this is a trace file when a proc was run remotely to a database - it has lots of dbms_output statements, it creates an output file (on the remote pc from which it runs) the proc calls several sql scrips, does lot of query and dml
    Now when teh same script is run locally from the server those sql net waits are not there. and the interesting fact is: when run locally it takes 4 mins
    and remotely it takes 1 hour. How can we interpret this? and what does teh max wait indiccate?
    thanks,

    Can you explain more on this? the same proc when run locally does not have this wait and when run from remote ip it has this wait - so does that mean that this is due to network issue?
    should we for example - remove the dbms_output statements from this and try ? what should we do to be able to run the script from remote ip and run it in 6-7 minutes- when the scritp is run locally from the from server it takes 4 minutes and from a remote ip it takes one hour. the script also has a spool statement as it has to log its output. Is it that spoling that may be causing this?
    Thanks again,
    Edited by: orausern on Jan 18, 2010 7:09 AM

  • My Ipod touch has an all white screen, what does that mean? I can't see anything.

    My Ipod touch has an all white screen and

    If not successful, Try the remaining items of:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Unresolved kernel ... weird error screen - what does it mean?

    My Powerbook just crashed with vertically scrolling black-boxed lines of text reading "Unresolved kernel trap", or something similar (I turned it off before making a note of it foolishly).
    Can anyone tell me what this means? Does this spell imminent death for my Powerbook?!
    Any advice much appreciated, thank you!

    Doesn't sound fatal!
    Re-start from your system CD and repair permissions. If that fails I would try Disk warrior.
    Questions: have you up dated any part of the system or applications?
    Did you have any new applicance linked to the Mac?
    If you have updated and you get the Mac started again try a combo update - this often works better.
    Good luck
    Colin

  • 824c1800 displays on printer screen, what does this mean?

    I have an HP PHOTOSMART C5580 all in one printer that is displaying this message:  824c1800.

    When your printer gets an alphanumeric code error it usually means that you have a hardware issue. I am including a document that may assist.
    Alphanumeric Code

  • I have older ipod and there is a upset ipod character and an eclamation point on the screen. what does this mean

    I need help getting my older ipod fixed and working.

    Hello.
    Certain types of software can affect the way a computer sends and receives information from the Internet. This article may help you resolve the issue:
    Information about error -50 and downloading videos
    http://support.apple.com/kb/TS1583
    If it did not work, contact iTunes Store via (http://www.apple.com/support/itunes/store/) and/or Apple Tech Support via 1-800-275-2273.

  • Function Key problem in GUI Screen

    Hi,
    I am trying to add a button in an existing GUI screen (earlier copied from standard GUI status). When I am trying to add a button in the application toolbar, its showing me the following error.
    Function code &REJ has not been assigned to a function key 
         Message no. EC181                             
    When I am trying to create a button for the same scenario in IDES its working properly...
    Please let me know what to do.
    Thanks in advance.
    Regards,
    ravi.

    Hi,
    have you tried to assign function key to your new button? You can see all assignments in Utilities -> F key consistency. You can assign you new button to any free function key on your screen.
    Cheers

Maybe you are looking for

  • Parent / Child Groups in Portal with LDAP

    Heya, we are using EP 7 on SP 10 (NW 7), for User Authentication we use the UME with a configured (writable) LDAP Server as backend with a flat hierarchie. We have a Federated Portal Landscape with 3 Portals connected to one "main" portal and using R

  • OAF Extensions Vs Form Personalizations

    Dear all, I have a form where a lot of personalizations were done. Now i need to apply the same personalizations to a OA PAge. The following are the type of Personalizations done on the form: 1) Update not allowed for some fields on the form, for a r

  • Pages, CocoaBooklet, Printing

    I am having trouble with fonts printing blurry after converting a pages document into a booklet. The trouble is that it is seemingly random. It's not always the same place on the page and can even stop mid-sentence. It looks normal both in Preview (w

  • RM07MLBS

    Dear all,      I am using report RM07MLBS to get the stock on hand for materials that have special stock indicator E. When checking the outcome I find some strange results. I find out that there is a stock on hand for a certain material - sales order

  • Keyboard in spanish

    Hello, I want to buy a Mac Book Pro. But I need the keyboard in spanish. How should I do to order the Mac with this keyboard? I need a keyboard with "ñ"!!!!!! On the site, I have reeden about the backlight keyboard, but I didn't understand what thas