LSMW CRMXIF_ORDER_SAVE_M02

Hi
I try to load sales orders in CRM via LSMW - IDOC. I use message type CRMXIF_ORDER_SAVE_M, basic type CRMXIF_ORDER_SAVE_M02 (also i tried CRMXIF_ORDER_SAVE_M01 and CRMXIF_ORDER_SAVE_U01. What is the difference between these basic types? And which one i have to use???). I've done IDOC inbound processing settings and settigs in LSMW. When i start IDOC GEneration CRM system create the IDOC. The IDOCs created remains with status 64. Then i Start IDoc Processing and CRM system process the IDOC. The IDOCs processed change the status to 51 (incorrect)  - message "Function module not allowed: BAPI_IDOC_INPUT1".  Sometimes IDOCs processed change the status to 62, but in this case i still have no sales order in the system!
What i might do wrong???
Help me please!!!!
Thanks in advance.
Alex.

Hi Aleksandr,
The CRMXIF_ORDER_SAVE_M01 IDOC has a complex structure CRMXIF_BUSTRANS From which the IDOC is generated. This contains two segments CUSTOMER_H and CUSTOMER_I. These are represented by structures CRMXIF_CUSTOMER_H and CRMXIF_CUSTOMER_I. In General the recommendation is to use these structures for Customer specific enhancements.
refer notes 1022699.
This should solve the problem.
Please reward points.
regards,
Muralidhar Prasad.C

Similar Messages

  • LSMW    CRMXIF_ORDER_SAVE_M02 upload attachment

    Hi
    does anyone know how to upload a batch of attachments using the above interface, in maintain activities.
    The attachment links should upload using source structure E103CRMXIF_ATTACHMENT_LINK. However this has not worked. Has anyone been able to create attachments by importing then into CRM by using an IDOC interface? If so how did you get this to work.

    Hi Nicola,
    do you have a solution for your prob? I can't set a link from an activity to a document. I use the CL_CRM_DOCUMENTS=>CREATE_WITH_TABLE.
    I have written a report that creates a new activity and a new document. But the link between the activity and the document I can't make work.
    Pl. help!!!!!
    Have a nice day,
    Ralf
    P.S. Here is some coding. It's only for testing, that is why it looks so terrible.
    CALL METHOD cl_crm_documents=>create_with_table
      EXPORTING
        BUSINESS_OBJECT     = cwt_business_object
        PROPERTIES          = cwt_properties
       FILE_ACCESS_INFO    =
       FILE_CONTENT_ASCII  =
        FILE_CONTENT_BINARY = content
        RAW_MODE            = 'X'
       TEXT_AS_STREAM      =
       PARENT_FOLDER       =
      IMPORTING
        LOIO                = cwt_loio
        PHIO                = cwt_phio
        ERROR               = cwt_error.
    if sy-subrc = 0. endif.
    Message was edited by: Ralf Nowak

  • Transaction Upload using LSMW

    HI,
    We are using LSMW with IDocs for uploading transaction data into our CRM system.The IDoc type is CRMXIF_ORDER_SAVE_M02 and the message type is CRMXIF_ORDER_SAVE_M.
    The IDoc is getting created successfully with status 53(Application document posted) but the transaction is not getting created in the system.
    The port being used is of type 'FILE' and the partner profile being used is of type 'US'.
    Can anyone please let us know if any further settings are to be made for the transaction to get created.
    Thanks and regards,
    Vijaya Sai.
    Message was edited by:
            Vijayasai Veerubhotla

    Hi Vijay,
    Hope you remember me.
    The Idoc that gets created, does it have any other messages? The message 53 means that the Idoc processing has called the order framework and that the Idoc mapping was successful. So there are no errors in the loading of the document but the issue is with the order application itself. Ideally the Idoc will also contain messages which give information with regards to whether the orders application successfully processed the Idoc data or not.
    Cheers
    Binai

  • 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

  • Idoc "CRMXIF_ORDER_SAVE_M02- doc_flow" data not pumped in

    hi experts..
    i am using idoc in my lsmw...
    my basic type is CRMXIF_ORDER_SAVE_M02...
    all the data can be pumped in except the E101CRMXIF_DOC_FLOW_XT node...
    i only want the "Campaign" field in tcode CRMD_ORDER "service contract->header overview tab" to have the data from my flat file...but is not successful...
    <a href="http://img383.imageshack.us/img383/313/47082810nh1.jpg">http://img383.imageshack.us/img383/313/47082810nh1.jpg</a>
    i have mapped every possible fields...
    [url]http://img383.imageshack.us/img383/6175/87083946cd7.jpg[/url]
    any input is appreciated...

    Hello,
    I am not sure what you mean exactly, however you can test first in crmd_order
    to create a lead and have a look (in debugger) which fields are needed and how they are stored on database.
    Please verify also your date profile and date type and rules.
    Best regards
    Rene

  • CRMXIF_ORDER_SAVE_M02 - how to populate pricing conditions at header lvl?

    Hi all,
    im using lsmw idoc basic type CRMXIF_ORDER_SAVE_M02 to create Service Orders.
    my problem now is, it only contains pricing conditions segment (E101CRMXIF_PRCD_COND_XT) under the item level.
    is there anyway so that i can populate the pricing conditions at the header level?
    Many thanks.

    Hi Michael,
    Thanks alot for the answer.
    I had given 6 point for that.
    I have couple of more question here.
    As you said
    <b>bdoc structure can be enhanced using the EEWB or manually, but then you'll have to create the mapping from the bdoc to the CRM DB as well.</b>
    My question is what needs to be done to map bdoc to CRM database.
    Second thing is
    As you said
    <b>A new idoctype, including the enhancements done to the bdoc and all mapping functions for inbound and outbound communication, can be generated using transaction BDFG.</b>
    My question is what do you mean by New IDoc Type, Do i need to define new idoc type/message type for this enhancement, and the field which i have to add in BDOC structure how it is going to reflect into the corresponding basic idoc. In my case <b>crmxif_order_save_m02</b>, Don't i need to add the same field here in Basic Idoc type.
    Please explain me this doubts.
    Thanks Alot.
    Regards,
    Manoj Tiwari

  • LSMW : Idoc method , Business Activities custom fields data upload

    Hi guys
    I am uploading Business activities using LSMW IDOC method and below message and idoc type
    Message type CRMXIF_ORDER_SAVE_M
    Basic idoc type : CRMXIF_ORDER_SAVE_M02
    Using EEWB I added few fields to business activities , along with the standard fields I want to upload the customer fields also .
    I tried to Extend the Basic idoc type CRMXIF_ORDER_SAVE_M02, but it was not allowing me to Extend ( since it is generated basic idoc type ) I tried the other Basic idoc types for Business activities , I got the same problem
    the basic idoc type contains only two Segments
    E101CRMXIF_CUSTOMER_H_X (parent)
    E101CRMXIF_CUSTOMER_H (child)
    with out my custom fields
    pls help how can i add my custom fields ( added by eewb) to the basic idoc type
    for uploading custom fields
    thanks in advance
    Warm regards
    Rajasekhar

    You are going to need to create an enhancement of the standard IDOC type in order to get your custom fields to show.  I can't remember the exact procedure, but you will need to create a Z-type based on the existing type in the system.  When you generate the z-type the fields will be filled in.
    Look at the following thread and it will give the basic steps
    How to delete Extention
    Good luck,
    Stephen

  • Modify existing data using LSMW IDoc method

    Hi experts,
    I am trying to transfer activity data from R/3 system to CRM using Idoc LSMW method.
    It working fine that LSMW creates new activities in CRM system, & there is a check in the conversion code that if the activity we are trying to transfer exists in CRM system it will skip that transaction.
    Now the requirement is that we don't want to skip, if the activity is already present in CRM system than it should modify the existing.
    IDOC used :                       CRMXIF_ORDER_SAVE_M02
    Msg type used:                 CRMXIF_ORDER_SAVE
    Note:
    LSMW will not create activities in the system; SXDA data transfer workbench will be used to process the data in CRM system. SXDA project has following two steps:
    -     Merge files u2013 This step uses a custom function module to merge one or more than one files and creates a file which is   required for LSMW.
    -     Convert the data u2013 This step uses LSMW as the conversion method
    -     Load the data u2013 This step uses the IDoc object interface
    Now the doubt is that if i remove the check than it will create an another activity with same activity no. or modify the existing one, or is there another way to modify the existing activity in CRM system?
    Waiting for a qiuck response.
    Thanks
    d_marco

    HI,
    Thanks for your quick valuable response.
    I have a doubt, we are transferring activities from R/3 system to CRM system, & these activities are maintained in R/3 application system in the form of text files
    Now the question is if the text file contains 10 activities( transactions) with there header, partner & item details & from these 10 activities some are new & some are already present in CRM system, than will it be possible to create the new ones & update the existing ones withe single LSMW project run.
    I think that we can put a check in the conversion code where transaction begins that if the particular activity( transaction) already present in CRM system than set a flag as "U" to update, if activities are new than set it as "I"  to insert & than pass this flag in  the conversion rule to the field "OBJECT_TASK" of IDOC  structure
    or
    we need to maintain text files as for update or insert separately but not for mixed task of update/insert.
    Will this update/insert process also work's if we are using a copy of standard IDOC type with some custom segments & custom fields.
    Thanks
    d_marco

  • Logical filename and logical path in lsmw

    Hi all,
           I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
    can anybody provide a solution for that .
    Thanks & regards
      Magesh anandan

    hi ,
      goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
    hope it will helps u..
    regards,
    venkat.

  • LSMW  - Open Sales Orders

    Hello  Friends
    I want to find if anybody can guide me on how to get all open sales order tables , i want to create a format and create a flat file for uplodading the file , for this what do i need and how do i do it.
    Also for creating LSWM can i use the existing one which i can just Assign the New file to the existing one .
    Regards.

    Dear Mehmood,
    I want to find if anybody can guide me on how to get all open sales order tables
    You want to extract all the open sales orders- which you can get from Table:VBUP key in overall document status in selection screen ( You can use VBUK also- but if there are certain sales orders in which some of the items are completed or few of them open, using VBUK - you will not get exact records)
    Secondly, you can get the data by using Query also- in SQVI
    design a query with VBAK / VBAP & VBUP
    so that from VBAK you can give time period & sales area details
    from VBAP - you can enter plant relevant details to filter certain records & item category as well
    where as VBUP- filter wth the status.
    once downloaded store in flat file.
    Now Create LSMW object by using batch input recording method. after mapping the relevant fields,
    prepare the flat file in such a - it suits to the upload file / recording file. then you can upload the already downloaded n stored open sales orders in flat file.
    Hope this is what you are looking for.
    Regards,
    ReazuddinMD

  • Error while creating a LSMW

    Hi,
    I have created a LSMW for updating sales office in the Sales order by using Direct input method.
    While specify files;I specified the file saved in the Desktop.While saving I get an error saying 'Logical path is not specified'.
    Can anyone tell me why this error occurs and how to rectify this??
    Thanks in Advance.
    Thanks&Regards,
    Sophia Xavier

    HI
    Place the cursor on "legacy data" and click on "create" option.
    You will get one screen. There, you have input box called "FILE". By selecting drop box or pressing F4 on that, you will get all folders, files available at ur PC.
    Search for you file, and double click on ur file. Next give all mandatory information in that screen. Finally press ok and save your "specify screens". It can be saved.
    Reward if it is useful.
    Thanks.
    Siva kumar

  • Creation of partner functions for customer master with LSMW

    Hello,
    I try to create partner functions together with a customer via Batch Input in LSMW.
    Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
    I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
    When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
    Is it only possible to update partner functions with that BI or what is going wrong ?
    Thanks in advance and regards
    Alex

    Hi Alex,
    Could you specify what error message you are getting?
    Thanks!
    Rudra

  • Error in Creation of Purchase Requisition through LSMW

    Hi
      I am trying to craete a PR upload prog through LSMW batch input method. In the Specify File option I am giving the TXT file destination.The TXT file is saved at my desktop. But while saving it is givving an error as "No logical path has been specified", Message no. /SAPDMC/LSMW_OBJ_060046
    If anyone can help me out.

    Hi,
    I would suggest to create a new one for this as file is placed on your desktop. But you can refer the standard one with which you will get the idea for creation:
    Standard logical file name for this is: MM_PURCHASING_REQUISITIONS
    In this file location is default in location /usr/sap/trans/data/mmrequisitions, instead of this you can give your converted data file name from step 7 Specify file for e.g PROJECT00_CUTOVER_MB1C_1.lsmw.conv
    You can refer or use standard logical path LOCAL_TEMPORARY_FILES for this scene.
    Hope this solves your problem.
    Regards,
    Brajvir

  • Creation Of LSMW for Actions..........

    Dear ALL
    Recorded an LSMW for PA40 hiring actions which includes infogroup - [ IT 0000, 0001, 0002, 0105-ZVEN (Sub type)]
    This is for external vendor employees hiring actions.
    While recording or manually running the process, it is working fine.
    When in foregroud or background process, the alternate pernr is getting generated. Say for 1st record , pernr generated is 80023, then for next it is 80025, 80027so on.
    Kindly suggest me in this issue.
    Thanks
    MJ

    Hi,
    1-you keep no range as external and assign PERNR sequentially so that it remains same as you want it
    2-kindly go through the LSMW abain to see what have you assigned in field mapping & conversion rules
    3- check one record created thru LSMW and see if next (alternate number gets assigned to Ref PERNR in IT0000)
    Check the alternate number to see if anything gets assigned to it.
    salil

  • Using a Logical File definition in LSMW

    Hi all,
    is there any way that we can use a Logical File (defined in transaction FILE) as an application server file in the "specify files" step, instead of having to enter the physical path/file?
    Thanks in advance,
    Justin

    Hello,
    Check pages 46 and 47 of the following document :
    [http://sapabap.iespana.es/manuales/pdf/lsmw.pdf|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf]
    You can only use a logical filename for subsequent programs (example direct input programs) not for the actual input file of your LSMW.
    Wim

Maybe you are looking for