Applying filter sales org in Middleware

Hi Friends
We have a requirement wherein we need to apply filters on sales org via transaction R3AC1 in CRM.
Basically, We want to download customer hierarchy node customers from R/3 to CRM. These node customers have account group 0012 and Z012 in R/3.
To download these node customers, we have to add account groups Z012 and 0012 in Trx PIDE in R/3.
In CRM we can filter on sales org. via trx R3AC1, object CUSTOMER_MAIN.
But it does not seem possible to filter on combinations of account group and sales org
For example:
We want to download customers with sales org 0000, but only if these customers have account group 0012 or Z012
For other sales orgs, we want account groups ZC01, 0005, 0001 and Z002.
Accordingly there are few more conditions to be added but there is no provision in the tcode R3AC1.
I think there must be some user exits/ BADI's to do this. Could you please guide me on this ?
Pl let me know if you need any further details.
Thank You
Anil

Hi Anil,
I think this should be possible without using a BADI. If you define filter for sales data,  all customers are being replicated but sales data will be only maintained in the sales area specified in the filters. This is the standard behaviour but it can be modified
by setting the flag in TA PIVV  'Completely Filter Customer Data Relating to KNVV', as explained in note 614102.
Please be sure also to follow note 788822 point 13 wrt CUSTOMER_MAIN and CUSTOMER_REL filtering.
Best regards,
Brian.

Similar Messages

  • Selecting a column in Answers report based on user prompt/ apply filter

    I need to do the following in OBIEE Answers report (version 10.1.3.4.1):
    1) Think of a simple table with dim TX_type and some measures like month_jan, month_feb, month_mar
    so the fact table looks like (column names) tx_type, month_jan, month_feb, month_mar
    2) I need to select the measure column based on a user dashboard prompt, prompt populates a presentation variable var_month = jan or feb or mar
    3) I need to select the correct measure (one of these month_jan, month_feb, month_mar) and then apply column filter based on the dim TX_type to split the values of these into multiple columns for report. So the report may look like (in Answers)
    Sales , Tax, overheads
    where Sales may be defined as sum(month_jan) where rows have TX_type = 'sales'
    where Tax may be defined as sum(month_feb) where rows have TX_type = 'tax'
    where overheads may be defined as sum(month_mar) where rows have TX_type = 'overheads'
    IF the user selects jan
    IF user selects Feb then the 3 report columns are based on month_feb and likewise for month_mar
    I cannot use column selector option as the report column further apply filter in column filter definitions in Answers...
    4) When I try to build the column filter using a presentation variable (var_month), the presentation variable is not getting populated in the column filter.
    For e.g. IF var_month = 'jan'
    THEN month_jan (let us assume the logical column name is month_jan too)
    ELSE month_feb and so on...
    However, the var_month always shows 0 in the IF clause. If we used a repository variable instead, it works fine. But since repostory variable cannot be changed on the fly (by user prompt) it is not usable.
    We cannot change fact table defintion....and we have 12 measures column and about 8-10 different colum filter based report columns using this measure.

    Hi shyamvaran,
    have you thought about a SQL statement in the prompt, something like:
    SELECT
    case when 1=0 then Table."Column" else 'Jan' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Feb' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Mar' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Apr' end
    FROM "Subject Area"
    etc...
    Use this to give you the 12 values for your months then give the prompt column a presentation variable name and set a default value in the 'Default To'. Also set the same default value for the filter.
    A couple of points:
    1. If you're transforming the presentation variable from 'Jan' to 'month_jan' you may need to edit the syntax for the filter column (not using the dialog box).
    2. If you're transforming the behaviour of a dimension / measure column in the report, have you specified the syntax correctly, e.g. sum('@{pres_var}')?
    Hope this helps,
    Justin

  • Getlist bapi for customer based on sales org, distbtn chnl

    Hi,
        Is there any standard BAPI for customer Getlist , i want to filter based on distribution chanel and sales org and divison.
            Now am using BAPI_CUSTOMER_GETLIST  its showing all customer list i want to filter this based on distribution chanel and sales org and divison.
    Thanks ,
    Arun

    Hi Siva : )
    In VK11 we have a key combination radio button called Country/ Destination Ctr./Plant/TaxClCust/TaxClMat.
    I think it might be a custom key combination (so you might have to create a siliar one for yourself), but basically all I had to enter there was Country = GB, Destination Coutry = GB, plant SORG1 (it's called the same as the sales org and is linked 1-1), tax classification on Customer = 2 (because I want the central setting on the customer to be 2 = ICO, no tax), tax classification on material 1 = full tax goods and enter relevat tax code.
    Hope this helps.
    It worked for me.
    Kind regards,
    Tanja

  • Sales org roll out doubt

    Dear Peers,
    My scenario:  CRM roll out for DE.
    first CRM was implmented in US and the rollout is for DE. In R3 customer no:10 has assigned to 4 diff sales org included US and DE. Now i started the Initial load for the DE customers from R3 to CRM and the error i got is SYSFAIL and the detail is "Customer 10 is already assigned to a Business partner" and BUPA_MW_EXCHANGE103.
    in filter settings R3AC1 i am maintinaing KNVV and KNVP tables.
    my question is if do initial load for roll out , only aditional information i.e. Sales org details can be updated for the already existing customer in CRM?
    i.e.in my scenario the customer 10 is already in CRM now only the DE sales org has to update for the customer 10. in future if we go for rollout of another country that sales org details has to be updated to the existing CRM customer will it be possible?
    Thanks,
    K
    Edited by: kesava9 on Dec 13, 2010 2:52 PM

    Hi,
    Normally we only do Initial download once when we set up the system for the first time. after that all changes should be downloaded automatically needless of the sales org.
    Now I would recommend to do a request download instead of an initial download, since updates for that customer will be updated automatically for each rollout scenario if the customer is already there. if the customer is not there it would create a customer and updates the sales org details as well.
    Don't know if i answer your question correctly.
    Hopeit helps.
    Regards
    Sidd

  • Sales Org assign to Plant

    Hello Everyone,
    I would need your help to confirm the following is true or clarify some doubts:
    1. I understand that Sales Org (SOrg) is assigned to Plant   , thus :  Sorg := Plant
    2. Does this also Implies : SOrg + Distr Channel := Plant? Not necessary right? For this case, its not true / an invalid assignment right?
    3. Plant is assigned to Sales Org + Distr Channel.  Is it implicit that the Reverse is true? Is it implicit that Always the reverse is true, in general, for Any other organizational unit assignment relationships?   
    I believe that Sales Org := Plant and Plant  := Sales org + Distr Channel  and the reverse of each of both relationships are not true. Please confirm.
    4. Sales Org is Assigned to Plant but Plant is not Assigned to Sales Org right? Plant is also higher level in the organizational structure than Sales Org right?
    Thanks.
    Sincerely
    Bass
    SD Newbie
    Edited by: Bass Aton on Jan 2, 2011 5:20 PM

    Hi,
    I guess this will help you
    How to Configure a New Plant in SAP?
    Plant 0001 is the SAP defaults provide for your reference.
    OX14 - Define Valuation Area (Tick one only- Once your system go live, no more changes) Most company take the SAP recommended choice - Value Material Stock at Plant level Value Material Stock at Plant or Company Level If you valuate material stocks at plant level, the plant is the valuation area. If you valuate material stocks at company code level, the company code is the valuation area. The decision you make applies to the whole client.
    OX10 - Create / Change / View Plants
    OVXB - Create / Change / View Division
    OX18 - Assign Plant to company code e.g. 0001 - 0001 - All Plants Px1 - Plant Px1 Px2 u2013 Plant Px2
    OX19 - Assignment of company code to the Controlling Area
    OB38 - Assign company code to Credit Control Area
    OMJ7 - Assign business area to Plant/Valuation area and division e.g. Plant Px1 - Business Area Bx1 Bx2 Assign Valuation area to the Business Area .e.g. Valuation area Vx1 - Business Area Bx1 Business Area Bx2
    OMS0 - Assign Factory Calendar to the Plant and Business Area The plant plays an important role in the following areas: If you want to create by copying from existing plant: 1. Copy existing plant A to new plant B. All of plant Au2019s data in throughout the IMG will be created/copied for plant B. In some cases with plant A data that is not desired. In step 3 you must go through and correct invalid entries 2. Correct address information 3. Correct data copied to plant B as plant A (a) In Sales and Distribution -> Shipping -> Picking -> Determine Picking Location -> Assign Picking Locations (OVL3), delete entry where Shipping Point = plant A and Plant = plant B and press save. (b) In Sales and Distribution -> Shipping -> Basic Shipping Functions -> Shipping Point Determination -> Assign shipping points u2013 wherever plant B is found the shipping point is plant A. This must be changed to plant B. (c) In Enterprise Structure -> Maintain Structure -> Assignment -> Sales and Distribution -> Assign shipping point to plant u2013 delete plant B shipping point from the plant A assignment. (d) In Enterprise Structure -> Maintain Structure -> Definition -> Sales and Distribution -> Define, copy, delete, check shipping point u2013 copy shipping point plant A to shipping point plant B. Correct the description in the define section of this node. (e) In Sales and Distribution -> Shipping -> Picking -> Determine Picking Location -> Assign Picking Locations (OVL3), copy plant A entry to plant B entry, changing all data to plant B. (f) Check with Reorder buying group to determine MRP controllers for new plant. Remove plant A MRP controllers from plant B, and add controllers received from reorder buying group. IMG is Materials Management -> Consumption Based Planning -> Master Data -> Define MRP controllers (g) Define special procurement. IMG is Materials Management -> Consumption Based Planning -> Master Data -> Define special procurement type. (h) OMGN u2013 Assign customer in u201CSet up stock transport order u2013 [Plant]u201D. OMGN u2013 in u201CSet up stock transport order u2013 [Purchasing Document type]u201D; an entry was created for source plant B and plant A, this entry should have a UB order type and the check box should be off. Each plant needs a plant B UB entry created. (j) OMJ3 u2013 Delete incorrect entry in print parameters. Remove entry where plant = plant B & storage location = plant A. Create entry for plant B storage location B (k) Verify entry for new plant exists in OVLT picking output (l) Verify entry for new plant is correct in VP01 4. Manual configuration (a) Create plant customer number and assign to plant in OMGN. (b) OMJ3 u2013 set correct printer for plant B (c) OPK8 u2013 Set printer for plant for list LG01. This is for production orders. (d) Output determination OVLT (set printer), In addition to above, other changes based on customization in your installation needs to be done as well. Plants Definition : /NSPRO-IMG-Enterprise Structure-Definition-Logistic General-Define,copy,delete,check plant-Define Plant (In this, we are defining plants(s) under company which is defined earlier) /NSPRO-IMG-Enterprise Structure-Definition-Logistic General-Define,copy,delete,check plant- copy,delete,check plant-F6 to copy org. object from plant 0001 to defined plant(s). Storage Location : /NSPRO-IMG-Enterprise Structure-Definition-Materials Management-Maintain Storage Location-New Entries (Define required storage location(s) under different plant(s) ) /NSPRO-IMG-Enterprise Structure-Definition-Materials Management-Maintain Storage Location-Storage Location Description---- New Entries ( enter here addresses of each plants)
    Thanks
    Anil Hooda

  • BP sales org data update

    Dear Gurus,
    Can give some idea about the following issue.
    In CRM I have a BP 900123 with IN01 sales org replicated from R3 long ago.
    Now I maintained the org struc for FR with FR01 sales org and in CRM
    In R3 the customer 900123 is having 3 sales org DE01,FR01 and IN01.
    Now how do I need to update the FR01 sales org to the BP900123.
    In future if CRM roll out takes place for DE then I need to update the BP in CRM with DE01 sales org also. How to achieve this?
    I did req load R3AR2 for the customer with KNA1.KUNNR EQ=900123 and got u2018Sysfailu2019 error- customer already exists. What kind of filter need to set?
    Thanks,

    Hi Kesava,
               Do check the following:
                       1. Go to r3ac1 - check CUSTOMER_MAIN adapter object for relevant settings.
                       2. Go to r3ac4 and check for object BUPA for R/3 system whether all the objects are active.
                       3. Use crmm_bupa_map and do generic download now.
    The error message that you ve got is a generic error message and you can just ignore that.
    Cheers,
    Josh

  • Check Sales Org for Sales Org Status profile activation

    hi,
    I am not good with ABAP.  i am wondering whether it is possible to modify an existing requriement to check sales Org.
    Our company use  Transaction Flow, Field: Status Profile to control Sales Order discount.  We wrote a requirement to force user to change the Header level status to MD02 before they can apply a discount condition. 
    Right now, our business requriement changes,  we only want to allows 1 of the many sales org to be allowed to use the status field for discount, other sales org will not allows to apply the discount. 
    Hopes I have provides clear infromation.
    thanks & Regards,
    Rebella

    Closed as no action

  • Applying Filter in Tx:: R3AC1

    Hi SAP Guru's
    Could you plz let me know how do I restrict the Materials and Products of a particular Group company in our org from entering into CRM from R/3.
    These have seperate material n product code n division apart from the standard ones that are configured and are already there in the system.
    We have set the first two initial letters in order to differentiate between the new materials n products of the each Group Company.
    Have tried Tx:: R3AC1 but here in the adapter setting how do I filter specific materials or products.
    In all I want to restrict a particular category of products n materials from flowing into the CRM system.
    Regards,
    Amit

    Hi Sekar,
    I would like to clarifythe following scenario.
    suppose i want to block sales org 1000 and allow sales org 2000 .
    So i give it like this in r3ac1:
    Table      Field      Option      Low     High       Incl/Excl
    MARA     org        Equal       2000      ---             Inclusive
    Hence, i am defining the sales org that I have to allow in the system and will not set a filter for the sales org which I do not want in CRM system.
    Am I correct on this....
    Regards,
    Amit

  • Diff between Ref Sales Org & Dist Chann, Div - Commom Dist Chann & Div

    Can anybody explain me the clear diffrence with an example.
    thanks,
    Venkat

    Hi,
    Ref Sales Org & Dist Chann, Div is for reducing the number sales area you need to assign for allowing a perticular Sales Doc in this the common division and distribution channel will not work.
    but for master data like Customer, material and CMIR you have to useCommon Division and Dist Chanel. and in this yo ucan not use Ref Sales Org & Dist Chann, Div.
    the use is same but purpose is different. bit are used to reduce sales Area assignment respectively in their fields.
    Hope this clarifies your
    <b><u>Reference division/ Distribution Channel/ Sales Organization</u></b>:
    <i>For sales order IMG> Sales and Distribution> Sales> Sales Document> Sales Document header> Assign Sales order type to permitted sales area</i>.
    Note: in this you have option to combine Sales org, Dist chann and div as per requirement. But this will be only valid for Sales order only and will not apply on any master data. This will help as we need not to extend the SALES ORDER TYPE to all the DIVISION/ DISTRIBUTION CHANEL/ SALES ORGANIZATION.
    <u><b>Common division/ Distribution Channel:</b></u>
    <u>For master data: Like Customer master / material master and condition records.
    IMG> Sales and Distribution> Master Data> define common dist channel / Division </u>Note: in this you make common division and distribution channel for master data. And only then they will share the records in each other. Initial customer record should be maintained in the common division maintained and no need to extend it to others.
    <b><u>REWARD PONT IF IT SOLVES YOUR PURPOSE</u></b>

  • Two sales org in One company code

    Hi all,
    I know u can assign two or more sales org to one company code.
    But if i have one common customer i.e one Customer No for both the Sales org's  how do I differentiate which open items belong to which sales org when running my open item report in FI. The Sales org data is not transfered to the FI Posting. Is a user Exit and diff numer ranges in SD the only possibility? is there no sap Standard for this.
    Thanks
    dave

    HI,
    Are Business areas/Division of this customer same?
    Reference number and allocation numbers are transferred to accounting documents.In customizing for copy control in billing,you can define which numbers will be copied as reference or allocation numbers.
    Like - Sales order number,delivery number and Billing documents etc...
    From sales order number you can know sales organization.
    The reference number is in the header of the accounting document and is used for clearing.
    The allocation number is in the customer line item and is used for sorting line numbers.
    Vrajesh

  • FBL5N Cleared items not having the Sales org

    Hi Guys,
    In FBL5n open items having the Sales org (XREF1), when we are clearing the Documents, Sales org (XREF1) not coming to the cleared items.
    Is any user exit or BADI to populate the value to Cleared items also?
    Thanks
    Gourisankar.

    Hi
    Cleared and open items should be the same, i.e open item are cleared item before clearing it.
    So I suppose u mean the items of clearing document?
    If it's so u should check your FI customizing because it should be a clearing rule, so perhaps it shlould be better to ask it to your FI consultant
    Max

  • Mass change - Move existing sales orders from Sales org A to Sales org B

    Good morning dear network,
    am seeking for your guidance on one specific matter.
    We are in the process of making changes to our billing / organisational structure (new sales orgs)
    One of the challenges is that we need to move existing open sales orders from one sales org to another (new) sales org.
    If all master records exist in the new sales org, is there a (technical) way of moving the existing sales orders from the current sales org into the new sales org, without having to replace each order individually ?
    would welcome any suggestions.
    Many thanks

    I would recommend to close the existing open sale orders by assigning Reason for Rejection and create new sale orders in the newly created sales organisation.
    This is due to the fact that you need to ensure each and field in the existing sale orders to match with the newly created sales organisation and it is bit time consuming.
    Still if you prefer to what you had indicated, LSMW is the better option
    thanks
    G. Lakshmipathi

  • Few values of report column do not display in report while applying filter

    Post Author: anuragg11
    CA Forum: WebIntelligence Reporting
    There are 6 drill filters applied on the report to filter out the report column data. Few values of the report are not displaying in the report when using drill filter. Same issue is with report filter too. If filters are removed then values are appearing in the report. We are using version BO XI R2 & Java runtime JRE 1.4v. It doesn't look issue is with Java version because only few specific data of the report column are not shown in the report when using filter on the data. Example: One of Report data column contains below values: 24.2, 26.9, 120.1, 230, 274.9, 275.8, 333.2 Report is displaying all these values when there is no filter on any data. But report doesn't display data when applying filter on 274.9 or 120.1 howver filter on other values 24.2, 26.9, 230, 275.8, 333.2 are working fine.

    Hello,
    I think i know what your problem is.
    Although in table view your 2 requests combine perfectly and show separate results in pivot view BI unfortunaterly adds them up.
    One work around would be to go in your criteria add in each request a dummy column. This can be obtained the following way:
    1. click on a column to add it in the criteria (it doesnt matter which one)
    2. go into the edit formula of that column
    3. delete the formula and in its place write 'Dummy Column 1'
    Do the same for the second request by adding a "Dummy Column 2'
    Now the Pivot Table should also show up correctly
    Let me know if it goes well or if you have any further questions,
    Kostis

  • How to extend Sales org for a material being Changed

    Hi Experts,
    i need to extend sales org , distribution Channel for a material .
    my table look like this and having 6 fields shown below
      1             2         3               4            5                     6
    Sales org | Des | Distn Chnl | desc |  Copy from So | Copy from Dstn Chnl
    If the user enters the existing value in Copy From SO and Copy Fron Distn Chnl  .  Then i need to copy all the values corresponding to the Existing SO and Distrn Chnl to the Newly entered Sales Org . 
    the table im displaying in ALV , if user perss F4 in copy From SO and Copy From Distn  , i need to show the existing values for the material being changed , this is working fine and i am able to get the existing values.
    After user selects one of the existing value for SO and Distrn channel  , i need to copy all the values to newly created So and distrn Chnl  .
    i dont know how to proceed . Please help me to solve this problem.
    Thanks,
    Shrikanth

    You can use AET to extend the sales area data of BP.  However, it wont add the fields automatically in GUI, But the generated fields are available in the relevant DB tables.
    BP GUI transaction is no more supported . Im not sure why you want to work on GUI.
    Regards,
    Shaik

  • Error : Sales Org.Unit does not have these attributes -- Urgent

    Hi, Team,
    I am unable to create a service order with serivce material ( Only installation visit charges ) for w/o warranty product .
    I am getting error : " Sales Org.Unit does not have these attributes "
    I had checked the related Org data of respective sales org , already the sales area combination is also maintained from R/3 with required attributes "
    Pls revert with possible solution .
    Regards,
    VCS

    PePe :
    Thanks for reversion !!
    Basically it is a product Service Material (Servicing Charges), where in I had checked in the transaction ,   Though the required sales area  is well maintained in the R/3 System and is being replicated to the CRM . 
    When I checked the product Service material , the required comination is missing and could find other sales area combinations .
    Pls guide , how to go to get this resolved .
    Regards,
    VCS

Maybe you are looking for

  • PL/SQL: ORA-00942: table or view does not exist

    Hi i have logged into my schema and trying to access the database "DAD" which has the table name "SCHOOL" i wrote a function which should give me new_sno when i give it the old_sno and i have this errors , pls help CREATE OR REPLACE FUNCTION ORIG_SN(

  • All of a sudden i can't send email

    all of a sudden i can't send email with my frontier accounts. it fetches incoming email fine but i can't reply or send new email. it just sits in the outgoing box never to be sent. i checked all my out going server- smtp.frontier.com,  port-25, passw

  • Fatal1ty headest mk II problems

    i finnaly got to get my new headest to work without static in the backround by plugging the headest into the green jack labeled "front" in the back of my computer. i want to change some of the settings in the creative control panel but when ever i op

  • Modify security Profiles

    Hi I would like to add some objects to the SAP_ALL profile. This may not be recommended (am aware of that). Is it possible to do this in the first place? If so How? ravi

  • Dataload process - error capturing process (Best practise to follow)

    I'm pulling data from Oracle db and load into MS-SQL 2008. For my data type checks during the data load process, what are options to ensure that the data being processed wouldn't fail. such that I can verify first in-hand with the target type of data