Stop a transaction if conditions dont satisfy.

Hi Sap gurus,
I am coding a user exit for Purchase Order screen where i select purchase REQ
some Purchase REQs having no Release strategy, are also being allowed to be
selected .I found the user exit and now , my question is if the condition dosent
satisfy i want to give an error message and block the purchase REQ , I was also wondering
if there was a command to exit the transaction , we use Call transaction 'T-code' to call the transaction
so is there a command to exit the transaction  ?

Hello Raghav,
If the condition is not satisfied then do like this.
IF SY-SUBRC NE 0.
message A319(01) with 'Transaction is exiting out'
ENDIF.
Hope this will helps you.
Cheers.
Vasanth

Similar Messages

  • My traffic conditions dont show up on the notification even when it is turned on - ios 8

    my traffic conditions dont show up on the notification even when it is turned on - ios 8
    I have tried hard resetting. I had a similar problem with the weather but got that resolved now. Any ideas on how to fix?
    Thanks

    I'm having the same problem on my iPhone 5s. Traffic conditions are not even a option under edit, but weirdly my wifi iPad Mini Retina shows traffic conditions. I feel like I'm missing some option, but I can't figure out what it could be.

  • My traffic conditions dont show up on the notification center even when it is turned on - ios 8

    my traffic conditions dont show up on the notification center even when it is turned on - ios 8
    I have tried hard resetting. I had a similar problem with the weather but got that resolved now. Any ideas on how to fix?
    Thanks

    I'm having the same problem on my iPhone 5s. Traffic conditions are not even a option under edit, but weirdly my wifi iPad Mini Retina shows traffic conditions. I feel like I'm missing some option, but I can't figure out what it could be.

  • Stop a Transaction from a BAdI

    Hi guys, I'm using Ecc 6.0 here,
    In Transaction ME41, when you register the vendor for RFQ (request for quotation), a few Badis are triggered, inside the badi, when I see that there is no e-mail for that vendor, I need to prevent the transaction from registering the vendor, I already  tryed rollback work but didnt worked.
    Which is the right way to stop the transaction from a badi?
    Thank you,
    Roberto

    Hi Roberto,
    Perhaps overkill, but giving a message of type 'A' will certainly do the job.
    Regards,
    John.

  • My iphone 5 camera suddenly stop working and the shutter dont open after some minutes shutter open with some dolor stripes and it takes 2 or 3 days and again start working normaly it happens every 3 weeks.is this a soft ware problem??

    my iphone 5 camera suddenly stop working and the shutter dont open after some minutes shutter open with some dolor stripes and it takes 2 or 3 days and again start working normaly it happens every 3 weeks.is this a soft ware problem??

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
     Cheers, Tom

  • HT3702 Please help. My child just made a purchased on our new mini iPad that I did not approve. How can I stop this transaction?

    Please help. My child just purchased a game without my consent. How can I stop this transaction .

    To Apple all sales are final. The fact that your child has the password to make a purchase implies consent.
    Apple sometimes gives one-time refunds. Is this a large enough purchase to use your possible one-time refund?
    When the receipt arrives in your email for this purchase use the Report link to start a conversation with iTunes Support about a refund.

  • IOS 8.0.2 installation.  Stops after agree to conditions.  Then stuck in General Settings and have to turn off my phone.

    IOS 8.0.2 installation.  Stops after agree to conditions.  Then stuck in Settings General and have to turn off my phone to get out.
    Help.

    Hello bobwa002,
    It may help to reset your iPhone.
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    If you're still unable to proceed, the next step would be to restore the device.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Cheers,
    Allen

  • How to stop a transaction in Portal?

    Hi,
    I am using an iView based on a web dynpro ABAP application to create notifications (like transaction iw21). I want to know if there is some way to stop the transaction on Portal, just like we can do in R3.
    When the processing icon is being displayed on the iview, can we comeout of the application? What are our options?
    Regards,
    Deepa

    yeah, thats wht i was wondering..bt the problem is when the processing is on in the portal iview (like user saved or searched an equipment), no other event is recognised....Neway, thanks Michael for your answer.

  • How can i stop my abo if i dont whant to continue

    Hallo Friends!!
    I think about to get an CS6 abo at the beginning fore one year how can i stop this abo if i dont want to continue after that year???
    Thanks fore your help
    Friendly Klaus Soerensen

    Manage your membership and payments | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html

  • When i sync my iphone5 on my computer with itune the last part does not stop sync download safari i dont know why is not sync and i cant stop it i am try to download some song and this thing cant stop sync help?

    when i sync my iphone5 on my computer with itune the last part does not stop sync download safari i dont know why is not stop sync and i cant stop it i am try to download some song and this thing cant stop sync help?

    Hi,
    /Users/sarahschadek/Desktop/Safari.app/Contents/MacOS/Safari
    Move the Safari app from the Desktop to the Applications folder.
    Restart your Mac.
    That's why you see this:
    When I try to do the updates my computer says it has ready it goes through like it is downloading them then at the end it says some of the files could not be saved to "/" files.
    After your restart your Mac, click the Apple  menu (top left in your screen) then click:  Software Update ...
    Carolyn  

  • Linked Server : SQL 2012 to 2000 error - Microsoft Distributed Transaction Coordinator (MS DTC) has stopped this transaction.

    Hi all,
      If any one has worked around this error and can help ?
    Msg 8522, Level 16, State 3, Line 1
    Microsoft Distributed Transaction Coordinator (MS DTC) has stopped this transaction.
      I am trying to connect from sql 2012 to 2000 server. Established linked server using native client 10. I am able to see catalogs and database and table. Just when I am trying to query i am getting above error. 
    any help is really appreciated. 
    Thanks
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach

    Hi Logicinisde,
    What the new error message do you get after using the workarounds in this
    blog? Please post it for analysis.
    Besides, as SQL Server 2012 has stopped connecting to SQL Server 2000 via linked servers, personally I recommend you upgrade SQL Server 2000 to a higher version to make your queries or ETLs efficient.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to stop the transaction in a server override

    Hi,
    I have created a server override S_TieFolder. In the extendedPostAddItem method I call a database procedure. This procedure returns a boolean value (success : true/false). When the procedure returns the false value, I want to stop the item from being added to the folder. How can I do this ?
    (Normally, I would raise an exception but the extendedPostAddItem method only throws IfsException : is there an ifsexception I can use in this case and does raising an exception create the effect I want (i.e. prevent the item from being added to the folder) )
    Any samples, comments or ideas are welcome !!!
    Bob Marien

    In FBZP Transaction > Bank Determination > Value Date enter 1 in the "Days to Value Date" field.
    Award me points if found useful.
    Thanks
    Regards
    P.Satish

  • How to print the value if a condition is satisfied

    Hi,
    Please suggest me how to print a text as 'Do not print' when a field in the selection screen is entered.
    If in the selection screen (s_field1) we have  entered a value as ZESM then the value filed of
    wa_vbak-auart should check the the values in s_field1 then it should just print the text "'DO NOT PRINT''.
    we have written the folowing code, but the condition is not working.
    DATA: V_FIELD1 type z_field1. "(zdata element).
    ranges: r_fIELD1 for v_field1.
    SELECT-OPTIONS: S_field1 FOR v_field1 default 'ZESM'.
    loop at s_field1.
        r_field1-sign = 'I'.
        r_field1-option = 'EQ'.
        r_field1-low = s_field1-low.
        append r_field1.
        clear r_field1.
      endloop.
        if wa_vbak-auart in r_field1.
          wa_final-v_text = 'DO NOT PRINT'
        else.
          wa_final-v_text = ' '.
        endif.
    Please suugest what can be done.
    Thanks in advance

    Hi,
    if wa_vbak-auart in r_field1.
    wa_final-v_text = 'DO NOT PRINT'
    else.
    wa_final-v_text = ' '.
    endif.
    Have you writtent he above code with in loop enloop on the internal table.If yes then simply add append statement after assignment.
    if wa_vbak-auart in r_field1.
    wa_final-v_text = 'DO NOT PRINT'
    append wa_final into it_final.
    clear wa_final.
    else.
    wa_final-v_text = ' '.
    append wa_final into it_final.
    clear wa_final.
    endif.
    Hope this will solve your problem.
    Pooja

  • Cross selling stop when find a condition type

    Hi everyone,
    I'm trying to use cross selling to bring a pop up window and the user can select the material, the fields that I'm using are sales org, distrib. channel, division and material group, I already performed all the configuration and when I create the sales order the pop up window only show one material because found a condition type in the access sequence and is not performing the following validation...somebody know what could be happening?
    Thanks in advance
    Regards
    Manuel

    Hi,
    you can use cross selling. When you create entries for condition CS01 (standard condition for cross selling) for a material, you start entering all materials that could be sold with that material. To do so, double click on the material and you’ll able to add additional ones and quantities. You can use a single acces sequence for condition CS01.
    When creating a sales order, a pop up will appear and you can select the materials you want to cross sell by entering a quantity in the pop up (if no quantity, they’re not copied).
    Regards,
    JM

  • Why does my firefox all of a sudden stop downloading data? websites dont load on it anymore...

    im in aus, my net admittedly peaks and slows down alot, and at its best its still way behind 99% of the people on this forum. The times it refuses to load new pages and sits on 'connecting' is very frustrating and it cant be on my end because if i enter the same url's in IE it loads straight away. If i check my net conection status while this problem is occuring, i notice im only uploading/dling a tiny trickle of info at a slow rate, yet this instantly goes away when i start using IE.
    I've only started having problems with it a few days ago, do i need to reinstall firefox or something? i much prefer firefox over chrome or IE dont make me go back to them! ><

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 256 to 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites

Maybe you are looking for