Idoc Conversion rule, Change pointers and Filters

Hi Experts,
    Please any one can help me out, i need material or clear picture about Idoc Conversion rule, Change pointers and Filters where we can use these concepts what is the befit for these concepts.
Thanks in advance,
Ramesh.

Hi,
Check this link. It has got some of the tutorials you are looking for.
http://www.****************/Tutorials/ALE/ALEMainPage.htm
Cheers
VJ

Similar Messages

  • Idoc conversion rule

    Hi,
    What is idoc conversion rule? Why we need this?
    While upgrading from 4.7 to ECC 6.0 what all precautions need to be taken for the existing standard idocs and custom idocs in the system.
    Thanks & Regards,
    Soumya.

    Hi,
    ALE allows the user to perform an SAP transaction in the sending system, after-which the following steps occur:
    1 or more communication IDocs (intermediate documents: container for the application data) are created in the sending system database. An ALE distribution model, that needs to have been configured, determines which systems the IDocs are to be sent
    These communication IDocs, that contain the relevant application data of the transaction that was performed, are then passed to the ALE communication layer
    This layer performs an RFC call, using the port definition and an RFC destination determined through the customer model
    The IDocs are then transferred to the respective receiving systems. These could be SAP R/3, R/2 or external systems
    If the receiving system is an SAP system then:
    In the case of master data distribution the same transaction that was performed on the sending system is again performed on the receiving system with the data contained in the IDoc. This allows the data to go through the SAP checks before posting occurs
    In the case of transaction scenarios the relevant data is passed to the respective transactions in order to load the required application document. Eg. A PO is loaded on the sending side, yet a SO is created on the receiving system
    Master data has another difference:
    It can be set up in such a way that any changes made to specific fields in master data tables can automatically trigger off the ALE distribution process for that particular master data object
    If a master data object is created or changed on a sending system and distributed to another system the respective transaction is used to either create or change that respective master data object on the receiving system
    In general, if standard SAP can't perform the task required then neither can ALE. It doesn't add functionality, it merely decouples it and allows you to distribute it onto other remote systems.
    The Detail as described by SAP
    In the output processing one of the function modules of the application creates an IDoc, the so-called master IDoc. This IDoc is sent to the ALE layer where the following processing steps are applied:
    Outbound processing
    Receiver determination
    An IDoc is similar to a normal letter in that it has a sender and a receiver. If the receiver has not been explicitly identified by the application, then the ALE layer uses the customer distribution model to help determine the receivers for the message.
    The ALE layer can find out from the model whether any distributed systems should receive the message and, if so, then how many. The result may be that one, several or no receivers at all are found.
    For each of the distributed systems that have been ascertained to be receiver systems, the data that is specified by the filter objects in the customer distribution model is selected from the master IDoc. This data is then used to fill an IDoc, and the appropriate system is entered as receiver.
    Data selection
    Segment filtering
    Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -> Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.
    Field conversion
    Receiver-specific field conversions are defined under Functions for the IDoc processing -> Conversions.
    General rules can be specified for field conversions; these are important for converting data fields to exchange information between R/2 and R/3 Systems. For example, the field "plant" can be converted from a 2-character field to a 4-character field.
    The conversion is done using general EIS conversion tools (Executive Information System).
    Version change
    SAP ensures that ALE functions between different R/3 System releases. By changing the IDoc format you can convert message types of different R/3 releases. SAP Development use the following rules when converting existing message types:
    Fields may be appended to a segment type;
    Segments can be added;
    ALE Customizing keeps a record of which version of each message type is in use for each receiver. The correct version of the communication IDoc is created in the ALE output.
    The resulting IDocs (it is possible that several IDocs could be created in the receiver determination) are referred to as communication IDocs and are stored in the database. The dispatch control then decides which of these IDocs should be sent immediately. These are passed to the communications layer and are sent either using the transactional Remote Function Call (RFC) or via file interfaces (e.g. for EDI).
    If an error occurs in the ALE layer, the IDoc containing the error is stored and a workflow is created. The ALE administrator can use this workflow to process the error.
    Inbound processing
    After an IDoc has been successfully transmitted to another system, inbound processing is carried out in the receiver system, involving the following steps in the ALE layer:
    Segment filtering
    Segment filtering functions the same way in inbound processing as in outbound processing.
    Field conversion
    Specific field conversions are defined in ALE Customizing.
    The conversion itself is performed using general conversion tools from the EIS area (Executive Information System).
    Generalized rules can be defined. The ALE implementation guide describes how the conversion rules can be specified.
    One set of rules is created for each IDoc segment and rules are defined for each segment field.
    The rules for converting data fields from an R/2-specific format to an R/3 format can be defined in this way. An example of this R/2 - R/3 conversion is the conversion of the plant field from a 2 character field to a 4 character field.
    Data transfer to the application
    Input control
    When the IDocs have been written to the database, they can be imported by the receiver application.
    IDocs can be passed to the application either immediately on arrival or can follow in batch.
    You can post an inbound IDoc in three ways:
    by calling a function module directly: A function is called that imports the IDoc directly. An error workflow will be started only if an error occurs.
    by starting a SAP Business Workflow. A workflow is the sequence of steps to post an IDoc.
    by starting a work item A single step performs the IDoc posting.
    The standard inbound processing setting is that ALE calls a function module directly. For information about SAP Business Workflow alternatives refer to the online help for ALE programming.

  • Regd. change pointers and notifications

    Hi,
    The question might sound a little too broad.
    But bear with me...Just give me a brief overview,
    of how do I go about using change pointers....
    Just correct me if I am wrong.
    We create a change document object in the system, or use an existing one. About pointers I am not sure.
    Then, through SPRO and ALE we activate the change pointer for some message type. then....??

    Hi,
    I haven't done this in a while, so please check my answer!
    1) You activate change pointers in general in one transaction (I think it was BD61, but I'm not sure)
    2) Then you activate them for certain master data (i. e. material, customer, ...) in another transaction which I don't recall atm.
    3) Every time one of those master data objects is changed, the system generates a "change pointer", which you can basically just think of as an entry in a transparent table, which includes the type and key of your master data object (such as e. g. the material number).
    4) You plan a background job which will go through those change pointers and which will generate a master IDoc (e. g. MATMASxx) for this data object. The change pointers are then reset (i. e. every item will only be sent once).
    5) Depending on your ALE customization this master IDoc will be sent to a remote system.
    You can refine this scenario using quite a bunch of different techniques. One of them is filtering (e. g. only materials with a certain material group, or based on classification etc.). Other options are reducing the Master IDoc, e. g. sending only relevant data instead of the whole master IDoc. There are even a few customer exits, if that doesn't suffice.
    Hope that helps (please reward me if it does)!
    Regards, Joerg

  • Creation of Idocs from the change pointers by the program RBDMIDOC

    Hello,
    I'm Creating Idocs from the change pointers by the program RBDMIDOC.
    The IDOCS Created using the message type HRMD_A are Correct but when i try to RUN RBDMIDOC for message type HRMD_B no Data is selected for distribution.
    All the customizing are similar and i presume that all the change pointers are active (BD50 and IMG->Personnel Management -> Organizational Management  -> Basic Settings -> Activate change documents).
    Can anyone help me with the necessary steps to create this IDOC types.
    Do anyone know if the RBDMIDOC report is the Same for messages HRMD_A and HRMD_B.
    Thanks in Advance,
    Pedro Ferreira

    If the setting is fine, there may be some code in exit or badi for program RBMIDOC. Check the Exit and BADI.
    check the exit EXIT_SAPLBD11_001 and
    check the badi IDOC_CREATION_CHECK.
    Probably there may be some code on these exits which are stoping your code from getting generated.These are the two trigger happen once u execute the RBMIDOC program.for HR, we use RHALEINI program to generate the idoc. but even RBDMIDOC works. These 2 triggere will come with RHALEINI also.
    If there is no code here, Then there is problem in the setting only.

  • Send custom error message using IDoc conversion rule?

    Hello,
    I am using an Idoc conversion rule in BD79 to load cost centers.  In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field.  This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits. 
    Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
    Thank you,
    Rhonda

    Hi Rhonda,
    Any luck on the below.. i have a similar issue...
    Sorry to hijack your thread...

  • Can anyone send me link of IDOC gentn using change pointers!

    Hey guys I need to learn IDOC generation using change pointers.Please send me some help notes and link  and sample program on that !

    Hi,
    Change pointers are the mechanism through which you can send data to another SAP system or external system if there is a change happening to specific fields of master data.
    For more information, please check this link.
    http://www.angeli.biz/www5/cookbooks/workflow/workflow_30/docu.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/12/83e03c19758e71e10000000a114084/content.htm
    Regards,

  • Creating IDoc Type from Change Pointers using RBDMIDOC

    Hi All,
    we are executing program RBDMIDOC(Creating IDoc Type from Change Pointers) evrey 15 minuts in background.
    Issue : if some jobs are taking more than 15 minuts then next jobs are failed,
    is next job will pick up any idocs that were missed?
    there is no extesion's and ther is no Z-fields are used in that message type , we are used OILMAT as mesage type.
    Regards,
    DSK
    Edited by: suresh dameruppula on Aug 5, 2008 2:04 PM

    Hi,
    Include a step in your job and have a program which checks if a job is already running. If yes do not start the next instance of the same job.
    in the custom program just call function module
       CALL FUNCTION 'ZBC_JOB_ALREADY_RUNNING'
          EXPORTING
             JOBNAME           = p_job
          IMPORTING
             JOB_RUNNING       = w_count
          EXCEPTIONS
             JOB_NOT_SPECIFIED = 1
             OTHERS            = 2.
    Code within FM ->
       select count(*)
       into   job_running
       from   tbtco
       where  jobname = jobname
       and    status  = 'R'.
    where p_job is the job name.
    w_count is current running job count. If its greater than 1, then stop the 2nd with an error message.
    Rgds,
    Hema

  • Change pointers and RFC

    Hi All,
    Is it possible to implement change pointers without creating idocs, but with only RFC's.
    Actaully i am goign through aproject document which says the interfaces are implemented using change pointers and BADI's.I was in a understandign that there would be idocs created to communicate the master data changes to other systems.
    But one of the person who involved in the interface development said that there are no idocs related involved related to the interfaces, its all RFC's enabled.
    Can anyone please let me know if change pointers can also be implemented using RFC.
    Thanks in advcane.

    Hi,
    this is described sufficiently in SAPHELP - in a nutshell:
    Changepointers - as the name says - point at changes (change documents). Therefore the creation is together with change documents (at the end of FM CHANGEDOCUMENT_CLOSE.
    Chane pointers are created for ALE message types (tcode WE81). This does not mean, that any ALE message has to follow - there might be another subsequent action.
    Writing of CP must be enabled with BD50. With BD52 the tables/fields are customized. Precondition is, that the data element of the table field is enabled for change documents and that change documents are created. BADI
    BDCP_BEFORE_WRITE allows further refinement (or any other action triggerd by the change). Note that both - change documents and CP - are created in update task - so you have to activate update debugging to see it in debug.
    Storage of CP is in table BDCP2 (since release 7.00 former releases use BDCP and BDCPS). Read pointers with FM CHANGE_POINTERS_READ and set them to processed with CHANGE_POINTERS_STATUS_WRITE. If more than aprox. 1 Mio. pointers are read an overflow may occur - use CHANGE_POINTERS_READ_MODE_SET to set an appropriate block size and CHANGE_POINTERS_READ_INFO_GET to stirr the further processing. All FM are documented sufficiently.
    Have fun!
    hp
    Edited by: Holger Pakirnus on Sep 14, 2011 3:58 PM

  • Idoc Conversion Rules

    Hi all,
    Good Morning Friends. I am looking for proper documentation which can help me to understand the concept of <b>Idoc conversion rules</b>. I search a lot in help.sap.com and also google resources, but couldn't figure out any. I am very much interested in comprehending this concept from quite a long time. Can anyone help me to find out good doc's on this concept. If you have any documents you can plz forward them to <b>[email protected]</b>.
    Any kind of help will be appreciated and will be awarded points without failing.
    Have a nice day !!
    Thanks and Regards,
    Varun.

    HI Ferry LIanto,
    Thanks for your immediate reply. I have gone through this. I also want to learn the theoritical aspects behind this concept. Is there any documentation available in help.sap.com regarding this or are there any other resources available to learn this very much in detail ? I have tried rigorously, but couldnt trace any. If possible can you please help me in this regard ?
    Thanks and Regards,
    Varun.
    Message was edited by: varun sonu

  • Avoid the creation of idoc Debmas with Change Pointers

    Hi everybody.
    Ive customized the creation of idoc debmas with change pointers.
    In BD64 I´ve defined the distribution model but Id like to avoid the creation of the debmas idoc when an specific user has created/modified the custumer data.
    How can I get this?
    Regards

    Hello,
    I would suggest to handle this issue with authorization check...
    check the authorization object using SU53 and add a separate role for those specific user excluding those objects...
    Thanks
    K.

  • Change Pointers and Recovery Index

    Hi,
    Please give me any more details/docs/links about the Recovery index,indexing and Change Pointers.
    Is there any configuration needs to be done for change pointers and indexing.
    Regards,
    Krishna

    hi,
    can you provide some more details.
    which change pointers (and (reduced) message typesdo you mean?
    regards,
    Ralf

  • Change pointers and Idoc creation

    Hello,
    I would like to create change pointers for any changes regarding one of our customer infotypes: 9002 (hrp9002)
    I was able to do that, however, I'm struggeling with the details.
    The problem is that I do not want to send any data related to infotype 9002. I just need this change pointer to trigger idoc creation for the related objects.
    Example: Let's assume that infotype 9002 gets created for position S 40001234. Once a night a customer report is executed via a job which reads all unprocessed change pointers (including the one mentioned above) and sends the corresponding object. In this case, an Idoc for the holder of position 40001234 should be created WITHOUT data for infotype 9002.
    The message type is HRMD_A.
    What do I need to do?
    Thank you for your input.

    Hi,
    For Info type 9002 we need to implement Badi HRALE00CHANGE_PTRS using below code.
       LOOP AT  t_changed_objects  INTO   wa_changed_objects .
        CASE  wa_changed_objects-infty.
          WHEN '9002'.
            wa_cp_data-tabname = 'HROBJINFTY'.
            wa_changed_objects-plvar = '01' .
            wa_cp_data-tabkey  = wa_changed_objects .
            wa_cp_data-cdchgid = 'U'.
    *  wa_cp_data-CDOBJCL = 'HRMD_A'.
            APPEND wa_cp_data TO t_cp_data1 .
        ENDCASE.
      ENDLOOP.
      IF t_cp_data1 IS NOT INITIAL .
        CALL FUNCTION 'CHANGE_POINTERS_CREATE_DIRECT'
          EXPORTING
            message_type          = 'HRMD_A'
          TABLES
            t_cp_data             = t_cp_data1
          EXCEPTIONS
            number_range_problems = 1
            OTHERS                = 2.
        IF sy-subrc <> 0.
    * Implement suitable error handling here
        ENDIF.
      ENDIF.
    This code will create entry in BDCP2 table.
    After thsi populating segemnet you need to code for below exit as .
    EXIT_SAPLRHAL_003
       IF PNNNN_NAME = 'P9002' .
    *FIELD-SYMBOLS: <FS_plog> TYPE ANY.   "Field Symbol for dynamic filling of data based on the structure
    *Clearing the SUBRC
    CLEAR SUBRC.
    * fill workarea for infotype with infotype-data
    ASSIGN pnnnn_data TO <FS_plog> CASTING TYPE P9002.
    LS_9002 = <FS_plog>.
    * move fields
    MOVE-CORRESPONDING LS_9002 TO LS_p9002.
    * fill IDoc-data with workarea for segmenttype
    ASSIGN sdata_data TO <FS_plog> CASTING TYPE Z1P9002.
    <FS_plog> = LS_P9002.
    CONVERTED = ZCDP_IF_CONSTANTS_DTIRIS=>GC_CROSS .
    ENDIF.
    It will work fine.
    Thanks
    Anju

  • ALE IDoc Conversion Rule or BADI

    Hi,
    I'm new to ALE IDoc. I have a requirement to hide some sensitive data field for the HR information when outbound the Idoc.
    Example, I need to outbound the IT8 Basic Pay with payscale area etc but not with the basic pay amount. I can convert the basic pay amount to zero when the idoc is being created.
    I've searched through some information and found out that there are several ways to achieve it. However, I'm not sure which one is a better way.
    Is it using the Conversion Rule (BD62) or using Badi or Idoc Reduction method is better?
    Kindly give me some hints as I'm very confuse of which one is the better solution.
    Many thanks in advance.

    No user exit is needed for conversion rule.
    However, you should remember that conversion rules are applied segment fields for a particular message type. So wherever the IDoc message type is used the rule will be applied. If you want to associate the rule for any other condition in addition to message type better to go with a BADI
    These are steps to create and apply a conversion rule to a message type:
    1. Transaction BD62 - Create conversion rule and assign it to a IDoc segment
    2. Transaction BD79 - Define the conversion rule by selecting your field and clicking display button. Once inside you can use various options like set constant to map 0 to the basic pay
    3. Finally assign the conversion rule to your message type using BD55
    As for BADIs, IDOC_DATA_MAPPER is also suited for your requirement, the method PROCESS, allows you to manipulate your IDoc fields whichever way you want. You get the control record, data records, using which you can restrict your manipulation to specific message type or other conditions
    To above post, BADI IDOC_CREATION_CHECK should not be used for mappings/conversions as its specific purpose is to stop creation of an IDoc under required conditions

  • IDoc to CRM - change pointers?

    Hi,
    I'm currently involved in scenarios where I need to post various CRMXIF_* IDocs to CRM.
    What I'm wondering is, if I need to maintain change pointers in the IDocs - that is at header and item level maintain the fields OBJECT_TASK or TASK with proper values being either U (UPDATE), I (INSERT), C (CURRENT STATE), D (DELETE)?
    Now I've never had to do this before in any other IDoc scenario I've developed, so it would surprise me a little if its necessary - but need to be sure. It's my impression that SAP handles this internally and automatically, so that there is no need to worry about it!?
    Hope someone can clarify it for me:-)
    Best Regards and thanks in advance,
    Daniel

    Hi,
    Change pointer concept is in R3 side not in Xi side.That is to be created and activsted in R3 Side and send the Idoc by triggering the change pointer.
    So see the below link to ge more details.
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/27bde462848440ba70cf8eb348c86f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/12/83e03c19758e71e10000000a114084/frameset.htm
    Creating a change pointer and subsequently triggering an IDOC
    Regards
    Chilla

  • BD79 Idoc Conversion Rule

    Hi,
    I have a requirement where I have a Inbound Idoc which has two segments say E1EDP03 and E1EDP20. Both are date fields.
    now I want to map date from E1EDP03 if Qualif is Z01 to E1EDP20 using conversion rule.
    E1EDP03 (Qualif. Z01) - DATUM  -
    >>> E1EDP20-EDATU
    Is it possible to do this using conversion rule?
    Thanks,

    Hi Shital ,
    Thank U very much for replying to my question.
    But when I m trying to create the same , by clicking Use general rule & specifying special conversion routine ZBLNK , it is throwing the following error "Conversion exit ZBLNK does not exist".
    Please can u help me out.
    Thanks,
    Gyanaraj

Maybe you are looking for

  • Is there a way to affect the URL used when running a report subscription?

    We are using SQL Server 2008 R2.  I am finding out that when running a report subscription to extract a file in csv format, an extra blank line is created at the bottom (i.e., extra line feed), and the mysterious BOM characters also get inserted at t

  • Error in BPM - Error when processing node '0000000065' ParForEach index

    Hi All, I have an issue .. I have done 1:n mapping successfully and would like to place the Send step in loop instead of a Block .. The reason being I have the count of how many times the Send step should executed for multiline.. I need to receive an

  • "Stuck" Image in Transparent Background

    After Effects 11.0.2.11 Mac OS 10.7.4 A "ghost" frame from an old movie is stuck in the transparent / checkerboard background.  Always the same movie / frame.   Even in a new comp without any layers this old quicktime movie shows up.  Was a moving mo

  • Applications missing in Home folder?

    Hi, I was trying to do a back-up of my home/users folder which should essentially contain everything on my hard drive, when I noticed that in my home folder, the applications folder is empty. How is the best way to put all my my applications back in

  • WRT54GS v.6 times out frequently

    I have the WRT54GS router running v1.50 firmare that has 2 wired and 1 wireless connections to it. However there are frequent occurrences when the connection would simply time out, and any program that requires a constant connection, such as chat pro