Query on note 583933: Restrict material download based on sales area

Hi All,
Has anyone implemented note 583933?
We need to implement this note to have only those materials belonging to a particular sales area.
My question is:
Will the code changes mentioned in this note take care of delta download as well?
After doing an initial load of material object, if any existing material is added to a sales area which is already present in filter condition, will this material flow to CRM?
Please let me know.
Thanks & Regards,
Keya

Hi Kaya,
Note  583933 will work for delta load.
I'll explain how filters on object MATERIAL works.
Filters defined on header table MARA, on the same table-fields would
be taken as OR.But filters defined on different fields of header
table MARA would work as AND.This statement would hold good for
other child tables(MVKE,MAKT,MLAN etc) as well.
With respect to material child tables like MVKE,MAKT,MLAN etc,
please note that this would not restrict the header data i,e data
from table MARA to get downloaded.Rather it would restrict the
corresponding segment data to get downloaded to CRM.
If the filters defined on child table say MVKE does not get
satisfied,in which case MVKE data of that material would not come
down to CRM but MARA data would anyways come down if it satisfies
the filters set on MARA.
So if you have filters defined on table MARA and MVKE , then
materials from R/3 comes down to CRM if it satisfies the filter set
on table MARA.But MVKE(sales) data for those materials comes down to
CRM,only when filters set on MVKE is satisfied.But its not the other
way round i.e do not think that if MVKE filters are not satisfied,
then the entire material will not come down to CRM,which is not
the case.
You may also find note 526980 helpful
Regards,
Brian.

Similar Messages

  • Material documents based on Sales order

    Dear Experts,
    We are developing a report where I need to extract the list of material documents with movement type 411E and 412E based on the sales order. This data is available in MSEG but after designing the report, Its performance was  very poor hence we could not move the report to production.
    As MSEG is a cluster table it is taking to much time. I checked other tables MKPF MSSA but nothing is working out. Is there any way out to improve the performance of the report by taking the list of material documents based on sales order and movement types 411E and 412E .
    Please suggest me with suitable solution.
    I will reward the points immediately.
    With Regards
    Uday

    Hope you are not trying to join MKPF and MSEG currently:
    821722 - Performance of the join on MSEG and MKPF
    If you are below release 606 in your system, this note will have to be implemented in your system to bring redundant fields of MKPF into MSEG for performance improvement:
    1516684 - MKPF fields added to MSEG - Performance optimization
    The blog shared by Jurgen is pretty well explained. In addition have a look at these notes:
    1638997 - Performance: CKMDUVMAT selection with new fields in MSEG
    1558298 - MB5B: Redesign of selection for performance optimization
    1550000 - MB51: Redesign of selection for performance optimization

  • Restricting the order type to sales area!!!

    Hi All,
    I want some clarification!!!!
    Scenario:
    (1)We have two sales areas
    1000,10,00 and 1000,20,00.
    (2)We have two order types zor and zare both have same Document priicng procedure 'A"
    (3)Now the client wants to restrict the order typr zor to one sales area 1000,10,00.The system should not allow to raise an order with 1000,20,00 with combination of ZOR and A.
    (4)As the client has raised a number of orders with 1000,10,00 with the combination of ZOR.now if we change the document pp of zor to X .will it effect any other documents.
    Regards,
    RK

    T.Code: SPRO
    IMG --> Sales & Distribution --> Sales --> Sales Document Type --> Assign Sales Area to Sales Document Type.
    Here, based on Sales Area, it is possible to restrict the Sales Order Type. This will take care of point number (3).
    (4)As the client has raised a number of orders with 1000,10,00 with the combination of ZOR.now if we change the document pp of zor to X .will it effect any other documents.
    This will depend on copy control settings.
    Regards,
    Rajesh Banka

  • Mass extension of material master to differnt sales area

    Hi,
    How can we extend material master to different sales area enmasse.?
    Regards
    Kantha

    A material master is not just linked to a sales area.
    you have to create sales views per sales org and distribution channel.
    there are many fields in there that need to be maintained, SAP stores this info in table KNVV
    if all data in the new sales area is equal to an existing sales area, then you can easily extend using MM17, if not, then you have to use LSMW.
    MMSC_MASS is for storage location extension, this is certainly not a transaction to create sales area data views.

  • How to find a materail based on Sales Area ??

    Dear All,
    How to find a materail based on Sales Area ??
    please let me know ..
    Thanks
    Venkat

    Hi Venkat
    Its actually the other way round- you extend a material to a sales area
    The quickest way to find all the sales areas to which a material is extended,  is to go to  transaction SE16 and give table MVKE and then give the relevant parameters.
    Please reward points if this helps you

  • Grand Total Not working on Materialized view based table ??

    Hi all,
    I have a complex report report by using sum and decode function. I precalculated my requirment in database and then create a materialized view based on my sql statement. I import this view in physical and BM model and its results very fine and efficient. But the problem create when I implement Grand Total on my report in table view it did'nt work means (Grand Total is not working on this MV based table) Any idea why ??
    any reply would by higly appriciated.
    Regards

    Hi Zishan,
    Check the Aggregation Rule and set it to sum in the table view.
    That is go to the "edit formula" tab of the column for which you want grand total and set that to sum.
    Hope this will help.
    Thanks
    Ashok

  • One material extention to different sales areas and Act .***.grps?

    Hi,
    I have one material for which i need to extend the material to different distribution channels,divisions and account assignment groups in this case can i extend one material to different sales areas as mentioned above or i need to create one more material with same material master data except the sales view data?
    thanks.

    I have extended the same material to 2 different distribution channels and divisions but when iam checking in display view of MM for different distribution channels divions should be different as i have given divisions also different but in my case the last saved division only appearing for both different distribution channels.
    Second thing in MVKE table iam not able to find the division field(SPART)?
    Is iam missing any setting?
    Thanks!

  • Authorization on BP based on Sales Area Data

    Hi,
    We want to control the authorization on a BP based on its Sales Area data attached to it.
    I have done following steps for this:
    1. create a new authorization object in su21. Class = AAAB, fields  = ACTVT, SALES_ORG
    2. regenerate SAP_ALL
    3. Assign authorization object to BP Transaction (SU22 and SU24), with attribute = check/maintain.
    4. Create a new profile in PFCG, and assign this to a user.
    But this is not working, as the user is still able to see those BP's to whom a different sales area is assigned as mentioned in user profile.
    I did run a trace with ST01 and it shows that this authorization object is never checked during transaction call.
    Could somebody please help.
    Regards,
    Saurabh

    Hi Saurabh
    When you create your own Authorization object, it needs to be added to the CRM object through Authority –Check statement call at relevant place..
    Class CL_BUPA_USER is used to determine the relationship/authorities for a user on a BUPA Object. Add modifications as described.
    Change the method “can_display_partner” of class “CL_BUPA_USER”.
    Added statement “Authority-Check” at the end.
    Hope it works out.
    Regards
    Vishal Mani

  • Require to Find the Country Based on SALES ARea.

    Hi,
    Any one can tell me the TABLE Relations/FM to get the Country based on the Sales Organisation?
    Thanks,
    Sekhar.J

    Hi .,
    Please get the company code from TVKO Based on Sales Organization,
    After that Go to T001 table and get the country based on Company Code,
    Regards
    Jana

  • Query Filter not working - Lookup Community ID based on Community name

    I want to lookup Community ID based on the Community name. I tried the following code to filter the results and got a PTException. I'd appreciate any insight on to what I am doing wrong or a any other pointers to better implement this.
    // Build a filter for querying the community id by name
    Object[][] arrFilter = newObject[3][1];
    arrFilter[0][0] = newInteger(PT_PROPIDS.PT_PROPID_NAME); //Operand
    arrFilter[1][0] = newInteger(PT_FILTEROPS.PT_FILTEROP_EQ_NOCASE); //Operator
    arrFilter[2][0] = newXPStringBuilder(_strCommName); //Value
    IPTQueryResult qrCommunities = _ptSession.GetCommunities().Query(
    PT_PROPIDS.PT_PROPID_OBJECTID | PT_PROPIDS.PT_PROPID_NAME, //Props
    -1, //Folder to look in, -1 for "all"
    PT_PROPIDS.PT_PROPID_NAME, //Property to order by
    0, //Number of rows to skip, used for pagination
    -1, //Max rows to return, used for pagination. -1 means no limit
    arrFilter); //Filter to apply to results
    Thanks.
    Vanita
    Staples

    Also if you dont want to use the server API you can use the code below with the SOAP interface
    privatestringGetCommunityName(intiCommunityID)
    stringsCommunityName = "";
    //try to establish the remote session
    try
    if(log.IsDebugEnabled)
    log.Debug("Start remote session attempt");
    PortletRemoteSession = PortletContext.GetRemotePortalSession();
    catch(Exception ex)
    ErrorLabel.Visible = true;
    ErrorLabel.Text = "Error esablishing remote session";
    log.Error("Error esablishing remote session" + ex.Message);
    if(log.IsDebugEnabled)
    log.Debug(ex.Source);
    log.Debug(ex.StackTrace);
    //init the ObjectManager api to get the community name
    IObjectManager oObjectManager = null;
    try
    if(log.IsDebugEnabled)
    log.Debug("Start OBJ Man build");
    //create the search request
    oObjectManager = PortletRemoteSession.GetObjectManager(ObjectClass.Community);
    //deine the admin folders to search
    intfolderID = -1;
    intstartRow = 0;
    intmaxRows = -1;
    //define the return result sort order a bit invalid in this case
    ObjectProperty sortProperty = CommunityProperty.Name; ;//sort on the unique name
    boolascending = true;
    //what do we want back from this search
    ObjectProperty[] propsToReturn = newObjectProperty[1];//choose to return specific properties
    propsToReturn[0] = CommunityProperty.Name;
    //build the query filter we only want the community name from the passed id
    QueryFilter[] filters = newQueryFilter[1];//filter the results
    filters[0] = newIntQueryFilter(CommunityProperty.ObjectID, Operator.Equals, iCommunityID);//filter results on community id
    if(log.IsDebugEnabled)
    log.Debug("Start OBJ Man query");
    //do the search
    IObjectQuery queryResults = oObjectManager.QueryObjects(folderID, startRow, maxRows, sortProperty, ascending, propsToReturn, filters);
    if(log.IsDebugEnabled)
    log.Debug("results returned = " + queryResults.GetRowCount());
    //we should only ever get one result here
    if(queryResults.GetRowCount() != 1)
    log.Fatal("We have more than one community name result - warning Will Robinson warning");
    thrownewException("We have more than one community name result");
    //assign the name to the return var
    IObjectQueryRow queryObject = queryResults.GetRow(0);
    sCommunityName = queryObject.GetStringValue(CommunityProperty.Name);
    catch(Exception ex)
    if(log.IsDebugEnabled)
    log.Debug("Search error - " + ex.Message);
    ErrorLabel.Visible = true;
    ErrorLabel.Text = ex.Message.ToString();
    finally
    //clean up
    if(oObjectManager != null)
    oObjectManager = null;
    //and return the community name
    returnsCommunityName;

  • Out of stock material report based on sales orders

    Hi,
    I have a requirement to create a report where I need to show the unfulfilled sales orders due to materials were out of stock for those sales orders.
    e.g. there were 3 orders placed yesterday. we partialy delivered order - 1 as one of the material was available but second material was out of stock and order - 2 was not delivered at all due to out of stock materail and order - 3 was delivered completely
    Header 1
    Header 2
    Header 3
    sales order
    material
    quantity
    order -  1
    mat -1
    0
    mat - 2
    2
    order - 2
    mat-3
    0
    order - 3
    mat - 4
    2
    required out put it to show only those sales orders which has 0 quantity materials.
    Header 1
    Header 2
    Header 3
    sales order
    material
    quantity
    order -  1
    mat -1
    0
    order - 2
    mat-3
    0
    any advice on data modeling as to how do i achieve this?
    Which dataosurces shall i use?
    regards,
    Biapp

    Hi Gajesh,
    I have looked in to the material availability date and it gives me the required result about 80%.
    only problem is e.g.
    if the customer placed order for a material for 10qty and if we had 5 in stock same day and the rest of the 5 qty is available after the month but material availability picks up that 5 qty and it does not show that we were not able to fullfill the order 100%. material availability date does not pick up the second date.
    how do i overcome this issue? do you have any idea?
    regards,
    BIapp

  • How to restrict the Report based on sales office

    Hi Experts,
    I am using BW 3.5. I have a requirement that my sales report should give output to  particular user with his respective sales office only.
    For Example :
      User,   Sales Office
       A , Delhi
       B, Mumbai
    User A should not be able to see the data of Mumbai Sales office. As both the users using the same Report,
    Please suggest How to achieve this.
    Helpful answers will be awarded.
    Thanks&Regards,
    Venkat

    Hi,
    To do this, you need to make the infoObject Sales Office authorization relevant.
    Create an authorization Object using the t-code RSSM for this InfoObject. Restrict it with Activity.
    Create a role for each of the Sales Office and restrict your authorization variable with that office.
    Now you have 2 roles for eg. One for Mumbai, other for Delhi. Assign them to respective users.
    Create a authorization variable for Sales Office and restrict your report with that.
    Use the below documentation for creation of Authorization Object.
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/48f438f3422f2ce10000000a114084/frameset.htm
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Sep 18, 2009 11:04 AM

  • Restrict Delivery Entry based on Sales Order Delivery Date

    Dear All,
                  I create a Sales Order with a Specific Delivery Date say 15 Dec 2010. The System must prompt me if I try to Create a Delivery Document Based on the Sales Order before 15 Dec 2010.
                  Does it happen in standard system / Can it be achieved by SDK.
    Please Advice
    Thanks

    Hi Aslam,
                   If you want to Block the delivery document to post before the define delivery date in sales order than you can use the below Procedure...
    If @object_type = '15' and @transaction_type in ( 'A')
    BEGIN
    if exists (select * from odln a inner join dln1 b ON a.DocEntry=b.Docentry
    inner join ordr c on b.basetype=c.objtype
    where a.DocEntry=@list_of_cols_val_tab_del
    and b.basetype='17' and a.docdate<c.docduedate )
    begin     
    SET @error = 00001
    SET @error_message = N'Delivery can not be enter before delivery date '
    end
    end
    Hope it will work
    Regards,
    Atif

  • All the pricing conditions are not visible for a given sales area, material

    Hello All,
    There is a customized screen with sales area(Sales org, distribution channel and division), material and sold to party. There is buttton when we click it has to display the pricing conditions. The problem here is it is not displaying all the conditions some conditions like ZB02 and MWST are missing. The Function module used is PRICING.
    Whereas in VA03 tranaction for a sales order created with this sales area, material it is showing all the conditions for a item.
    Please help me to solve this issue.
    Many Thanks,
    Rama

    Hi
    The BP's created for one particular sales area are not getting replicated into CRM, though before sometime it was happening.
    DJ>>  Hope the required sales area is available in CRM.
    The BP with the "general data", and "role of sold to party" only flows but not with the sales area. There is no BDoc error in the SMW01 either. While displaying BP for the role of sold to party, it shows "Sold-to-party(maintained)" but the sales area entries though maintained for this sales area in the ECC, do not flow to the CRM.
    DJ>> Please check the following -
    1. Create a BP in CRM (with the sold-to party role) with the required Sales area and see if this customer when replicated to ECC has the relevant Sales Area.  Ideally it should get replicated if all you middleware settings are fine.
    2. See you have not set a filter for a specific Sales Area and becuase of that BP is getting replicate but not the sales area.
    Hope this will help
    Regards

  • Material not defined for a sales area

    Hi,
         When i use an existing material to create a sales order, it says "Material not defined for a given sales area"
         When i go to MMO1 and type in copy from, i just get to copy the existing plant, but not the sales org, dist chnl or div.
         Could someone tell me how do i define my material for a given sales area?

    hi,
    when you are entering your material number you will have a n option called select views  there you have find the followings views such as
    basic data 1, basic data 2 , classification,sales org data 1,sales org data 2,sales; general data etc
    if you select these views you can enter your division as you are going to enter the sales organisation, distribution channel in the begining by checking organizational elements.
    Please reward the points if the answer is helpful
    REgards,
    Murali

Maybe you are looking for