Help needed in screen flow

hi every one
i have a screen with a mandatory field
when i click in 'BACK' it should not leave the screen because the field is mandatory.
when i click on 'CANCEL' it should come out of the screen.
and when i click on 'EXIT' it should come out of the screen.
how to code all these three conditions in my program.
vamsi

hi,
i have a screen with a mandatory field
when i click in 'BACK' it should not leave the screen because the field is mandatory.
when i click on 'CANCEL' it should come out of the screen.
and when i click on 'EXIT' it should come out of the screen.
how to code all these three conditions in my program.
in pbo event
loop at screen.
  if screen-name =  'text field name'.
      screen-input = 1.
modify screen.
endif.
endloop.
in pai event.
data: ok_code like sy-ucomm.
ok_code = sy-ucomm.
case ok_code.
when 'back'.
            leave to screen 200. [going one screen back]
when 'exit'
         'cancel'.
              leave screen 0 or leave program. [back from all screens]
endcase.
if helpful reward some points.
with regards,
suresh babu aluri.

Similar Messages

  • Help needed for SD Flow

    Hi all,
    I am new to SAP & I like to learn the SD flow,  basically i am a abap developer(I am not from MBA background so i dont know any business related information).  Is it possible for me to learn SD flow.
    Because if i know the SD flow then i can easily do coding according to the business perspective. 
    Can anyone help me on this???  What are the things i should do to learn SD flow.
    Thanks n advance,
    Vichu

    Hi,
    MBA is not necessary to understand the business process.To learn SD just we have to understand the sales process first.
    This is the main part in SD.And many other modules are also linked in this such as MM,FI etc..
    The SD process starts with Inquiry.
    With reference to that inquiry,we are going to create the quotation.
    Next thing is creation of sales order,Delivery,Picking and packing(optional),PGI and billing.This whole process is part of SD.Next step is paying that amount.This is related to FI.But we are going to do this process.
    First we have to create a customer by using the T.Code "XD01".Prior to this we should be aware of the organisational structure.It is the very basic point in SD.It includes creation of company code,sales organisation and sales area etc...
    While creating the custoemr we have to create in our company code and sales area.I hope you are aware that sales area is nothing but the combination of sales organisation/distribution channel and division.
    Next primary step is to create a material master.For all these which fields have to be enabled and which are not are going to be customized.
    Coming to sales order,this order type is defined by using the T.Code "VOV8" and creation is done by using "Va01" T.Code.
    Here order type is the most important element.We can create our own order type.
    Next thing is for providing authorisation for different T.Codes,we need help from our Basis people and ABAPer will help us to meet our business requirements if standard settings are not available.
    My suggestion is first start with Organisation structure and try to understand that part.Later move to order and delivery.
    First try to understand these concepts.
    I am going to suggest you a good book to learn SD.That is "Glynn C Williams".
    Pls go through these concepts.You will get some idea.This book is written in very simple terms.You will understand very easily.
    Later know some concepts of Billing and payment.
    Regards,
    Krishna.

  • Help needed in funds flow report

    hi anybody worked on funds flow in FI...can you send some sample programs or Specs if possible

    please anybody worked on funds/cash flow...help required

  • HELP NEEDED IN SCREEN EXIT

    hi,
    i'm trying to add custom fields in XD01.. we have 6 tabs in the second screen in XD01.. it should come as 7th tab..
    for this in the PREPARE MODIFICATION-FREE ENHANCEMENT OF CUSTOMER MASTER RECORD in SPRO, i have created one screen group 'Z1' and inside that screen group i have passed parameters NUMBER : 7, and FCODE : ZNEW
    and i have implemented the method 'CHECK_ADD_ON_ACTIVE' in the badi 'CUSTOMER_ADD_DATA' writing the following code :
    IF I_SCREEN_GROUP = 'Z1'.
    E_ADD_ON_ACTIVE = 'X'.
    ENDIF.
    but in the second screen in XD01, i found that tab is not getting displayed.. wht could be the problem..
    thanks

    HI,
    IF I_SCREEN_GROUP = 'Z1'. i think it should be Z1 without codes.
    E_ADD_ON_ACTIVE = 'X'.
    ENDIF.
    HERE remove the codes for Z1
    hpoe it will help you.
    regads,

  • Help Needed with Work Flow

    Hi all
    I am very new at this. I got a new task to fix an existing Work Flow. The portion that needs to be fixed is: it shoots an e-mail to get approval when a changed rate is greater then its Standard rate. Now the problem is there are multiple standard rate for a single entry. So we need to pick the lowest one from all the entry for that record.
    So I need to insert a loop where it picks the standard rate. but i can't figure out how to tell the loop to end when there are no more standard rate for that record and also pick the minimum one.
    I am not sure these description is enough or not.
    If not please let me know what else you need to know.
    thanks

    Anyone? Bueller?
    Ah well, I knew that I probably was cutting into some newer territory here...
    Once I get it figured out, I'll post what I've learned about this activity for everyone to share.
    Cheers,
    Mike

  • Please help needed with Screen Sharing

    I've been using Leopards screen share successfully on my MBP, connecting to my iMac ever since Leopard was released.
    Now it connects, but the screen just flashes and I can't do anything. When I watch my iMacs screen the sharing icon on the menu bar is also flashing. So it looks like the sharing session is connecting and disconnecting rapidly.
    The firewall is open to all connections on both computers. I even tried re-formating my MBP, it fixed the problem for 2 days and the problem came back again.

    Hi, I've also been having this problem since I upgraded to 10.5.6 on my machines. Before the upgrade, it was rock solid. Now when I connect, it flashes and drops, then starts over again.
    I just discovered a way to get the connection to stay - TURN SCALING OFF
    In my case I have a G5 with two screens attached. When I turn scaling off, it still drops the connection once, but then starts working fine.
    Hope this helps you.

  • Help needed in Screen variants

    hi all,
    i have craeted a screen variant ...but how do we activate it.
    i used this function mod  RS_HDSYS_GET_SC_VARIANT..
    and it returns nothing .....
    does this means that my screen variant is not active
    please advice
    thanks
    srinivas

    sorry posted in the wrong forum

  • Help needed in Screen variant for va11

    hi all,
    i have craeted a screen variant ...but how do we activate it.
    i used this function mod RS_HDSYS_GET_SC_VARIANT..
    and it returns nothing .....
    does this means that my screen variant is not active
    please advice
    thanks
    srinivas

    Did you get an answer to this or Have you figured it out because I am currently not getting anything back either for the FM I put into one of our custom Z programs.

  • Help - need a screen saver effect in j2me

    Can someone please guide me, how I can create a screensaver in j2me.
    It Should be similar to the one in windows....
    Thanks

    You can't make a regular MIDlet into a screensaver, because:
    * On most phones you can't autostart a MIDlet when you turn on the phone (something a screensaver would need to do).
    * On most phones you can't run MIDlets in the background.
    * Even on the phones where you can run MIDlets in the background (like Symbian smartphones), if the MIDlet is in the background you won't be able to receive any keypress events.
    There might be some phones that have special ways to create screensavers (some might even be created with Java, I don't know), but these are not your regular MIDlets.
    shmoove

  • Some help needed with Screen sharing.

    Ok, so I am trying to set up screen sharing with a friend and I had a couple questions.
    1. If I am running Lion and my friend is Running Snow Leopard, is this possible to do?
    2. How will he connect to my computer for screen sharing? I have set up port fowarding on my router to my computer on port 3283.
    3. How will i connect to my Friends Computer?

    I would prefer to use the built in Screen Share abilitys in Mac OS X but I might look into it. However, as this is just something me and my friend will use every once in a while I do not want to download a whole bunch of software.

  • Help needed-white screen of death while attempting to migrated files from imac to macbook

    Using the migration program on my macbook (about a month old), I rebooted my imac (about a year old) while pressing down the 't' key.  Instead of rebooting and bringing up the firewire symbol, I got the white screen of death.  Thankfully, I have gotten the imac working again (except I can't get it to recognize my wireless mouse)…but am afraid to try the migration app again for fear of having the same problem and doing irreperable damage......any suggestions for what went wrong the first time and what I should do differently?  Also, any ideas on how to get it to recongize my mouse? It has recongized my keyboard with no issue.

    Download at www.memtestosx.org
    Power on your MBP while holding down the Command and S keys to force Mac OS X to boot into Single User Mode. Once you see a black screen with white text, you can release the key combination. After all the system logging is done scrolling past, type 'memtest all 2' (without the quotes) to test all memory two times. Two passes should be enough to detect any blatant problems, but I wouldn’t hesitate to let it run for hours on end if I suspected an intermittent memory problem (memtest all). When complete, you should be greeted with “All tests passed” if your RAM is in good condition. If your system locks up or freezes indefinitely during the test, you may have a bad memory module on your hands.
    (above taken from www.command-tab.com)

  • Help Needed - White Screen and that's it.

    Okay so I accidentally left my MBP on sleep while in my bag the other day (I was going to use it again that day but never) and apparently the battery had died while in there. Currently it's on about 3 out of the four green lights on the bottom and everytime I try to switch it on, I get the white screen prior to the apple logo appearing, the startup sound and then that's it. The light is just normal as it would be if it was on, which makes me think it's not a RAM issue.
    Any suggestions?

    Sooo, update on the MBP front. It's still doing it and now coming up with a flashing folder, think I already said that. Anyways, I've ran Disk Utility, everything is apparantly fine and I dont know what I ran, but It was something to do with mounting, I could still browse through everything on my HDD so I'm assuming everything is still there Which is good. I just dont have a clue why it wont start up lol.

  • URGENT HELP NEEDED: iMac screen suddenly going half dark?!

    Hi..
    So earlier tonight I was using my iMac perfectly, then had to stop since I was going out with friends for dinner and to see a performance and when I came back, shook my mouse awake my screen came back on from it's sleep mode and was fine and then the top half dimmed.
    I tried messing with the lighting because I thought maybe my roommate's cat may have stepped on it, but it was at 100%. I rebooted, turned it off for 5 minutes then turned it on again and it comes on fully lit for a split second then dims at the top again. It's not black, but you can see that the screen has dimmed a lot. I'm attaching a picture, hopefully you can tell what I mean. It's a kind of crappy phone pic but that's all I have right now.
    I bought this iMac in May 2007, so I doubt I have any warranty left and I can't remember or find paperwork to see if I bought apple care protection.
    Does anyone know what this could be? I've read on another forum that it might be a back light going out. Any idea how much that would cost me?
    Thanks!
    Message was edited by: CallyKhS

    Well, some questions ?
    I'm just another user and no expert, but:
    *Might not want to shut it down until you have backed up your data, First!*
    1.) Does everything else run good? --if "beach balling" badly, call an expert and I wouldn't shut it down or sleep it.
    2.) Is there a hardware test you could run? --each version of OSX generally has something like disk utilities you can run. Try apple's downloads page for useful 3rd party utilities, assuming you can run them o.k. and everything "seems" fine except for screen.
    3.) Do you have it plugged into a surge protector? --sometimes they get used up. You could (after verifying hardware and preferably backing up data) try it on another wall socket in another room, to check electrical viability. You might have a bad or dangerous wall outlet. If the wall gets really hot above the outlet, have it checked out immediately. Houses burn down every day from bad outlets and old aluminum electrical wire. (lol, I'm not saying anything bad about your house.....just trying to cover the basics).

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Help need my mac pro for school..it has Grey screen..spinning wheel...repaid disk ok...repair disk permission all repaired but one warning...

    Help need my mac pro for school..it has Grey screen..spinning wheel...
    I think I have  mountain lion OS X....I have done I think almost every suggestion I've seen in discussion boards.
    Boot in recovery repaired disk...ok...repair disk permission...all repaired but one warning...I've tried to reinstall lion (without losing data) and it Got all the way to one minute to be done and then the time change back two hours and kept doing this all night long.  I haven't done a back up due to no external for time machine.
    I hope someone can please help me I've been going crazy for a week now trying to figure this out.  I use my computer for school and I'm currently very behind from in my school work  thank you
    Also I've checked my available space  424.91 free of 750 gigs....disk is verified

    Welcome to the Apple Support Communities
    Try holding the Shift key while your Mac is starting to start into safe mode. Then, after starting in safe mode, open Finder, select Go menu (on the menu bar) > Go to Folder, and type /Library/StartupItems. Then, empty this folder and restart the Mac.
    If your Mac starts after doing this, it was a problem with a third-party app that starts automatically when you turn on the computer. It won't start automatically anymore after doing that

Maybe you are looking for