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

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

  • 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

  • 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

  • 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

  • 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.

  • 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 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

  • 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

  • IDOC: How to fill data for sub segments ?

    Hi,
    I have 3 segments, segA , segB , segA1 . segA1's parent segment is segA . segA and segB are at the same level .
    How to fill data for segA1  ? can you give some sample code ?
    Thanks a lot !

    hi,
    You can fill the segment in the sequence in the idoc either parent or child.
    In you case first fill parent segment SEGA next SEGA1. Then you can fill the SEGB.(If segB is deifned as next segment of segA in the idoc structre)
    Thanks and regards,
    shyla kumar

  • IDOC segment for VBKD-BSTKD_E

    Hi,
    I am using ORDERS04 as basic type for order creation from iDOC.
    For one of my requirment I need the iDOC segment for VBKD-BSTKD_E field. The field is in purchase order data at header > Ship to party view > Purchase order no.
    Thanks
    Sanjay

    Hi,
    you have to fill the segment E1EDK02 with:
    E1EDK02-QUALF (qualifier) = '044' (purchase order number consignee)
    E1EDK02-BELNR = Purchase Order Number
    E1EDk02-DATUM = Purchase Order Date
    Kind Regards.
    Andrea

  • Segment field in Postings

    Hi all of you
    Could any suggest me how to fill the segment field in automatic postings like AFAB and AIBU as Document splitting is activated and we dont have assignment the segment in PCtr master data.
    Thanks & Regards
    Ramki

    Thanks Paul
    We are using the BAdI FAGL_DERIVE_SEGMENT, which means no assignment of segment to the PCtr. We have activated the account assignment objects in AA for PCtr only. There is no field Segment in Account assignment objects in AA. For reporting purpose we are using Evaluation group1 as Segment.
    But in AA automatic postings like AIBU (CWIP Settlement line items) and AFAB system has to pick the segment field.
    For this what I have to do? Please help me out
    Thanks & Regards
    Ramki
    Edited by: Ramki on Jan 30, 2009 2:17 PM

  • Segment field in Automatic Postings

    Hi all of you
    Could any suggest me how to fill the segment field in automatic postings like AFAB and AIBU as Document splitting is activated and we dont have assignment the segment in PCtr master data.
    Please help me regarding
    Thanks
    Ramki

    We have activated the BAdI also.
    I am asking you how the system picks the segment field in AA automatic postings like AIBU/AFAB without any assignment in Asset master. In addl account assignment also there is no segment field.
    What is the procedure required to fill segment field in AA automatic postings
    Please help me
    Thanks & Regards
    Ramki

Maybe you are looking for

  • Help! Duplicate devices on iPhone with iMessage's Continuity

    Hi! After a clean install of Yosemite  on my MacBook Pro (15" early 2011) my iPhone 4S (iOS 8.1) shows 7 different devices called "Macbook Pro of Niccoló" in Settings - Messages, without the ability to erase the duplicates. I'm used to do a clean ins

  • 'Save as pdf' and nothing happens?!?

    Hi, I encountered a problem with saving PDF from Illustrator files. I open/create an Illustrator *.ai file and when I choose 'Save as' it seems nothing happens. However when I press 'Enter' a PDF with the default options is saved. Now I would like to

  • How to deauthorize my computer if i dont have access to it and i already deauthroized all 5 computers 8 months ago. I need Help

    I deauthroized all 5 computers 8 months ago. And over the course of those months, i have been on many computers at work and authorized my computers. However, i have relocated and can no longer deauthorize those computers. I need help.

  • EU tax system - Tax code automatic pick up

    Hi, Scenario: Customer belongs to DE (Germany), Customer will order to 1000 company code (Germany). The company code DE will create sales order with one plant, which is belongs to France company code. It is just like a intercompany third party billin

  • Error when saving to / reading from root.fpj

    Hello, we use RoboHelp HTML R9 and our project file is located on a network drive (which I know now, from reading the forum, is a very dangerous thing to to, but it was set up years ago). For a few weeks now, when clicking 'save all' in the project,