FIDCC2, filling COPA segment?

Hello,
I am working on a FIDCC2 interface from a SAP system to another. The account document is send to another SAP system when releasing the invoice. The interface works perfect and bookings are made in the other system.
But in the receiving system also a COPA segment must be filled (The sending doesn't use COPA). This is not filled with FIDCC2.
How can I fill the COPA segment in the receiving system? Using a user-exit from the FIDCC2-message type or a user-exit in FB01? And if yes how? Is there a function module to fill the COPA segment?
With regards,
Frank Roels

Hi,
No, I was referring more to the whole section titled "Data should be sent to all applications".  I have had a similar problem to you - using FIDCC2 and requiring posting of a Profit Center Doc and a Controlling Document.  And I've finally made it work!!
Basically, you need to implement user exit EXIT_SAPLF050_008 and set both 'I_COMP' and 'I_COMP_CHECK' to blank.  I don't know what version of SAP you're on, but this will apparently work for versions less than 4.7 (I can't confirm this).
For versions 4.7 onwards (I'm doing this on ECC 6.0) it gets a little more complicated.  For a start, you will need to make sure note 892366 is implemented in your system.  This adds changing parameter 'I_SUBSET' to the user exit. 
Then, in the user exit, set 'I_COMP' and 'I_COMP_CHECK' to blank as before, and set value of 'I_SUBSET' to 'COPA' (this may need to be something different for you depending on what you're trying to achieve).  In addition, I have set field 'RESERVE' in IDoc segment E1FIKPF to the same value 'COPA' (although it appears to work without this).  I fill field KOSTL (cost centre) in segment E1FISEG and now I get both Profit Centre Doc. and Controlling Document generated.  Yay!! 
(you might also need to fill PRCTR in the segment... might depend on config).
The value COPA is not actually a SUBSET value found in table TRWPRC as specified in note 114814, it's actually a COMPONENT value as found in table TRWPR. 
And all of this is achieved without copying the standard IDoc and without copying any standard SAP code! 
Hope all this helps...
Cheers,
Willie

Similar Messages

  • Problem in filling Custom segment data using User Exit for ZORDERS05

    Hi,
    I am using Process Code SD10 to generate the custom Idoc ZORDERS05.
    The function module used is IDOC_OUTPUT_ORDRSP.
    I am able to succesfully generate the Custom Idoc (VA02->Extras->Header->Edit) but unable to populate the custom segments in the IDOC.
    I have tried to write the code in User Exit EXIT_SAPLVEDC_003 -> ZXVEDU15. But still I'm unable to populate the Z segments.
    Even though I place a break point in the FM or in the User Exit during the generation of Idoc the control doesn't stop in FM nor in the User Exit.
    I am unable to understand how to go about this.
    Can anybody please help me with this?
    Thanks in Adavance,
    Rohan.

    Okay I under what you are speaking about NACE.
    Yes that configuration has been done and I am sucessfully able to generate the IDOC.
    But even though I know that in FM IDOC_OUTPUT_ORDRSP, I have to write code in User Exit EXIT_SAPLVEDC_003 to populate the Z segments; I'm unable to understand y the control doesn't pick the FM and Exit.
    Right now I have code in the Exit to fill Z segments.
    Thanks
    Rohan.

  • Fill IDOC segment, E1IDBW1. For PEXR2002 Basic Type

    Hello Team.
    We send the IDOC for the Basic Type PEXR2002, Message Type PAYEXT.
    This IDOC doesn't fill the Segment E1IDBW1 (IDoc header - special instructions (INP) )
    I'm review some notes(1164524) and said to fill this segment it's neccesarie config the IHC.
    But doesn't have this functionality.
    It's possible fill the segment E1IDBW1 in a user exit or any other enhacement at creation idoc moment?
    My idea is used the FM
      CALL FUNCTION 'GET_SEGMENT_POS_FOR_INSERT'
        EXPORTING
          I_BASIS_TYPE            = ch_edidc-idoctp
          I_EXT_TYPE              = ch_edidc-cimtyp
          I_SEGMENT_TYPE          = 'E1IDBW1'
        IMPORTING
          E_INDEX                 = li_tabix
        TABLES
          IT_EDIDD                = t_edidd
        EXCEPTIONS
          BASIS_TYPE_NOT_FOUND    = 1
          EXTENSION_NOT_FOUND     = 2
          EXTENSION_ERROR         = 3
          INVALID_IDOC_DEFINITION = 4
          IDOC_ERROR              = 5
          INVALID_SEGMENT_TYPE    = 6
          INVALID_START_INDEX     = 7
          NO_MORE_POSITION        = 8
          TOO_MANY_SEGMENTS       = 9
          OTHERS                  = 10.
    To Fill 2 constants in this segment.
    Do you have any other idea?
    Thanks
    Edited by: David Lezama Gonzalez on Sep 1, 2011 2:51 PM

    Hi,
    Basically the segment E1IDBW1 will always be filled via user exit.
    If you work with the IHC (In-House-Cash) application you have to fill
    the E1IDBW1 segment as described in note 626577.
    If you don't work in an IHC environment the following conditions must
    be fulfilled:
    1. The payment program has to fill certain fields (e. g. REGUH-DTAWS,
    REGUH-DTWS1 - REGUH-DTWS4).
    2. If this is fulfilled the payment data (REGUH, REGUP tables) will
    be filled. The instruction keys will be moved to IDOC segment
    E1IDKU3.
    3. In user exit EXIT_SAPLIEDP_002 you can take over the instruction
    keys from segment E1IDKU3 into E1IDBW1.
    You may also read note 496663, this note explains about user exit
    EXIT_SAPLIEDP_002 to populate this field in the idoc.
    Also, you can check the note:
    580321 - RFFOEDI1: BTE process 00002441 (Change IDoc)
    REgards,
    Cristiano

  • Manual Cost tranfer to copa segment ?

    I want to know is it possible to transfer the cost from one cost center to COPA Segment
    without Allocation cycle (KEU5) ?
    Thanks
    Nilesh

    Hi,
    It is not possible
    Siva

  • How to fill the segment name field in a data record

    Hi All,
    I am using pure java (jco) (not XI) to send idoc to R3. I know how to check the definition of Idoc type by using Tcode - we30, we05, BD......
    I am wondering if someone on this forum has the onhand experience about the following question:
    The "segment name" field in a data record should be filled with "Segment type" or "Segment Name". Sounds silly? huh? But this question is not always clear for me.
    For instance, E1MBXYH - Goods movements for Mobile data entry.
    There are three versions - E2MBXYH, E2MBXYH001 and E2MBXYH002.
    Should I use "E1MBXYH" or one of E2MBXYH, E2MBXYH001 and E2MBXYH002?
    I appreciate that you could give me a clear explanation.

    The EAN / UPC fields are part of the material master .. So if you hahve this fileds filled in MM02 , then automatically these fileds are taken where ever the material Number is referenced

  • Using IDOC FIDCCP02 - Filling Profitability Segment details

    HI Experts,
    Has any one used the Idoc type FIDCC2 for migration purposes and Filled the Profitability segment details with in that IDOC and posted successfully? Please let me know where to fill the profitaility segment fields as there are no relavent fields with in the idoc for these.
    Regards
    Rajeev K

    have you received a reply for this yet. I have the same issue that I am trying to resolve.
    Thanks,
    BG

  • Filling DOCFLOW segment in CRMXIF_ORDER_SAVE_M02

    Hi
       We are using the IDoc CRMXIF_ORDER_SAVE_M02 to upload data using LSMW> Here we face a problem with the preceding and succeeding documents. What values should we fill in for the DOCFLOW segment to get an object assigned? I understood that OBJECTID is the Transaction ID. But I am in the dark about the other fields especially the RELATIONSHIPTYPE and ROLETYPE.
       Can anyone help me with this?
    Thanks and regards,
    Sowmiya

    Hi Sowmiya,
        Try to give below values,
          RELATION_TYPE = 'LOP'. Look for the valid value from the table ORBRELTYP
          RELOBJ_ROLETYPE = 'CRM_ORDER' .Look for the valid value from the table ORROLETYP
    Other option is generate an outbound IDOC for correct order in your CRM system using program CRMXIF_ORDER_TEST. Keep this outbound IDOC as reference and build your new inbound idoc.
    //Bhanu

  • COPA Segmentation

    Hi all,
    I have a query regarding Sales Order wise segmentation in CO-PA.
    - Is it feasible to have sales order wise profitability analysis?
    - If no then why?
    Thanks
    que

    Hello,
    Thanks for your reply....
    I had read in a few COPA related documents that Sales order should not be made a Profitability Segment in your PA. I want to know exactly why ?
    My client want to do PA on the basis of Customers, Regions and Sales Order.
    I want to know is it a "wise" decision to have PA according to Sales order? I am new to COPA.
    Thanks and regards
    Shantanu

  • Distribution criteria list for receiver weighting factors in COPA segment assessment cycle

    Hello guys !
    I would like to add the product hierarchy in the distribution criteria list (transaction KEU3).
    Is someone could give me the solution ?
    Best regards
    Bruno

    Hi Ashok
    Summ levels can be used in Assessment cycles... Your "Distribution List" tab might take time to finish...
    However, I would ask you to assess your req once again... This level of allocation is more likely to cause performance issues
    however, if no of docs in COPA is not much, then you need not worry
    What worries me is that you cant use non-segment level chars as receivers in COPA assessment cycle.. have you specified BATCH No as segment level char in KEQ3? If yes, please undo it.. Else, you are going to face a nightmare situation
    Regards
    Ajay M
    Edited by: Ajay Maheshwari on Jan 10, 2011 3:04 PM

  • Filling up segments of Idoc of Invoice List

    Hi!
    Invoices and Invoice List are beeing created... everything would be fine, but some fields are missing in the Invoice List while existing in Invoices.
    I guess I need to find the code where these fields are filled up for Invoices and to add this code to appropriate place for Invoice List. How to do this?
    I think that needed segments are existing for Invoice List, just not filled up...
    By the way, how to find out Idoc number of Invoice List? If I have it, I could compare segments with Idocs of Invoices.
    Any ideas?
    Will reward,
    Mindaugas.

    I saw the Function module -
    Please look at code at :
    Include program : LVEDFF0R
    FORM REDUCTION_TABLE_CREATE.
      PERFORM IDOC_SEGMENTS_READ.
      PERFORM IDOC_ACTIVE_SEGMENTS_SET.
    ENDFORM.                    " REDUCTION_TABLE_CREATE
    Keep the break point at form routine and debug the the function module
    If you do not know how to do debugging then use following way :
    keep the break point in form routine above as i said
    Create invoice or invoice list
    when you maintain output type in invoice or invoice list -
    Now click on Further data ->select peridoc scheduling-> back and save it.
    Run RSNAST00 Program
    Output application : V3
    Object key : Invoice or invoice list number
    Output type : RD00 or LR00
    Medium = 6(EDI) ,A (ALE)
    when you execute the program and it will goto debugging.
    Thanks
    Seshu

  • COPA Segment Not Updated during AFAB Run

    Hi Experts,
    While running AFAB run system is not recoganising the Product Category and Sales District
    which is maintained in " KEDR" .
    If we enter manually the entry in the system We will have to press one screen Derivation " Where it will pick up " automatically.
    Is there any solution for this,
    thanks,
    regards
    N. Kumar

    Hi Siva,
    I will brief the Scenario;
    We have one Asset Class for Low Value Asset.
    While running AFAB T-code System is not updating the COPA Derivation which is configured under KEDR.
    Where the same has been updated while AFAB run ie Normal depreciation Items.
    This is our problem,
    regards
    N.Kumar

  • Can Std. FM fill Z-segments in Outbound IDocs?

    Hello All,
    In the outbound DESADV from our system, there is a Z segment and the FM used to create this DESADV is the std one. How is the std FM populating the segment which is part of the extension? Should not every extended IDoc be using a modified or custom FM for its processing??
    Thanks,
    Charles.

    Most function modules that populate Outbound IDOCs should have user exits available in the standard FM to populate Z Segments.
    Best Regards,
    Chris H.

  • Fill the Profit Segment in Sales order Header data

    Hello Gurus,
    In my project, we have sales orders with a lot of line items, more than 300, sometimes. In each line item, the user must fill profit segment field (CO-PA) (in account assignment tab) with a user-defined characteristic, the same data for all items.
    I'm looking for a standard functionality, or development functionality, that allows me to fill the profit segment field (the user defined characteristic) at header sales order, and transfer it to new line items created next.
    i dont know if any enhancements (SMOD) that begin with COPA* can help me.
    Thanks a lot. rew points will be assigned, sure

    Hi manuel
    Generally the profit center is assigned in MMR in MRP view. .But before that if you want to assign manually create the profit center in SPRO which configured by FI consultants.
    Regards
    Srinath

  • Generating an IDOC with all segments filled every time

    IDOC Experts,
    I am new to IDOC/ALE and I am struggling with the following situation. 
    I am trying to create an ALE interface with a Transportation Management System.  I have been able to configure ALE and IDOC to generate an IDOC XML file for message type DEBMAS.  I have activated change pointers and I am seeing the changed customers when I run RBDMIDOC. 
    The problem is the external system will require the complete data every time the customer master is changed.  Right now I am only seeing the changed segments in the IDOC file. 
    Is it possible to configure SAP to populate all of the segments every time a DEBMAS IDOC is generated?
    Thank you in advance for any direction you can provide.
    Brian Snyder

    Hi Brian,
    I tested my system and it does not work,I guess we can't set up mandatory.
    I think if you know any user exit for that application,then fill the segments programtically.
    Sorry for wrong information what i  provided.
    Thanks
    Seshu

  • Fill Segment E1EDP04 in IDOC_OUTPUT_ORDERS

    Hi All,
    I am supposed to code for filling the Segment E1EDP04 of ORDERS Message  type and ORDERS04 basic type.
    I think i will have to do that using an EXIT function module, i guess 002.
    I need to know what preriquists do i need to fullfill to get the segment filled.
    Also, the procedure for getting the exit FM.Do i have to use any Note?
    Thanks,
    Yogeeta

    I need to send Purchase Order Data through idoc whenever a PO is created or changed?
    Use Standard message type ORDERS
    So Can I use idoc_output_orders Function module for both PO create as well as change?
    Yes
    Regards
    Shital

Maybe you are looking for

  • Unable to  open RPD in online mode OBIEE 11g.

    Hi All, We are using OBIEE 11g . We are unable to connect to BI Admin in online mode. All servers (admin server, biserver) are up and running fine. Checked the staus of all the servers in command prompt, it showed ALIVE. We are able to connect in off

  • How to display a line item in the billing calculation ?

    Hi Experts, My client requirement is to just display a line item in billing without affecting the total invoice amount. ( line item should just show up, no calculation should be included). Regards, Farooq

  • WiFi Extender Help :)

    Okay, well I bought a new Netgear WiFi router on Black Friday because I was told that's one of the best ones Best Buy carries. Well, it's in my basement and my X-Box is in my room and so the X-Box doesn't get full WiFi coverage and my online isn't th

  • Why does Mail always classify AOL messages as junk?

    Hello everyone, Has anyone encountered the strange anomaly of Mail always dropping any message from an AOL user in the junk folder? This happens even if the sender is in my address book. I've even set up a rule to move any AOL mail into my inbox, but

  • Portlet for BPEL worklist..?

    Hello, In one of the Oracle Developer days, the presenter stated that a portlet(for Oracle Portal) is available that displays the worklist. Where can I download it if it is available? Thanks Dev