Alternate method for LSMW

Hi friends, kindly let me know alternate solution for my problem.
Q. For transacton code MB11 iam posting the data through LSMW using standard program RM07MMBL(Batch input program). This program is having structure called BMSEG it will accept only one record per transaction.
In my flat file iam having total 20000 records, due to this iam getting performance issue.
Could you please tell me alternate method for the same?
Regards,
Sreenivasa Babu,
9866123064.

Hi srinivas..
In this Case it will be better to Call BAPI than using LSMW.
We have the BAPI_GOODSMVT_CREATE which is used to Create Goods movement.
It will be faster since the Data will not be processed in Screens when we Call BAPI.
Sample code to Call this BAPI:
data : gm_header type bapi2017_gm_head_01,
        gm_code type bapi2017_gm_code value '01',
        gm_headret like  bapi2017_gm_head_ret,
        matdocument type    bapi2017_gm_head_ret-mat_doc,
        t_gmitem type table of  bapi2017_gm_item_create,
        wa_gmitem type   bapi2017_gm_item_create,
        t_gmsernumber type table of bapi2017_gm_serialnumber,
        wa_gmsernumber type  bapi2017_gm_serialnumber,
        ret type table of bapiret2.
gm_header-pstng_date = '20051201'.
gm_header-doc_date = sy-datum.
gm_code = '01'.
wa_gmitem-material = 'SAMPLE'.
wa_gmitem-plant = '0001'.
wa_gmitem-stge_loc = '0001'.
wa_gmitem-move_type = '501'.
wa_gmitem-entry_qnt = 10.
append wa_gmitem to t_gmitem.
wa_gmsernumber-matdoc_itm = 10.
wa_gmsernumber-serialno = 1.
append wa_gmsernumber to t_gmsernumber.
call function 'BAPI_GOODSMVT_CREATE'
  exporting
    goodsmvt_header             = gm_header
    goodsmvt_code               = gm_code
  TESTRUN                     = ' '
importing
  GOODSMVT_HEADRET            =
   materialdocument            = matdocument
  MATDOCUMENTYEAR             =
  tables
    goodsmvt_item               = t_gmitem
   goodsmvt_serialnumber       = t_gmsernumber
    return                      = ret
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT  = 'X'.
  write:/ matdocument.
<b>reward if helpful</b>

Similar Messages

  • What is the alternate method for IPTMyPages.AddPage?

    Hi, IPTMyPage.AddPage is deprecated. There is no alternate method suggested. Does any one know answer?
    Thanks
    Sampath

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - , duplicate annahalitor, Decloner
    LN

  • Alternate Methods for FP Updates

    I am trying to come up with the most efficient method--both from an execution standpoint, as well as from a development standpoint--for updating indicators on a front panel.
    We have an application with multiple windows containing many numeric indicators, representing measurement devices. We also have a subvi that handles performing queries of a central current value table to return the values of devices by name; you pass in an array of devicenames, and it returns an array of values. The standard LabVIEW paradigm for updating indicators would probably be as follows:
    In this simplified example, that seems straightforward enough, but it quickly becomes unmanageable if you have to keep adding/removing indicators. It's a constant struggle to make sure that your lookup array and output array indexing matches. In the example above, there's an example of a common subtle mistake. Can you see it?
    In order to speed up development and avoid such mismapping issues, we started playing with scripting, and came up with the following paradigm:
    In this example, we just place the indicators on the front panel and ensure that the label matches the device. Then we run a script that will place the terminals into cases in a case structure, and generate the lookup string array. So then we can step through the outputs in a for loop, and update the indicators one by one. This method is slightly easier to maintain that the first one, provided you stick to the scripted methods, but if you ever start manually making changes to the devices, cases, or lookup array, you quickly find yourself in a world of confusion as the inevitable mismapping errors start to come up. Further, it is generally frowned upon to update indicators in a case structure like that (anyone in the LV community care to comment on what that is, exactly?).
    Recently, I came up with an alternative that I really like, at least for certain cases: if you can bundle all your FP indicators into a single cluster, then you can perform aggregate lookup/update operations:
    This way is super nice, since you are guaranteed that the lookup will always be in the correct order. And you don't have to duplicate the indicator labels explicitly on the block diagram. It will even work if you have nested clusters, as long as they are monolithic! However, there are many cases where a given VI does not lend itself to clustering all the front panel indicators together. Particularly if you have them spread out, and have controls nearby (many displays are schematics, with indicators placed where the physical transducers are located, and often there are controls immediately next to them). Sure, you could just create one giant transparent cluster container and toss all your indicators in that, then put any controls on top. But I tend to shy away from floating objects on top of other objects if I can help it. And it is really easy to screw up and accidentally add items to the cluster when you don't mean to...
    Ideally, what I would really like is to be able to update all the indicators by reference:
    In this example, we just grab all the references once (this is a simplified example, you would probably need to be a little fancier in your traversal to avoid including controls, etc.) and then update the Value property. But, of course, we all know how well LabVIEW handles property node updates, so we defer and undefer FP updates to avoid slowing things down to an absolute crawl. But even doing so, our attempts at using this method have still proven to be pretty darn slow and computationally expensive. 
    So, my question to you, LabVIEW Community: have any of you come up with a different way to handle this? Do you have any suggestions for updating indicators quickly and efficiently, while maintaining code legibility and scalability? I'm guessing someone out there has come up with some better methods...

    As a follow-up. I did a quick benchmark test to compare the For Loop/Case Structure method with the By-Reference method. I took one of our GUI windows and copied all the indicators into a separate test VI. In this case, there were roughly 100 individual indicators, all DBL type. Yes, that seems like a lot, but again, we were distributing them over a background image and grouping them based on the data they represent. I stripped out all the graphics and captions to avoid displaying anything proprietary/confidential, so here's how the FP looks now (not pretty, I know):
    So, not pretty, to be sure. But you can see it's not a ridiculous number of indicators. [I assure you, with the captions and background images, it looks a lot spiffier]
    So, I made two benchmark VIs to update these indicators. First, I did the update-them-in-dedicated-cases-inside-a-for-loop method:
    [devicenames have been blurred to protect the innocent]
    If I run this as shown, updating all ~100 indicators 100 times, the total update time is roughly 6ms. Not too shabby.
    If I try the by-reference method, performance is decidedly crappier:
    Even if I defer panel updates throughout the entire update process, as shown above, writing the values to all indicators 100 times takes over 2.3 seconds. That's over 380 times slower! 
    So, from this example, my main conclusion is that property nodes are not the way to go. It's unfortunate, since they would provide the cleanest and most versatile/scalable mechanism. Unless anyone has come up with better workarounds, or can point out flaws in my implementation...?

  • Looking for alternate method for RFC adapter with BAPI

    Hello Friends
    Right now I have a scenario as follows
    An External   ==>  SOAP        ==>  XI    ==>   RFC          ==>  SAP TABLE
    Application  
    I have an external application that is sending some DATA to XI via SOAP adapter and in turn XI using a ZBAPI  via RFC updates the table.
    However, the problem is that BAPI's doesn't support STRINGS anymore.
    SO MY QUESTION IS: Is there any other way (any other adapter) without using BAPI that I can update the table with this data.
    Your feedback will be greatly appreciated.
    Thanks
    Ram
    Edited by: Ram Prasad on Mar 20, 2008 2:16 PM

    Hi Prateek
    Thanks for your response.
    To be honest with you, I have not used Proxy in my job here so far, even though I studied during the courses I took to get certified in XI. I have to go back and look at my notes :).
    The data that I am having problems with is of 'STRING' Type, which is a blob data or a CUD string (XML string) of variable length.
    If you have any hints or steps for creating ABAP proxy, please let me know. I would appreciate it.
    Thanks
    Ram

  • Alternate solution for Refurbishment Process without split valuation

    Hi Experts,
    We are implementing SAP PM module. We want any alternate method for Refurbishment process ( Internally processed inside the plant) without activating the split valuation . Is it possible ? If possible, please suggest the process .
    Thanks in Advance.
    VT

    No suggestion received, I am closing this.
    regards
    VT

  • Alternate method of removing hard disk from 13" MacBook (aluminium body)?

    Hi,
    I've recently encountered the need to replace my MacBook's hard disk but when I tried to do so, the head of the one screw that I was required to remove to get the hard disk out got stripped, even though I was using the right size screw driver. I guess I just wasn't careful enough.
    Does anyone know if there's an alternate method for me to remove the hard disk as getting that one little screw out now seems next to impossible without doing real damage to my MacBook?
    Thanks in advance!
    Steve

    Best thing to do at this point is take it to a repair shop. They should be able to drill the screw out and even replace it.

  • While doing LSMW standard method for Customer master creation..

    while doing LSMW standard method for Customer master creation.....
    In 13th step I am getting this king of error
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name ZPROJ was opened
    FB109                    Trans. 1 : Transaction xd01 is not supported
    FB016                    ... Last header record ...
    FB014                    ... BKN00-STYPE 1
    FB014                    ... BKN00-TCODE xd01
    FB014                    ... BKN00-KUNNR
    FB014                    ... BKN00-BUKRS
    FB014                    ... BKN00-VKORG A1
    FB014                    ... BKN00-VTWEG 00
    FB014                    ... BKN00-SPART 0
    FB014                    ... BKN00-KTOKD
    FB014                    ... BKN00-KKBER BP01
    FB013                    ....Editing was terminated
    Can anyone help how to solve this?

    Hello TJK,
    <b>FB012 Session 1 : Special character for 'empty field' is /</b>
    This is the special function in LSMW, for empty field system will put / sign automatically, so you need not to worry about that.
    <b>FB007 Session 1 session name ZPROJ was opened</b> It is opening session ZPROJ which is your project name/object name.
    <b>FB109 Trans. 1 : Transaction xd01 is not supported</b>
    Check out your field mapping and conversion rule for object.
    <b>FB013 ....Editing was terminated</b>
    It is not finding proper field mapping rule / file inputs so the sytem terminates the LSMW object.
    Check your field mapping and conversion rule, check your source fields, save the file in tab delimited format.
    Hope this helps.
    Regards
    Arif Mansuri

  • LSMW Method for VD51 Customer-Material Info master data conversion

    Hi,
    I am using LSMW for VD51 Customer-Material Info master data creation but can't able to find any standard BAPI, IDOC or Direct input program.
    Can anybody tell me any standard way to do it or only the recording method possible for this.
    Thanks
    Dhirendra

    Hi,
    I have done this once and used recording method in LSMW. Do the recording from LSMW itself.
    Thanks,
    Jyothi

  • LSMW/ BAPI method for Document upload (CV01N)

    Hi All,
    Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files.
    If yes, what is the business object for doing the same?
    I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but in order to use it for mass upload , we will have to develop a program. SO I was trying to see of the LSMW method could be used.
    Thanks and Regards,
    Narendra

    Hi Narendra,
    LSMW is not supporting for attachements. Please check and confirm. If you have to upload bulk files then use BDC(Batch data collection) it's very useful for uploading thousands documents at a time. Ask abap'r to write a bdc program.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • LSMW method for transaction ME31K ( Create contract)

    can anybody tell me in which method of LSMW i should use to create contract ( Tcode- ME31K). Is there any direct input method for this or i have to use BAPI_CONTRACT_CREATE?
    please answer it in details...
    Thnxx in advance..

    In LSMW,
    1st step Maintain Object Attributes. Here you can choose the kind of input method.
    For your purpose you can choose Batch input recording and then go for Recording overview.
    There you can do your recording for the tx.Similar to your BDC process.
    Hope this helps to some extent!

  • LSMW using BAPI method for ME21N

    Hi to all,
    I am using LSMW BAPI method for the transaction ME21N Iam able to post a PO document successfully, But in my flat file I have a header and followed by item in the same line, while I was posting with same header for different line items its posting different PO's for different  line items but suppose it has to post one document with multiple items.
    My flat file fields are like this : (where as ABCD my header and rest are line items) I am using only one structure 'podata' in LSMW and I am not using any identifier.
    header--Line items
    A B C D S P Q W E X
    A B C D 1 D 3  F K L
    Business Object -     BUS2012     
    Method                -    CREATEFROMDATA1
    Message Type    -    PORDCR1
    Basic Type         -     PORDCR101
    As per my requirement if I have multiple line items for the same header then only one PO should be posted.
    Could you suggest me, How can I achieve this.
    Thanks,
    Lahari

    Hi Jurgen,
    Thanks for your reply.
    As poer your suggestion, I passed my flat file data into a single file and in the begin of transaction, I divided the data into 2 structures as Header & Item.
    Still I am unable to achieve the desired results, can you please elaborate more on how SAP internally joins the structures again.
    To be more clear my flat file data look like this :
    217836     NB     1826162667     0127     00   1     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     60.00     1     EA     
    217836     NB     1826162667     0127     00     2     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     860.00     1     EA     
    217836     NB     1826162668     0127     00     1     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     160.00     1     EA
    217836     NB     1826162668     0127     00     2     LEAN SIX SIGMA PRIMER     MRO     Z     4.00     EA     560.00     1     EA     
    The bold ones being header and the remaining Items, the underlined field is PO number.
    In normal process this file is considered to have 4 records, and tries to create 4 PO's.But my requirement is to create only 2 PO's with 2 items each.
    Thanks.
    Lahari

  • I have file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method?  alternate method? I have Adobe Ac

    I have pdf file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method?  alternate method? I have Adobe Acrobat X Pro and Windows -7 platform.

    Yes, I just want to cover up all the pages for those particular area of document numbers.
    Nothing sensitive about it. I just want to show the correct document numbers on all pages in print out.
    So, I wanted to cover up by comments, but commenting on each page will be difficult. So, I wanted to comment the same on all pages.

  • How to resolve error while importing data using IDoc method in LSMW ?

    Hi
    I am trying to import my data using IDoc method in LSMW.
    But after completing the whole LSMW process, when I look into the IDOC generated, the error description is as this.
    It talks about the process code and other stuff.
    Function module not allowed : APPL_IDOC_INPUTI
    Message No. B1252
    Diagnosis :
    The function module APPL_IDOC_INPUTI and the application object type which were determined are not valid for this IDoc.
    I am not able to resolve the problem.
    Please help.
    Regards,
    Rachesh Nambiar

    check the below link.
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter

  • QM_LSMW BY RECORDING METHOD FOR QP01

    Dear QM Experts,
    1.     I am doing LSMW by recording method for QP01 transaction code
    2.     I am facing one problem while recording in inspection characteristic screen
    3.     While saving another screen opens prompting to put inspection method, plant and version for inspection method.
    4.     This is not at all needed as per the requirement.
    I removed default Plant for Inspection Method version, Version Number of the Inspection Method while recording LSMW in inspection characteristic screen. Still it is happening.
    Surprisingly when we create inspection plan though QP01 it never asks for these things.
    Any remedies?
    Best Regards,
    Thanks is advance
    Anand Rao

    Do not use Recording for QP01.
    There is a pragram named "RCPTRA01". It can be selected in step1 of lsmw>>Object Type and Import Method>> Standard Batch/Direct Imput>>Object 0240;Method 0000;Program RCPTRA01; Program Type B.
    Then Step 2, define source structure. In fact you may go to step 4 to have a look at the structure of the target structure. It would be easy to copy that. The source structure would be as below, ZBI001 would be the top level and the others the same lever under ZBI001:
    Source Structures
            ZBI001                    Transaction Header Record for Data Transfer of Routings
                ZBIMPL                   Batch Input Structure for Allocation of Mat. to Task Lists
                ZBIPKO                   Batch Input Structure for Task List Header
                ZBIPPO                   Batch input structure for task list operation
                ZBIPMK                   Inspection characteristics for batch input of task lists
    In step 3, define source fields for source structure. For easy define, you may click "Object Overview">> Table to get the possible fields of the related structure, and then copy to Excel; after that, you may copy the fields directly from Excel to fields difining window in step 3.
    Step 4, assign the source structures to target structures, the target structures are named the same as the source structures above, just without the letter "Z". For example, assign ZBIMPL to BIMPL, ZBIPKO to BIPKO, except ZBI001 is assigned to BI000 and BI001 as well.
    Then Step 5, you may find there are RECTY and default settings are "00" "99" "01" "03" "09" "18" for BI000, BI001, BIMPL, BIPKO, BIPPO and BIPMK. Let alone "99" and imput these value to field "RECTY" in corresponding source structure fields
    Then you may run auto field mapping in step 5, and make some values constant, like PLNTY=Q etc.
    Then a problem with the profile under field "PROFIDNET". Run TCODE 'SPRO' to IMG>Quality Management>Quality Planning>Inspection Planning>General>Maintain Profiles for Default Values>Profile: default values plan/general. You may find there is a box named "Entry tool", tick that box, if not it is not possible to run QP01 in lsmw. And at the same time you may find the profile is 0000001. Key the value to field "PROFIDNET" and make the rule as constant.
    For step 6 there is nothing to do
    in Step 7, unlike other objects, you can use just one .txt file for uploading the inspection plan. When specy file, select "Data for Multiple Source Structures(Seq.file); Delimiter: Tabulator; File structure: Field order Matches source structure definition(as in Seq.file) I find not possible to put field names at start of file, so "Field Order Matching" is very important
    Then how to prepare the file? We can accomplish this with 5 excel sheets
    the fields orders for my customer is like this:
    1)for RECTY 18(Inspection Charatristics):
    MATNR     RECTY     MERKNR     KURZTEXT     VERWMERKM     QPMK_ZAEH     PMETHODE     QMTB_WERKS     STICHPRVER     PROBEMGEH     STELLEN     MASSEINHSW     SOLLWERT     TOLERANZOB     TOLERANZUN
    2)for RECTY 09(Operation):
    MATNR     RECTY     VORNR     STEUS     WERKS     LTXA1     UMREZ     UMREN
    3)for RECTY 03(Header):
    MATNR     RECTY     DATUV     VERWE     WERKS     STATU     PLNME     LOSVN     LOSBS     VAGRP     KTEXT
    4)for RECTY 01(Allocation of Material)
    MATNR     RECTY     MATNR     WERKS     LIFNR     KUNR
    5)for RECTY 00(Transaction Header)
    MATNR     RECTY     TCODE     START
    Creat a new blank sheet and copy the fild contents of these 5 sheets into it, then you can sort the fields in A to Z order with Column A(MATNR), B(RECTY), and C(MERKNR), then the seq.file to be uploaded is completed.
    for example:
    10001042     00     QP01     20090119                                                            
    10001042     01     10001042     1200                                                            
    10001042     03     20090119     5     1200     4     PC     0     99999999          Screw\M16x45\GB/T5783                         
    10001042     09     0010     QM01     1200     inspection     1     1                                        
    10001042     18     10      inspection on material     C101     1200     JF035     1200     GUD5     PC                              
    10001042     18     20      Inspection on size     C102     1200     JF034     1200     GUD5     PC
    Then copy start from Column B, i.e., without the material numbers in Column A, to .txt file.
    Specy the file in Step 7 in lsmw.
    the step 8, assign this .txt file to all structures
    then step 9, 10, 11, 12, 13 Creast Session and run it in at the end.
    Actually this program is not possible for QP02. If you want to make some correction on the inspection plans in SAP, you'd better delete them and upload the revised one.
    This program is very similar to CA01 Production Routing and thus also applicable to CA01. But I recommend using  Object 0170;Method 0002;Program RCPTRA02; Program Type D for CA01, because it provides testing transfer at the end so that you can check out logical errors, and much fastee. Pity that for QP01 there is no such program
    Currenty I am acting as Data cunsultant for an Elevator Manufaturer in China, hope my experience would help for you. My MSN is zhangxiaojun at msn dot com

  • Method for Downloading Huge Data from SAP system

    Hi All,
    we need to download the huge data from one SAP system  & then, need to migrate into another SAP system.
    is there any better method, except downloading data through SE11/SE16 ? please advice.
    Thanks
    pabi

    I have already done several system mergers, and we usually do not have the need to download data.
    SAP can talk to SAP. with RFC and by using ALE/IDOC communication.
    so it is possible to send e.g. material master with BD10 per IDOC from system A to system B.
    you can define that the IDOC is collected, which means it is saved to a file on the application server of the receiving system.
    you then can use LSMW and read this file with several hundred thousand of IDOCs as source.
    Field mapping is easy if you use IDOC method for import, because then you have a 1:1 field mapping.
    So you need only to focus on the few fields where the values changes from old to new system..

Maybe you are looking for

  • I bought the wrong upgrade to Tiger disk

    Recently I bought an iMac Mac OS Install 2 Disk set (gray color) with the following detail: Mac OS version 10.4.7, ANT Version 3A112, Disc Version, 1.0, #2Z691-5883-A. My iMac accepted the disk but when I tried to install the Tiger package it display

  • Attach Pdf output into transaction FB03

    Hi experts, My requirement is to attach Pdf output coming from FM CONEVRT_ABAPSPOOLJOB_2_PDF into transaction FB03 (SERVICE attachment list) Needs pointers for this. thanks Manish Puri

  • I lost apss how do i restore them ??

    i lost apps on my phone th emain one was settings .. the one that lets you operate your phone...

  • OS 10.4.8 Mac Book Pro - Delayed response  to keyboard input

    Often, not long after I start up, I experience a delay between typing or deleting - or anything else from the keyboard - and the response from the screen. Sometimes several seconds. I can cure it by restarting and I often have to several times a day.

  • Problem Triggering  Smartform

    Hi Experts, In my case..I am calling a BADI - LXSER_SN_CAPTURE_RF and inside it i am calling the interface SN_PRINT.. my problem is i have a smartform -ZLE_SHP_DELNOTE which is the copy of LE_SHP_DELNOTE(Standard). I am calling CALL FUNCTION 'SSF_FUN