Discount based on partner function

Hello,
A customer 2000 generates an order with his normal role of Sold to Part, Ship to Part, Bill to Party & Payer. A Partner function called special stock partner is also assigned to that customer which in itself is another customer 3000. If the customer 2000 generates an order with that special stock partner 3000 an automatic discount condition called ZDI (10% discount) should come up and give the customer 2000 discount. i.e. i want to give discount to customer 2000 if customer 3000 is his special stock partner. How do i make this condition automatic via condition record.
Regards,
Shahzad

Hi,
1st - Include the field partner function (or customer number) as a ZZ field in the structures KOMG, KOMK. For example ZZTPTNR - Third partner number - CHAR10
2nd - Create condition table with this partner function / number field ZZTPTNR
3rd - Create/modify the access sequence to include the new table
4th - Create/modify the condition type for the discount
5th - Add the discount condition in your pricing procedure
6th - Create the condition record for this discount (VK11)
7th - Fill this field in the userexit MV45AFZZ, form  userexit_pricing_prepare_tkomk with the required partner function or customer number
Hope this helps your request.
Regards,
John

Similar Messages

  • How to Split 1 Order into Multiple Deliveries based on Partner Function ?

    Hello,
    How can I split one Sales Order into multiple deliveries, based on the partner function "managed by" ?
    The requirement is that one order will be created for different "managed by".
    If partner function "managed by" is same at line item level in order, than the items having same "managed by" can be combined in one delivery, else delivery will split and multiple deliveries will be created from 1 Order.
    Jatin Mistry

    Hi,
    You need to create a new requirement in tcode VOFM for that, together with your ABAP consultant. This requirement will be used in copy contol.
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
    MdZ

  • Direct mail campaign based on partner function

    I'm trying to create a direct mail campaign to all persons who have a certain partner function. I have succeeded in getting all the persons out by exporting them from the target group in the Segment Builder, but I would also like to have the Company name and address. How can I achieve this?
    I have based my target group on a attribute list made from the infoset CRM_MKTTG_BP_PRTFUNC_REL, and made af filter on the partner function attribute.
    Thanks in advance, Peter

    Hello Peter,
    you have to use the BADI CRM_MKTTG_SEG_MEM_EX
    There are two methods in the class:
    IF_EX_CRM_MKTTG_SEG_MEMBER_EX~SELECT_TG_MEMBER_DETAILS_REL
    IF_EX_CRM_MKTTG_SEG_MEMBER_EX~SELECT_TG_MEMBER_DETAILS
    The first one is called in case the TG has BP's with relationsships and other one is called for BP's without relationships.
    In standard implementation, the data from BUT000 and BUT020 is picked up. This imples that the personal addresses is picked up.
    Hope this helps.
    Regards
    Raja Pamireddy
    CRM Marketing Forum Moderator

  • Invoice split based on Partner function

    We have a requirement where we want the invoice to be split based on the partner function. Here are the details.
    1. We bill the builder(Partner function PY) by default. Sometimes we want part of the amount to be billed to buyer(Partner function ZA). So if the the sales order has both the partner functions(PY and ZA), I would like the invoice to be split into 2 where one should go to builder(PY) and the other to buyer(ZA).
    2. I tried with the split routine given in data transfer for billing documents. The routine is triggered just once(for a sales order) as it is defined at the header level hence I am unable to split the invoice for that order.
    Is there any other way to split the invoice?
    Thanks in advance
    Vamsi

    what kind of code  have u written to this ? please paste here,
    Regards
    peram

  • Service ORG determination based on partner function

    Hi
    Pls let me know - How to tell from the config which partner function from a transaction say case or complaint, is being used to determine the service ORG unit at the header level of the transaction?
    Also
    Suppose I have 2 partner functions
    1. A - std partner function - rule = "User"
    2. B - custom partner function - rule = "User"
    Which one will the system use?
    Thanks

    Hi,
    You need to define Partner Determination Procedure (PDP) where u r partner function should have 004USER as access sequence, then u can use "User orgunit" rule in org detemination rule to determine service ORG unit at the header level of the transaction.
    If u have define more than one partner function as user in u r transaction system will set the same user in both place on the basis of u r PDP.
    Hope it'll help u.
    Regards,
    Dipesh.
    Edited by: DD's on Nov 11, 2008 6:27 AM

  • Need to auto populate Field based on Partner Function in UI

    Hello Experts ,
    Currently we have a requirement in Opportunity Management in UI .
    We are working on "Territory Management "  in UI .
    While creating the Opportunity in Web UI , when we put employee code the Territory ID is auto populated.
    Now we dont want to have   Territory ID filled automatically based on Employee , but we would like to have
    Territory ID autopopulated based on "Prospect" .
    Can any one let me know how we can achieve it ?
    Regards
    Milind

    Hi Milind,
    I guess the territory gets populated based on the Partner associated to the order.
    There shooukd be an attribute like TERRITORY_ID_UI or TERRITORY_ID where in the GET method the territory ID will be derived
    based on the partner relations and being populated.
    Now you need to redefine this method and remove this logic....figure which partner relation stores the prospect and put the appropriate code.
    Regards,
    Masood Imrani S.

  • Restrict Contact Person replication from CRM to ECC based on Partner Funct

    Hi Experts
    We are replicating Contacts from CRM to ECC, by assigning them to Accounts. We have a scenario to restrict Contact Person replication to ECC only for specific Partner functions (we have 5 such partner functions), for remaining partner functions the contact Persons should not be replicated to ECC.
    By Partner function I mean, while making this assignment of Contact to an Account in u201Ccontact Person Relationships datau201D under u201CPartner Function Assignment blocku201D (in web UI) we are adding a Partner function E.g. Author, (same can be seen in GUI, under Usage tab of CP Relationship data).
    However we were able to replicate contacts assigned to accounts to ECC in our 5 partner functions, but even the unwanted contacts assigned to other partner functions in CRM are also getting replicated
    How can I restrict CP replication from CRM to ECC based on Partner Functions assigned to the Contact Person
    Your help is highly appriciated.
    Points guaranteed.
    Regards

    Issue resolved using CRMC_BUT_CALL_FU.
    Posing the table name, just in case it might help others.
    Thanks

  • VA05 Partner Function Selection Problem

    Hi Guys,
    In VA05 report when we click on “Partner Function” button then click on drop down it is showing only “Sold to Party” . User want to see all the partner functions in the drop down. I am not sure where the selection of partner function is controlled.
    Please let me know if you guys have any idea.
    Appreciate your responses.
    Thanks,
    Rohit

    Hi Rohit,
    VA05 is Sales Order report to enable end-user to view all order based on given requirement. This means that you can only find the data based on Partner Function's criteria of Sold-to or Ship-to.
    The other partner functions will not get you the desired result here. You need to look for other report.
    Raj

  • Whats the relationship between oppurtunies and Partner function in table?

    Hi,
    I have to generate a dynamic Query for Search to filter based on Partner function.
    I got crmd_partner_fct table which has the codes assigned to the Partners But how do i relate it to
    crmd_orderadm_h so that I can filter based on the partner number i select?
    George

    i have so many partners under pft_5 (Employee) and all are giving value pft_5 in the CRMD_ORDER_INDEX table for the same GUID in header.. How can i  find out the oppurtunities searching by partner function  of PFt_5 group .. (Not sure what to ask since We have this new partner functiions added to the dropdown and i dont see any difference in the table based on the Partner Function selected in the screen.Each function has a different number assigned but I dont see that in the table)

  • Automatic assignment of Partner Function (Dealer) based on Postal Code?

    Hi Experts,
    We are realizing a project in the Bathroom-Product Industry. Responsible for the service to the end-clients are authorized dealer. When creating a service ticket the responsible dealer has to be assigned automatically to the ticket on the basis of the postal code where the IBase (the product) is installed.
    The process is:
    1. The client is calling the Interaction Centre and first the IC Agent has to identify the account and the Installed Base (The     installed base contains the postal code where the product of the client is installed) of this account.
    2. An Interaction Record is created to record this inbound call.
    3. Afterwards a Service Ticket is created as a follow-up Document of the Interaction Record. In the moment of the creation of the Service Ticket the correct dealer has to be assigned automatically to the Service Ticket (as a Partner Function not as a Service Organization) on the basis of the postal code of the installed base.
    I have the following question! Which are the steps to assign automatically a Business Partner Function to a Service Ticket? We also need to create a Z-Table with the postal codes for which every dealer is responsible.
    Example:
    Dealer 1 is responsible for the postal codes: 08040 - 08045 and 08056 - 08059. If a client is calling and his product (Installed Base) is installed in Postal Code 08042 or 08054 the dealer 1 has to be assigned to the service ticket.
    I hope I could make myself clear ;-)? Anybody can give me a hint how to do that? What are the basic steps?

    Slightly similiar, originally being an R/3 customer before implementing CRM our dealer equated to sales office.
    In the CRM Org model (PPOMA_CRM) in the attributes of the sales office we entered the Regions & Postal codes for that dealer (pain in the arse to do) and in CRM the sales office in the org creates a BP.
    We used a org rule for the IR record based on country, region, postal code to determine the appropriate sales org, DC, div, and sales office based onthe zip code.  We created a custom partner function to represent the partner number of the  BP from the org model.  Then we configured a custom relationship "ZORG" "Is partner of sales office" and went into the BP master and assigned the actual dealer number as a partner to BP from the org model that = sales office.  From that we configured a custom access sequence to pull the actual dealer number from the org model office relationships.
    We looked at territory management, but our dealer is an "org BP" and territory management appeared to want to drive to a person BP number.

  • Filtering My Open Task in SAP CRM based on Status, Transaction & Partner Function

    Hello
    Whenever i create a Task in SAP CRM, it displays that transaction in the My Open Task of all Business Partners involved in that Transaction.
    I want to restrict the My Open Tasks based on Transaction Type, Status and Partner Function.
    1) The system should work as it is for all other Tasks but for my Custom Transaction Type the logic should be based on status of the Transaction
    2) When My Open Task component is prepared the system should consider the Status and Partner Function as well i.e. if the status is Approval of Manager, the system should show the Open Task only to the Manager and not other parties.
    3) if the status of the Transaction is Open, the system should only display this Transaction / Task only to Employee Responsible and not to Manager and other people involved in their My Open Tasks.
    I have gone through the following post in SCN:
    https://scn.sap.com/thread/2056959
    I have implemented the method DO_PREPARE_OUTPUT as per the post but it does not do anything. When i redefine the method GET_QUERY_RESULT and remove everything,it does not prepare any list.
    If possible please specify which method needs to be redefined in the component/view CRMCMP_GS_WC/TodaysTasks & if possible please share the code that needs to be maintained in that method.
    Thanks

    Hi,
    Method DO_INIT_CONTEXT should be redefined
    This should be redifined to get the collections with your required filter criteria.
    * get the collection of entities for the tasks
       lr_col      = get_query_result( gc_status-open ).
    If this does not help, Delete the collections which are not required after above selection but before this code.
       me->typed_context->resultnew->collection_wrapper->set_collection( lr_col ).
    Thanks
    Ajay Singh

  • Org determination based on the Partner function

    Dear Experts,
    I have a scenario where i need to determine the org data of an activity based on BP assignment in Org model. this BP is caluclated based on partner determination procedure which has got access sequence "Preceding Document: Activity Partner -> Preceding Document: Sold-To Party" & is actually an employee. This employee is assigned to org structure & i want to have the org data based on that.
    Can somebody help me on that.
    Thanks & Regards,
    Shashank Agrawal

    Hi Shashank,
    In the customizing, under transactions->define transaction types,  cannot you make use of  "Partner function ORG" under "profiles"?
    Regards,
    Arun Prakash

  • Determining Partner Function based on Status of Transaction

    Hello
    I have a requirement in which parties involved needs to be determined based on the status of the Transaction.
    Please let me know how we can fulfill this requirement. Is there any BADI for the same and if yes what code do we need to maintain.
    Thanks

    Hello Jatin,
    You can always do order related modifications on Action profile. Based on the condition whether the header status is changed or Item status You can configure an action profile & assign a start and schedule condition for same.
    The logic in the badi can be to update the partner function as per your needs.
    Regards,
    Ravi

  • Rule Modeler - Automatic assignment Partner Function based on PC of IBASE

    Hi Experts,
    I have the following requirement. The IC Agent when receiving a call has to create a Service Ticket (Service Order). By creating the Service Ticket the responsible Service Partner has to be assigned to solve the service incident based on the Postal code of the IBase (Installed Base).
    The following steps I have done:
    1. I have created the Service-ID Z_RE_RULE_EXEC (Rule Invocation) with the following properties:
        CONTEXT               Context
        DEF_ROUTING    Default Routing
        LOG_LEVEL        Logging Level
        POLICY                Root Policy
    2. Under Repository I have defined a new context: Z_TICKET_ASSIGMT with the following properties:
    Context Properties: No Customizing
    Authorization Groups: No Customizing
    Attributes: 
    Name: ZPOST_CODE1_IB
    Show Attribute: Flag marked
    X Path Expression: /parts/currentIbase/ComponentAddress/POST_CODE1/text()
    Fact Gathering Service: FG_IC_REF_OBJ
    Attrib. Ext. Class: CL_CRM_ERMS_ATXT_TEXT_NCAT
    Actions:
    Action-ID: Z_PARTNER_ID
    Show Action: Flag marked
    Action Service ID: DD_AH_PARTNER_ID
    Action Parameters:
    Parameter-ID: PARTNER_ID
    Display Mode: O
    Inp Spt Class: CL_CRM_DD_F4_BP
    Afterwards I created the Rule Policy: Z_PRUEBA2 with the condition that if the Postal Code of the IBase is 08030 or 08035
    the Partner Function ID 56 has to be assigned to the Service Ticket. I have released the Rule Policy afterwards.
    Into the standard Service Manager Profile SAP_ORDERROUTING I have added the created
    Service-ID Z_RE_RULE_EXEC with the following properties:
    CONTEXT:     Z_TICKET_ASSIGMT
    LOG_LEVEL:     0
    POLICY:     Z_PRUEBAS2
    Now I want to test the rule policy by entering with the ROle SAP_CRM_UIU_IC_MANAGER (IC Manager) but I can not see any possibility to do that. So my questions is how I can test the rule policy Z_PRUEBAS2? Do I have to assign the Service Manager Profile to the IC Center Agent Role?
    Best Regards
    Oliver

    Solution: Problem solved. Error was the name of the attribute. It has to be POST_CODE1_IB
    and not ZPOST_CODE1_IB.

  • Partner functions (R/3- CRM) based on employee number (KNVP-PERNR) or CP

    Hi all gurus,
    I am trying to replicate an partner-function base on personnel number/employee number for customers from R/3 to CRM.
    For those partner-functions only the employee number is filled in KNVP-PERNR (the KNVP-KUNN2, KNVP-LIFNR and KNVP-PARNR are empty).
    If I follow the replication process I don't see the employee number getting mapped to the "bapimtcs structure" (in function module COM_BUPA_MWX_CREATE_REL) and therefore those partnerfunctions are not replicated to CRM.
    (all employees are entered in HR-R/3 and downloaded to CRM as business partners)
    Basically this is exatly the same situation described in the following forum:
    [Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)  |Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)]
    What (function modules/configuration) is necessary to get those partner-functions being replicated to CRM?
    Unfortunately I was pretty unable to collect valid solution track.
    Thanks in advance,
    AndreA

    Hi Andrea,
    We were able to solve the exact same issue.
    Here are steps used by us to fix the issue :
    IMG Settings in CRM :
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer>Distribution of Partner Functions from SAP ECC into CRM>
    Partner Function = VE
    Funciton = Employee  Responsible(00000014)   ( can be any other partner function which is a employee)
    Usage= CRM
    Also make sure the following settings are also done
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer-->Distribution of Partner Functions from CRM into SAP ECC
    Funciton = Employee  Responsible(00000014)
    Partner Function Cat = Employee
    Scenario = CRM
    R/3 func = VE    ( even though you are using the PE partner function in ECCwe use VE here as you know VE is the german  version of PE)
    Type = MR master record
    Also make sure that SAP Notes 1020514  and 1099363 have been applied in ECC.
    Let me know if you have any issues. This should fix it.
    Thanks
    Edited by: Venkat_30 on Dec 14, 2011 5:15 AM

Maybe you are looking for