LSMW for sales transaction

Dear all,
For the migration data project , to migrate sales transaction(contract) from our legacy system to SAP in a huge amount, we use LSMW with I doc processing, we upload the data with three steps :
1. first we upload the sold to party, 2.then we upload the ship to party,3.we upload the bill to party.
When im upload the sold to party, the system otomatically generate ship to party and bill to party with the same number BP as sold to party, so when i upload the ship to party, my contract become have two ship to party, and its also happen when i upload the bill to party. We have use the same method 6 month ago to our system and this situation doesn't happen back then(back then the system dosen't otomatically generate ship to party and bill to party with the same number BP as sold to party). Could anyone tell me what could be the problem? Thank you.
Regards
Indah

Dear Glenn,
I'm doing LSMW in CRM, just for information i already done building relationship for sold to party, bill to party and ship to party, one sold to party may have many ship or bill to party. And the data is really huge so i can't mantain which the main partner for sold to party each time, because they could have different ship to party,do you have another solution??
Thank you
Regards
Indah Puspita
Edited by: Indah Puspita on Jan 7, 2008 8:38 AM

Similar Messages

  • LSMW for sales contract VA41

    Hello,
    I need to know if we have any standard LSMW for sales contract(Transaction VA41).
    Also I can see if 0090(Sales documents) - standard method suits  for this requirement ? But I could not see the WBS element field inside this structures.
    Please let me know if we can use standard or Recording has to be done ?
    Thanks
    Senthil

    Hi Suraj,
    using transaction SO13: create Contract VA41.
    with regards,
    Mamta Kumari

  • Lsmw for me21n transaction

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

  • Lsmw for mb1b transaction.

    hello,
        is it possible to do lsmw for mb1b transaction.
        if possible then how ?
        any suggestions please.

    Hi
    you can use the LSMW for the transaction MB1B .
    Or
    use the program to stock transfer from plant to plant :
    REPORT YMBIE096 LINE-SIZE 80.
    * Program: YMBIE096
    * Author: Sheila Titchener
    * Date: Mar 1999
    * Purpose: To move stock to new plant
    TABLES: MCHB.
    * internal table
    DATA: BEGIN OF I_MCHB OCCURS 0,
    MATNR LIKE MCHB-MATNR,
    LGORT LIKE MCHB-LGORT,
    CHARG LIKE MCHB-CHARG,
    J_2CTRNR LIKE MCHB-J_2CTRNR,
    J_2CELNG LIKE MCHB-J_2CELNG,
    CLABS LIKE MCHB-CLABS,
    END OF I_MCHB.
    *-----------------------new code smt nov 98-----------------------------
    * batch input tables
    DATA BEGIN OF BDCDATA OCCURS 100.
    INCLUDE STRUCTURE BDCDATA.
    DATA END OF BDCDATA.
    DATA BEGIN OF MESSTAB OCCURS 10.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA END OF MESSTAB.
    SELECT-OPTIONS S_MATNR FOR MCHB-MATNR.
    PARAMETERS: P_DISP AS CHECKBOX.
    DATA W_MODE.
    DATA W_MESSAGE LIKE MESSAGE.
    START-OF-SELECTION.
    SELECT MATNR LGORT J_2CELNG CHARG CLABS J_2CTRNR FROM MCHB
    INTO CORRESPONDING FIELDS OF TABLE I_MCHB
    WHERE MATNR IN S_MATNR
    AND WERKS = 'BT'.
    END-OF-SELECTION.
    LOOP AT I_MCHB.
    CHECK I_MCHB-J_2CELNG NE 0.
    CHECK I_MCHB-J_2CELNG = I_MCHB-CLABS.
    PERFORM MOVE_STOCK.
    ENDLOOP.
    *& Form MOVE_STOCK
    * Call transaction MB1B to transfer stock
    FORM MOVE_STOCK.
    DATA: W_QTY(10).
    WRITE I_MCHB-J_2CELNG TO W_QTY DECIMALS 0.
    REFRESH: BDCDATA, MESSTAB.
    PERFORM DYNPRO USING:
    'X' 'SAPMM07M' '0400',
    ' ' 'RM07M-BWARTWA' '301',
    ' ' 'RM07M-WERKS' 'BT',
    ' ' 'RM07M-LGORT' I_MCHB-LGORT,
    ' ' 'BDC_OKCODE' '/0',
    'X' 'SAPMM07M' '0421',
    ' ' 'MSEGK-UMWRK' '94',
    ' ' 'MSEGK-UMLGO' I_MCHB-LGORT,
    ' ' 'BDC_OKCODE' 'NLE',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    'X' 'SAPMM07M' '0421',
    ' ' 'MSEG-MATNR(1)' I_MCHB-MATNR,
    ' ' 'MSEG-ERFMG(1)' W_QTY,
    ' ' 'MSEG-CHARG(1)' I_MCHB-CHARG,
    ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    * 'X' 'SAPMM07M' '0410',
    * ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    * 'X' 'SAPLKACB' '0002',
    * ' ' 'BDC_OKCODE' '/8',
    *CODING BLOCK
    * 'X' 'SAPLKACB' '0002',
    * ' ' 'BDC_OKCODE' '/8',
    'X' 'SAPLJ2CW' '0190',
    ' ' 'J_5C7-UMCHA' I_MCHB-CHARG,
    ' ' 'BDC_OKCODE' '/7',
    'X' 'SAPMM07M' '0421',
    ' ' 'BDC_OKCODE' '/11',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0'.
    IF P_DISP = 'X'.
    W_MODE = 'A'.
    ELSE.
    W_MODE = 'N'.
    ENDIF.
    CALL TRANSACTION 'MB1B' USING BDCDATA MODE W_MODE UPDATE 'S'
    MESSAGES INTO MESSTAB.
    WRITE: / I_MCHB-MATNR, I_MCHB-CHARG, I_MCHB-LGORT,
    I_MCHB-J_2CTRNR, I_MCHB-J_2CELNG.
    IF SY-SUBRC NE 0.
    * what to do if there's an error????
    LOOP AT MESSTAB.
    SY-MSGNO = MESSTAB-MSGNR.
    CALL FUNCTION 'WRITE_MESSAGE'
    EXPORTING
    MSGID = MESSTAB-MSGID
    MSGNO = SY-MSGNO
    MSGTY = MESSTAB-MSGTYP
    MSGV1 = MESSTAB-MSGV1
    MSGV2 = MESSTAB-MSGV2
    MSGV3 = MESSTAB-MSGV3
    MSGV4 = MESSTAB-MSGV4
    MSGV5 = MESSTAB-MSGV4
    IMPORTING
    * error =
    MESSG = W_MESSAGE
    * msgln =
    EXCEPTIONS
    OTHERS = 1.
    WRITE: / W_MESSAGE.
    * message id messtab-msgid type 'I' number messtab-msgnr.
    ENDLOOP.
    ENDIF.
    ENDFORM. " CHANGE_BILLING_TYPE
    * FORM DYNPRO - new form smt nov 1998
    * > DYNBEGIN
    * > NAME
    * > VALUE
    FORM DYNPRO USING DYNBEGIN NAME VALUE.
    IF DYNBEGIN = 'X'.
    CLEAR BDCDATA.
    MOVE: NAME TO BDCDATA-PROGRAM,
    VALUE TO BDCDATA-DYNPRO,
    'X' TO BDCDATA-DYNBEGIN.
    APPEND BDCDATA.
    ELSE.
    CLEAR BDCDATA.
    MOVE: NAME TO BDCDATA-FNAM,
    VALUE TO BDCDATA-FVAL.
    APPEND BDCDATA.
    ENDIF.
    ENDFORM.
    Edited by: raj on Jun 5, 2009 7:55 AM

  • Scheduling problem in LSMW for Sales Order

    I am doing LSMW for Sales Order using the BAPI method.
    I am able to upload the item details along with their quantities also but the problem that I am now facing is the scheduling problem.I am unable to schedule the item quantities, only the last quantity passed is taken as the final quantity and the consolidated quantity is also getting ignored.
    I am using E1BPSCHDL structure, in this structure I am mapping Itm_number , req_date and req_qty(scheduled qty).....
    in the structure E1BPSCHDLX, the same fields are mapped as 'X'.
    in the structure E1BPSDITM, I am mapping the item info along with the consolidated qty(TARGET_QTY), but this is getting ignored and the last scheduled qty is taken as the final consolidated qty and the rest scheduled qty data is getting rejected.
    Please do help... I dont know why this problem is coming... tried n number of alternatives but of no hope... do try to help me
    with regards,
    Daya.

    Check the format of your date and check the format expected.
    sometimes you can have diff like YYYYMMDD, MM.DD.YYYY,...
    Look at the converted data.
    Hope this helps,
    Erwan

  • LSMW - for Customised Transactions

    Hi,
    I had read that LSMW is used for SAP Transactions but since we have BDC recording option in LSMW,cant we use LSMW for Custom Transactions ?/
    Regards,
    Chitwanjit Singh

    Well, I'll close my query here. I got the answer on internet.
    Regards,
    Chitwanjit

  • How to create LSMW for a transaction having scroll bar

    Hi all,
    I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
    For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
    Thanks,
    Pavan.

    you can solve it with bdc:
    e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
    with sth like this:
    ERG = BUZEI MOD 10 .
      IF ERG = 1.
    Dynpro darf nur alle 10 Zeilen prozessiert werden -
        PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'.             "ins
      ENDIF.
    add 1 to buzei.
    A.

  • BDC or lsmw for ABT1N Transaction

    Hi gurus,
    last day i got some problem when i do a lSMW for  ABT1n Tran.i am thankful to u if u  please help me that how can i do it.please give me a complete document for that trans and also a text file so that i properly update it.
                    if u do any BDC program for that transaction please give me that program .it's very urgent for me....
    Thanks in advance....

    Hi Steve,
    BAPI_HU_CREATE itself creates HU. You can refer the HU number genrated by this BAPI itself. I hope you are calling bapi as below:
    CALL FUNCTION 'BAPI_HU_CREATE'
                EXPORTING
                  HEADERPROPOSAL = L_WA_HU_HEAD
                IMPORTING
                  HUHEADER       = L_WA_HU_HEADER
                  HUKEY          = L_V_HU_NUMBER
                TABLES
                  ITEMSPROPOSAL  = L_I_HU_ITEM
                  RETURN         = I_HU_RETURN
                  HUITEM         = L_I_CREATE_HU.
    Here, L_V_HU_NUMBER is the HU generated.
    Thanks,
    Archana
    Edited by: Archana Pawar on Sep 29, 2010 7:47 AM

  • Function module to extract sales org data for sales transaction

    Hi! I would like to find out the sales org assigned to a particular sales transaction. When I run function module CRM_ORDER_READ, it passes some information into LT_ORGMAN but I get 2 entries rather than the 2 entry I see in my sales transaction. Is this the right table to look for sales org data for a particular transaction?
    Appreciate any help on that.
    Cheers!
    SF

    Please check with following function module:
    CRM_MAP_ORGMAN_DATA
    CRM_ORGMAN_GET_DB
    CRM_ORGMAN_READ_DB
    CRM_ORGMAN_READ_OW
    hope it will useful.

  • Additional Transaction Category for sales transaction type

    Hi Friends,
    Can you please let me know why we assign additional transaction category business activity for sales order or quotation transaction types.
    For Activities & Tasks there is only one transaction category assigned where as for sales why do we assighn two transaction categories?
    Thanks in advance.
    Sree

    Hi,
    Kindly find the explanation here:
    http://help.sap.com/saphelp_crm40/helpdata/en/49/00783b3af21f5ee10000000a11402f/frameset.htm
    In fact, you need to assign multiple transaction categories fro the same reason that you assign multiple roles to a business partners: to get more functionalities...
    Example: in your sales order you may want to be able to store "contact" information like "direction", "medium", etc. For this, assign transaction category "Activity" to your sales order, and a new tab will appear in tcode CRMD_ORDER where you can fill in those fields...
    Regards,
    Nicolas.

  • Add new tab for sales transaction

    Hi,
    I want to add a new tab in sales transaction for bank detail, the data of this tab should be get from BP master data, and save to crmd_order transaction table.
    what method should I implement?
    thanks
    Gang

    Hi Gang,
    Use EEWB to enhance the order. The fields shall be added to CRMD_CUSTOMER_H table.
    <a href="http://help.sap.com/saphelp_crm50/helpdata/en/43/04bede807721ece10000000a155369/frameset.htm">EEWB</a>
    for populating these fields based on BP master data, use BADI COM_PARTNER_BADI method COM_PARTNER_MERGE.
    This BADI gets called when you enter partners (sold-to-party). In the mentioned badi method, read bank details from BP master and set this to your Z-fiedlss using FM CRM_CUSTOMER_H_MAINTAIN_OW.
    Hope this helps.
    Regards
    Kaushal

  • LSMW for MSC1N Transaction to Create Batch

    Hi,
    I want to create Multiple batches for Large number of Materials.
    Could any body Please suggest me how to write LSMW for MSC1N.
    Thanks
    Bhuvana

    the very first step of LSMW gives you the option to choose the import method.
    SAP provides 2 import methods ready for use:
    BAPI method:
    BUS1001002
    SAVEREPLICA
    BATMAS
    BATMAS03
    and IDOC method
    BATMAS
    BATMAS03

  • Restriction on Sales Office for Sales Transaction

    Dear All
    We have a requirement to restrict our derived roles for SD modules on division and Sales office. By default , division (org element) is coming in Auth tab , however sales office is not populated. Hence , as of now we are able to restrict on Division only.
    To restrict on Sales office as well, i have followed below options:
    1) Manually added object "V_VBKA_VKO" in profile and maintained field "VKBUR". ---- Didn't work.
    2) Added object "V_VBKA_VKO" for va01 in su24. Then added va01 in role and restricted it for Sales office through "VKBUR" field. --- Didnt work.
    Please help , how can we restrict this based on Sales Office also.
    Regards
    Urvish Patel

    Hi,
    Please troubleshoot as below,
    Check if respective sales structure is maintained in SPRO to control it on sales office.
    Put ST01 trace and see if any object is coming in the trace for sales office.
    You have to maintain that object with respective sales office.
    If you want sales office to come as org level you will have to define this field as org field with PFCG_ORGFIELD_CREATE report, (Please note once you convert this as org field it will be reflected for all objects which has this field.
    Hope this helps you.
    BR,
    Mangesh

  • Regading LSMW for VD01 transaction

    HI,
    This is KSR Saireddy. i am getting the problem in LSMW at the the STEP Create Batch Input Session.i am executing this step,now i am getting the file name as ZIMS_91_ZIMS_91_MIGRT_CUSTOMER.lsmw.conv after excuting it is giving the message that Transaction VD01 not supported  can any body please give me answer why VD01 is not supported .

    Hi Selva,
    LSMW is a detailed 15 Step process to transfer Data from Flat file to SAP System.It is fairly simple provided you have some hand holding for the first time with some ABAP team member.
    Please go through the details as mentioned in the [thread|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf].We can discuss it in detail once you are through.
    Broadly speaking our purpose in LSMW is to do :
    RECORDING PROGRAM:A screen by screen recording of a transaction that we intend to use ( for eg.QP01). These screen by screen records are stored and served as a reference later on.
    SAMPLE TXT FILE: This recording gives us a txt file with fields that nees to be replaced with upload file in the same format
    UPLOAD FILE: Add all information in the file that you need to upload in SAP in separate rows
    EXECUTE BDC:The recording program executes screen by screen in same sequence and uploads the data as in the UPLOAD File.
    This description is very simplistic view of LSMW based on my exposure. I am sure that there are many more features than just this (like Filtering, Conversion etc.)
    Open up a new thread. We can discuss this in further detail if required.
    Thanks,
    RAVI.

  • LSMW ( For sales order item)

    Dear all,
           I have a question, can LSMW batch change some data in sales order line item?
           For example,  there has a sales order with 20 items. I have to change the material group in item 10 and 50, can i achieve this by LSMW?

    Dear all,
            I still cannot found item in my recording. In my recording just show below information:
            I am not sure if "  BDC_OKCODE                     =ITEM" means item?
    SAPMV45A 0102
        BDC_CURSOR                     VBAK-VBELN
        BDC_OKCODE                     /00
        VBAK-VBELN                     17380
    SAPMV45A 4001
        BDC_OKCODE                     =ITEM
        BDC_SUBSCR                     SAPMV45A
        VBKD-BSTKD                     1
        BDC_SUBSCR                     SAPMV45A
        KUWEV-KUNNR                    211011
        BDC_SUBSCR                     SAPMV45A
        BDC_SUBSCR                     SAPMV45A
        RV45A-KETDAT                   2008.06.23
        RV45A-KPRGBZ                   D
        VBKD-PRSDT                     2008.06.23
        VBKD-ZTERM                     0001
        VBAK-AUGRU                     002
        BDC_SUBSCR                     SAPMV45A
        BDC_SUBSCR                     SAPLV45W
        BDC_SUBSCR                     SAPMV45A
        BDC_CURSOR                     RV45A-KWMENG(01)
        BDC_SUBSCR                     SAPMV45A
    SAPMV45A 4003
        BDC_OKCODE                     =T\02
        BDC_SUBSCR                     SAPMV45A
        BDC_SUBSCR                     SAPMV45A
        BDC_CURSOR                     RV45A-KWMENG
        RV45A-KWMENG                                     2
        VBKD-PRSDT                     2008.06.23
    SAPMV45A 4003
        BDC_OKCODE                     /00
        BDC_SUBSCR                     SAPMV45A
        BDC_SUBSCR                     SAPMV45A
        BDC_CURSOR                     VBAP-MATKL
        VBAP-PRODH                     50...510..5100
        VBAP-MATKL                     730
        VBAP-SPART                     10
        VBAP-KONDM                     11
        VBKD-KDGRP                     12
        VBKD-KONDA                     11
        VBKD-PLTYP                     11

Maybe you are looking for

  • Bank clearing account -Automatic clearance

    Dear Friends, I had set up bank clearing account as open item management and as part of bank reconsilation procoess am clearing the my bank sub account with the assumption that my payment have been processed by bank and my bank account have been dedu

  • Initfile in asm

    hi all , please can you any one help me in this issue i create service and create instance when i startup it failed to start SQL> startup force; ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file 'D:\ORACLE\PR

  • Trim function not working in PL/SQL ( XE 11g R2 )

    ----PLSQL----------------------------------------------------------------------------------------------------------- create or replace procedure import_artikli as v_pos number; v_t number; v_str varchar2(10000); v_trm varchar2(10000); begin for c1 in

  • Security Models 3-Tier Vs 4-Tier

    Hello Security Colleagues, We are evaluating the two models for our brand new ECC implementation. We have license for GRC5.3,IDM 7.1. Would you please share your thoughts/experiences ? much appreciated... I am also searching for SAP recommendations.

  • Dynamic Screen layout

    Hi all, I have to display fields dynamically based on certain conditions,so i started with grouping certain fields in several subscreens like this. subscreen A subscreen B subscreen C Now if for certain type of conditions i'll be displaying subscreen