ABAP - CASE STATEMENT - How to get out of WHEN statement??

Hi ABAP experts,
I am implementing an User exit related to inbound Sales order.
All my IDoc contain,  E1EDP02 001
                               E1EDP02 002 segments.
Case w_e1edp02-qualf.
when '001'
clear lv-tabix.
lv-tabix = sy-tabix + 1.
Read int_edidd into wa_edidd index lv_tabix.
if wa_edidd-segnam = 'E1EDP05'
if wa-e1edp05-qualf = '002'  " Always this is giving the current segment data. when i debug, it is showing QUALF = '001'. What should i do here to get the next segment data.
EXIT.
else.
<statements>.
endif.
when '002'.
<statements>.
endcase.
Can anyone tell me what should i do in the first WHEN statement to check the next segment qualifier.
Thanks and Waiting for your answer.
Regards,
Creasy Matt

ur question is not clear...
Case w_e1edp02-qualf.
when '001'
clear lv-tabix.   
lv_tabix = lv_tabix + 1.   "seems u want to loop wa_edidd
Read int_edidd into wa_edidd index lv_tabix.
if wa_edidd-segnam = 'E1EDP05'
if wa-e1edp05-qualf = '002'  "            "is it the correct work area????
EXIT.
else.
<statements>.
endif.
when '002'.
<statements>.
endcase.
i think u can do like dis...
Case w_e1edp02-qualf.
when '001'
LOOP AT int_edidd into wa_edidd .
if wa_edidd-segnam = 'E1EDP05'
if wa-edidd-qualf = '002'           
EXIT.
else.
<statements>.
endif.
ENDLOOP.

Similar Messages

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • Cant Figure out how to get out of App's like Twitter

    I just got my new Q5 (Traded in Curve)  \i figured out most of the phone but have not been able to figure out how to get out of App's like Twitter or any browser Apps once \i am in there.  I used to have the nice little "back button" on the Curve but no more Back Button on this one  Ive tried swipping every which way but loose with no luck.  Even when I am in my photos, I can figure out how to go back to the main menu (other than to turn the phone off and turn it back on)   Is there a Back button somewhere or is my phone just not working right.  please help
    Solved!
    Go to Solution.

    Hello tomanator
    To close app, swipe up from the bottom of the screen, and tap X at bottom right of each app.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • How to get out of full screen mode in Firefox 4?

    How to get out of "Full Screen Mode" in firefox 4 ?

    Pressing the F11 should do it.

  • How to get out of recovery mode in ipod touch 4thgen?

    Hello Apple i am rohith. iam having ipod touch 4th gen. it has ios version 4.1. recently i tried to update it, i have downloaded the update also but while installing an errour has occured and it has gone to recovery mode. can u please give your answer how to get out of recovery mode. it has some imprtant notes belonging to my office

    Without knowing what the error message said:
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer          
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • How to get out of for loop in eclipse debugging

    How to get out of for loop in eclipse debugging for java classes ?
    I am in a for loop in a code. i want to get out of it ...but how ?

    is changing the behaviour of a running class like that really going to be any use for debugging? what's the actual problem?

  • Computer password doesn't work! How to get out of this ****! Cannot install apps!

    computer password doesn't work! How to get out of this ****! Cannot install apps!
    I am not talking about appleID of course!
    Must I reinstal the system?

    OS X: Changing or resetting an account password
    Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
    Change the Admin Password with Mac OS X Single User Mode
    Reset mac mini admin password: Apple Support Communities

  • My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?

    My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    kevinpowell1 wrote:
    how can i get it out of recovery mode?
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    If the issue persists...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • How to get out of recovery mode iphone 3gs ios4.3.5

    please can any help on how to get out of recovery mode iphone 3gs ios4.3.5

    Reset, hold both Home and Power buttons until the iPhone restarts.
    If still in Recovery Mode, Restore in iTunes. If the iPhone Errors, write down the Error Code so you can look up the cause and solution.

  • How to get out of demo mode on ipad2

    how to get out of demo mode on ipad2

    Did you erase it and restore it as a new iPad after you bought it? If not, I would do that first and see if that helps.
    ~Lyssa

  • How to get out of recovery mode? (urgent)

    how to get out of recovery mode?

    You iPod encountered an error and has to be restored.
    Maybe a data recovery company can help get the info back..
    Also,
    - Maybe via How to perform iPad recovery for photos, videos
      Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official

  • How to get out of recovery mode iphone 4

    how to get out of recovery mode iphone 4

    Plug it into your computer running iTunes and restore it.

  • HT4061 how to get out of restore mode

    how to get out oif recovery mode

    Have you worked through both of these kb's?
    http://support.apple.com/kb/HT1414
    http://support.apple.com/kb/HT1808 (particularly point #6)
    What do you see on the device screen?

  • Why does my Imac screen slide and I lose my screen?  It goes back to my desktop.  Then sometimes my screen goes to full screen and I don't know how to get out of it.

    Why does my Imac screen slide and I lose my screen ~ It goes back to my desktop.
    Then sometimes my screen goes to full screen without me doing any commands, and I don't know how to get out of it without going to force quit and starting all over. 

    Hi,
    When it goes full screen try moving the mouse up to top right of scren & see if there a double diagonal Arrow to click on.
    On the other see if it's the silly implentation of Spaces/Mission Control/Expose in ML...
    https://discussions.apple.com/thread/4298411?start=0&tstart=0

  • Accidentally in factory setup, how to get out?

    Hi,
    I was travelling today, when I went to turn on my A1000 it went in to factory set up, any idea how to get out without losing data?
    Thanks
    Jim
    Solved!
    Go to Solution.

    hi Jim,
    Is the recovery screen similar to these pictures?
    - Link to picture
    - Link to picture
    If it is then you just need to select "Normal Boot" (1st picture) or "Reboot System Now" (2nd picture) to get out and boot into the OS without losing data.
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for