Condition Triggers even if SY-SUBRC is made 4 inside the req. routine

Hi Experts,
I have Z condition type which triggers automatically based on the condition records.
Now we have added a Requirement->Pricing->Routine in which we are making sy-subrc = 4 based on some condition.
However I see still the condition is triggering (Not ignoring the condition even if sy-subrc = 4 inside the routine).
Even I have tried both KOBED and KOBEV routines..
Any suggestion where I am going wrong?
Thanks
Kumar

hi,
normally this is global variant which is set tobe 0 if the statement is executed successfully.
you can sit with an TECHNICAL PERSON abaper because he will debugg and see what went wrong.
regards,
balajia

Similar Messages

  • Condition triggers even though SY-SUBRC = 4 in the routine

    Hi Experts,
    I have Z condition type which triggers automatically based on the condition records.
    Now we have added a Requirement->Pricing->Routine in which we are making sy-subrc = 4 based on some condition.
    However I see still the condition is triggering (Not ignoring the condition even if sy-subrc = 4 inside the routine).
    Even I have tried both KOBED and KOBEV routines..
    Any suggestion where I am going wrong?
    Thanks
    Kumar

    However I see still the condition is triggering (Not ignoring the condition even if sy-subrc = 4 inside the routine).
    Not possible - your code is not correct - if you'll post it then it will be easier to determine why.  If you would debug past the routine as well, you'll see why...

  • When Creating Credit memo pricing formula gets triggered even if pri typ D

    Hi gurus,
    We have a copy control set up from billing doc to credit memo doc with all the item catergories pricing type as D (Copy pricing elements unchanged ). We have a discount condition in pricing procedure which is set to statistical based on a condition base formula.
    When I create a credit memo all condition are copied from billing document but the discount condition is set to statistical, which in term throws off the further calculations.
    I found out that this is happening because the condition base formula is getting executed during copy and discount condition get statistical.My understanding was that ,making the pricing type D should not even touch the formula,it should copy conditions as it is.
    Have anybody seen this issue before , is there a way to control it ? Or this is a SAP bug ?
    Please respond,below is the excerpt of our pricing procedure in billing and credit memo
    Billing doc pricing :
    ZVEN Vendor List Price 135,00
    ZVDC Vendor Discount 50,000-    -
    >    not statistical
    Customer Discounted 67,50
    Credit memo pricing :
    ZVEN Vendor List Price 135,00
    ZVDC Vendor Discount 50,000-    -
    > statistical
    Customer Discounted 135,00
    Thanks in advance for your help...
    Swapnil
    Edited by: Swapnil Santosh on Oct 6, 2008 4:09 PM

    Hi Swapnil,
    I dont thik its an SAP bug. In order to answer your query, we need to understand further more on the issue,
    1) IS ZVDC defualted to statistical in the pricing procedure ? or are you explicitly putting to statistical based onthe condition base formula ?
    2 ) if you are putting as statistical explicitly then we need to check the logic in the base formula. Probably you are filtering the document type or category in the logic?
    Can you send me the logic, in the base routine, ?
    sit with an abaper and try to debug the routine.
    the routines should definetly be called even if you are copying.
    the indicator D just copies the unit price thats it, the condition value is calculated from the routines only,
    i feel there is some thing in your routine which needs to be corrected.

  • I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new A

    I downloaded a new APP to my iPhone it appears on my screen but can't get it to appear on my wife's iPhone screen.  Her screens were initially full of Apps, I later made room for the new APP but can't get it to appear even after  making room for the new APp.  It can be opened, but I want the APP to be on her iPhone screen as well as on mine.  Help, please.

    Is the app downloaded on her phone also?

  • PO Output message triggering even when it is on HOLD status

    Heelo SAP Gurus,
    I have come across a issue where the PO output message is triggering even when the user puts the PO on HOLD status.
    It is happening randomly i.e,not for all POs.
    Plesae guide me on this
    Santosh

    hi
    check your customizaton setting for the output type triggering event also settings

  • I made the purchase association for more than a week, but even having already received confirmation of payment and the invoice , I can not use the application . I am being told I do not have no purchase on my name

    I made the purchase association for more than a week, but even having already received confirmation of payment and the invoice , I can not use the application . I am being told I do not have no purchase on my name. What i must to do ?

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page

  • HT5312 What if "Forgot your answers?" and option to use rescue email wasn't even present? Apple has made this process way too complicated!

    What if "Forgot your answers?" and option to use rescue email wasn't even present? Apple has made this process way too complicated!

    Welcome to the Apple Community.
    Start here, and reset your password, you will receive an email with your new password, then go to manage your account > Password and Security and change your security questions.
    If that doesn't help you might try contacting Apple through iTunes Store Support

  • Ripped a CD to iTunes, it is showing up in "My Music" but when I sync with my 80gb Classic the ripped CD is not syncing even though other changes I made are

    Ripped a CD to iTunes, it is showing up in "My Music" but when I sync with my 80gb Classic the ripped CD is not syncing even though other changes I made are
    Have checked device sync settings and it is entire music library and their is plenty of space on ipod to accommodate - have restarted both itunes and the computer and disconnected and reconnected ipod to no avail.
    Running itunes on Window machine under W8.1 and ipod software is 1.12

    Thanks planb77. Your instructions worked but I had to do a little more than you stated. I did not realize that transferring files to a new computer was not enough. When the iPod synced I was told I needed to "authorize" my new computer to get my iTunes purchases to sync to the iPod. So after the initial sync, I ejected and disconnected the iPod, went into the iTunes store, set up "home sharing" and then authorized the new computer. When that was done I reconnected the iPod and was able to sync all my books and music. The only thing I couldn't do was rename the iPod as iTunes never asked me to. Is there a way to rename it after it has been set by iTunes as "owner's iPod"?

  • Mail not triggerring inside the condition.

    Hi,
    I am facing a problem when approving commercial validation through workflow
    I have created an condition and inside the condition i have added the send mail
    the email is sent if i put it outside the conditions
    but if i put inside the conditions.. in the log and in the technical list
    it shows status that mail sent
    but when i see the log in the SOST transaction
    it shows an grey icon with an status message 672 (no data to send in the que)
    can anyone guide me,  what would be the problem..
    Thanks & Regards
    dhinesh

    dinesh,
    technically a condition should not have any impact on the execution of send mail step except for that the condition should be satisfied for that branch.
    try the following steps to find the problem
    - check the binding of send mail step
    - moreover instead of sending external mail try to send to sap inbox

  • Even when I charge my Mac Pro to the full bar, the battery seems to be drained even when I am not using it. Example, after charging it full, i switched it on the next day and its 79% battery left. Is there something wrong? help please

    Even when I charge my Mac Pro to the full bar, the battery seems to be drained even when I am not using it. Example, after charging it full, i switched it on the next day and its 79% battery left. Is there something wrong? help please

    Assuming you are disconnecting from line power, when you say switched on, do you mean it was shutdown or in sleep mode?  If sleep mode the battery will still drain because sleep still keeps some things active and the battery does drain a little.  However, to go from 100% to 79% charge overnight is a bit excessive in sleep mode.  Unless you have some processes set to activate over night by the cron file and do things like backup the system.
    What are the statistics on the battery, the apple in the upper left corner, About This Mac, More Info, System Report, Hardware, Power...things like battery Condition, Capacity, remaining charge, voltage, current.

  • Ios7 "Cannot Connect to iTunes Store". When I try clicking on the "Terms and Conditions" in iCloud, it first says "Cannot Connect" and then the following mes

    Hi, I have upgraded my iphone 4s to ios7 and now when I am trying to login to app store, it says "Cannot Connect to iTunes Store". When I try clicking on the "Terms and Conditions" in iCloud, it first says "Cannot Connect" and then the following message: "Verification Failed: the certificate for this server is invalid. you might be connecting to server that is pretending to be setup.icloud.com, which could put your confidential information at risk". My wifi is working properly as I have accessed websites from safari. I reset my network settings too and even reset my password. But none of these get my iphone working.

    I'm having the same problem with the iTunes Store...it much be down :(

  • I forgot the password of my restrictions and i cant even back up my ipod becuz i fotgot the password what can i do ?

    i forgot the password of my restrictions and i cant even back up my ipod becuz i fotgot the password what can i do ?

    Forgotten RESTRICTIONS Passcode
    - Restore from a backup that was make before you added the Restrictions passcode. If you restore from a backup made with the Restrictions passcode the Restrictions passcode is also restored.
    - Restore to factory settings/new iPod.                
    - If you are up to file manipulation see:
    How to reset forgotten Restrictions...: Apple Support Communities
    What do you mean by this: " i cant even back up my ipod becuz i fotgot the password"? Password for what?

  • Made changes in the Advanced Tab n want to revert back URGENT

    HI ,
    I somehow was trying something n made changes in the advanced tab SQL Issued section & added a where clase to it... & clicked SET SQL..
    later i removed the changes I made, but now the report doestn work as earlier.
    there are no changes in Criteria tab, how do i set it back to normal? how to i reset it?
    Thanks in advance...

    If you add a WHERE condition in SQL, then that column will apply in FILTER section of CRITERIA Tab.
    Make sure that filter was gone off, after resetting the SQL..
    I think you might be missing something in reverting the changes otherwise it wouldn't be a problem.

  • Pages asks to save changes when I close, even if I have done nothing but open the file??

    Anytime I close a document with Pages, it prompts me to save my changes (even though I have not made any changes to the document). If I click save and overwrite the original file and then immediately open it again, it still insists that there are changes and that I need to save again. Am I doing something wrong, or is this a bug?
    I have tried searching and can't find a definite answer. I have not printed the document or modified it in any way.

    Are you opening a Word or other 'foreign' file in Pages? When you do that, Pages makes a copy as a Pages document. Until you save it as a .pages document you will get that message.
    If all you want to do is view these files, a better choice would probably be to open them in TextEdit or to use QuickLook.

  • HT204053 When I try to login to my apple ID on my iphone 4 to use facetime, it will not work and tells me to check my connection?  I have even tried creating a new apple ID but the same message appears

    When I try to log onto my Apple ID to use facetime, it will not work and tells me to check my connection.  I have even tried creating a new apple ID but the same message appears.  I do not understand why this is happening, could anyone help me resolve this issue it is very frusterating that I can not enable facetime or imessage.

    I could do that, however when I select the icloud button (or whatever the heck it is) I am asked to enter the apple id and password. So if you are suppose to create another one for icloud you'd think it would give you the option at this point which would be logical.

Maybe you are looking for

  • Iphoto2: i have multiple i photo libraries. need help

    Hi everyone. When click into my "pictures" folder, i have two iphoto library folders (iPhoto Library) and (iPhoto Library_1). Does anyone have any idea why I would have two? They also do not appear to have the same exact contents. for example, under

  • Get a list of IDM roles in a workflow

    Hi, I have a workflow and I need to get a list of roles that are defined in IDM. How do you do this ? I know that in a form you can call: <invoke name='getRoles' class='com.waveset.ui.FormUtil'> <ref>:display.session</ref> </invoke> but I need to do

  • How do you unlock the iphone 4 that was brought from the UK to use in Turkey??

    I brought an iphone 4 from 3 UK and brought it to Turkey and paid 115tl to register it and 35tl to Vodafone for unlocking. But the phone has been saying no service for the last 2 weeks. Vodafone has told me there is nothing they can do and that i jus

  • Can´t connect to iTune Store, from my iphone

    This is my first time with an apple product, and my iphone does NOT allowed me to connet either App Store or iTune.... What can i do?

  • Tables/Cells/Background images

    Hello, this is probably a very minor issue but I am new to Dreamweaver so please bear with me (I am fairly technologically inclined and have a solid understanding of InDesign and Photoshop so I'm not a total beginner!).  I am trying to prepare an htm