MOQ based upon Customer category

HI -We wanted to set up MOQ for material based upon customer category. For Ex All end users for Product A can order the product with any qty. Where as All Dealers order only should be in Min Ord qty or Multiples of this?
Any thoughts to accomplish this?
Reg
Siva

Hi
This can be achieved by enhancement (userexit_save_document_prepare in MV45AFZZ).
You need to maintain a Z-table having min qty details for cust cat. You can even maintain material number if you have less number of materials.
thank you

Similar Messages

  • Purchase List Based upon Vendor Category

    Dear Sir,
    For our Excise related requirement , we are required to prepare a Material Purchase Report . The report should display  Material purchased from "Manufacturer"  , "Trader" seprately .
    Sir, my query is that from material purchase record say EKBE etc , how can we seggregate purchases based upon the Vendor category (category mean Manufacturer / Trader)
    Look forward for the kind help please .
    Regards
    B Mittal

    Please check whether vendor master is created based on account group.Please check whether you can get report based on account group
    G.Ganesh Kumar

  • Problem in deleting the orders under Custom category.

    Hi friends,
            I am facing some problem in deleting the Orders which were created under custom category. In fact we are creating Intransits under Standard category "EI" as well as Custom Category "ZP". I am able to modify the intransits created under "EI" but when I tried to change or delete the orders created under Category "ZP", I am getting a messag triggered by BAPI as " Order can not be changed". atleast I need to delete the order if change is not possible. I am using the BAPI "BAPI_SLSRVAPS_CREATEINTRANS" to create intransits under "EI" and i am using the same BAPI with BADI implementation to "SAPAPO_DM_PO_CHANGE" to create intransits under "ZP". Based on the condition I am changing the am changing the category from EI  to ZP in the BADI.
           I am able to change or delete the orders created under the EI but when I tried to change or delete the orders under ZP its giving me a message as Order can not be changed.
           One more thing is If I go to Tcode /SAPAPO/RLCDEL trying to delete all the orders based on category. I am able to see all the orders under created under EI. If  I tried to delete the orders based on Custom category ZI it is giving me the message  as "No Orders exists in Live cache". But I am able to see the orders in tcode "SAPAPO/RRP3".
           Can any one help me out in making this done. Please help me out in this.
    Thanks & Regards,
    Ramana.

    Hi Visu,
               I really appreciate your gr8 help. Hope you can understand my problem that I am not a SCM person. Still you are responding to my questions with great patience.
               Here what I found is I found the record in OM19 transaction in the object "/SAPAPO/OM_ORDER_EXT_STR". But the interesting is its giving me the GUID as blank . there is empty value in that field. where as the program "/SAPAPO/OM_DELETE_INCON_ORDERS" is asking for the "order GUID".
             can you help me out in finding the order guid and deleting this order.
    Regards,
    Ramana.

  • Create Custom Mail Template-Setting up wfMessage based upon workflow

    Hi,
    I have some 4 workflows and each should send out an email as soon as it is triggered.I have created one template which has some metadata fields,I need to dynamically change the wfMessage and wfMailSubject based upon the workflow,i wanted to understand how can we set the value of these 2 variables in the template.Do i need to create a custom component for each workflow with resource Strings and set this value and create a template and call this template.Has anyone implemented anything like this before?

    Got you.
    I think it's a question what the template should serve for. Usually, you want to modify it to change the content of the message - you may add a logo, re-organize the email, etc.
    But often, you use variables wfMessage and wfMailSubject to parametrize the text and the subject of the message. Note that this is not mandatory, and you could modify the logic of the template so that those two variables are derived from other workflow content (something like move to the code of the template a code like) <$if dWfName like "Workflow1"$>
    <$wfMessage="Message for Workflow 1"$>
    <$elseif dWfName like "Workflow2"$>
    <$wfMessage="Message for Workflow 2"$>
    ...It will work, but somehow, I don't like it - I think these two should be parameters set up by workflow, not something contained in the template, but that is my opinion.

  • Can't get a text field to atuo populate based upon a dropdown selection

    I have a drop down box with 3 values that can be selected:
    Dropdown2 = 101-3 subd.A
                          101-3 subd.B
                          101-3 subd.C
    I am trying to get a text field to auto populate based upon the selection:
    if Dropdown2 = 101-3 subd.A then Text4 = "ValueA"
    if Dropdown2 = 101-3 subd.B then Text4 = "ValueB"
    if Dropdown2 = 101-3 subd.C then Text4 = "ValueC"
    I have tried to create a custom calculation script for Text4:
    var v= getfiled("Dropdown2").value;
    if (v="101-3 subd.A") event.value = "ValueA";
         else if (v="101-3 subd.B") event.value = "ValueB";
         else if (v="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";
    I have entered this script and the syntax appears to be correct.(At least to Acrobat XI.  I'm know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I have checked the "commit selected value immediately" in the option of Dropdown2 per some google'ing.  I just can not understand why the values do not appear.  Any help would be appreciated.
    Thanks

    I made the changes and added the == to my if statements.  When I select a value in Dropdown2, Nothing appears in Text4.  I don't understand.  Is there something else that I need to do beside event.value="Some Value";?
    I know it has to be something simple that I am missing, but I just can't seem to see it.
    Text4 - Custom Calculation Script:
    var v= getfiled("Dropdown2").value;
    if (v=="101-3 subd.A") event.value = "ValueA";
         else if (v=="101-3 subd.B") event.value = "ValueB";
         else if (v=="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";

  • How to go about changing settings based upon logged in user

    Hi all,
    I'm wondering if anyone has any thoughts on how one would go about changing a property on a node based upon the logged in user.
    For example, say you have a path property at /apps/myComponent/settings.path=/content/dam/genericfolder that for an author have the value of /apps/myComponent/settings.path=/content/dam/sandbox, and for an approver have the value of /apps/myComponent/settings.path=/content/dam/approvalsandbox

    Hi Ove,
    Thanks for the tip on the user role. I had thought about taking that approach, however, leveraging the user role and properties associated with it would be the correct approach if writing custom components. What I am looking for is a way to take existing components, and essentially use them in context of the user.
    For example, say if you are trying to give a sub group of users access to a subset of the DAM directory, and you don't particularly wish to hack around the existing WCM DAM component, there is a setting in the tree navigator (/libs/wcm/core/content/damadmin/treeRoot) that lets you specify where the root of the tree is. (There are more settings to work with, but this is just one used to illustrate.)
    If you can change the property based upon the user, that gives you the functionality without altering code.
    I would like to know if this is possible, if this is an inherently bad practice, if so why, and whether there may be another alternative out there which lets you avoid having to alter the code of an existing component.
    Thanks again for answering.

  • Could you restrict purchase orders based upon Vendor / Material Group?

    Hey everyone - I've got a general "could this be done" kind of question. 
    We would like to add on to the vendor purchasing view to include "valid" material groups.  This would then have what material groups could be purchased for which company code for that vendor.  Then in the purchase order creation / modification we would like to be able to validate this purchase order against this vendor / company code / material group combination.
    Obviously with enough custom code this could be done.  My question is whether it could be done without out introducing too much custom code - how would you construct such a solution to this problem?
    We are a SAP 4.7 shop.
    Thanks!   Ken Little

    >
    Ken Little wrote:
    > Hey everyone - I've got a general "could this be done" kind of question. 
    >
    > We would like to add on to the vendor purchasing view to include "valid" material groups.  This would then have what material groups could be purchased for which company code for that vendor.  Then in the purchase order creation / modification we would like to be able to validate this purchase order against this vendor / company code / material group combination.
    >
    > Obviously with enough custom code this could be done.  My question is whether it could be done without out introducing too much custom code - how would you construct such a solution to this problem?
    >
    > We are a SAP 4.7 shop.
    >
    > Thanks!   Ken Little
    By include "valid" material groups i think it means you are introducing a new field or some value in already existing field in vendor master.
    1) Now to restrict PO based upon material group a small custom code is needed.
        Use BAdI ME_PROCESS_PO_CUST....here write a code with help of your ABAP person that system will first select the 
        LIFNR (vendor code) entered in the PO...then it will check the same LIFNR in LFM1 table...here it will check the material
        group in the customized field & if found that it is within the list of previous listed material group then it will allow to process
        further or otherwise give a customized error message.
    or
    2) Use the field Group in OMSF...here maintain a common group against the material groups you want to do the purchase cycle.Now ask your BASIS person to use this group in carry out a specific activity, the user must have authorization for the combination of the activity and the authorization group.
    Regards,
    Indranil

  • Filtering of the data based upon the selection screen data using ldb

    Hi Experts ,
    I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
    action type and payroll area
    now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
    based upon the action type ,the data consists the records having different action types other than Z0
    Please give me some solution for this

    Thanks Durga ,but the link wat ever u was for hiding the selection screen fields
    but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
    i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection

  • GRC AC10 Agent based upon Role Attributes

    Hi Experts,
    Need your help on the issue.
    We are trying to achieve below configuration-
    After the Access request is generated, at the first stage, the approver should be selected based upon the business process of the role. If there are multiple roles with different Business Processes and their approvers, all of them should approve the request and then request should go to the next stage.
    There is also a field Business Process in the Access Request Screen which denotes the User's association with Business Process and not of the role. We are able to trigger the approval based upon this field, but we can;t find any option of approver selection based upon the business process of the role.
    Can some one show a way to achieve that?
    We are facing another problem, when the request is approved based upon the field Business Process in the Access Request screen, we are not able to find the request in next stage, it is still showing in the same stage while the role attached is only one and no other approver defined.
    What could be the reason behind it? Any help is highly appreciated.
    Thanks in advance,
    Sabita

    Hello Sabita,
    You can use the transaction : GRFNMW_DBGMONITOR_WD to check the logs.
    What i understand from your requirement and what would be my approach.
    1) Approvers who will be ROLE OWNERS
    > In this case 1st thing is you should upload few ROLES( NWBC>Access Mgmt-->Role Import) with all the details i.e function area, company , role owner, alternate approver
    ---> Now create a "Custom Initiator from SPRO >GRC>AC>workflow for access control>Define  Worflow Related to MSMP rules for Process ID SAP_GRAC_ACCESS_REQUEST
    Run Tx: BRF+ , and you will see a rule created , drill down to "Expression-->Decision Tree"
    and use "Table settings" to select "Condition Column" & "Result Rule sets", where you can configure the Custom Initiator
    Now run Open MSMP workflow config window
    1) Process Global settings ( Notification details if necessary)
    2) Maintain Rules (add your custom initiator rule )
    3) Maintain agents ( check & if not present add Role owner agent)
      i.e. GRAC_AR_ROLE_OWNER  (This will satisfy 1 st requirement)
    Create a new agent as BSM and mapp them as "directly mapped user" , similarly for the 3rd stage you can use directly mapped user.
    4)Variables & Templates --> Skip
    5)Maintain Path ( add 3 stages as required i.e role owner, BSM & security officer)
    Now for each stage click on "modify Task Settings" & click on individual check boxes as relevant , you can select "All approvers" or "Any one approver", Approve Request based on System & Role , or Request .
    Same applies to all the other 2 stages.
    6) Maint Route Mapping  --> put the path ID created in previous stage and save and activate.
    I hope this should give you some fair idea.
    Thanks
    Victor

  • We have to restrict the visibility of Questions based upon technical and co

    We have to restrict the visibility of Questions based upon technical and commercial. For example if there are two section commercial and technical, technical team should not be able to see commercial questions and vice-versa

    Hi
    I could suggest an alternative approach. You  take a call whether it suits your business process
    Create a project for the event. Within project you can create two seperate Rfx one with technical team as collaborator and the other with Commercial team. Two Rfx would be evaluated and awarded seperately by respective team. You can take help of your technical expert to create custom report for overall evaluation
    Regards
    Mudit Saini

  • Filtering entries in BP search based upon user

    Hi
    We are trying to filter out results shown in BP search, based upon users. For that we are trying to follow steps mentioned in IMG
    SPRO->IMG-> Customer Relationship Management -> CRM Cross-Application
    Components -> Generic Interaction Layer/Object Layer ->
    Component-Specific Settings -> Extend Object Model for Business Partner
    The field(region) we are using is already present in structure CRMST_HEADER_SEARCH_BUIL and as per my understanding we will be using method Adjust_Result_Table.
    But still I am not able to resolve it. Please help me in this regard.
    Thanx & Regards
    Hits

    Hi,
    The object that we work with at 2007:
    BuilHeaderSearchNew
    and not BuilHeader like at the last version
    so, we have to implement CL_BUPA_IL_HEADER_SEARCH and not CL_BUIL_HEADER
    1. Create :
    ZCL_BUPA_IL_HEADER_SEARCH
    with superclass:
    CL_BUPA_IL_HEADER_SEARCH
    2. At customizing:
    SPRO->CRM->Cross Application components->Generic Interaction Layer/Object Layer->component specific setting ->Extend Object Model for Business Partner
    add:
    External Object Name - BuilHeaderSearchNew
    Implementation Class - ZCL_BUPA_IL_HEADER_SEARCH
    Nou you can use this method for changing the result:
    ZCL_BUPA_IL_HEADER_SEARCH ->GET_RESULT_TABLE
    good luck
    ayelet

  • Trip Expense Types based upon Trip Activity Type

    Hi
    I have a requirement. I know that Travel Expense Types do have the permissibility based upon "Employee Grouping for Travel Expense Types". This is being done in V_T706B1 in the field 'ExpTy.Permissibility'. Based upon the group the employee belongs to, he/she can have the visibility to the expense type in 'Travel Expense Report'
    Now my requirement is can I have the same type of permissibility to travel expense types based upon the Trip Activity type. For example if I choose a trip activity type 'Billable to Customer' in Trvael Request Form I should be able to see expense types AIR, TRAIN while if I choose 'Internal Training' I should be able to see only TRAIN in Travel Expense Report.
    Is this possible?

    Dear,
    Open data element:SPKZL from SE11.
    Check the search help name:SH_EXPENSE_TYPES.
    Double click on the search help SH_EXPENSE_TYPES.
    You can find the search help exit name:PTRV_F4_EXP_TYPE_SH_EXIT
    Copy that PTRV_F4_EXP_TYPE_SH_EXIT into a 'Z' function module.
    Filter the expense type, in the loop,
    loop at spkzls where spkzl in t_spkzl_selopt and sptxt in t_sptxt_selopt.
      ****write ur logic here to filter the expense types based on the activity
    append spkzls to spkzls_help.
    endloop.
    After activating the above z function module, replace the standard function module with 'z' function module in search help exit filed.
    Thanks and Regards

  • Variant Pricing _ each item price based upon main item.

    Hello,
    I request your help for inputs on Variant Pricing functionality for given scenario.
    Each material will have different price based upon different brand / main item.
    For example u2013 Inbuilt-Sat Nav will be priced different in Toyota Prius & Toyota Avensis.
    Let say, we have 2 products (Toyota Prius & Toyota Avensis.) each having 10 different options/ items which are charged separately.
    Hence would like to know how we can set up the price in variant based upon Main item & sub item.
    Toyota Prius / Customer / InBuilt Sat Nav = £1200
    Toyota Avensis / Customer / InBuilt Sat Nav = £1500
    Your inputs are appreciated.
    Thanks & best regards

    If you want to maintain seprate prices for each variants go to VK11 use the following condition types -
    VA00: this condition type expresses an absolute amount.
    u2013 VA01: this condition type expresses the surcharge/discount as a percentage
    above are based on sales org, material and variants combination, so as you said you requirement is based on customer will charge different prices, so create new condition table with customer combination and add in to same access sequesnce and condtion type.
    For more details check the below link:
    http://www.sap-img.com/sap-sd/steps-for-sd-variant-configuration.htm
    regards
    Satish

  • Workflow 2013 execute based upon a date

    I have a workflow 2013 that will need to execute once a month when the day of the month is the 1st working day of the month. The day could actually be the first day of the month. Is there a way that I can setup this kind of a workflow to execute based upon
    start and end dates? Is there some kind of a background process that I can setup?
    Thus can you tell me if this is possible and how to accomplish my goal?

    Hi,
    From your description, my understanding is that you want to execute a workflow once a month.
    If you create this workflow with template SharePoint 2010 Workflow, you could refer to this article:
    Creating a Timed Workflow in SharePoint 2010
    http://blogs.askcts.com/2013/05/14/creating-a-timed-workflow-in-sharepoint-2010/.
    I tried to use this method on a workflow with template SharePoint 2013 Workflow, but I cannot find the workflow under the Active section by following above article. If you create this workflow with template SharePoint 2013 Workflow, there is no a OOB method
    to accomplish your requirement. You could create a custom timer job to accomplish your requirement.
    You could refer to these articles:
    Create and Deploy Custom Timer Job Definition in SharePoint Programatically
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    Starting a SharePoint 2013 workflow programmatically using C#
    http://www.ericgregorich.com/blog/2014/10/1/starting-a-sharepoint-2013-workflow-programmatically-using-c
    Best Regards
    Vincent Han
    TechNet Community Support

  • Authorization check based on item category on sales order (VA01 or VA02)

    I want to be able to restrict authorization of users based on item category. We only want certain users to be able to select a certain item category.  I know I'm going to have to check one of the userexits in MV45AFZZ. The issue I'm having is the authorization object .
    The item category is field VBAP-PSTYV.
    What we are going is having a item category for emergency orders. But this requires more manual steps to associate with the original order. We already have the emergency item categories defined and working (no credit check etc) so there's no reason not to have them added to the original order. The issue is its use has to be restricted so when the user selects an alternative item category it checks whether they have the authority.   
    Any help would be appreciated

    Hi,
    You can achieve this through authorization objects.
    Transaction
    SU20 - Authorization Fields
    SU21 - Authorization Objects
    Create the field PSTYV in the Authorization Fields.
    Then Create the authorization object and include this field along with the standard field ACTVT (which determines what activities can be performed by a certain user i.e. Create, Change or Display) & user-name
    In your your-exit, you can either use the ABAP command AUTHORITY-CHECK or the function-module AUTHORITY_CHECK and pass the values for these fields. The system can perform the test based on this values & based on the sy-subrc value you can restrict the users that are not having the authorization to select item-categories for emergency orders.
    Following link should help you:
    [SAP Authorization Concept|http://help.sap.com/saphelp_wp/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm]
    Hope that helps you.
    Regards,
    Saurabh

Maybe you are looking for