Anyone processed Customer ref contract using IDOC ORDERS05?

Within CRM I can successfully create Sales orders using the IDOC type ORDERS05. However, the last thing that I need to do is ensure that any Customer reference contracts appear in the doc flow of the generated order, and this is where the difficulty begins...
There are a number of BADI's available which allow me to populate the table contents, and I think I need to populate the CRMXIF_BUSTRANS_ITEM-DOC_FLOW itab with the Customer reference contract data, but the structure for this itab is so complicated. I was wondering whether anyone has performed the same function as I can't believe that I'm pioneering here. The Customer reference contract is being supplied by IDOC in segment E1EDP02 with a qualifer of 005.
Any help would be greatly appreciated.
Blue

Hi,
This issue is been resolved.
One of my friend helped me with resolving this issue..
Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

Similar Messages

  • Problem creating sales order using IDoc ORDERS05 (Inbound)

    Hello Experts,
    We are trying to create a sales order using the IDoc ORDERS05 with process code ORDE for creating sales order. I am getting the following error "VKORG, VTWEG, SPART cannot be determined for customer 0000006000 , vendor
    Diagnosis
    No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
    I was not able to find the fields to fill the distribution channel and divison in the Idoc structure. I have filled in Sales organization in E1EDK14 segment as 3000.
    I am not able to figure out the cause for the error.
    Same data works fine from BAPI_SALESORDER_CREATEFROMDAT2.
    Please help.
    Thanks,
    Suma
    Edited by: Suma B on Jun 17, 2008 11:12 AM

    Hello Suma
    In this case I would recommend to debug the IDoc processing.
    Call transaction WE19 and start the inbound processing of your IDoc in debugging mode. The error message will most likely occur in function module IDOC_INPUT_ORDERS.
      LOOP AT idoc_contrl.
    * SET/GET Parameter und interne Tabellen neu initialisieren
    * initialize SET/GET Parameter and internal tables
        PERFORM initialize_organizational_data.
    * IDOC-Segmente in die entsprechenden Anwendungsdaten übernehmen
    * Move IDOC to internal tables
        PERFORM interpret_idoc_orders.                    "<= check here
    * Prüfen ob gewisse Segmente gefüllt sind
    * check IDOC-Segments
        PERFORM check_idoc_segments.                 "<= check here
    * Prüfen und Ermitteln von Organisationsdaten
    * check internal tables and determine organization data
    Regards
      Uwe

  • Need help in populating Text ID using IDOC ORDERS05

    I have following scenario.
    PO is being send from ECC to EDI partner.
    and we received the PO feedback from the EDI partner
    For PO feed back, we are using ORDERS05 idoc type and ORDRSP message type.
    Custom Text Id(F01)  has been added to the Text tab of the header section of the Purchase order screen (ME23N).
    Custom Text id (F02)  has been added to the Text tab of the Item section of the purchase order screen.
    (Text ID F01 and F02 are in object EKKO - checked in transaction se75)
    Now, I m posting idoc with the following value but Text field (in header and item level) is not updating while displaying PO.
    Header - E1EDKT1                                   
         TDID -   F01
         TSSPRAS- E     
                         TDOBJECT - EKKO
                  E1EDKT2                                   
         TDLINE   -  "My Header Text"
    Item Level - E1EDKT1                                   
         TDID -   F02
         TSSPRAS- E     
                         TDOBJECT - EKKO
                  E1EDKT2                                   
         TDLINE   -  "My Item level Text"
    Can we update the Text Id in PO using IDOC ORDRSP.ORDERS05?  I have tried but it is not updating
    Any suggestion.
    Edited by: Chetankumar Patel on Mar 14, 2011 10:17 PM

    Have you tried with updating other Long texts ? While going through the code of inbound function module IDOC_INPUT_ORDRSP, it is mentioned that only limited fields are available for updation.  See remarks in line no : 88 of include LEINMF2O.
    read document and prepare for update P.O. Item fields
    * possible Update fields of EKPO: LABNR, IDNLF, NETPR

  • Customer master creation using IDOC

    Hi friends,
               I am trying to create customer master into SAP using Idoc. Here pblm is some partner functions already defaulted i want to create some new entries in partner functions when i try to do it online its working fine when i try with idoc the defaulted partner functions are appears double times can any one has any idea whts happening.
    E1KNVVM   
        E1KNVPM (Master customer master partner roles)
            MSGFN : Function
            PARVW : Partner function
            KUNN2 : Customer number of business partner
            DEFPA : Default partner
            KNREF : Customer description of partner 
            PARZA : Partner counter
    the pblm is with these segment.
    Thanks,
    Naren.

    Hi naren,
    The segment E1KNVPM is standard one.Nothing can be done over it . U shold create new segments in we31 and add as
    extension to the basic type and try..
    Regards,
    Nagaraj

  • Error while uploading the Real Estate Contract using IDOC & BAPI

    Hi  All ,
    I am trying to uploading the real estate contract data  by using  LSMW IDOC & BAPI methods  .
    In IDOC method I have used the Basic type as BUS1505_CREATE01 and Message type as BUS1505_CREATE. I have passed all mandatory fields then also i am unable to create the CONTRACT but and i am able to create CONTRACT using the bapi BAPI_RE_CN_CREATE  by passing the  values in SE37 and  i am able create CONTRACT manually in transaction code RECN  . Can any body know the reason .
    In BAPI method I have used the Business Object  BUS1505  ,Method CREATE  ,Message type BUS1505_CREATE and Basic type  BUS1505_CREATE03 . I have passed all the mandatory fields then also  i am unable  create the CONTRACT But with the same fields i am able create CONTRACT manually in transaction code RECN and i am able to create CONTRACT using the bapi BAPI_RE_CN_CREATE  by passing the  values in SE37  .
    Regards
    Srihari

    Hi All,
      I was passing blank entries so the above errors were coming. I removed those blank entries and now Im getting error like .
    "Individual renewal rule does not contain any extension periods"
    "No instance of object type ContractREFX has been created. External reference: REC <NEW>'.

  • Need to transfer Custom infotype data using IDOCs

    Hi,
    My requirement is to transfer custom OM infotype changes using IDOCs.
    But its not creating any change pointers for that infotype.
    The message used is a copy of standard message OM_HRMD_A.
    Can any one please help me out in this issue.
    Thanks,
    Sarika

    You'll need to erase the drive by booting up holding command-option-r keys into your Recovery Volume.
    Use Disk Utility to erase the disk and then Internet Recovery. That will take a while.
    http://support.apple.com/kb/HT4718

  • Create a Sales Order with Reference to Contract using IDoc / LSMW  ( AFS )

    Hi Gurus,
    I need to crate a Sales Order with reference to a Contract. I need to upload Sales Orders with reference to contract via LSMW.
    So far, I've been able to create the Sales Order with ref to contract. But, the Sales Order Quantity is not getting deducted from the Original Qty in Referred Contract ( When try to create another Sales Order referring to the same Contract.) When a Sales Order is created manually, this is working fine.
    Please tell me if I've missed some parameter which stopping it create the link to exact schedule line ( Sizes level )
    The Details of the IDoc which is been created via LSMW are as follows;
    Message Type: ORDERS
    Basic Type     : /AFS/ORDERS05
    Process Code : ORDE / DELO
    ( Tried with both process codes.  But the Identification is the same for both: IDOC_INPUT_ORDERS )
    *_In Header;_
    Segment : E1EDK02  - IDoc: Document header reference data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped for field BELNR
    *_In Item;_
    Segment : E1EDP02  - IDoc: Document Item Reference Data *
    Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
    Contract Order is mapped to field BELNR
    Line Item of the Contract is mapped to field ZEILE
    I also tried passing the Schedule line of Contract in Segment :  E1J3P01 AFS IDoc: Doc.item general data
    to following fields;
    J_3AETENV
    J_3AVGETE
    /AFS/UETENR
    Still its not getting updated in the VBEP also..
    Please help me with regard to this. Points will be awarded for your valuable contribution.
    Thanks.

    Hi,
    This issue is been resolved.
    One of my friend helped me with resolving this issue..
    Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
    u2022     SPRO --> SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Define Sales Document Types  --> Field : Outline agreement message; from blank to u201CBu201D.
    u2022     SPRO  -->SD  -->Sales  --> Sales Documents  --> Sales Document Header  --> Maintain Sales Document Types for AFS  --> Field : Outline agreement message; from blank to u201CAu201D

  • PO Creation Using IDOC ORDERS05 - Inbound Issue

    Hi Experts,
    I am new to the ALE/IDOCs. I am trying to create a PO in one client and trasnferring it to another client using the IDOC extension. I am using Message type ORDERS and Basic type ORDERS05 (Extended). I have craeted Partner Profile for both Inbound and outbound in their respective clients.From Outbond the Purchase order is sent successfully to the Port. On the inbound the PO is failing due to incorrect function mudule chosen for processing through process code. I have tried process codes like ORDE,ORDS,DELO and ME11.
    Please Let me know the corrects process code in the inbound, to process IDOC as PO.
    If i need to go for all together a different mesasge type. Please give me all the relevant details like BASIC type, Process code in Inbound and outbound . And i want the BASIC type to be extensible.
    Thanks,
    Murali

    Hi,
    In the inbound side create a new entry in WE57 tcode.. with the functio mdoule as "IDOC_INPUT_ORDERS", basic type "ORDERS05", extn< specify the extn u created at outbound side>, message type "ORDERS". Now see if it is working.
    Regards,
    Nagaraj

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

  • IDOC ORDERS05 to process PO acknowledge sent from vendors.

    I am trying to use IDOC ORDERS05 to process PO acknowledge sent from vendors.
    You, the IDOC experts out there, please give me some direction about
    where I should put the vendor's acknowledge number and
    where I should put our PO number in IDOC ORDERS05,
    so the field LABNR in EKPO will be updated with vendor's PO acknowledge number after the IDOc is posted.
    Thanks in advance!
    Fisher Li

    Sam,
    The following are what I did and it worked for us.
    Hopefully it will help you.
    E1EDK01-ACTION = '000'
    E1EDKA1-PARVW = 'LF'
    E1EDKA1-LIFNR = vendor number
    E1EDK02-QUALF = '001'
    E1EDK02-BELNR = purchase order number
    E1EDP01-ACTION = '004'
    E1EDP01-MENGE = PO line item qty
    E1EDP01-MENEE = PO line item unit of measure
    E1EDP02-QUALF = '001',
    E1EDP02-BELNR = purchase order number
    E1EDP02-ZEILE = PO line item number
    E1EDP02-QUALF = '002',
    E1EDP02-BELNR = PO acknowlegement number
    Regards
    Fisher Li

  • IDOC ORDERS05 partner mail

    Hi all,
    I'm using idoc orders05 in inound to get sales orders in r/3.
    I filled E1EDKA1 structure for customers data.
    I need to fill and use customer e-mail address.
    Where can I find this field?
    Thanks in advance.
    Stefano

    Hello,
             For meeting your requirement, you can also use the Enhancement (SMOD) VEDA0001 in which you'll find a Customer Exit EXIT_SAPLVEDA_001. Here you can write the Code to fetch the E-Mail Address and populate it in an Internal Table or Work Area and Export it to Memory ID.
            Next Comes the Population of the E-Mail Address in the Sales Order. For this, you need to find an Appropriate Enhancement Spot in the Main Program of the Sales Order which is SAPMV45A since it uses BDC method to Create Sales Order.  In that Enhancement Implementation, you can Import the Variable that you've exported in Step 1 and append it to the BDC_DATA Table so that it gets inserted into the BDC Table and gets updated in the Transaction as well as in SAP.
    Hope it was helpful.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Problem in message mapping (outbound IDOC ORDERS05 from SAP R/3)

    Hi to all,
    I have an outbound interface from sap r3
    sap r3 --> XI --> ftp server
    idoc --> XI --> text file
    Using IDOC orders05
    The problem is in segment E1EDP01/E1EDP19
    Segment E1EDP01 is unbounded and i map it well. If it contains E1EDP19, works fine. But in some cases, E1EDP19 not appears at E1EDP01segments. So then XI fails at mapping:
    IDOC OUTPUT (OK)
    1-E1EDP01/E1EDP19
    2-E1EDP01
    3-E1EDP01/E1EDP19
    4-E1EDP01
    XI WRITES (FAILURE)
    1-E1EDP01/E1EDP19
    2-E1EDP01/E1EDP19 (INFORMATION FROM LINE 3)
    3-E1EDP01 (WRONG)
    4-E1EDP01 (WRONG)
    You can take a look of Mapping mode here:
    <a href="http://img505.imageshack.us/my.php?image=orders05mappingcj8.jpg">[IMG]http://img505.imageshack.us/img505/1536/orders05mappingcj8.th.jpg[/IMG]</a>
    We don't use BPM and wanna use a solution without it.
    Pls ask me for more information if necessary.
    Thanks a lot for your help; Regards

    Hi all,
    The mapping function includes an exists and a mapwithdefault.
    Now the creation of the segment is handled ok, but not as well its fields. Its unable to determine the write of the second E1EDP19 segment and it does:
    1- OK
    2- OK
    3- Writes E1EDP20 but not the 19
    4- OK
    Thanks for your interesting

  • Creation of PO/Contract/Scheduling agreement with ref to PR using IDOC

    Hi Experts,
    Is it possible to <b>create PO/Contract/Scheduling agreement</b> <b>with reference to PR</b> <b>using inbound IDOC ?</b>
    If yes, please let me know the segment type and field to be populated for referencing PR in the IDoc .
    Thanks in Advance,
    Best Regards,
    Mitesh Desai

    Hi Aarif,
    Thanks for taking time to reply .
    We are palnning to integrate SAP and non SAP systems.
    The business Process is as under .
    (1) PR will be generated in ERP (Manaul/MRP)
    (2) PR will be coverted into RFQ (for which there is no appropriate source of supply
         in ERP)
    (3) Sourcing will be done in non SAP system. RFQ will be created with dummy vednro (for example say "source") to identify RFQs to be sent to another system.
    These RFQs needs to be sent using IDOC alonwith reference PR numbers and line item numbers.
      Multiple PRs will be combined into one RFQ as multiple line items.
    (4) Non SAP system will do sourcing and generates either PO or master outline agreement and have reference PR/RFQ numbers and line item numbers.
    No SAP system will send PO/outline agreement information to SAP system in XML file format to generate inbound IDOC in SAP .
    (5) This inbound idoc will generate PO/outline agreement in SAP.
    From SAP functionality point of view, I ca createPO/outline agreement with reference to PR but <b>My Question is how I can generate PO/outline agreement in SAP through IDOC and using "Reference PR or RFQ numbers".</b>
    Looking forward to help ASAP.
    Regards,
    Mitesh Desai

  • Has anyone populated the doc_flow details for an ORDERS05 IDOC?

    I am having trouble understanding what needs to be populated in the doc_flow itab of line type CRMXIF_DOC_FLOW_I.
    In my case I am trying to populate the doc flow with CONSIP (customer reference contract) details. I can work out what field 'RELATION_TYPE' is and can see that it needs to have a value of 'VONA'. This one is easy to identify because of the 4 character field definition, but I can't work out what goes in the relobj_roletype, relobj_objkey, relobj_type, or the relobj_object_id fields. Can anyone be of help here. I have been trying a number of different values, for example, I populated the relobj_roletype field with 'BUS2000135' which is the object name for a 'CRM Customer contract', but that was rejected and resulted in a status 51 being set in the IDOC.
    Blue

    Stephen,
    I agree with you, but you try and get a VAN to supply IDOC related details in the complex data structure format. They can do it but they're not at all happy about it and go to great lengths to avoid, whereas the ORDERS05 is a standard that most already output to.
    I can process ORDERS05 type IDOC's okay, although I had to add my own code to process a few segments. Anyway, the orders are being created okay. I did initially have a problem when blocking an item, based on certain checks perfromed in the BADI, but that has now been resolved. My only other problem, which a support message has been raised with SAP about, is to parse back status messages to IDOC. Again, there's a BADI which allows you to add content, but there's a mismatch in parameters between the FM and BADI. I'm sure they'll sort it out.
    The only thing left now is to get the item level doc flow to update when pointing to customer reference contract. Again, it's just a case of reverse engineering the data from the IDOC created by the CRMXIF_ORDER_TEST program.
    Regards
    Dr Sidewalk

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

Maybe you are looking for

  • Can't get iCal alarm to work

    I've tried everything that I've read ... but I can't get the alarm to work - Does anyone else have this problem OR solution? Thx in advance!

  • Transferring old iPhoto pictures to new MacBook

    I am trying to merge my old iPhoto pictures from a MacBook running OS X 10.5.8 to a new MacBook running 10.7.5 I tried connecting the two computers with a USB cable, I can't seem to get the two to connect when I open finder.

  • Clientgen with JAXWS -- how to bind with JAXB?

    I'm using WLS 10.0 "clientgen" to generate Java classes from my WSDL files. All goes well for the simpler WSDL files. Since I'm new to JAXB, I don't quite understand now how to bind the output files using JAXB. It seems this would have been done in t

  • Motion 5 fullscreen mode

    Hi! In Motion 5 the fullscreen mode with typing F8 is listed in "windows", but it doesn't work. I need it though. Does anybody know why it doesn't work?

  • Desk top view too big

    I added Magic Trackpad to my iMacG5 and really have enjoyed it. But inadvertenly while on the desk top screen, I had my hand on a key and simultaniously pinched out and my desk top enlarged. Well, I though that was cool, like my iPad. But when I trie