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.

Similar Messages

  • Include segment in Control record of  idoc type PEXR2002 and PAYEXT

    Gurus
    This is business scenario. We are using four different flavours of payment methods. when exectuing F110 for each payment method,Program RFFOEDI1 generates IDOC. This IDOC are send to EDI team who then sends that as EDI820 to bank.
    The payment method used are populated in Detail record field of IDOC . But EDI team wants that to be in Control record of IDOC .
    We are using PEXR2002 and message type is PAYEXT . this is an outbound IDOC .
    Is it possible to add segement in control record for each payment method?.
    Thanks for your time and consideration
    Auroar

    It may depend on how the IDoc is created.
    From a file.
    Sent via a Remote Call.
    You would then need to code it for this Message type only.
    I would take a copy of the standard Function and change that. You would have greater control then.
    Why is the partner number wrong anyway. Can you not just create another partner profile(s).
    Message was edited by:
            Martin Shinks

  • Control record of Idoc

    Hi Experts,
    I need to change the partner number in the control record of IDOC.
    Due to this it was getting posted wrongly at status 56 "Idoc with errors added".
    I took a single idoc and manully changed via WE09 and reposted tho BD87.But the think is I wanted this to ahppedn for all the inbound idocs.
    Message type :ALEAUD.
    Process code : AUD1.
    Function module triggered: IDOC_INPUT_ALEAUD.
    Is there any user exit available to do this or any other program which is called first to post the idoc in receiver system.
    I cant change the partner number in sender system only in my receiver system i can do this.
    Can anyone help.
    Thanks,
    Ponraj.s.

    It may depend on how the IDoc is created.
    From a file.
    Sent via a Remote Call.
    You would then need to code it for this Message type only.
    I would take a copy of the standard Function and change that. You would have greater control then.
    Why is the partner number wrong anyway. Can you not just create another partner profile(s).
    Message was edited by:
            Martin Shinks

  • File name in control record of Idoc

    Hello All,
    I have come across a requirement for File to IDOC scenario where File name picked from dynamic configuration is to be stored in control record of IDOC. As file name is more than 45 chars long, I need to use a long field.
    Can you I use ARCKEY, SNDLAD or RCVLAD fields or there is some restriction to use these fields, means will it impact something?
    Regards
    Prashant

    Hi Prashant,
    I understand that your requirement is to store name of picked up file in SAP system.
    Can you I use ARCKEY, SNDLAD or RCVLAD fields or there is some restriction to use these fields, means will it impact something?
    You can use them if you are sure that it would not affect routing routines and message processing in SAP ECC.
    Regards,
    Radek

  • Reciever port blank in control record of idoc.

    Hi,
    I am sending IDOC from  client 110 to 220 in R/3.
    In Client 220 reciever port is blank in control record of
    Idoc.Do I need to do some kind of settings for this.
    Any help appericiated.
    Thanx.
    Rekha.

    Hi Rekha;
       Are the ports properly populated on the outbound IDoc (from client 110)?
    Cheers,
    John

  • Changing controlling area from single company code to cross company code

    Hi,
    Due to my client requirement, in the middle of the year, we need to change the controlling area from being same as company code to cross company code controlling area. Although the currency is same. We are going to create a new company code. Is the changing controlling area settings possible to do? what are the precautions and changes need to be taken?
    One more question, we need to change the company code when the new company code is created in the system in Cost Center Masters in the middle of the year. Is this possible after changing controlling area from single company code to cross company code. Right now company code is not appearing in the cost center master.
    Thanks & Regards,
    Saidarao

    Hi,
          If both companies having transaction data its not possible,Normally before defining Organisational Strucutre only we have to deside both companies is assigning same controlling are or have to maitain separately for this we have to compare the Fiscal year,Operating chart of accounts ,if both having same then we will assign both the company codes to one controlling area if these two companies having different currencies also its not a problem.When we creating Controlling Area we have to choose option of controlling area as same company code (if one company code one controlling Area) for example if you assigning two companies then we have to use cross company code cost accounting.If u need any further information let me know.
    Regards,
    Satya

  • Multiple records from IDOC should be processed one by one Thru Web service

    Hi Experts,
    I have a requirement where in the idoc (custom one) will collect data from R/3 system at the frequency of One hour and send them to XI and from XI i need to call the Web serice which would post only one record at a time. In this case how should i manage by mapping. Its something like records from a Table needs to be posted sequentially thry Web service at the receiving end..
    Thanks for your replies in advance.
    Regards,
    Rajesh

    Hi,
    Please see the below links
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change - IDOC bundling
    idocs - /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    Idoc - Multiple - interfaces - Idoc to multiple interfaces in XI
    Multiple mappings into one Im - Multiple message mappings in one integration scenario
    Multiple Idocs
    How to send Multiple Idocs?
    Regards
    Chilla..

  • Serialisation field in control record in idocs

    Hi Experts,
    I have one requirement like this.While generating idocs in control record we get serialization number by combining system date and time.
    But now my requirement is i have to change that serialisation field with required timestamp.Can we do this? If so can anyone explain me how to do that?
    Wiating for your valuable replies.
    Points will be rewarded.
    Regards,
    Swetha.

    hi,
    Firstly check the open periods for the compnay code in OMSY...
    If its not open then try in the MMPV to open it...
    You can also open it in OB52..which is FI trasaction...it open/close the two periods consicutively...
    You can reopen the periods but its not recomended...you can use MMRV..for back posting allowed...
    or else check this
    goto SU3
    select user profile
    in parameter ID give MMPI_READ_NOTE , and in parameterr value enter todays yyyymmdd and save.
    and goto MMPI intialise the periods to present one at a strech.

  • Sender Information in control record of IDOC adapter

    Hello All,
    I am sending data from JMS to R/3 (IDOC). I need to populate the SNDPRT with LI and SNDPRN with 42980.
    I have mapped SNDPRT with LI and SNDPRN with 42980 in the control record. I have checked the <b>Apply Control recrod values from check box</b> in the IDOC adapter communication channel.
    Also checked the Sender Party in the Receiver aggrement. I have selected <b>the context object as the SNDPRN of IDOC control record</b>
    But it is failing. I am getting an error Unable to convert sender XI party ........to  an IDOC party
    I need to resolve thsi problem
    Please help me.

    Hi Abinash,
    In addition to the document Mike suggested, SAP has many How-to Guides at the following link
    http://service.sap.com/nw-howtoguides
    https://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202
    Mike: Thanks a lot for spending your valuable time helping the forum even on Weekends. SAP really appreciates your help on this.
    Regards,
    Sam Raju

  • Want to put  data  in control record of IDOC (Inbound Idoc)

    Hi All
    For some business reasons so many Idocs are not getting posted into SAP. They are just simply failing.So my client wants report that will give me a list of Idocs that are failed . I want to put document number in the control field so that i can display that filed in the report which sucks data from EDIDC table.
    Can i put data in the control record ?
    it is an INBOUND idoc
    Can i use these fields?
    Or will SAP use these fields for any sort of processing?
    EDIDC-REFMES(reference message)
    EDIDC-REFINT(Reference to interchange file)
    EDIDC-REFGRP(message group)

    Hi Prashant,
    I understand that your requirement is to store name of picked up file in SAP system.
    Can you I use ARCKEY, SNDLAD or RCVLAD fields or there is some restriction to use these fields, means will it impact something?
    You can use them if you are sure that it would not affect routing routines and message processing in SAP ECC.
    Regards,
    Radek

  • Updating control record from EXIT_SAPLVEDF_001

    My ultimate goal is to update SNDPRN of the control record with identifier based on the org structure in an IDoc for outbound invoices. Our organizations share the same sold-to records so our EDI subsystem needs a way to distinguish between organizations.
      So far, I have a function to look up an ID from a custom table but now I need to add the code to ZXEDFU01 to modify the control record. I know I'll have to loop through the IDoc data to find E1EDK14 SEGNAM for the org data first and pass VKORG, VTWEG and SPART to my function.
      What I am not clear on though is how I actually access the IDoc data in my include(ZXEDFU01}? How do I investigate this? Does anyone have a similar example or know of a good source of information?

    Hi Greg;
       I see by that user exit program that you do not have access to the segments of the IDoc, only the control record in the importing parameter CONTROL_RECORD_OUT.  However, it looks like you may also get the org data you are looking for in the importing parameter DVBDKR.  Did you check to see if the fields there have the data you are looking for?
       If that does not work, you can access the segment data of the IDoc from the control record data using a couple of function modules shown below:
         i_edidc type edidc,
         i_edidd type standard table of edidd.
         CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_PROCESS'
             EXPORTING
                  document_number          = CONTROL_RECORD_OUT-docnum
             IMPORTING
                  idoc_control             = i_edidc
             EXCEPTIONS
                  document_foreign_lock    = 1
                  document_not_exist       = 2
                  document_number_invalid  = 3
                  document_is_already_open = 4
                  OTHERS                   = 5.
    and
    CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
             EXPORTING
                  document_number         = i_edidc-docnum
             TABLES
                  idoc_containers         = i_edidd
             EXCEPTIONS
                  document_number_invalid = 1
                  end_of_document         = 2
                  OTHERS                  = 3.
    Cheers,
    John
    Message was edited by: John Carlson

  • Control record in IDOC

    Hi
    The scenario where i have an R3 - > XI - > NONE SAP
    where r3 sends idoc the none sap needs to send back aleaud but the orig idoc number is not in the ALEAUD idoc number but the control record holds a different want inorder for the r3 to think it is an ALeaud
    how can i fix this and have the same idoc numeber also in the coming aleaud ?
    or how do i associate between the idoc and the returning aleaud ?!

    Hi Sergie
    The ALEAUD is a separate IDoc, so naturally it must have a different number than the original IDoc. However, the field E1STATE/DOCNUM in ALEAUD is a reference to the original IDoc.
    How is your ALEAUD generated? If you are doing this "manually" via a message mapping, you need to include the original IDoc number in the message to your receiving system so that it can send an audit message back containing the original IDoc number. From this audit message you should be able to map a correct ALEAUD message.
    Regards,
    Thorsten

  • How to disable control records in Idoc

    Hi All,
    I've a small problem in my scenario.i have a idoc in my input and i want output as a idoc in a flat file.i m using abap class fr this.that abap class is changing idoc into idoc as a flat file.but i have to remove control records in my output.i have a very little knowlegde in abap.so can u help me regarding my scenario.FCC can't be possilbe because it is a huge idoc.
    thanx in advance
    Monika

    actually u din't understand my question fully. i dont want idoc xml..i want idoc in a flat file
    well i got solution...i've chnaged my abap mapping ..and it's wrking fine..
    anyways thanx

  • Passing control records to Idoc

    Hi,
    how can we pass control record data to Idoc?can we do that in mapping(GUI) in XI ,lets say if I am doing <b>file to Idoc</b> scenario.I know we can disable the control record field and use apply from payload.my concern is if we don't use apply from payload.
    I have read in SDN XI takes from sender or reciever business systems as they are  related to Logical systems(ref link:XI IDoc  control record data source?) ,does it mean that we don't map these cotrol record fileds in the mapping(GUI)?
    and also please tell me how XI can pass data from flat file to a particular IDOC?
    thank you.

    hi,
    have a look at blog to see what is being filled and how:
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    you can also check my book in which I describe IDOC scenario configurations 
    <a href="/people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi"><b>Mastering IDoc Business Scenarios with SAP XI</b></a>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Change controlling method from CO to PS

    Hi
    We're considering changing from CO to PS, the question is if thats possible to do for our live projects or if we have to start all over.
    In customizing it's possible to change the controlling method, even if the project type is in use and actuals have been posted. is that going to work out or just create problems?
    Regards
    Frank

    Hi,
    It is always possible to change controlling scenario for given project type. The changing scenario does not effect to old project. It will take new scenario in account after change and costing will happen based on new scenario to new project.
    In your case given project type must have created accounting data based on old scenario to your existing project. According to my experience you can change scenario that will applicable to new project and it will not effect to your old project.
    Regards,
    Karan Hon.

Maybe you are looking for

  • Missing Mounted Volume Issue

    I have a Linux Fileserver with netatalk running, I have three sharepoints on this server. The OS X machines have suddenly been unable to see the third sharepoint. I have been investigating the problem and found that the volume is listed in the Volume

  • Calendar on iPad

    Whenever i make any new calendar entries on iPad and then sync with my MacBook via a USB cable, the new entries are promptly transferred to the MacBook. But after disconnecting the entries disappear from the iPad. The new entries made on the MacBook

  • Can i know exactly how far from the rim of the screen is the back light located

    i had a smmal problem so any one who knows please answer

  • INSTEAD-OF

    Hi: I am trying to use the INSTEAD-OF trigger on a view that will eventually be used to insert XML documents to fields in multiple tables. Could you give me EXAMPLE code that illustrates the 'INSTEAD-OF' trigger? -sharifa. null

  • Help: IPOD service problem when installing in Vista

    Message reads something like Ipod Service did not start make sure you have sufficient permissions. It then gives the option to retry or cancel. This happens at some point in the installation process. I have among other things tried out all the steps