SAPDMC/SAP_LSMW_INTERFACE,LSMW

Hi All,
I need to run LSMW in backgorund to update profit center in sales order.I looked in forums and found program SAPDMC/SAP_LSMW_INTERFACE in se38. I have given required parametrs and when executed records were read and written. when i checked the salesorder the items were not updated. Please help.
LSMW works fine wheni i run normally since i have a huge data wanted to run in background.I am using bapi,Bapi_salesorder_change.
Thanks,

you can use LSMW BAPI method
Business Object      BUS2032      Sales Order
Method               CREATEFROMDAT2              Sales order: Create Sales
Message Type         SALESORDER_CREATEFROMDAT2   Sales order: Create Sales
Basic Type           SALESORDER_CREATEFROMDAT2   Sales order: Create Sales

Similar Messages

  • LSMW - SM36 - /SAPDMC/SAP_LSMW_INTERFACE

    Hi All,
    I have searched the sdn and could not find the answers so posting this question.
    My requirement is,
    I have to schedule a LSMW Project using a background job (SM36). I found a program /SAPDMC/SAP_LSMW_INTERFACE by which we can create a variant and then specify this program name and variant in SM36 transaction. The problem is when I schedule the job and go to SM37 to view the results. Always the result is 'Canceled'. When I go to Job Log to see the error, it says - *************!!!!!Upload from the frontend not possible in batch mode!!!!**********************. I have uploaded the file on app server using 'CG3Z', but even then I am getting this error.
    Please share your thoughts, either it's possible to do it and if so how?

    Thanks. I changed to application server and it works.
    Now the other issue is, when I use this program SAPDMC/SAP_LSMW_INTERFACE to schedule the job. Do I need to run all the steps manually like read data, read converted data before this job run or it this job will automatically takes the updated contents from the file on the app server daily. Our requirement is to update that file daily and the job will pick up from file.
    Thanks,

  • CAN we upload data periodically in LSMW?

    HI Expert,
                     In LSMW , maintain object attributes step , there is periodic option if we select that option then  would the data transfer periodically?How does it differ from periodic in BDC?
    LSMW we can not schedule  updation write?
    we have extracting data from legacy system into flat file
    now we want to map legacy format  data into inputfile ( sap format data). how could we do that?
    Further i have to use BAPI to upload

    To a limited extent, the LSM Workbench also supports periodic data transfer. Preconditions are:
    u2022     The LSMW object has been created and tested completely.
    u2022     The "source application" periodically makes available one or several files on the SAP application server.
    u2022     The LSMW object does not access files on the frontend. (Files on the frontend cannot be read in batch mode.)
    If all these conditions are met, you can set select button "Periodic" in step "Maintain object attributes". Then, step "Control program for periodic data transfer" is displayed in the overview of work steps. This program carries out the following steps in sequence:
         Read data
         Convert data
         Import data
    This program (name: /SAPDMC/SAP_LSMW_INTERFACE) can be used according to your requirements.

  • How can we move LSMW from Development server to Production

    Hi
    pls give me idea on
    1) how we can test lsmw
    2) how we can move from  one server  to another server
    3) how we can do you it to use periodically
    4)What is use of radio buttons once and periodic in maintain attributes screen
    thanks

    1.  By running the actual conversion.  I dont understand the question.
    2.  Depends on how your server is configured.  If this is configured to move LSMW projects through transports, then you can create a transport and move it.  If not you can just export the project and import it into PRD.
    3.Run the program /SAPDMC/SAP_LSMW_INTERFACE
    4.Not sure what you are asking.
    Albert

  • Creation Sales Order by using LSMW...................

    Hi All,
    We have designed one LSMW program by which we are able to create Sales Orders.
    Import method for this LSMW is *BAPI Method*.So finally by processing IDOC steps, sales orders getting created.
    My req is
    1) We have to schedule a background job for this LSMW
    2) Finally I need to provide all the Sales Orders those are created into one Text Document.
    Can you please tell me do we have any solution for the requirements I have mentioned.
    Thank You very much inadvance............................

    HI,
    1) /SAPDMC/SAP_LSMW_INTERFACE
    This is program to to schedule LSMW (periodic transfer)in background,  create a variant when you reach frame program in periodic transfer step, then go to SM36 create a job and schdule it and with above program and your variant and release job usng SM37.
    2) Get the log of your job in SM37 transaction once it is finished, you will get all list of sales orders created , just download tem into text file.
    Thanks
    RK

  • LSMW - RFBIBL00 background ko

    HEllo !
    i met problem by loading data by LSMW direct-input in background.
    i use the standard program /SAPDMC/SAP_LSMW_INTERFACE.
    and the last step (running RFBIBL00) fails in background mode only (it works well on foreground).
    by SM37 i got the error message E078 (BD class) : "data does not match job definition".
    i think that RFBIBL00 program is in the cause...
    did anyone already have this problem?
    thanks
    dev

    The message long text:
    NA BD078
    Text
    Job &: Data does not match the job definition; job terminated
    Diagnosis
    You wanted to start a direct input job. The system has found that the data does
    not match the data from the job definition.
    System Response
    The system terminated the job.
    Procedure
    Start the job from the Manage Data Transfers (Direct input) screen, where you can
    also schedule the job periodically.
    Proceed
    Rob

  • Wild card in LSMW

    Hi,
    I am useing LSMW for creating material master data from external files.
    I am using in  "Specify files" a wild card.
    All steps are executing in backgraund with report
    /SAPDMC/SAP_LSMW_INTERFACE
    Steps: reading and convering are executed without any problems.
    But at the end, report  RMDATIND starts.
    I can not write wildcard in the file name for variant.
    What I have to write in file name instead wildcard?

    Hi Alexei,
    Welcome to SDN.
    You need to give the exact file name. System can not determine file name with wild card.
    Hope this will help.
    Regards,
    Ferry Lianto

  • LSMW not working in background

    Hi
    I have created LSMW and it is working fine in foreground.
    All the white fields are given data from file.
    Appreciate any help for sorting this out.
    thanks
    Balaji

    Hi,
    The LSMW usually has 3 or 4 steps of execution:
    1) Read Data
    2) Convert Data
    3) Generate a Session / Process the converted file or session (These two are separate steps for a LSMW with BDC session).
    If you want to schedule a job:
    A) The first two steps need the Files on Application Server. You must use App Server files in the Specify Files and Assign Files steps.
    B) The LSMW should preferably not be BDC session based. You will lose the benefit of scheduled processing, as the LSMW and Session will be two separate schedules. Sychronizing these and tracking the Sessions may be difficult.
    C) You need to note down the ABAP program names for the three steps and create the relevant variants.
    D) Then, schedule the three programs in a single job in that sequence.
    Note that each LSMW may need a little different approach.
    or
    You can run/schedule program /SAPDMC/SAP_LSMW_INTERFACE for scheduling any LSMW object as a job.
    or
    suppose you are choosing SESSION method for migrating data using LSMW, in the 13 step you create SESSION, for precessing session you execute 14 th step then it will automatically place cursor in SM35( SESSION) here you follow these steps.
    1) select the SESSION which was you created.
    2) here you find option for processing SESSION, from that you choose BACKGROUND.
    3) it willl display screen with required field, like date, time....
    reward points if helpful

  • Creat Job for LSMW (periodical data transfer)- idoc BLAORD

    Hi,
    We are trying to create job for LSMW (thru frame program for periodic data transfer) for idoc BLAORD (Purchasing contract)
    When I am running the job that I created, the job is cancelled and the error is:
    "Upload from front-end is not possible in batch mode.
    Message no. /SAPDMC/LSMW_OBJ_070 020"
    How can I correct that? so I will be able to run a job (the job mast run background?)
    Thanks,
    Tal Sasson

    Hello,
    I was also receiving the same message /SAPDMC/LSMW_OBJ_070 020 even though I specified in /SAPDMC/SAP_LSMW_INTERFACE the server path. The problem was that in LSMW->Specify Files you have to delete the definition of front-end files and define application server files.
    That Flag File (Path and Name) (field /SAPDMC/LSOINP-FILENAME in program /SAPDMC/SAP_LSMW_INTERFACE) is kind of useless since it is ignored anyway and files defined in LSMW object are imported and they have to be read anyway if you use more than one file.
    Regards,
    Peter

  • How to schedule lsmw in background

    hai all,
               can any one tell me how can lsmw for a transaction can be background scheduled.

    use the program  /sapdmc/sap_lsmw_interface.
    create a variant with your project name, sub project name, etc..
    you can schedule this program for background execution...
    else, can call it from another program..
    just pseudocode...
    L_JOBNAME = some name for job.  "'PURCHASEINFODL'.
      L_SELECTION_SET = your variant name . "  'PURCH_INFO_DEL'.
      CONCATENATE L_JOBNAME SY-UNAME SY-DATUM
            INTO L_JOBNAME SEPARATED BY '_'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          JOBNAME          = L_JOBNAME
        IMPORTING
          JOBCOUNT         = L_JOBNO
        EXCEPTIONS
          CANT_CREATE_JOB  = 1
          INVALID_JOB_DATA = 2
          JOBNAME_MISSING  = 3
          OTHERS           = 4.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
    *            DESTINATION = 'KJAT'
                  DESTINATION    = SY-PDEST
                   COPIES         = 0
                   IMMEDIATELY    = ' '
                   RELEASE        = ' '
                   NEW_LIST_ID    = 'X'
                   LINE_SIZE      = '255'
                   LINE_COUNT     = '65'
                   SAP_COVER_PAGE = ' '
                   COVER_PAGE     = ' '
                   RECEIVER       = SY-UNAME
                   NO_DIALOG      = 'X'
              IMPORTING
                   OUT_PARAMETERS = PRINT_PARAMETERS.
        SUBMIT /SAPDMC/SAP_LSMW_INTERFACE
                                USING SELECTION-SET L_SELECTION_SET
                                TO SAP-SPOOL
                                SPOOL PARAMETERS PRINT_PARAMETERS
                                WITHOUT SPOOL DYNPRO
                                VIA JOB L_JOBNAME NUMBER L_JOBNO
                                AND RETURN.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = L_JOBNO
              JOBNAME              = L_JOBNAME
              STRTIMMED            = 'X'
            EXCEPTIONS
              CANT_START_IMMEDIATE = 1
              INVALID_STARTDATE    = 2
              JOBNAME_MISSING      = 3
              JOB_CLOSE_FAILED     = 4
              JOB_NOSTEPS          = 5
              JOB_NOTEX            = 6
              LOCK_FAILED          = 7
              INVALID_TARGET       = 8
              OTHERS               = 9.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            MESSAGE ID 'BT' TYPE 'I' NUMBER 156 WITH L_JOBNAME.
          ENDIF.
        ENDIF.
    WHILE BJOB_FINISHED IS INITIAL.
          WAIT UP TO 1 SECONDS.
          CALL FUNCTION 'BP_JOB_CHECKSTATE_SM37B'
            EXPORTING
              DIALOG                             = 'N'
              JOBCOUNT                           = L_JOBNO
              JOBNAME                            = L_JOBNAME
              OK_JOB                             = 0
              NOT_OK_JOB                         = 0
           IMPORTING
    *      STATUS_ACCORDING_TO_DB             = L_JOBSTATUS
              ACTUAL_STATUS                      = L_JOBSTATUS
    *      OK_JOB                             =
    *      NOT_OK_JOB                         =
           EXCEPTIONS
             CHECKING_OF_JOB_HAS_FAILED         = 1
             CORRECTING_JOB_STATUS_FAILED       = 2
             INVALID_DIALOG_TYPE                = 3
             JOB_DOES_NOT_EXIST                 = 4
             NO_CHECK_PRIVILEGE_GIVEN           = 5
             READY_SWITCH_TOO_DANGEROUS         = 6
             OTHERS                             = 7.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CASE L_JOBSTATUS.
              WHEN 'F'.
                MOVE 'F' TO BJOB_FINISHED.
                MESSAGE I903. " WITH TEXT-R07.
              WHEN 'R'.
                CLEAR BJOB_FINISHED.
              WHEN 'C'.
                MOVE 'C' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN 'A'.
                MOVE 'A' TO BJOB_FINISHED.
                MESSAGE I904. " WITH TEXT-R08.
              WHEN OTHERS.
                CLEAR BJOB_FINISHED.
            ENDCASE.
          ENDIF.
        ENDWHILE.

  • Process LSMW in Background

    Dear All,
    I've a requirement wehere i've to process the LSMW in background, the recording is not possible through SHDB as it gives error & exit out.
    Please let me know the method where i can execute the LSMW with all internal step in background.
    Let me know the steop & procedure to execute the above
    Thanxs in advance

    Dear Sanjeev,
    If you are choosing SESSION method for migrating data using LSMW, in the 13 step you create SESSION, for precessing session you execute 14 th step then it will automatically place cursor in SM35( SESSION) here you follow these steps.
    1) select the SESSION which was you created.
    2) here you find option for processing SESSION, from that you choose BACKGROUND.
    3) it willl display screen with required field, like date, time.
    or
    The LSMW usually has 3 or 4 steps of execution:
    1) Read Data
    2) Convert Data
    3) Generate a Session / Process the converted file or session (These two are separate steps for a LSMW with BDC session).
    If you want to schedule a job:
    A) The first two steps need the Files on Application Server. You must use App Server files in the Specify Files and Assign Files steps.
    B) The LSMW should preferably not be BDC session based. You will lose the benefit of scheduled processing, as the LSMW and Session will be two separate schedules. Sychronizing these and tracking the Sessions may be difficult.
    C) You need to note down the ABAP program names for the three steps and create the relevant variants.
    D) Then, schedule the three programs in a single job in that sequence.
    or
    You can run/schedule program /SAPDMC/SAP_LSMW_INTERFACE for scheduling any LSMW object as a job.
    Regards,
    Naveen.

  • LSMW Tcode in Production

    I have a request to add transaction LSMW on a Production role.  They said, it will help them maintain records in masses.
    Are there any issues/pitfalls assigning this transaction in Production system?
    Thanks.
    John

    Hi Martin
    one way how to restrict LSMW in production is to use report /SAPDMC/SAP_LSMW_INTERFACE. This report can be used to run LSMW project in background. So you can create a custom transaction with variant for each LSMW object and give access users only to this transaction. They won't be able to create new projects.
    We've just tried this in Dev - seems to work a treat by adding the report into the menu of a test role and it brings in transaction Y_DEV_66000033 (Frame program for periodic data tran) in S_TCODE which runs START_REPORT.
    Thanks for the information!
    Cheers
    David

  • How to setup Background job to LSMW Object

    Hello,
       I have created the LSMW Object for the vendor balances.The requirement is to set up a backgroung job to LSMW.Is it possible to setup the background job to LSMW if yes what is the procedure to setup?
    Thanks.

    Hi,
    it is possible. It can be done by scheduling report /SAPDMC/SAP_LSMW_INTERFACE in SM36.
    Cheers

  • Executable LSMW Object to a Transaction Code

    Hello there,
    Can anyone tell me the steps to assign a Executable LSMW Object to a Transaction Code?
    Thanks much.

    Hi Michael,
    Assume that you could tie the frame program for periodic data transfer (/SAPDMC/SAP_LSMW_INTERFACE) to a transaction code.  When creating the transaction code you can determine which option (parameters, variant etc.) would be best suited for this.
    Kind regards,
    Robert

  • Calling LSMW via SM37

    Hi
    I am hoping to call a program to run an LSMW from SM37.
    I cant remember the name of the program I need to schedule.
    Can anyone help with the name of the program.
    Thanks

    You need to schedule program /SAPDMC/SAP_LSMW_INTERFACE.
    See following link for more details :
    http://help.sap.com/saphelp_erp2005vp/helpdata/EN/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm

Maybe you are looking for

  • Problem with the creation of the date server with the technology Mysql

    Hi, I have installed date integrator 11.1.1.5. I have installed oracle database 11.2 I have installed mysql 5.1.41 with xamp I have created the repository master and work. I have created data server for oracle . ok all correct I have created the date

  • Reg no of columns in alv

    Hi,      Am displaying 113 columns in alv, when i export to excelsheet only 99 columns are exported remaining are not exported. plz tell how to export all the columns. tanks, vino.

  • Best practice: interface for editing documents

    Hello I use IDeveloper 11g 11.1.1.3.0, ADF Faces I have got a task to create a web interface for editing documents. Every document have a head and a specification. Head have a lot of field, and every row in a specification have a lot of fields also.

  • T510 cannot hibernate after update ssd firmware

    Recently installed crucial m4 ssd for my T510. reinstalled windows using recovery cd and ubuntu 12.10.  The machine was working fine. After update the curcial firmware tfrom 00F o 010G I couldn't hibernate. The screen turns to black with all indicato

  • Where has the Mail Reply Arrow Gone?

    Running Mail 4.1 but have no reply/forward arrow on certain emails after answering/sending. Some are there, some are not. However, the answered mail is in my sent mailbox yet I have no arrow to click on to see how/if the mail was handled. Posted abou