Badi IDOC_DATA_MAPPER

Hi everybody.
Im trying to manipulate data of idocs in a implementation of IDOC_DATA_MAPPER: I want to change a field but I can´t get it.
Does anyone knows how this badi works to can change the data????
Thanks a lot.
Regards

Hello Christian,
You must be an expert in IDOCs by now, did you ever find out if this BAdI is of any use??
Regards,
Simon Patrick Alexander Kerr

Similar Messages

  • IDOC_DATA_MAPPER

    Hi at all,
    who can help me to manipulate idocs with the BADI: IDOC_DATA_MAPPER or who knows an useful doc.
    I´ve tried the following code to mod the company code. But nothing happens.
    DATA: _data TYPE edid4,
            wa_maptab TYPE IDOC_CHANG.
      CHECK sy-mandt EQ '508'.
      LOOP AT data INTO _data.
        CASE _data-segnam.
          WHEN 'E1BPACHE06' OR 'E1BPACGL06'.
            CLEAR wa_maptab.
            wa_maptab-segnum = _data-segnum.
            wa_maptab-feldname = 'COMP_CODE'.
            wa_maptab-value    = '0001'.
            wa_maptab-SAVE_TYPE = 'X'.
            APPEND wa_maptab TO mapping_tab.
            CLEAR wa_maptab.
            wa_maptab-segnum = _data-segnum.
            wa_maptab-feldname = 'TAX_COMP_CODE'.
            wa_maptab-value    = '0001'.
            wa_maptab-SAVE_TYPE = 'X'.
            APPEND wa_maptab TO mapping_tab.
            MOVE 'X'  TO have_to_change.
        ENDCASE.
      ENDLOOP.
    best regards
    Thorsten

    Hi ,
    is it getting triggered ?
    Just have a look at code in include LEDI1F09  routine call_badi , you will get some  idea
    Edited by: Keshav.T on Apr 6, 2010 9:03 PM

  • BADI to Change control record from idoc

    I’m trying to use the BADI IDOC_CREATION_CHECK to change the control record from the idoc but im not able to do it because the parameter IDOC_CONTROL is an importing parameter not a changing parameter, I’ve tried to use the BADI IDOC_DATA_MAPPER but I this case I’m just able to change the data record, should I use another BADI?
    Regards
    Luis Constantino.

    hi.
    have you tried ABI_IDOC_PROC_MODIF?
    i did not read much thru the documentation...
    i hope this helps.

  • Any BADI returning the 'IDOC Status'  during IDOC generation.

    Hello All,
    I need a BADI which is being called during any IDOC generation and which returns the 'IDOC Status' i.e. Pass/Fail etc.
    So far I am able to find BADIs like 'IDOC_DATA_MAPPER' or ''IDOC_DATA_INSERT'' but such BADIs only return the IDOC document number.. they do not return any information on IDOC Status (the field Status field remains blank).
    Can any one suggest some solution on this please.
    Regards
    Vikas Gupta

    Hi Erik,
    Thanks for your reply, though i was able to get the status from BADI IDOC_DATA_MAPPER itself (earlier there were some config issues...which were creating some problems) but thanks for letting me know about table EDIDS, it helped at places.
    Regards
    Vikas Gupta

  • 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

  • Need to reduce idoc for PO

    Hi all,
    we have a requirement to send PO details when new po is crated in SAP,
    but we need to send only 13 fields from PO , so how to reduce the fields and how map the fields,
    the below are the fields needs to send to legacy system.
    EBELN
    WERKS
    LGORT
    AEDAT
    BSART
    EBELP
    MATNR
    MENGE
    MEINS
    BANFN
    EINDT
    MENGE
    REVNO
    ERDAT
    which idoc needs to use , there are 3 idocs are available in SAP( PORDCR04, IMPINV01, ORDERS05)
    we are using ECC 6.0
    Regards,
    Suresh

    HI,
    there are a lot of ways.
    IF you are using ORDERS05 (ORDERS).
    Implement Exit "EXIT_SAPLEINM_002" and remove all unanted value in the Segments.
    Note: Each Segment is used by that exit.
    another way.
    Wait if the ORDERS is complete.
    Implement BADI "IDOC_DATA_MAPPER" and use Method "PROCESS" to get rid of all unwanted data.
    Note: this badi is called after IDOC_OUTPUT_ORDERS.
    Note: take care of using this Badi cause every created IDoc is running through that function ? You have to restrict for each IDoc Type and maybe Partner.
    example.
    Case CONTROL-IDOCTP or RCVPRN or ....
    when 'ORDERS05' ...
    endcase.
    Regards,
    Gordon

  • Encrypt SSN in idoc for infotype 0002

    I have to encrypt a field SSN for IT 0002 in idoc.
    after transporting i should have ssn in encryptred form.
    Is there any function module to encrypt desired field ?
    Thanks in advance.

    Encryption at database level is implemented using the BAdI IDOC_DATA_MAPPER and the enhancement spot IDOC_DATA_CRYPT.
    If it only needs to be encrypted for display check transaction WECRYPTDISPLAY.

  • IDOC_INPUT_GLMAST - GLMAST

    Hello All,
    For Message typ GLMAST, for inbound delivery i use the standard Function Module IDOC_INPUT_GLMAST.
    I need to delete few segements and i dont see an EXIST which will help me do so.
    Please lte me know your suggestions on this.
    1. I cannot delete at OUTBOUND level, it is comign from other system.
    2. I tried with BADI IDOC_DATA_MAPPER, but it is only to change the field content than deletion.
    Any thoughts are appreciated.
    Regds,
    Manohar

    Hello Samir,
    Thanks for your time on this.
    GLMAST01 does not facilitate any chages to IDOC.
    EXIT_SAPLKS04_001
    EXIT_SAPLKS04_002
    Both dont meet my req.
    I will do a copy of the FM with new process Code as last option, meanwhile still hoping to find a better solution.
    Rgds,
    Manohar

  • IDOC Encryption in the transferring

    Hi Buddies,
    I use IDOC->XI->IDOC to transfer the sales order through XI. There are some sensitive information in the SO IDOC, so I am wondering there is any way to encrypt the IDOC during the transferring.
    Appreciate any reply. Thanks.
    B'rgdz. Bu Ju

    Hi,
    for display encryption you can look at below link
    https://cw.sdn.sap.com/cw/docs/DOC-23361
    not sure how values will be displayed in PI after transfer.
    Encryption at database level is implemented using the BAdI IDOC_DATA_MAPPER and the enhancement spot IDOC_DATA_CRYPT.
    If it only needs to be encrypted for display check transaction WECRYPTDISPLAY.
    Regards,
    Suresh

  • Need to reduce details for using a browser game

    can I somehow adjust the flash player, so that the details of the browser game are reduced on my screen? All I found is a check box where I can choose the hardware acceleration (what was not useful)
    I am using flash player 10, firefox 3.5 and XP
    thank you for any hint!

    HI,
    there are a lot of ways.
    IF you are using ORDERS05 (ORDERS).
    Implement Exit "EXIT_SAPLEINM_002" and remove all unanted value in the Segments.
    Note: Each Segment is used by that exit.
    another way.
    Wait if the ORDERS is complete.
    Implement BADI "IDOC_DATA_MAPPER" and use Method "PROCESS" to get rid of all unwanted data.
    Note: this badi is called after IDOC_OUTPUT_ORDERS.
    Note: take care of using this Badi cause every created IDoc is running through that function ? You have to restrict for each IDoc Type and maybe Partner.
    example.
    Case CONTROL-IDOCTP or RCVPRN or ....
    when 'ORDERS05' ...
    endcase.
    Regards,
    Gordon

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Implementing BADI MD_ADD_COL_EZPS for MD04 custom column

    Hi there,
    I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
    For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
    My Question is:
    Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
    (At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
    I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
    to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
    Any help appreciated.
    Thanks,
    David.

    Hi Shubhendu,
    in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
    Same applies to EZ2_MODE for second column, EZ3_MODE for third.
    look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
    here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
    The code is hit for each record displayed in MD04
    Hopefully this helps you.
    Regards,
    David

  • Help Needed Badly | BlackBerry INC000025111306 | BlackBerry PlayBook - Tablet button does not work, almost stuck, copper under screen, seventh repair

    I was really Humilitated my RIM on this Ticket whcih i rasied.
    1) I bought a new tablet in last november in 2 months i had a Charger issue 
    2) They said this charger issue we cannot replace with new tablet and gave me a refurbished Tablet to me .
    3) Which also had same charging issue and they exchanged 2 more tablets and the last tablet which was given to me by RIM have a safety concern
     - 1 Small mesh of wire is poping out from the Tablet 
     - Power Button is very hard and its not that easy to press,
    So i raised the above ticket and was esclated internally with RMA as well and i got an update from the esclation agents that we will reply back in 2 Days i waited almost 3 weeks and called 2 times in this 3 weeks for an Update asking for a new tablet so that atleast once in all i can jeep a good 1 Tablet.
    But they never bothered to call me and today i called them again and RIM gave me a call back mentioning we cannot give a new tablet we can again check this tablet repair it and give it back , If we cannot repir then give a replacement new/Old tablet,
    I was wondering how can a tablet from RIM can go out without such safety concern ? How a mesh of wire can comeout of tablet so what safety norms RIM is follwoing for customer.
    AM i not humilitated? since after taking all these struggle tto get a good tablet i have been considered as bad.
    What RIM have to say for this, I am planing to take this to Legal department to follow how i can get a justice for this.

    I would have deleted this but can't find a delete?
    At any rate. got the Blackberry going again but it reset it and lost all the info, pictures and so forth.. oh well. at least it is still working.
    Thanks.

  • Error message in a BADI getting displayed in a popup instead of status bar

    Hello All,
    I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
    The BADI gets called on clicking 'Save' from transaction o3I8.
    Within the  BADI i am giving an error message using the following command:
    Message e000(ZABC) .
    However , the message gets displayed in a pop up instead of the status bar .
    The same is for information and warning messages.
    Any suggestions on how to display them in the status bar ?
    TIA
    Regards,
    Vartika

    Hi Brad,
    The checkbox to display messages in pop-up  is already switched off.
    Still themessages are getting displayed in pop-up.
    Regards,
    Vartika

  • Error message from a BAD PDF

    I am using Adobe Reader to render PDF documents as a part of a process and then convert it into TIFF. Some of the documents that come in are corrupt PDF documents and cannot render itself in the reader and hence cannot be converted. This is the error that the reader throws:
    ADobe reader could not open "test.PDF" because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)
    Now, the process is automated with no human intervention. with the advent of this error message, since there is a modal dialog box waiting for a response from the user, the process is interrupted and needs human intervention.
    My question is simply this. Is there an API i could use where i can figure out beforehand if the PDF is bad so i can reject such files early on? research shows that using the adobe forms server which has the PDF utility services, there is a query "Is a PDF document" that is available. I do not want to use a server product.
    Is there any other ADOBE product that exposes something similar?

    I guess i forgot to add that piece of information. WE do not create the PDFs. We receive PDFs from external sources over which we have absolutely no control  and that explains why we get such corrupt documents in the first place. I was just wondering if there was a simple API event/method/means attached to any ADOBE product which is compatible with .net that tells me if the PDF is corrupt UPFRONT.

Maybe you are looking for

  • Can't save as PDF from Firefox any more

    I can't convert pages to PDF any more. Not sure if this happened when I upgraded Firefox or when, but there is no menu option to convert to PDF. I use the Adobe CS3 suites and Firefox 3.5.9. == This happened == Every time Firefox opened == can't pinp

  • Some text on websites doesn't display properly

    Some text doesn't appear correct in Firefox (but does in IE). The text appears to get jumbled or scrambled but if I cut and paste the text from Firefox to a text file, the text is normal so it must be something in the display setting. The link below

  • 4th Gen iPod Touch will not restore or do anything!

    I have a iPod Touch 4th Generation 64gb.  One day, it restarted itself without input on my part.  Now, it's showing the "Connect to iTunes" screen.  When I connect it, iTunes says its found an iPod in Recovery Mode.  When I click Restore, it download

  • What kind of sad compatible with my 2007 iMac 7.1?

    Recently, my beloved treasure imac 24inch 2007 7.1 begin to running a little bit slow, I was thinking about to upgade it to a ssd, since my brother got a new macbook retina 512 ssd, i want to match it up a little bit. I was googling a bit, it seems s

  • Exporting using Compressor problem

    I have a 3 minute Motion sequence that I can't export in Compressor - it takes over 5 hours to get halfway through the process. It looks as though Compressor has crashed, it goes so slow. Basically I need to make a DVD in DVDSP, urgently. I exported