Create PR using LSMW(IDoc)

Hello,
I'm trying to use LSMW(IDoc) to create a PR. However the PR number is internally assigned. Is there any way to make the program recognise that the PR has multiple line items using just LSMW(without a separate ABAP program).
Regards
Gladys

Hi
There is no way in LSMW unless you have header records for segment E1PREQCR inserted into your file. The input file should have one line for this segment ( even though it may ne blank as it is optional ) and one or more line item lines after this.
If you already have a file with only item records you will have to insert the header lines at the desired place by another method or another ABAP program before passing it to LSMW. LSMW has capability of mapping / converting existing record lines but does not have the capability of adding lines.
Cheers

Similar Messages

  • Issues in using LSMW IDOC method for Article Hierarchy

    Hi Experts,
    I am working on a scenario for uploading article hierarchy using LSMW idoc method.
    Details:
              Message type WMATGRP
              IDoc type WMATGRP01
    But as per my understanig, for processing, there should be a inbound Function module/Process code. But I am unable to find out any process code for this in tcode WE42/We60.
    Could you please help in this problem.
    Regards
    Krishan Kumar

    Hi Saeed,
    For example if you want t create bom through lsmw then we will *** two files one header and other item one.In the same way .In lsmw start by keeping the idoc method i will only propose at second step how many files it need. Just map the idoc and see. Post if need more help.
    Regards,
    Madhu.

  • Multiple Source Structure in single flatfile using lsmw idoc method

    Hi Abapers,
                we have a requirement for Business partner Data mIgration into CRM system using LSMW idoc method,I got a flat file
    which has multiple source structures like(header structure,Tax structure,Mailstructure,Identification structure,bankdetails structure,card strcuture........etc of 12 structures) with identification for each structure. can any one help me how to handle this in lsmw or any link of this kind of scenario will be helpful for me .
    Thanks and Regards,

    Hi Saeed,
    For example if you want t create bom through lsmw then we will *** two files one header and other item one.In the same way .In lsmw start by keeping the idoc method i will only propose at second step how many files it need. Just map the idoc and see. Post if need more help.
    Regards,
    Madhu.

  • Import Product Price and Condition using LSMW IDoc method

    Hi Friends,
    I am working on the Product Import to CRM from flat file using LSMW IDoc method using the "CRMXIF_PRODUCT_MATERIAL_SAVE" message type.
    I am able to import the entire product with its required details except the Price and its conditions.
    Can anyone please let me know which structure or with message type to be used to import the Product Price and condition using the IDoc method.
    Please pass on your valuable comments.
    Thanking you,
    Naveen

    Hi Naveen.
    I am doing the same thing but only the product gets created and the details like short text, unit etc. do not get populated. The idoc gets processed successfuly. Can you share the fields that are required to be mapped or are mandatory.

  • How to upload different views of customer master data using LSMW-IDOC

    I need to upload customer master data  using LSMW Idoc method for my client. Now customer will have different views like main view, Sales data, Company code data, Partner function data etc. And except main data all other data can be multiple for each customer. We are going to upload data from tab delimited .TXT file. Should I propose different LSMW for upload different views for the customer from different .TXT files? or we can upload all the customer related data (like main view data and partner function data )from a single .TXT file. Kindly suggest which one in convenient and how we can prepare the data file in both cases.

    convinient is the method that you can handle.
    but as the guy who loads the data you have to load the data like they are available, like it is convinient for others to prepare the data.
    In general there is no problem to use an IDOC method to load a customer master with multiple comany codes and several sales orgs in one shot.
    the data can be in one source file, but need then to be maintained in a certain way
    Example1: all data in 1 structure
    GD1 - CC1 - SO1
    GD1 - CC2 - SO2
    GD1 - CC2 - SO3
    in this case the GD (general data) is redundand in each line which has different Company code data or different Sales Org data
    Example2: all data in 3 sturcures but one file
    GD1
    .CC1
    .CC2
    ..SO1
    ..SO2
    ..SO3
    Example3: data delivered in 3 files - you join the files in LSMW, they must have a common identifier like the old customer number in the beginning of each file
    FILE General data:
    GD1
    GD2
    GD3
    file Compamy code data:
    CC1
    CC2
    CC3
    file Sales org data:
    SO1
    SO2
    SO3
    LSMW is flexible and can handle each of this scenarios, are you flexible too?

  • Data Transfer using LSMW IDOC processing with multiple segments

    we need to post the document data (Header structure, BP item structure, G/L item structure..etc) using LSMW IDOC processing.
    is it possible to transfer data for all these structures (Segments) in single file?

    Thanks for the reply.
    I am assuming when we are specifying the file in LSMW we are going to give the option to generate the file with include all structures.
    could you please elaborate further is there any thing specific we need to do while configuring LSMW to get the file for all segments in the IDOC with field names which we are going to populate with data, so that we can use it for data transfer.
    any help document will  be helpful.

  • I can create material using inbound Idoc of type MATMAS01, but not MATMAS05

    I can create material using inbound Idoc of type MATMAS01 in WE19, but MATMAS05 failed. In fact I used same data ( different material number), and same inbound function, but got different result.
    What is different between MATMAS01 and MATMAS05? Is there some configuation need for MATMAS05?
    My system is ECC5.0. Thanks.

    Hi, nagaraj
    this is inbound IDoc, not outbound IDoc, so we can't assign Basic type in WE20, only can assign Message type.
    In WE82, there are 5 records about Messagetype MATMAS:
         Message type   Basic type     Release
          MATMAS         MATMAS01        30A
          MATMAS         MATMAS02        30D
          MATMAS         MATMAS03        40A
          MATMAS         MATMAS04        46C
          MATMAS         MATMAS05        470
       I think it should be ok.
    In WE57, there 2 records are exist:
       FM_name                 BasicType       MessageType
      IDOC_INPUT_MATMAS01       MATMAS01         MATMAS
      IDOC_INPUT_MATMAS01       MATMAS05         MATMAS
    so I think all configurations should be ok.
    Message was edited by:
            liu bin

  • Partner function issues while creating SA using LSMW

    Hi,
    I am opening a new thread (though similar question has been put by Vihaan in below thread)
    Tax code in SA - LSMW
    We are creating SAs via LSMW IDOC method (Message Type - PURSAG_CREATE and Basic Type - PURSAG_CREATE01), all our SAs being created w r to Contract and Contract has multiple OA and PI partner functions. So while creating SA we are passing unique OA and PI value (from list of valid OA/PI avaialble in contract) in LSMW structures - E1BPMEOUTPARTNER and E1BPMEOUTPARTNERX.
    Values passed are mentioned below:
    E1BPMEOUTPARTNER               Partner Information for Outline Agreement
        Fields
            PARTN_ROLE                   Partner Function
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-PARTN_ROLE = 'BA'.
            PLANT                        Plant
            SUBRANGE_TX                  Description of Vendor Subrange
            LANGU                        Language Key
            LANGU_ISO                    Language according to ISO 639
            PARTNR                       Reference to other vendor
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-PARTNR = '1XXXXXXXX9'.
            DEF_PARTNR                   Default Partner
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-DEF_PARTNR = 'X'.
            DELETE_IND                   Deletion Indicator in Purchasing Document
    E1BPMEOUTPARTNERX              Change Parameter Partner Data (Outline Agreement)
        Fields
            PARTN_ROLE                   Partner Function
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-PARTN_ROLE = 'BA'.
            PLANT                        Plant
            SUBRANGE_TX                  Description of Vendor Subrange
            LANGU                        Updated information in related user data field
            LANGU_ISO                    Updated information in related user data field
            PARTNR                       Updated information in related user data field
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-PARTNR = 'X'.
            DEF_PARTNR                   Updated information in related user data field
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-DEF_PARTNR = 'X'.
            DELETE_IND                   Updated information in related user data field
    Now issue is SAP is not recognizing above mentioned partner value and throwing error as Following mandatory roles missing in partner maintenance: OA
    If the reffered contract has single OA and PI LSMW is running fine and creating SA successfully but issue is coming only when we have multiple OA/PI.
    Has anybody faced similar issue or aware if any OSS note which resolves this issue, please advise.
    Thanks,
    Yogesh

    Hi Jurgen,
    I have created a separate source structure for passing partner function and now have below source structure:
    Source Structures
           HEADER_SA            Header Structure
               PARTNER_SA          PARTNER STRUCTURE (Lower level to Header)
               ITEM_SA              Item Structure (Lower level to Header but at the same level as Partner)
    Then created a separate file for partner having both OA and PI value as shown below (ID is common field between all three structures Header, item and Partner):
    ID     PARVW     LIFN2     DEFPA
    1     BA     1XXXXXXX9     X
    1     RS     1XXXXXXX7     X
    Now after convert data step it considers above values for partner role but still LSMW fails with same error "Mandatory PF missing, OA, PI"
    Also, one more info wanted to share- if in my contract I put a tick mark against one of the partner OA/PI in DEFAULT BOX, it works fine but that does not make any sense as the whole pupose of having multiple OA/PI is to give option to business of selecting one of the avaialble OA/PI.
    FYI - I have opened a customer message to SAP, let see what they suggest.
    Thanks,
    Yogesh

  • Load customized set type using LSMW+ IDOC (XIF)

    Hi experts,
       now i could load most product field using LSMW+ IDOC (XIF), but when i load customized set type, it gives error " User-defined set type ZTest does not exist in BDOC structure ". After some study i know i must to enhance BDOC type ? but i am not very familiar with BDOC, andy idea ? ths
    also could anyone provide some function module to load product ? ths again
    Edited by: Gang LI on Apr 23, 2009 11:57 AM

    Hi,
       You will have to Re-Generate Your BDoc Structuring due to your Carried out Changes,
    Use TCode:SMW_BDM
    For Creation of the BDoc and Check.
    Hope it answers your Queries..
    Thanks and Regards,
    RK.

  • Create Purchase info record using LSMW idoc method

    Hello Friends,
    I am trying to update Purchase Info records using LSMW Standard program RM06IBI0.
    But it is not updating the condition price details and scale Quantity.
    For that the  form  suggessted LSMW IDOC method. with : Message Type         COND_A / COND_A02.
    But i dont know is the info record created earlier to this step or else we can create both using this method
    at a time ?  Does anybody please suggest.
    ( Actually Purchase Info record created using transaction  ME11 ).
    Regards,
    Phaneendra

    you first create the info record and subsequently you load the conditions.
    become familiar with the condition tables and its key first. Check How table A017 and A018 are maintained.
    Intresting is the field VAKEY which is actually the link to your info record.
    This is a combination of vendor, material, purchasing org, plant , and info record indicator.
    data:  begin of ZZVARKEYA,
            ZLIFNR like LFM1-LIFNR,
            ZMATNR like MARc-MATNR,
            ZEKORG like LFM1-EKORG,
            ZWERKS like MARC-WERKS,
            ZINFTYP like EINE-ESOKZ,
            end of zzvarkeyA.

  • Sales Order Creation using LSMW IDOC method.. ( Custome Interface)

    Hi ABAP'rs,
                     Please provide me LSMW steps for creating Sales Order using IDOC method.
                            Thanks and Regards,
                                                  Param.

    LSMW-IDOC in General
    LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
    Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
    Advantages of LSMW:
    • Most of the functions are within R/3, hence platform independence.
    • Quality and data consistency due to standard import techniques.
    • Data mapping and conversion rules are reusable across projects.
    • A variety of technical possibilities of data conversion.
    • Generation of the conversion program on the basis of defined rules
    • Interface for data in spreadsheet format.
    • Creation of data migration objects on the basis of recorded transactions.
    • Charge-free for SAP customers and partners.
    Working With LSMW:
    Use TCODE LSMW
    Objects of LSMW:
    •Project – ID with max of 10 char to Name the data transfer project.
    • Subproject – Used as further structuring attribute.
    • Object – ID with max of 10 Characters, to name the Business object .
    • Project can have multiple sub projects and subprojects can have multiple objects.
    • Project documentation displays any documentation maintained for individual pop ups and processing steps
    User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    Object type and import techniques:
    • Standard Batch / Direct input.
    • Batch Input Recording
       o If no standard programs available
       o To reduce number of target fields.
       o Only for fixed screen sequence.
    • BAPI
    • IDOC
    o Settings and preparations needed for each project 
    Preparations for IDOC inbound processing:
    • Choose settings -> IDOC inbound processing in LSMW
    • Set up File port for file transfer, create port using WE21.
    • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
    • Setup partner type (SAP recommended ‘US’) using WE44.
    • Maintain partner number using WE20.
    • Activate IDOC inbound processing.
    • Verify workflow customizing.
    Steps in creating LSMW Project:
    • Maintain attributes – choose the import method.
    • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
    • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
    • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
    • Maintain relationship between source and target structures.
    • Maintain Field mapping and conversion rules
    • For each Target field the following information is displayed:
    o Field description
    o Assigned source fields (if any)
    o Rule type (fixed value, translation etc.)
    o Coding.
    o Some fields are preset by the system & are marked with Default setting.
    • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
    • Specify Files
    o Legacy data location on PC / application server
    o File for read data ( extension .lsm.read)
    o File for converted data (extension .lsm.conv)
    • Assign Files – to defined source structures
    • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
    • Display read data – To verify the input data being read 
    Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
    • Display converted data – To verify the converted data
    Import Data – Based on the object type selected
    • Standard Batch input or Recording
    o Generate Batch input session
    o Run Batch input session
    • Standard Direct input session
    o Direct input program or direct input transaction is called
    BAPI / IDOC Technique:
    • IDOC creation
    o Information packages from the converted data are stored on R/3 Database.
    o system assigns a number to every IDOC.
    o The file of converted data is deleted.
    • IDOC processing
    o IDOCS created are posted to the corresponding application program.
    o Application program checks data and posts in the application database.
    Finally Transport LSMW Projects:
    • R/3 Transport system
    o Extras ->Create change request
    o Change request can be exported/imported using CTS
    • Export Project
    o Select / Deselect part / entire project & export to another R/3 system
    • Import Project
    o Exported mapping / rules can be imported through PC file
    o Existing Project data gets overwritten
    o Prevent overwriting by using
    ‘Import under different name
    • Presetting for Inbound IDOC processing not transportable.
    Reward if useful.
    regards
    santhosh reddy

  • 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

  • Upload Of Vendor Create Data using LSMW

    Hi,
    I am trying to upload the vendor data for more than 1000 records from flat file structure to sap using LSMW (standard batch/ direct input) for XK01 transaction code. For uploading the house and street address i have created additional fields STR_SUPPL1 and STR_SUPPL2 in addition to STRAS. But in "Maintain Field Mapping and Conversion Rules" I am not able to locate the fields for mapping STR_SUPPL1 and STR_SUPPL2. Can any one please suggest me how to go about it. Thanks in advance.
    Regards,
    Sangram

    Hi
      As per your requirements when you r uploading the data in the  "Maintain Field Mapping and Conversion Rules" it will display your field and some additional fields,and there you have to select for which field you r going to upload the data.
    You have mentioned that you have created some two extra field as STR_SUPPL1 and STR_SUPPL2.Can you plz clarify me where you have declared those fields and how.
    If you have done it in   "Maintain Object Attributes" than it should display in the Field Mapping or you check it with " Maintain Source Fields" part,wheather you have enter all the fields appropriately or not.
    I hope this will help you to solve your problem.
    Thanks
    Mrutyunjaya Tripathy

  • Business Partner Conversion using LSMW IDOC

    Hi Experts,
           I need a serious suggestion.
    I am planning to do my Business Partner master data conversions using LSMW method IDOC CRMXIF_PARTNER_SAVE_M03. Is this is right choice or best practice?
    During Coversions how do we do error handling or reporting. For example i have uploaded 10k BP's. if there 1k errors how do you report. I think it is tough to check each and every idoc status and message.
    Thanks guys.

    Hi Experts,
           I need a serious suggestion.
    I am planning to do my Business Partner master data conversions using LSMW method IDOC CRMXIF_PARTNER_SAVE_M03. Is this is right choice or best practice?
    During Coversions how do we do error handling or reporting. For example i have uploaded 10k BP's. if there 1k errors how do you report. I think it is tough to check each and every idoc status and message.
    Thanks guys.

  • Re:Uploading of material master data using lsmw-idoc method

    Hi friends,
                While processing each idoc  one log on window is opening,and status of idoc is 51,eventhough i am passing material description to maktx of e1maktm,it is showing an 'No description is passed'.
    Colud you please tell me how to correct these errors,i am new to this lsmw-idoc method.
    Thanks in advance,
    Anusha.

    Thank you for reply.
    Actually I am uploading the data in flat file from file port to sap.
    In idoc inbound processing of lsmw i have created a file port and iam giving the logical system name of the same client.
    is this the correct procedure.
    Every time when i process each idoc one new logon window is opening and it is showing idoc status as 51.
    could you please tell me how to correct this one.

Maybe you are looking for

  • Azure Notification Hub Package Missing for Windows Phone 8.1

    The WindowsAzure.Messaging.Managed nuget package version 0.1.7.6 does not support Windows Phone 8.1. Is there a package available to support Azure Notification Hub to push notifications to Windows Phone 8.1?

  • Objects with effects applied to them print with a white background around them

    I have an object with a dropshadow effect applied to it. When attempting to print my file, the object with the effect prints with a solid white box around it, blocking out a portion of the objects behind it. Why is this, and how do I fix it? I have t

  • Application Import - ISSUE REPORT - Low Priority

    Dear APEX Development Team, I am using APEX.ORACLE.COM. I have noticed some strange behaviour when I try to import an application file into APEX. (Home -> Application Builder -> Import) I specified the file by using the browse button and selecting a

  • Groupwise connector by microsoft outlook

    Hi I have the following enviroment: Microsoft Outlook Xp SP3, groupwise 7 connector by microsoft outlook. My server groupwise is 7.0.1 version and need use microsoft outlook as your front end. But I need receive my emails to un PST file. I can not se

  • Using iMac and Macbook together..

    I've read that it's possible to use an iMac's screen as a monitor for a MacBook Pro via Thunderbolt but is it a simple case of plugging in the cable and I'm good to go with the laptop and then unplugging it (without having to power down) and carrying