Filter in Distribution Model View

Hi,
I am sending HR master data to E-rec system using Distribution Model view.
Here i need apply filter for HRMD_A message type for field Pernr, here the condition is
only one employee data needs to be send, all other employees needs to be filtered.
The problems is as you know there might be thousands of employees (pernr ) which i cannot list out while setting filter.
Please suggest me solution for this.

Hi,
you can use BADI "IDOC_CREATION_CHECK" to Filter those Values and decide to create or not.

Similar Messages

  • ALE Distribution model view

    Hello
    I am setting up an ALE scenario to send idocs from system A to system B. I have a problem with the distribution model view. The model has been distributed to the receiving system with the wrong basic idoc type entered in the partner profile. I would like to know how I can change the model view and re-distribute it.
    Thanks,
    A.P.

    Hai
    Go through the following Procedure
    ALE IDOC
    Sending System(Outbound ALE Process)
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode  BD64 ? Create Model View
    Tcode  BD82 ? Generate partner Profiles & Create Ports
    Tcode  BD64 ? Distribute the Model view
    Message Type MATMAS
    Tcode BD10 ? Send Material Data
    Tcode WE05 ? Idoc List for watching any Errors
    Receiving System(Inbound ALE )
    Tcode SALE ? for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 ? Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 ? Idoc List for inbound status codes
    ALE IDOC Steps
    Sending System(Outbound ALE Process)
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Create Model View
    Tcode BD82 !V Generate partner Profiles & Create Ports
    Tcode BD64 !V Distribute the Model view
    This is Receiving system Settings
    Receiving System(Inbound ALE )
    Tcode SALE ?3 for
    a) Define Logical System
    b) Assign Client to Logical System
    Tcode SM59-RFC Destination
    Tcode BD64 !V Check for Model view whether it has distributed or not
    Tcode BD82 -- Generate partner Profiles & Create Ports
    Tcode BD11 Getting Material Data
    Tcode WE05 !V Idoc List for inbound status codes
    Message Type MATMAS
    Tcode BD10 !V Send Material Data
    Tcode WE05 !V Idoc List for watching any Errors
    1)a Goto Tcode SALE
    Click on Sending & Receiving Systems-->Select Logical Systems
    Here Define Logical Systems---> Click on Execute Button
    go for new entries
    1) System Name : ERP000
    Description : Sending System
    2) System Name : ERP800
    Description : Receiving System
    press Enter & Save
    it will ask Request
    if you want new request create new Request orpress continue for transfering the objects
    B) goto Tcode SALE
    Select Assign Client to Logical Systems-->Execute
    000--> Double click on this
    Give the following Information
    Client : ERP 000
    City :
    Logical System
    Currency
    Client role
    Save this Data
    Step 2) For RFC Creation
    Goto Tcode SM59-->Select R/3 Connects
    Click on Create Button
    RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
    give the information for required fields
    RFC Destination : ERP800
    Connection type: 3
    Description
    Target Host : ERP000
    System No:000
    lan : EN
    Client : 800
    User : Login User Name
    Password:
    save this & Test it & RemortLogin
    3)
    Goto Tcode BD64 -- click on Change mode button
    click on create moduleview
    short text : xxxxxxxxxxxxxx
    Technical Neme : MODEL_ALV
    save this & Press ok
    select your just created modelview Name :'MODEL_ALV'.
    goto add message type
    Model Name : MODEL_ALV
    sender : ERP000
    Receiver : ERP800
    Message type :MATMAS
    save & Press Enter
    4) Goto Tcode BD82
    Give Model View : MODEL_ALV
    Partner system : ERP800
    execute this by press F8 Button
    it will gives you sending system port No :A000000015(Like)
    5) Goto Tcode BD64
    seelct the modelview
    goto >edit>modelview-->distribute
    press ok & Press enter
    6)goto Tcode : BD10 for Material sending
    Material : mat_001
    Message Type : MATMAS
    Logical System : ERP800
    and Execute
    7)goto Tcode : BD11 for Material Receiving
    Material : mat_001
    Message Type : MATMAS
    and Execute --> 1 request idoc created for message type Matmas
    press enter
    Here Master Idoc set for Messge type MATMAS-->press Enter
    1 Communication Idoc generated for Message Type
    this is your IDOC
    Change Pointers
    I know how to change the description of a material using ALE Change Pointers.
    I will give the following few steps
    1) Tcode BD61---> check the change pointers activated check box
            save and goback.
    2) Tcode BD50--->  check the MATMAS check box save and comeback.
    3) Tcode BD51--->  goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
    4) Tcode BD52--->  give message type : matmas press ok button.
       select all  what ever you want and delete remaining fields.
       save & come back.
    5) 5) go to Tcode MM02 select one material and try to change the description and save it
       it will effects the target systems material desciption will also changes
    6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
       give Message type : MATMAS and Executte
    ALE/IDOC Status Codes/Messages
    01 Error --> Idoc Added
    30 Error --> Idoc ready for dispatch(ALE Service)
    then goto SE38 --> Execute the Program RBDMIDOC
    29 Error --> ALE Service Layer
    then goto SE38 --> Execute the Program RSEOUT00
    03 Error --> Data Passed to Port ok
    then goto SE38 --> Execute the Program RBDMOIND
    12 Error --> Dispatch ok
    Inbound Status Codes
    50 Error --> It will go for ALE Service Layer
    56 Error --> Idoc with Errors added
    51 Error --> Application Document not posted
    65 Error --> Error in ALE Service Layer
    for 51 or 56 Errors do the following steps
    goto WE19 > give the IDOC Number and Execute>
    Press on Inbound function Module
    for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
    Regards
    Sreeni

  • Distribution Model View - Error

    Hi,
    When we try to distribute the model view, we get an error 'Model View has not been distributed. Reason : Maintenance systems for model view D-HR-MD are not identical...Maintenance system in sending system D-OFS-HR.....Maintenance system in receiving system DH3-500' .
    What is being referred to as the maintenance system here? Are we missing out on something?
    Thanks in advance!
    Regards,
    Nejuma Iqbal

    Hi buddy,
    we are also facing the same type of Error in BD64 while distributing the model view
    Could you please help me to resolve this error
    Regards

  • Adding a Filter in a distribution model

    Hi Experts,
    I need to add few fields in my IDOC segments as a filter in distribution model.
    and i need to set certain values to these fields.
    Can anyone plesae tell me step by step procedure how to add the filter in distribution model?
    Regards,
    Ashish

    Hii..Ashish..
    These are the Steps to Implement Data Filtering in ALE.
    Filter Objects: These are the Fields based on which you define The Conditon.
    For eg: Matnr, Mtart...
    1. Create a Filter Object (If it is not available for ur Requirement)
       Tcode: BD59
       New Entries:
       ALE Filter Object type : MBRSH (Industry Sector)
       Segment type :  E1MARAM
       Segment field : MBRSH
       Save.
    2. Link the ALE Filter Object type to the Table field in DDIC
        Tcode: BD95
        New Enries:
        ALE Filter Object type : MBRSH (Industry Sector)
        Table Name : MARA
        Table field : MBRSH
        Save
    3. Creating Data filtering using this Filter Object type
        Tcode: BD64.
        Expand ur Model view.
        Under the Message Type MATMAS
        Double click on No Data filter / Data filter Active.
        Create a Filter Group.
        It will list out all the Filter Objects of the Message type:
        (you should find the New filter Object type)
       Double Click on the Filter Object type MBRSH .
       Assign the Filter values
       Save.
    <b>Reward if Helpful</b>

  • Generate Distribution Model ERP = EWM

    HI
    I am performing Generate Distribution Model ERP => EWM for new WH. Getting below error message.
    Method BUS2015.SAVEREPLICA exists in model view WMS
    Message no. BDDISTMODEL051
    Please Help to resolve as early
    Rgds
    Dinesh.P

    Hi Dinesh,
    When you are trying to Generate Distribution Model for your warehouse that time there are three fields one of those is your ERP warehouse number and Second is Logical System of EWM and third one is Distribution Model view. You might have entered a wrong model view name and then you tried to execute, system is giving you error that ".... method exists in model view WMS" that means you need to enter WMS model view in third field and then execute with radio button selected CREATE ENTRIES along with BOTH radio button selected.
    Thanks and regards
    Anoop Singh

  • Find distribution model in source system and maintain filter in it

    I have an inbound idoc which is in status 51(error). The procedure shown by SAP is following:-
    It has been determined that the particular employee 11001189 has been received for the first time.
    Maintain the filter of the appropriate distribution model. To do this, call transaction BD64 in the source system.
    Add new  filter group to the data filter. Assign values to it.
    I cannot find the distribution model. Please somebody help me in finding the relevant distribution model in the source system.  One more thing, when I went to BD64 I found that some of the model views were in grey shade while others were in bold, please tell me why is it so.
    Please give me some hint.

    I have an inbound idoc which is in status 51(error). The procedure shown by SAP is following:-
    It has been determined that the particular employee 11001189 has been received for the first time.
    Maintain the filter of the appropriate distribution model. To do this, call transaction BD64 in the source system.
    Add new filter group to the data filter. Assign values to it.
    I cannot find the distribution model. Please somebody help me in finding the relevant distribution model in the source system.
    You never maintain Filters in receivin system those has to me in sender system. Also you
    need to distribute the Model from sender to receiver once you model is finalized thru menu
    option in sender system. Find the Models with HRMD_A as message type
    One more thing, when I went to BD64 I found that some of the model views were in grey shade
    while others were in bold, please tell me why is it so
    simple, If its greyed out then this model is maintained in some other system and is
    just distrinuted over to this system, you shuld not maintain the greyed out entries as Maintaince
    system is different. The non grey entires are those for which its same system in which the model
    is created

  • How to create a data filter for BAPI used in a Distribution Model ?

    I am trying to create IDOC's for a QM inspection plan via message type QPMK in ECC 6.0. When creating the new message type in the Distribution Model, it forced me to use a BAPI (MasterInspectionChar) rather that just the message as I have done in the past. In order to ensure that only IDOC's related to a specific plant and material type get sent out, I was trying to create a filter.
    I am able to get into a 'Change Filter' dialog by double clicking 'No data filter set' under the node 'MasterInspectionChar.SaveReplica'. However, an attempt to highlight anything on this dialog and clicking button 'Create filter group' results in msg. 'Select node: Content-dependent parameter filtering'.
    Online help led me in a different direction, one thread led me to believe I needed to create a table entry for the filter in table TBD16 via BD81 for later attachment to the BAPI in the Distribution Model. Before this, I created two Z* ALE Object Type records for plant and material type in table TBD11 via BD95 for what I thought would provide a lookup back in BD81 for creation of a new filter record, but these objects are not found. Per the help, I am also unclear as to whether I would need to set up Receiver determination or Parameter filtering, nor where to make this step in the configuration happen?
    Can anyone point me back in the correct direction to get a data filter set up for this BAPI within the Distribution Model ?
    Thanks - Mike

    Just to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'.  But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter. 
    I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'.   Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI.  Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning.  Is this warning occuring because of missing configuration?
    Thanks - Mike

  • Error in distribution of  model view

    I created a modelview for distribution of CLFMAS types IDOCS from DEV to PRD.
    Created ports,RFC destination etc.
    I was able to generate partner profile in the sending system.When I try to distribute the model view in BD64,
    I get this error . Initially, I thought it was because I did not have authorization for BD64 in PRD. Now that I have, I still get this error.. Any advice ?
    Distribution of model view CHARS2PRD                                                                               
    Target system PRD100                      Communication error occurred                                                                               
    Process request without transaction. TID is empty.

    I see the message did not post properly..THis is the message..
    Distribution of model view CHARS2PRD                                                                               
    Target system PRD100                      Communication error occurred                                                                               
    Process request without transaction. TID is empty.

  • Tcode  PFAL there is no model view for the distribution of HR Data.

    Hi friends ,
    i am facing new problem,i want to send iDOC to other system.
    previeous its working fine.
    but to day  when i open tcode PFAL.
    it give me Error:"There is no model view for the distribution of HR master data"
    what is the solution for that.
    i want to send HR Data.
    its urgent please give me any solution ithat will help me alot.
    thanks in advance

    There is already Distributed Model Created.
    can u give me annother tcode so i can  send Metarial data, by IDOC.
    please help me.
    Thanks

  • Query related to filter group on matnr created in ALE distribution model

    Hi All,
    I have query related to filter group on matnr created in ALE distribution model.
    I have created a filter group on matnr in ALE distribution model and put the value E*  ( purpose is that all the material number started with E should be triggered in case of any changes in the material).But it is not working.
    <b>Can anybody suggest the solution for this i.e how to capture E* value for the material master changes and should trigger idoc using change pointer using BD21.</b>
    Thanks & Regards
    Prabhat

    Unfortunately, you cannot filter using wildcards or exclusions.  You have to explicitly list each allowed value in its entirety.
    In my opinion, the simplest solution would be to copy function MASTERIDOC_CREATE_SMD_MATMAS, modify it to handle your custom filtering and update the message type entry in transaction BD60.

  • IDOC to IDCO scenario: Distribution of model view

    Hi!
    I try currently to configure a IDoc to IDoc scenario for SAP ECC 6.0 system with following business 2 systems:
    ERP:100 (Sender)
    ERP:200 (Receiver)
    and PIB:100 (XI system)
    I successfully created a message type u201CZCREMRu201D and generated the model view PIMODEL in tcode BD64.
    Sender: ERP:100
    Receiver: PIB:100
    I assigned 3 partner profiles ERPCLNT100, ERPCLNT200, PIBCLNT100 and assigned a message type SYNCH with IDOC type SYNCHRON as outbound parameter.
    Unfortunately when I try to distribute the model u201CZCREMRu201D and choose my XI system I get the following error:
    Distribution of model view PIMODEL
    Target system PIBCLNT100      
    Model view PIMODEL has not been updated
    Reason: Distribution model is currently being processed
    Question:
    Do I miss some other inbound and outbound parameters?
    IF yes, which and on which systems?
    Thank you very much!
    regards
    Thom

    Hi Rob
    Y're right i made mistake when i was creating in SRM RFC destination puting host name of SRM system  not ERP.
    Thanx
    Marcin

  • Specific IDoc + Distribution Model = pb of filter

    Hi,
    I created a Message Type "ZHRMD_A" and an extension "ZEXT", and I use the standard IDoc type HRMD_A06. Thus my Idoc is: <b>ZRMD_A</b>.HRMD_A06.ZEXT
    All work fine: my ECC send correctly this idoc with the good values...
    But my problem is inside the <b>Distribution Model</b> (BD64): I haven't the line "Data filter active" under my Message Type ZHRMD_A, so <b>I cannot add filter</b> !
    Can I add filter on a specific Message Type?
    if yes, how?
    any idea is welcome.
    Regards
    Mickael

    Hi,
    u can use the tcode- BD56 for segment filtering.Also check for BD95.
    Regards,
    Nagaraj
    Message was edited by:
            nagaraj kumar nishtala

  • Distribution of Model View in ALE

    Hi Experts,
    I am setting up an ALE distribution of application data during which i am facing a problem durin ste step
    of "Distribution of Model View" .
    I am getting an error RFC destination does not exist , though i have created my RFC destinarion and i checked it using "Test Connection" & "Remote Logon".
    Please Suggest me.
    Regards.
    Shrikant.

    Hi,
    Follow these below steps for ALE configuration
    Step1: Creation of Logical system u2013 Transaction BD54
    Step 2: Assigning client to Logical System u2013 Transaction SCC4
    Step 3: Creation of RFC destination u2013 Transaction SM59
    Two RFC destination needs to be created u2013 one at the sender with the destination as the receiver, and another at the receiver with the destination as the sender.
    Step 4: Port generation u2013 Transaction WE21 - Port is required for the outbound message type and hence port generation is required only at the sender.
    Step 5: Creation of partner profile u2013 Transaction WE20
    Both outbound and inbound partner profiles need to be created.
    Step 5.1: Creation of outbound partner profile.
    Step 5.2: Creation of inbound partner profile.
    Step 6: Creation of Distribution Model u2013 Transaction BD64 - This needs to be done at the sender
    Regards,
    Jyothi CH.

  • Model view distribution error

    Distribution of model view MATMODEL
    Target system MATLOGR3
    RFC destination for synchronous communication (message type SYNCH)
    Partner profile LS MATLOGR3 SYNCH does not exist
    Generate partner profile
    or specify outbound partner profiles for message type SYNCH
    Target system MATLOGXI
    RFC destination for synchronous communication (message type SYNCH)
    Partner profile LS MATLOGXI SYNCH does not exist
    Generate partner profile
    or specify outbound partner profiles for message type SYNCH
    I am getting this error when i will distribute the moddel view,,...
    in Ecc5.0
    what i have do now

    Hi,
    Just chk if hv implemented all the following steps;-
    Once the mapping is done then re-check the ALE settings.
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2) a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    In SLD – System Landscape Directory
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    In Transaction SALE
    Define and Assign the logical system name.
    Regards,
    Ashwin M
    Reward if useful

  • Distribution Model (ALE) - Message type has to be deleted from model view

    Hello,
    I want to delete a message type from an existing model view in the distribution model (of the maintenance system).
    But when I mark the concerning message type and press Edit->Delete the message 'Action cannot be carried out on the nodes selected' occures. Deleting the complete model view would work...
    Does anyone know how I can get this without setting up a new model view?
    Many thanks in advance,
    Juergen

    hi,
    >>'Action cannot be carried out on the nodes selected'
    you get this message if you try to delete a message type
    from a model view that was not created on your system
    (it has been replicated and it's maintained on another system)
    so you can only delete this message type on the system that has
    "master" distribution model
    if it's not master then it's usually grey and you can only delete if it's black in change mode
    >Deleting the complete model view would work...
    if you try that you will see info that it's not the "master" system for this model
    check it and let me know
    Regards,
    Michal Krawczyk

Maybe you are looking for