Pricing requirement with three requirements

Hi,
I'm no developer, but have to create a pricing requirement. I created the one below, but it doesn't work.
I want some conditions only to be used if komk-vkorg = 1111 + komp-zzmtpos = DIEN + any of the defined item categories are used.
FORM KOBED_998.
sy-subrc = 4.
if ( komk-vkorg = '1111' ).
  if ( komp-zzmtpos = 'DIEN' ).
   if ( komp-pstyv = 'ZSQ1' ) or
      ( komp-pstyv = 'ZSQA' ) or
      ( komp-pstyv = 'ZSQC' ) or
      ( komp-pstyv = 'ZSQE' ) or
      ( komp-pstyv = 'ZSQF' ) or
      ( komp-pstyv = 'ZSM'  ) or
      ( komp-pstyv = 'ZS1'  ) or
      ( komp-pstyv = 'ZSA'  ) or
      ( komp-pstyv = 'ZSC'  ) or
      ( komp-pstyv = 'ZSE'  ) or
      ( komp-pstyv = 'ZSF'  ) or
      ( komp-pstyv = 'ZG2N' ) .
     sy-subrc = 0.
   endif.
  sy-subrc = 0.
  endif.
sy-subrc = 0.
endif.
ENDFORM.
FORM KOBEV_998.
ENDFORM.
Thank you for help!

i agree with Wolfgang Valtin
here is  piece of code that works for u ..
FORM KOBED_998.
sy-subrc = 4.
if ( ( komk-vkorg = '1111' ) and ( komp-zzmtpos = 'DIEN' ) )
and ( ( komp-pstyv = 'ZSQ1' ) or
( komp-pstyv = 'ZSQA' ) or
( komp-pstyv = 'ZSQC' ) or
( komp-pstyv = 'ZSQE' ) or
( komp-pstyv = 'ZSQF' ) or
( komp-pstyv = 'ZSM' ) or
( komp-pstyv = 'ZS1' ) or
( komp-pstyv = 'ZSA' ) or
( komp-pstyv = 'ZSC' ) or
( komp-pstyv = 'ZSE' ) or
( komp-pstyv = 'ZSF' ) or
( komp-pstyv = 'ZG2N' ) ) .
sy-subrc = 0.
endif.
ENDFORM.
FORM KOBEV_998.
ENDFORM.

Similar Messages

  • Side Bar Navation with three Quick Links Help Required

    Dear OAF Team
    Can you guide me
    we have to show the single page with side navation with three quick links(Employee Details, Salary details, Transfered Details)
    when ever we click the Employee details link we need to show emplyee details complete with same page
    when ever we click the Salary Details link we need to show Salary Details complete with same page
    when ever we click the Transfered Details link we need to show Transfered Details complete with same page.
    If any body having same code and page files please send me [email protected]
    Thanks
    Venkat Reddy

    Dear Reetesh,
    Am able to get the HTML Tab type But am not able to get the HTML Side Navigator Menu Type
    I developed two search pages
    1 Employee details
    2 Assignment Details
    Both information coming with Two Tabs in Home Page but my client want to show side Navigator Links
    Please find what i created Functions and Menus
    Function Creation Details
    Function Name : XX_EMP_SEARCH
    User Function Name: Employee Details
    Web HTML: OA.jsp?page=/xxtab/oracle/apps/per/selfservice/webui/XXEmployeeDetailsPG
    Function Name : XX_EMP_ASS_SEARCH
    User Function Name: Employee Details
    Web HTML: OA.jsp?page=/xxtab/oracle/apps/per/selfservice/webui/XXEmployeeAssignmentsDetailsPG
    Function Name : XX_EMP_HOME_FUN
    User Function Name: Employee Details Home Page
    Web HTML: OA.jsp?page=/xxtab/oracle/apps/per/selfservice/webui/XXEmployeeDetailsPG&OAHP=XX_EMP_ASS_HOME_MENU&OASF=XX_EMP_HOME_FUN
    Function Name : XX_ASS_HOME_FUN
    User Function Name: Assignment Details Home Page
    Web HTML: OA.jsp?page=/xxtab/oracle/apps/per/selfservice/webui/XXEmployeeAssignmentsDetailsPG&OAHP=XX_EMP_ASS_HOME_MENU&OASF=XX_ASS_HOME_FUN
    Standard Menu Details
    Menu Name : XX_EMP_STANDARD_MENU
    User Menu Name : Employee and Assignment Details Standard Menu
    Discription: Employee and Assignment Details Standard Menu
    Promite Name : Employee Assignment Details
    Submenu : Employee and Assignment Home Page
    Home Page Details
    Menu Name: XX_EMP_ASS_HOME_MENU
    User Menu Name: Employee and Assignment Home Page
    Menu Type : Home Page
    Description: Employee and Assignment Home Page
    1 Promit: Employee Details
    Submenu: Employee Details Menu
    2 Promit: Assignment Details
    Submenu: Assignment Details Home Menu
    HTML Side Navigator Menu Details
    Menu Name : XX_EMP_HOME_MENU
    User Menu Name : Employee Details Menu
    Menu Type : HTML Side Navigator Menu
    1 Promit: Employee Details Home Page
    Function Name: Employee Details Home Page
    Description : Employee Details Home Page
    Menu Name : XX_ASS_HOME_MENU
    User Menu Name : Assignment Details Home Menu
    Menu Type : HTML Side Navigator Menu
    1 Promit: Assignment Details Home Page
    Function Name : Assignment Details Home Page
    Please give me idea how to resolve this issue
    Thanks
    Venkat Reddy
    [email protected]

  • Can pricing requirement be used for manual header condition

    I have a manual header condition ZCR1 which will be entered in a sales document with doc type ZAB1. When this sales document is copied into another sales document ZAB2, I want that the manual header condition ZCR1 is not determined. Can I do this via pricing requirement? Or should I use alternation formula for condition base value and make the value of condition ZCR1 to zero when the document is copied into ZAB2.
    Both the document types are using the same pricing procedure. In copy control for all item categories from ZAB1 to ZAB2, pricing type G (Copy pricing elements unchanged and re-determine taxes). ZCR1 is a manual condition in the pricing procedure used.
    Regards
    Javed

    Hi javed
    If you want the ZCR1 manual header condition should not be determined then you need to change the pricing type in the copy control but if you assign a requirement in the pricing procedure for ZCR1 condition type  then you cant enter the ZCR1 condition type manually also as you are not meeting your requirement.
    Another option is you have to create a new requirement with the help of Technical consultant ans assign it to the  header condition type in the pricing procedure requirement feild . giving inputs to your Technical consultant that The condition type  should not be determined
    Regards
    Srinath

  • Pricing - Requirment / calculation type / base value

    Dear Friends,
    Thnaks for the support and guidance provided by you for my previous posts
    In Pricing Procedure we give Requirment, Calculation type and Alternative formula for condition base value, I would like to know where do we exctly define all this?
    Or are they standard? If standards where we can see how they works?
    Regards
    Vishal

    Hi,
    go through the below Examples for better understanding ..
    Example: 1
    Condition Type: PR00
    Requirement 2 Item with Pricing
    Purpose:
    This is an example of a pricing requirement.  This requirement is met if the document item category is relevant for pricing and no previous condition in the pricing procedure has set the condition exclusion flag. This requirement can be assigned to condition types in the pricing procedure to avoid unnecessary accesses to the database when an item is not relevant for pricing or a condition exclusion indicator has been set.
    Example: 2
    Condition Type:  Net value
    Calculation Type: 2 Net value
    Purpose:
    This is an example of a condition value formula.  This type of formula can be used to influence the value shown for the condition in pricing.  A condition value formula is assigned to a condition type or value line in the pricing procedure.
    Formula '2' sets the value equal to net value that has been calculated so far for the item in the pricing procedure.  It contains the amount excluding taxes.
    Example: 3
    Condition Type: R100
        Alt.Condition Base Value: 28 (100% Discount)
    Purpose:
    This is an example of a condition base value formula.  A condition base value formula can be used to influence the basis the system uses when computing a pricing value.  A condition base formula is assigned to a condition type in the pricing procedure.
    Formula '28' sets the rate of the condition to a 100% discount.  This formula was delivered with condition type R100 to support free goods functionality.
    Reward if it is useful,
    Chandramohan

  • If anyone worked on the sales pricing requirements(vofm)

    If anyone worked on the sales pricing requirements(vofm), can u tell what happens in the sapcode, if create the requirements in vofm tcode

    Hi Rama,
    Pricing Requirement is  basically a check before a condition type populates with its value.
    we define the requirement and assign this to condition type as required.
    for example, you have a discount condition ZABC which should only populate when the material is delivered from Chennai plant.
    If this check ( certain requiremnt which we want to get satisfied before a particular condition type populates) becomes true during sales doc. processing, then
    condition type is given a Go-Ahead by the system that it can populate.
    we acheive this by using parameter SY-SUBRC and set this system variable to 0 if condition is true
    basic outline of the  code will be like following ( one of the ways) :
    IF <Condition > = TRUE
    SY-SUBRC = 0
    ELSE
    SY-SUBRC = 4
    we can also utilize the CHECK statement to acheive this.
    Hope it gives an idea to understand pricing requirement.
    Please let me know if you have any doubt.
    Best Regards,
    Gaurav Raghav

  • How can we create new pricing requirement for a condition type

    Hi All,
    I am in urgent need of creating new pricing requirements for a condition type.
    Or if there is already a conditin type existing and we want to make changes in the pricing requirements of that condition type, How can we do so ?
    In short if you can let me know how does pricing get impacted by the condition types.
    Thanks
    Mark

    Hi!
    The common transactions for condition mantaining are VK11, VK12, VK13.
    In SPRO - Sales and distributoin - Basic function - Pricing - Pricing control - *.
    Is this what you want?
    Regards
    Tamá

  • Testing Pricing Requirements

    Hy Guys,
    how do you test the pricing requirements (ex. manual conditions, manual deposit condition, free of charge deposit cond, mixed palled surcharge etc) ??? So you create sales orders, credit memos and so on, and then..?
    Thank you !
    Cris

    You can do it yourself in transaction VOFM, Requirements>Pricing. Then highlight the requirement number and and click the "source text" button.
    Click on the first statement (probably a statement like "sy-subrc = 4"), and then click the "stop" button to set the break point. You can then process an order and it should break in that bit of code. Keep on hitting F5 and watch the sy-subrc value - if it is 0 at the last line of code, then the requirement has been met. If not zero, then it has not been met and that price will not be determined.
    Don't forget to remove your breakpoint in VOFM afterwards.
    Hope this helps.
    Jon

  • SD Pricing requirement

    Hello Gurus,
    In sales pricing requirement there are 2 forms.
    1) KOBED
    2) KOBEV
    Somebody knows the execution sequence of the 2 form. Is first KOBED and then KOBEV or there is some rules that drive the execution of one or the other?
    Thanks.
    Josy
    Edited by: Lakshmipathi on Aug 8, 2011 8:46 PM
    Thread Locked - Reason - Duplicate Post

    Hi,
    The precondition (FORM name KOBEV)
                        This is checked on header level and therefore is only a necessary requirement that the condition type or the access is taken intoaccount at all.
    And the actual requirement (FORM name KOBED)
                        This is checked during processing on item level and it finally determines whether condition type or access is taken into account.
    Best Regards
    Amjathpasha

  • Problem for Pricing Requirement

    Hi All,
    i have one pricing condition type ZFDS. This ZFDS having 5.50USD.
    Additional item categories ZLCN need to be excluded from this fee also in this pricing requirement.
    For Ex 1. : In one sales order my item category is ZLCN. For this item category i have ZFDS condition type. i want to exclude from this pricing requirement.
    Ex 2. In the same sales order my item category is ZTAN. For this item category i have ZFDS condition type. i want to include from this pricing requirement.
    Please guide me how to do the coding for this pricing requirement.
    Thanks,
    Raghuveera Kumar B.

    In transaction VOFM, create a new pricing requirement (your routine number must be between 601 and 999). You will be asked for an access key for object R3TR PROG RV6***601 (the last 3 chars corrsponds to the requriement routine you are trying to generate). Your BASIS team should be able to generate one for you.
    Next, go to SE38> RV6***601 program, there will be 2 subroutines. One FORM is called for Header level pricing condition checks and the other is for item level, use whatever is appropriate in your case. If you are not sure, it doesn't hurt if you put the sample code below in both FORMS.
    SY-SUBRC = 0.
    CHECK KOMP-KSCHL = ZFDS.
    CASE KOMP-PSTYV.
    WHEN 'ZLCN '.
    SY-SUBRC = 4. " Exclude ZFDS from pricing.
    WHEN 'ZTAN'.
    SY-SUBRC = 0. " Include ZFDS from Pricing.
    ENDCASE.

  • Copy pricing unchanged and pricing requirements

    When we create a Return in reference to an invoice we have configured copy control to copy pricing unchanged. Even though the pricing gets copied into the return, it appears requirements in the pricing procedure are still getting executed. This results in the original active condition to get de-activated because it failed the pricing requirement on the return. Is this normal behavior of SAP to execute pricing requirements on the target document when we have configuration to copy pricing unchanged?

    Hi,
    check this thread,May be useful to you.
    [New Pricing procedure for credit memo|New Pricing Procedure in Credit Memo;
    thanks,
    Vrajesh

  • Pricing requirements - VOFM tranx (standard include)

    Hi,
    I want some information about the pricing requirements in the tranx code: VOFM.. For each standard include of the parent include: LV61ANNN, there are two forms: kobed_xxx and kobev_xxx.
    1) What is the different between these two forms and what is their effect..
    2) in my requirement, it was not mentioned as to in which form do i need to write the required code. (Though it was said that i need to copy one of stnd include)..

    hi Rohith
    just go to this thread link
    Re: VOFM - Requirements
    this must answer your queries
    hope this helps
    regards
    Aakash Banga

  • VOFM - pricing requirements ( abaper require some functional assistance)

    HI,
    I had written the required code in one of the customer routines in the transaction: vofm.
    to change the tax code according to the country of destination.
    I was given information that this will be triggered during the sales order change..(va02)..
    When i put a break point in that include it is not triggering..
    Can anyone tell me how to trigger (either std include or customerized include) of transaction: vofm (pricing requirements) in the sales order change tranx (VA02).
    thanx

    Hi there,
    Once the routine is configured in VOFM, it has to be activated for eg using RV80HGEN. Only then you can apply that routine.
    Also when the logic is not getting triggered in debug, then it means that either the logic is wrong, code has been put in a wrong location or tables / fields are called wrongly.
    Ask the ABAPer to check points & then try.
    Also changes in VA02 is captured by function V & new entry by H.
    Regards,
    Sivanand

  • Pricing issue with Product hierarchy - Urgent

    Hello,
    I have an issue on pricing determination with product hierarchy.
    I created product hierarchy as following,
    level1 - A0001
    level2 - A0001B0001
    level3 - A0001B0001C0001
    Then, assigned A0001B0001C0001 to material D in material master.
    I created condition record with A0001B0001C0001(level 3),  the system found the condition sucessfully when I created a sales order with material D.
    However, I created condition record with A0001(level1) but the system didn't get the price when I created the sales order with material D.  Since A0001B0001C0001 belongs to A0001, the system is supposed to get the price from the condition record with A0001... 
    Could you please let me know how to fix it?

    Hi,
    Thanks a lot for your kind explanation.
    Here is the access sequence I defined.  I wonder if there is anyway I can define PRODH1, PRODH2, PRODH3 in access sequnce the same way with customer hierarchy so that the system can check higher level data.  If it's not allowed, I think I should define routine in requirement as you advised.  Thanks!
    *Accesses
    AcNo       Description
      1           Customer Hierarchy/Product Hiearchy
      2           Customer Hierarchy/Product Hiearchy
      3           Customer Hierarchy/Product Hiearchy
      4           Customer Hierarchy/Product Hiearchy
    Fields
      AcNo   Condition    Doc. field      field lable
         1      HIENR      HIEBO01     CustomerHierarchy 01
                 PRODH     PRODH       Product hierarchy
         2.     HIENR      HIEBO02     CustomerHierarchy 02
                 PRODH     PRODH       Product hierarchy
         3      HIENR      HIEBO03     CustomerHierarchy 03
                 PRODH     PRODH       Product hierarchy
         4       HIENR      HIEBO04     CustomerHierarchy 04
                 PRODH     PRODH       Product hierarchy
    I wonder if I can assign product hierachy fields, PRODH1, PRODH2, PRODH3 to access sequence like customer hierarchy so that the system can check higher level data to get the price...

  • I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    "Some problem" is really not much information
    Some links that may help
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -ID support http://helpx.adobe.com/x-productkb/global/service-c1.html
    -wrong email https://forums.adobe.com/thread/1446019

  • Why does data/3g work on my O2 sim but not with Three sim (iphone 5)?

    as the title says...
    i have been using an O2 sim for a while in my iphone 5 without problems.  today i tried a sim from the three network.  calls and texts work fine, but i can not get any data connection to work.
    i have been on the phone to three and tried many different settings/network resets etc. 
    when  i put the sim in the phone updated automatically - i was directed to go to "settings>about", where it asked me to update. i clicked yes. after a long phone call with three, they say all my settings are correct. 
    i have tried the same sim in an iphone 4 and the data works fine with it, so there's definitely something a miss with the actual iphone 5 handset.
    i am running ios 7.0.4
    (in setting > about)
    carrier: Three 15.6
    Model: ND662B/A
    Modem firmware 5.02.00
    any ideas?
    thanks 

    Hi. :)
    Thanks for the reply.
    When I insert the three SIM card there is no option for apn. From what I've read, three do not allow it. The apn settings show up fine with my O2 sim.
    I have noticed something strange when playing about with the data. If I open tunein radio app with wifi and steam a live broadcast, if I switch on data and then switch off wifi, the stream still plays. Then when I look at my data usage it shows data has been used. If I try and use data at the start of the app, it will not connect and I still can't get the data to work on anything else. So some slight element of the data connection is getting through.

Maybe you are looking for