Uploading Delivery Schedule using LSMW

Hi All,
I am uploading the Delivery Schedule documents(T-code: ME38) into SAP.
I am using BAPI method in LSMW.
Business Object: BUS2013
Method: MAINTAIN
Message Type: PURSAG_MAINTAIN
Basic Type: PURSAG_MAINTAIN01
While doing so I am getting some warning and error messages.
1. Statistical delivery date in the past
2. Delivery date is in the past
3. Can delivery date be met? (Realistic delivery date: 22.05.2008 )
4. Instance PurchSchedAgreement of object type <SA   Number> could not be changed
As mentioned above all the messages are coming as Status 51 only.
But I am able to successfully upload the same record manually using ME38 even though I get the warning messages which is given above (1,2,3).
Can any one help me sorting out this as soon as possible?
Helpful answers will surely be awarded.
Thanks in Advance,
Asif Ali Khan

You will keep one input file, and store your look up file as a translation table in step 6 of the LSMW, then use this translation in the mapping rules.
This is standard LSMW functionality, please refer to LSMW documentation or online information for further information.
Thomas

Similar Messages

  • Scheduling Agreement with Delivery Schedule using Idoc messages

    Hi all,
    Can anybody please explain the importance of the field name "LABKY" in Idoc execution for Forecaste/JIT Delivery Schedule.
    My requirement is that when i send a new Idoc i do not want the old schedule line which are not yet released , to be deleted .
    As per the SAP help the use of the field LABKY is related to this , but when i tried its value as "1" , the previous schedule lines are still getting deleted.
    Can you pls explain how to go about it . ( DELFOR/DELJIT Idocs)
    Thank you
    Regards
    Subha

    Hi ,
    The Field
    LABKY : Delivery schedule key
    internal data type : CHAR
    Internal length : 000001 characters
    Position in segment : 026, Offset : 0393. external length : 000001
    Regards
    Seegal

  • Deletion of Scheduling Agreement and Delivery Schedule using BAPI

    Hi SAP MM Gurus,
    Please assist in inquiry below:
    My scenario is that I am trying to delete delivery schedules and scheduling lines using BAPIs. I have no issues when there is no GR made yet for the delivery schedules. The error arises when there are already existing Goods Receipts and Invoices for the schedule line that I wish to delete
    When using the BAPIs (either BAPI_SAG_CHANGE or BAPI_SCHEDULE_MAINTAIN), I set the deletion indicator to "L" and set to X all change relevant fields (i.e. DELETION_INDX). However, whenever I execute it, I get the error message 06088. The funny thing is both the Quantities and the delivered quantities that are normally populated are left blank.
    For example:
    Normal error for 06088:
    Quantity 100.0 smaller than quantity delivered 179.0
    Error using BAPI with deletion indicator:
    Quantity  smaller than quantity delivered
    Is this a bug of the BAPI? or am I just missing some settings?
    Your immediate response is appreciated
    Regards,
    DeLo

    Hi,
    Please find the below link check the setting are correct or not
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02cb00a-bfb4-2c10-98aa-e33e7f64ba28?quicklink=index&overridelayout=true
    Reagrds,
    Pramod

  • Basic Data Upload to MATERIAL  Using LSMW is not working

    HI All,
      we are using LSMW    /SAPDMC/SAP_LSMW_IMPORT_TEXTS  program to upload the  basic text of the material, all steps are executed correctly and shows  records are transfered correctly , but the  in MM03 the text is not uploading..
    EPROC_PILOT - MASTER - TEXT_UPLOAD Basic long text 1line
    Field Mapping and Rule
            /SAPDMC/LTXTH                  Long Texts: Header
                Fields
                    OBJECT                       Texts: Application Object
                                        Rule :   Constant
                                        Code:    /SAPDMC/LTXTH-OBJECT = 'MATERIAL'.
                    NAME                         Name
                                        Source:  LONGTEXT-NAME (Name)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-NAME = LONGTEXT-NAME.
                    ID                           Text ID
                                        Source:  LONGTEXT-ID (Text ID)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-ID = LONGTEXT-ID.
                    SPRAS                        Language Key
                                        Source:  LONGTEXT-SPRAS (Language Key)
                                        Rule :   Transfer (MOVE)
                                        Code:    /SAPDMC/LTXTH-SPRAS = LONGTEXT-SPRAS.
                                                 * Caution: Source field is longer than target field
                /SAPDMC/LTXTL                  Long Texts: Row
                /SAPDMC/LTXTL                  Long Texts: Row
                    Fields
                        TEXTFORMAT                   Tag column
                                            Rule :   Constant
                                            Code:    /SAPDMC/LTXTL-TEXTFORMAT = 'L'.
                        TEXTLINE                     Text Line
                                            Source:  LONGTEXT-TEXTLINE (Text Line)
                                            Rule :   Transfer (MOVE)
                                            Code:    /SAPDMC/LTXTL-TEXTLINE = LONGTEXT-TEXTLINE.
    and at last it displaying as follws
    LSM Workbench: Convert Data For EPROC_PILOT, MASTER, TEXT_UPLOAD
    2010/02/01 - 10:14:25
    File Read:          EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.read
    File Written:       EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.conv
    Transactions Read:                    1
    Records Read:                         1
    Transactions Written:                 1
    Records Written:                      2
    can any one tell us what could be problem
    Regards
    Channappa Sajjanar

    Hi , thanks for your reply,
      i run the all the steps .
      when i run the program it gives message as follows
    Legacy System Migration Workbench
    Project:                              EPROC_PILOT     eProcurement Pilot
    Subproject:                           MASTER          Master data Upload / Change
    Object:                               TEXT_UPLOAD     Basic long text 1line
    File :                                EPROC_PILOT_MASTER_TEXT_UPLOAD.lsmw.conv
    Long Texts in Total:                  1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:           0

  • Enter G/L account error while uploading open contracts using lsmw

    Hi Experts,
    I have a flat file for Open Contracts.While trying to upload using LSMW -BAPI method(BUS2014), it is throwing error as 'Enter G/L account' though G/L is present in the flat file.I have done with the mapping in the 5th step.
    Checked all the configuration settings of G/L.everything is fine. Not getting where is it going wrong.
    please help me out.

    I've tried regarding Helmut's advise and it works.
    10 points (if i was a thread owner)

  • Uploading subcontracting PO using LSMW-BAPI method

    I am trying to upload the subcontracting Purchase order using LSMW-BAPI .
    Bapi name -Create from Data1
    Business Object  -    BUS2012                             Purchase Order
    Method               -    CREATEFROMDATA1          Create Enjoy Purchase Ord
    Message Type     -    PORDCR1                           Create Purchase Order
    Basic Type          -    PORDCR102                        Create Purchase Order
    In this BAPI - for subcontracting material (component), required quantity & plant values are provided in a input file .
    When I trying to upload this PO, PO gets created but component data not getting uploaded.
    In documentation of BAPI -under restriction section -there is a restriction for subcontracting.
    So can we create Subcontracting PO using this PO.
    any solution on same.
    Because most of the conversion part is done. Only for subcontracting PO this bapi is not working.
    Please anybody know about the solution guide me ASAP.
    Thanks

    Hi Vikram,
    I am also having same scenario , I m using BAPI - BAPI_GOODSMVT_CREATE To create GR  for Subcontracting PO
    Can u please tell me how can solve this problem.
    Normal GR its working but for Subcontracting PO its not working.
    Regards,
    Sanket

  • MASS UPLOAD OF DOCUMENTS USING LSMW

    Hello Experts,
    I am experienced in SAP DMS but not in LSMW.
    I would like to use LSMW for Mass Uplaod of Documents and would like to give the input in the below format.
    I was able to create LSMW for Doc Upload using Recording option but it will not give me the original path location.
    I know there is a BAPI too for Document create which is BAPI_DOCUMENT_CREATE but dont know how to use it in LSMW>
    Which option is best to be used in this case. Below find the input format of the file which am looking
    DIR
      Number
    Doc Type
    Doc Part
    Doc Ver
    Description
    Status
    Original File
      Path.
    Appriciate your answers.
    Regards,
    S.Kulkarni

    Dear Shrikanth,
    please note that batch input in Document Management System is not
    supported for Releases higher than 4.5. The batch input technology
    was designed for the transactions CV01 and not for CV01N/02N etc.
    To create
    or change a document info record in background I would recommend you to
    use the BAPIs BAPI_DOCUMENT_CREATE2 or BAPI_DOCUMENT_CHANGE2 to create
    or change a Document info record. Please see SAP note 766277,
    which contains the full documentation of all BAPIs in the DMS area.
    Normally you can use DMS BAPI or API function modules to checkin
    originals into the content server. I would recommend you to use the
    API modules as they are much more flexible then BAPIs. Please see the
    note 504692 which contains further information and some
    sample programs.
    With transaction SXDA you can also create document info records
    in the background but the filepath should not be shortened anymore.
    For further information please check SAP note 817743.
    I hope that this information could be useful for you to setup a
    working scenario to edit document info records successfully in
    background.
    Best regards,
    Christoph

  • Upload multiple files using lsmw

    I have to upload 2 different files using lsmw..
    Please explain me the procedure..
    I made the option as sequential file in specified files..
    but i am getting error.. Using different sequential files is not allowed...

    is der some problem or just u need clarification?
    When I import the data everything seems fine... 52 entries from file 1, and 682 entries from file 2.
    In my "Fieldmapping and conversion rules" i have a statement like this:
    read table FILE2 with key oldsls = FILE1-lgart.
    My problem is that FILE2 is empty, even that I saw in my import screen that 682 entries was imported.
    in one statement, you are saying ki it seems fine then u r saying that ur file 2 is empty. HOW CAN U UPLOAD DATA FROM AN EMPTY FILE ?
    and we don't don anything in field mappng until unless v don't use complex stuctures while uploading data. LSMW takes care of everything by itself.
    Most important thing is
    reward point
    hope this will help
    bye tc
    sandy
    waiting for reward point

  • Error while uploading the data Using LSMW - Idoc method

    Hi Experts,
       I am working on LSMW using Idoc method. Till 12th step (Display converted data) i wasn't got any problem. For the Idoc method, I have to specify details to Idoc inbound processing from the menu settings.
    In that screen I have to specify file port, partner type and partner no. I have created a file port ZFILE. Can u tell me what ahould I pass in that screen? Where should be the file i.e in the application server or presentation server? What should be the directory and function  module. Can u provide step by step?
    After that I have to specify partn.type. What should I select for that?
    After that I have to specify partner no. Whether it is inbound or outbound?
    I got No data found for the following detials.
    port - ZFILE
    in the inbound file tab, e:\ as physical directory; EDI_PATH_CREATE_USERNAME as function module.
    Partner type - US
    Parnter no.  - LSMW with the inbound parameters message type - MATMAS and Process code - MATM.
    Please tell me how can I upload properly? Please don't ignore as i am asking same question again becasue I have gone through related threads also. But i didn't find the exact requirement.
    proper documentation will be rewarded.
    Thanks in Advance.
    James.

    Hello,
    I could identify the error. It was due to incorrect UOM. Problem resolved.
    Thanks,
    Madhura

  • Upload Material Master using LSMW BAPI BUS1001006-SaveData

    Hi Gurus,
    I'm working with material master upload using the BAPI BUS1001006-SaveData.
    I'm wondering on how can I know what structure should I populate on step 4 of LSMW "Maintain Field Mapping and Conversion Rules".
    Seen some tutorials on material master upload but it wasn't explained there why or what structure should be populated..
    Thanks and Regards.

    I just check each structure one by one to which the field is appropriate depending on its description....

  • Purchase order upload using LSMW

    Hi
    Can we use Basic type ORDERS05 in the IDOC method to upload purchase order using LSMW.
    This also can achieved using business object BUS2012 and basic type PORDCR05.
    Just wanted to what would be the difference between these two methods and possibliity of PO using basic type ORDERS05 using Idoc method.
    Regards
    Raj
    Edited by: Rajitha1234 on Jan 28, 2011 6:55 AM
    Edited by: Rajitha1234 on Jan 28, 2011 6:56 AM

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • CA01 Upload using LSMW

    Hi
    Iam uploading CA01 data using LSMW using the Standard Direct Input Method where my object-0170 & method-0002.
    In the  "Define Source Structures" step,
    the HEADER is defined first,
    then the DETAIL below the HEADER.
    the fields are added to the structures.
    I maintained two flat files, one for Header Data and one for Item Data
    There is a common field named 'key' in both the files
    but only header data was written after reading
    can any one give me the steps regarding this
    Thanks in advance

    You defined 2 structures in step 'Maintain Source Structures' ?

  • FB01 upload using LSMW

    Hi
    Iam uploading FB01 data using LSMW.
    I maintained two files, one for Header Data and one for Item Data
    but only header data was written after reading
    can any one give me the steps regarding this
    Thanka in advance
    venkat

    Hi,
    LSMW will have a Indocator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
    check that single charecter field, it that is X that means the header record is processed, and do the items.
    and, this is another way, try this out also
    YOu can do this in "Define Source Structures" step,
    the HEADER is defined first,
    then the DETAIL below the HEADER.
    add the fields to the structures.
    Both should have some common key field
    Please take care that the name of the common field is the same.
    Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
    Regards
    Sudheer

  • Excel file upload using LSMW

    HI all,
    Is it possible to upload excel file using LSMW method?
    If it is? Plz tell me the process ASAP.
    Thanks & regards,
    Srini

    Hi,
    It's no possible to upload directly Excel file in LSMW.
    You must transform to an flat File.
    There are 6 delimiters
    - No Separator
    - Tabulator
    - Semi-Colon
    - Comma
    - Blanks
    - Others
    Rgds

  • Uploading of Quota arrangement using LSMW

    Dear Members,
    I want to upload Quota arrangement using LSMW.
    Pl advise.
    Thanks & Regards,
    Sanjay Kohli

    I am trying to upload quota arrangement using IDOC method, since there is no Standard/Batch Input Method as well as Bussiness object method available for it.
    I am not using Batch input recording method since no of vendors will varies depending on the plant & material comination.
    I am unable to load it using IDOC as I not able to identify process code for I DOC message Type LIPEQU.
    I slhall be thakful in case you can provide the same or alternative method to upload Quota arrangement in addition to Batch Input recording.
    Regards,
    Sanjay Kohli

Maybe you are looking for