Access sequence requirement

Hi Team-Need little coding assistance for this scenario.
Scenario:
Condition ZHM1 (Negative Discount type) Access Sequence ZHM1- Table A901 (cust/Material/ end User), 902 (Customer/sales org/ Sales Deal), 903 ( Dvn). If I have condition records for ZHM1 , -12 % (A901), -10 % (A902). Then in my sales order system will list -12% because of Condition Exclusion procedure of type B. We have removed the exclusion indicator in the access sequence to derive this. This Condition type can be user editable in Sales order.
Ideally because of condition exclusion system looks for all the table and checks the best possible discount.
Requirement:
If there is no condition record, then system will not list condition type for user editable in Sales order. This is the problem.
To avoid this, we would like to create a condition record with Zero amount at A903 (Dvn) level. But, the problem is if I have a Zero record and -12, -10 then system always takes best discount as Zero because of condition Exclusion type B.
Now , we thought of writing a code at Access sequence as a REQUIREMENT and attach this to A903 Table.
New Rotuine- should work like this.
If it finds condition records for it's above steps then don't execute condition.
If it did not finds condition Record for it's above steps, then only A903 record should be executable.
Hope this is clear for you.
Reg
Siva

The logic looks OK, check with the ABAP'er, who can develop the code for this. The new routine can be developed in t.code VOFM -> Menu requirements -> pricing. If you need any coding details, then I would suggest, close the thread here and post in ABAP forum.
Regards,

Similar Messages

  • Access sequence requirement for output control

    Hi!
    I would like to get some inputs on how access requirement for output control works. I created a new requirement for a condition table that has key combination billing type/sales org/country because I need to restrict the output for a paticular customer in one country. I think the requirement works fine such that it is not fulfilled for the customer that I want ot restrict, thus no output is created. However, I noticed that other customers in that sales org/country are affected by the requirement. The output is created (sy-subrc=0) but it is not processed (remains in yellow status). The output should be emailed immediately upon creation (medium 5/timing 4). For other sales org/countries the creation of output and sending of email work as expected.
    I hope someone have valuable inputs regarding this.
    Note: I created this discussion under ABAP development but it was rejected, for reason: This does not appear to be an ABAP question. So I hope I have selected the correct one with SD.
    Cholen

    There is Output determination log available in the output screen (see the menu). It tells everything about how the output was proposed.
    If the requirement is not fulfilled, you won't see output created with any color - yellow, red or purple with sparkles. If output has been proposed and has a yellow light it means it has not been processed yet. Output is processed only after the document has been saved, so while creating the document, you'll never see any other color. If after saving the document output is still yellow, it must have a different timing than 'process immediately' and it will be processed according to that setting.
    This is a very simple concept, well documented and discussed gazillion of times on SCN. Requirements and conditions are two different things with different purposes. You might want to read a bit more on the output determination.
    Thank you.

  • How to maintain code of 'requirement' of access sequences in SD pricing???

    Hi everyone,
    I have an assignment to maintain the code of 'requirement' of access sequence in SD pricing procedure...
    and I know that the 'requirements' are  pieces of code attached to an access sequence to determine whether or not a certain
    access level should be executed.
    And we can display the codes of SAP predefined 'requirements' with the TCODE VOFM,
    but when i try to enter new requirement number , it just terminated with a ERROR msg: u r not allow to maintain SAP standard requirement...blabla... So i am confused how to do this
    please help me, thanks...
    Richard

    Hello,
    This is due to requirement numbering...
    1 - 899 numbering reserve for SAP standard to be used...
    900 -> onwards are for customer specific enhancement
    Please try to use this...
    Thanks.

  • Use of requirements in access sequence

    please explain with example what is the use of requirement while creating an access sequence.

    Hi,
    As you a requirement is used to do a pre-check before executing a step, so in Pricing Procedure it is used to check wether to execute a step (where Condition Type is attched) and in same way it is used in Access Sequence to check before running a step in Acc Seq.
    There could be mutiple ways you can use Requirments in Acc Sequence:
    - If you know that there rare chances that you will find a condition record in a particular table, you can assign routine on that step stating conditoin. For example, if I have common access sequence as YDIS for providing discount and as per Biz process my compancy never provide discount on a particular product line (let's say Prod Hier XYZ) you can state a check in the acc seq routine to check if the order is placed for that product line. If material does not belong to that product line (PH <> XYZ here) only then system will try to see record in the respectibe condition table. this will avoid unnecessary hits on the table, and will improve the performance. In the routine you need to use form KOBED_nnn in this type of application where nnn stands for routine number.
    - There could chances the discount mentioned abouve is not applicable at SOrg level instead of Product Line level. In this case the whole document is not applicable for discount from that table (for example 1st step in Acc Seq is SOrg / DCh / MM and second step DCh / MM). meaning when I place order for Sorg 1000 there will never be any discount at SOrg level but there might be doscumnt at Worldwide level for MM, so you should not worry about 1st step whenever order is placed for 1000. This can be acived again using routine at Acc Seq but you can put check in KOBEV_nnn along w/ Access Seq optimization. W/ this system will carry a pre-step when you enter 1st line item, and if it is for 1000 then it will remove step 1 from YDIS acc seq for whole doc (will not even run the acc routine from 2nd item). Again improvemnt in the performance.
    - In some business process you may have to pass on Constant value (Source filed) in the acc seq field, but you may want to do it celectively. So you can put you check in routine and then fix the source valuse in Acc field. So if the cehck is successful then system will use the Constant to look for record, else will skip that step and move to next one.
    Let me know it this helps...
    Dinesh

  • Requirements in access sequence

    Hi Gurus.
         can anyone plz tell me with an example why requirement is used in
         access sequence.
    Thanks & Regards.

    Hi Sujith,
    Requirements is a set of rules/ formula, which has to met before the access is used.
    Requirements in access sequence is used to reduce the time taken for retrival of data.
    Eg.
    If the access is applicable only for export business, requirement 8 can be used. This requirement checks whether the order is export business. If yes then access is used, if no the system goes to next access.
    reward if useful
    Reagrds
    S Pradeep
    Message was edited by:
            Pradeep S

  • Help required with Access Sequence for 'Delivery output' of Scheduling note

    Dear Gurus
    I need help with creation of an Access Sequence.
    I have created an access sequence for sales org and customer, where the communication is emailed or faxed to the CR party- Forwarding agent.
    BUT - some customers have more than 1 forwarding agent in their masterdata, and not all forwarding agents are wanting to receive fax/email, so if a condition record exists it will always try to send via the method set up against the customer.
    I need to create an access sequence which looks at the customer/ Forwarding agent combination, - I have created new condition tables and Access sequences to include Vendor, - but when i create delivery notes, - this is not working, - it is not recognising the access sequence at all, the vendor party/haulier is not being recognised at all- I keep getting access not made, Initialised field'     
    Please advise how i can get the customer/Forwarding agent scenario to work
    Many thanks
    Tony

    Hi Tony,
    The field SPDNR can not be entered directly in the feild catalog list.
    First it has to be included in the list through inculde or user exit......
    SPRO->Sales and Distribution>System Modifications->Create New Fields (Using Condition Technique)-->New Fields For Output Control---> Use INCLUDE for new fields in Dictionary (messages) or Use user exit for new fields (messages)  
    You ask your ABAP consultant to do this then it will be available in the field catalog list then u can select in the condition table then into access sequence and so on...
    Kindly Reward points if usefull.
    Regards
    vK

  • Help required with Access Sequence for output of Delivery

    Hi
    I have created new conditon table for shipping point and storage location
    Created new access sequence , with this new condition table as the 1st sequence - the others being Sales org/ Customer and then Shipping point.
    Applied this Access sequence to Output type
    I created condition record against 1st access sequence, Shipping point and storage location
    Yet when I created Stock Transport Order and subsequent delivery for this STO.
    The first access sequence against Shipping point and Storage location was not found
    The fields used against shipping point and storage location in my access sequence are as follows:-
    VSTEL     KOMKBV2    VSTEL
    LGORT    KOMPBV2    LGORT
    I also tried with a condition for shipping point and material , but this was not found either
    Any ideas ?
    Please advise
    Many thanks
    Tony

    HI
    checked the config and the delivery type is assigned to output determination procedure for shipping output.
    we have two outputs for deliveries, one for delivery schedule note and the other for despatch note, once PGI has been done.
    Delivery schedule note is first in the determination procedure so delivery type NL replenishment delivery is assigned to the first output in this procedure
    is something amiss here ??
    Thanks
    Tony

  • Access sequence for stock transfer order

    Hi,
    My client is a paper industry. client is procuring raw materials from forest center. We are considering forest center as plant 1800 and paper mill as plant 1100. several depots has been created under forest center and considering them as storage location. goods receipt at forest center is happening through scheduling agreements. stock is transfered from forest center depots to mill through stock transport order.
    For each depots, freight value per MT is fixed for transporting goods from forest center to mill. Clients requirement is to maintain the rates for freight for each depots so that it will pick from condition records. No need to enter freight value in stock transport order.
    I have created an access sequence for combination of plant (1800) and forest center depots and maintained condition table. but it is not working as in stock transport order, there is no storage location option for supplying plant. In stock transport order supplying plant is forest center (1800) and receiving plant is mill (1100).
    Please guide me where to maintain the freight rate as this is mandatory for my client.
    Thanks
    Prasant

    Access seq with depot will not work becuse you don't have the storage location field in the header
    Rather create the diff pruchase group for each depot and assign them in STO based on your depot(storage location)
    and create the access sequence based on the palnt and purchase group than it will work.

  • Output with Plant / Sales Office Combination of Access Sequence

    Hello All,
    I have a Scenerio where  I require to create Access Sequence with Plant and Sales office with Billing Type Combination.
    But Plant and Sales Office Fields are not Present in Output Communication Structure KOMKBV3 / KOMPBV3. This is giving an Error while Creating Access Sequence while creating the Required Combination.
    I tried to Append these Structures by Adding Plant (WERKS) and Sales Office (VKBUR) fields but they dont seem to reflect in Field Catalog for Selection.
    Kindly requesting for your Valuable Inputs <text removed by Moderator to neutralizing the priority>
    Looking forward to your Esteemed Reply!!
    Warm Regards,
    Onkar Khedekar
    Message was edited by: Jyoti Prakash

    Plant and Sales Office Fields are not Present in Output Communication Structure KOMKBV3 / KOMPBV3.
    Your observation is correct. In standard SAP System for Application V3, Sales Office and Plant are not part of standard field catelog.
    If you observe Plant & Sales Office are item & header related data, respectively. Therefore, Plant and Sales Office should ideally appended to structure KOMPBV3 & KOMKBV3. Then write require logic in userexit to fetch values for Plant & Sales Office in USEREXIT_KOMPBV3_FILL in include RVCOMFZ1 and USEREXIT_KOMKBV3_FILL in include RVCOMFZZ, respectively.
    Further instead of appending fields catalog with std fields WERKS and VKBUR for plant and Sales Office, try with Z fields like ZZWERKS and ZZVKBUR, for Plant and Sales Office, respectively.
    For your reference/understanding, you can refer following SAP Help link: New Fields For Output Control
    Thanks, JP

  • Creation of new output type and its access sequence

    Hello Experts,
    Issue:-How to create a new o/p type and assigning it to access sequence.I also want to know if this is purely functional requirement or does it needs ABAP involvement aswell.This will take how much time will it be more then 1 man day.
    Regards,
    Dharmesh

    Hi friend,
    You can create a new output type using the path
    IMG->SALES AND DISTRIBTION->BASIC FUNCTIONS->OUTPUT CONTROL->OUTPUT DETERMINATION->OUTPUT DETERMINATION USING CONDITION TECHNIQUE->MAINTAIN OUTPUT FOR SALES DOCUMENTS--->
    There you can define the condition types and the access sequence
    Or else directly goto the transaction code NACE where you can define all at once , even the condition records.
    please refer this link for further clarificaion
    http://www.cogentibs.com/pdf/cogsap08/OCSD.pdf
    regards,
    santosh

  • "Document type" in access sequence  not working in free goods

    Dear All,
    our requirement is to provide free goods with the main items in portal.
    for this i defined access sequence 1.Customer/Material and 2. SalesOrg/Documnet Type/Material.
    for access sequence Customer/Material  it's working fine but when i use SalesOrg/Documnet Type/Material it's not working.
    problem is that when i use Document type in access sequence it's not working.
    pls help.
    Radhashyam Sahoo

    Hi Apoorva!
    What do you mean with "Access Sequence"?
    In CRM 7.0 EHP1 there is a generic framework-feature available which allows the defininition of the tab-order.
    Best regards
    Arno

  • Access Sequence for Vendor Partner Function

    The business requirement is to display Vendor name for a specific product on UI. Approach till now: Partner function for Vendor can be defined. Relationship between vendor and product can be defined. The following query remains:
    Can someone help me which access sequence (if any existing) can be used for determination of Vendor Partner Function for a Product?
    Any guidance related to the same is welcome.
    Thanks.

    thanks.

  • Access Sequence for PO output

    Hi experts,
    I have defined new PO output type in NACE by copying existing one.
    I have created New Condition Table for PO output (in SPRO).
    Now, i want to create new access sequence. But, i am facing following problems
    1. If i try to create new access sequence by copying existing one , i am not able to add Newly defined condition table.
    2.       if i try to create new access sequence without copying existing one , i am not able to enter access i.e.   10 ,20 , 30, 40 .... for  access sequence.
    Also , how to link this new access sequence to newly defined Condition table?
    Please, guide me to resolve it
    Regards,
    rahul
    Edited by: RahulNsk on May 9, 2009 9:34 AM

    David,
    I can't answer your question directly but I can propose an alternative:
    If you are looking for another field to trigger output determination, you may want to consider having an ABAP developer create a custom requirement for that output type. Requirements can make simple validation checks and if it passes (sysubrc = 0) then the output is proposed, if not, then output is not proposed.
    Create requirement @ Materials Management > Purchasing > Messages > Output Control > Maintain Requirements for Message Control
    Assign requirement to output type @ Materials Management > Purchasing > Messages > Output Control > Message Determination Schemas > Define Message Schema for Purchase Order.
    I hope this helps

  • Access Sequence for Plant/Tax code Combination  for JTAX

    Dear All
    i want to create a new access sequence for "Plant/Tax code" Combination.
    Please let me know the process for the same
    Regards
    Amey

    Hi,
    Goto- M/05.
    Create the condition table by selecting the fields Plant & Tax code.
    Assign this condition table in the Access sequence JTAX as per ur requirement.
    Create condition records (FV11) by choosing the requirec access sequence.
    Regards,
    Satpal

  • New Access Sequence for Tax based on material Group

    Hello All,
    Our requirement is that we tax our employees on apparel only if the value is greater than $50.00.
    To achieve this, we created a new tax condition table (953 which is copied from 053) and assigned it to access 09 in the access sequence ZTX1 (created w/ref from TAXJ). We added material group (MATKL) to the condition table and selected exclusion indicator for the access.
    We created the condition record in FV11.
    When we created the sales order, the new access sequence (09) is not being accessed. It gives a message "Access not made (initialized field)" Message 102(VE).
    Please advise if we are missing something.
    Thanks,
    Leela

    Hi Leela,
    Are you creating sales order in the same system like
    You have created table in Development system in same system your are creating sales order
    If you are creating here you just go to V/07 transaction then slect your access sequence go in to the tables detail screen here you select your table 953 then click on fields here you check all the fields are available correctly or not then save the changes.
    Now try
    or
    You transported these confugaration to other system like Quality or Production here and you are creating the sales order,
    If you are creating here you need to create condition table again then try.
    I hope it will help you,
    Regards,
    Murali.

Maybe you are looking for

  • Performance Check - ABAP and Database color bars

    Hello everyone, When i go for the performance check of my object, i see Database in red bar and ABAP in green bar. The smaller the difference between these two bars, the better. But what does the color mean ? ( Somethimes the smaller bar is Red ) Tha

  • Sun JSF 1.2 (RI) + MyFaces  project Tomahawk 1.1.3

    Hi Guys, I wondering if someone can help me out. I'm so lost... In general, I'm working in a new project using Tomcat 5.5.17 as Servlet container, NetBeans as IDE and Sun JSF 1.2 (RI) Framework. The combination of Tomcat and JFS 1.2 already is an iss

  • Java.lang.RuntimeException: Cannot find FacesContext

    Error 500--Internal Server Error java.lang.RuntimeException: Cannot find FacesContext      at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)      at javax.faces.webapp.UIComponentClassicTagBase.setJs

  • UWL Screen Customization - Refresh Link moved to the Left side

    Hi Experts, The UWL changed just a little bit our requirement,  the 'Refresh' HyperLink has been moved to the Left  side of the screen. I have been doing a lot of research but I can not find any documentation on how to do this. Anyone able to help me

  • Hp6500 wireless keeps losing scanner configuration

    Home system with a Dlink wireless router.  I have the HP6900 wireless printer/fax/scanner.  I do not use the fax feature since I have an electronic fax program that runs over my VoIP connection to the internet.  I can configure the printer and scanne