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

Similar Messages

  • Using BAPIs for sales contracts

    Hi,
    I'm having this situation that I have to upload sales contracts into SAP from flat files. We planned to use BAPIs for this purpose. Is it a good option. Can anyone suggest better ideas. If BAPI is a good option, has anyone used standard BAPIs for sales contracts updation in SAP System. If yes, can you guide me through the process.

    Hi,
      You can start off with a program with:
    Get the filename of the convert file
      IMPORT /SAPDMC/LSMEMORY FROM MEMORY ID '/SAPDMC/LSMW'.
      V_PROJECT = /SAPDMC/LSMEMORY-PROJECT. " Project
      V_SUBPROJ = /SAPDMC/LSMEMORY-SUBPROJ. " Subproject
      V_OBJECT  = /SAPDMC/LSMEMORY-OBJECT.  " Object
      IF V_PROJECT IS INITIAL.
        V_PROJECT = 'XXXX_LOC'.
      ENDIF.
      IF V_SUBPROJ IS INITIAL.
        V_SUBPROJ = 'SD'.
      ENDIF.
      IF V_OBJECT IS INITIAL.
        V_OBJECT = 'XXXX_VA41'.
      ENDIF.
    Function will return path of converted file by LSMW object
      CALL FUNCTION '/SAPDMC/LSM_FILE_INFO_GET'
        EXPORTING
          PROJECT           = V_PROJECT  " /sapdmc/lsmemory-project
          SUBPROJ           = V_SUBPROJ  " /sapdmc/lsmemory-subproj
          OBJECT            = V_OBJECT   " /sapdmc/lsmemory-object
          X_ONLY_USED_FILES = 'X'
        IMPORTING
          FILE_CONV         = V_DSNAME   " Path of converted file
        EXCEPTIONS
          NO_SUCH_OBJECT    = 1
          OTHERS            = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    I am not much of an LSMW expert so wont be able to comment much.
    regards
    Aveek

  • NEED BAPI FOR  SALES CONTRACT CREATION AND EXTRACTION FOR Trans- PA41& PA43

    Hi All,
    I need the BAPI for T-code PA41 and PA43 for sales contract.
    i would like to extract all the contract details for Contract data contains Table VEDA. And need to create contract.
    Any body please help me out...
    Please give me code if any one have how to do mapping ..
    Thank you,
    Vishnu.

    Hi Vichu,
    Please search on SCN.
    Regards
    Abhii

  • Partner function for sales contract

    Hi
    I have to extract Sales related data from SAP R/3 to BW.
    Facing issue if someone just changes partner function for Sales contract as they are not captured in any of the standard extractors.
    If there is change in partner function for Sales order then it gets captured in 11 vascl but if its for contract then it doesnt get capture.
    Any solution ?
    Regards,
    monika

    Hi ! Ivy
    I guess there is a option.
    Try this out. Use the menu path IMG> Sales & Distribution> Sales> Lists> Set updating of partner index
    In the resulting screen, click on 'New Entries' make entries 0 - for sales orders and 4 - for contracts as transaction group. Under the column 'partner function' ener the partner function for which you want the report and save your entries.
    Now when you go for executing your report, click on the push button 'Partner functions' ( Say in VA05) , you will have the option for selecting the new partner functions , select and execute your report.
    Provide your feedback.
    Regards,
    PATHIK

  • 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

  • Sales contract(VA41) urgent..

    is it possible to use BDC for VA41 T.CODE i.e sales contract create.
    is va41 enjoy transaction ....
    i have to write bdc program for va41 .please help me.its urgent..
    thanks in advance.

    Hi Hari,
    You can use BDC for VA41 as it is not an enjoy transaction. Enjoy transactions are those which end with N(like ME51N,ME21N).
    You can also use BAPI for VA41 if you wish. Use <b>BAPI_CONTRACT_CREATEFROMDATA</b>
    Reward if useful.
    Thanks
    Aneesh.

  • Adding item data in Product tab for sales contract (crm_order_maintain)

    Hi, can I use crm_order_maintain to add line items under the product tab for a sales contract while creating or modifying an order. Is there any sample code to add the line items, I could look at.  I tried calling this FM from my custom tab and then called CRM_ORDER_SAVE but that did not add the line item. I guess I need to call it from the order_save badi and then call the crm_order_save FM as well from within the BADI. If someone could send me some sample code then I can double check if I am missing something.Am I on the right track to be using this FM for adding a line item under the product tab for the sales contract? Please help. thanks

    Hi, I've encountered the same problem while I was creating a Sub-Contract from a Master Contract.
    In my case the solution was:
    first create the Sub-Contract,
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          CHANGING
            ct_orderadm_h     = i_ctorderadm_h
            ct_input_fields   = i_ctinput_fields
            ct_doc_flow       = i_ctdoc_flow
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        READ TABLE i_ctorderadm_h INTO wa_ctorderadm_h INDEX 1.
        APPEND wa_ctorderadm_h-guid TO i_objects_to_save.
    in wa_ctorderadm_h-guid now we have the guid of the newly created Sub-Contract.
    SELECT SINGLE it_type_to
                 INTO  v_it_type_to    " --> target item type
                 FROM  crmc_it_copy_ma
                 WHERE it_type_from = wa_out_orderadm_i-itm_type.
         Prepare tables
            wa_ctorderadm_i-header =
            wa_out_orderadm_i-header.   "Retrieved from CRM_ORDER_READ
            wa_ctorderadm_i-handle = '0000000001'.
            wa_ctorderadm_i-number_int = '0000000001'.
            wa_ctorderadm_i-product = wa_out_orderadm_i-product.
            wa_ctorderadm_i-ordered_prod =
            wa_out_orderadm_i-ordered_prod.
            wa_ctorderadm_i-description = wa_out_orderadm_i-description.
            wa_ctorderadm_i-itm_type = v_it_type_to.
            wa_ctorderadm_i-order_date   = sy-datum.
            wa_ctorderadm_i-itm_language = sy-langu.
            wa_ctorderadm_i-mode = c_a.   "c_a = 'A'
            wa_ctorderadm_i-header = wa_ctorderadm_h-guid.
            APPEND wa_ctorderadm_i TO i_ctorderadm_i.
            wa_input_fields-ref_handle = '0000000001'.
            wa_input_fields-objectname = 'ORDERADM_I'.
            REFRESH i_input_field_names.
            wa_input_field_names-fieldname = 'DESCRIPTION'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'HEADER'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ITM_TYPE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'MODE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'NUMBER_INT'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ORDERED_PROD'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'ORDER_DATE'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_field_names-fieldname = 'PRODUCT'.
            APPEND wa_input_field_names TO i_input_field_names.
            wa_input_fields-field_names = i_input_field_names.
            APPEND wa_input_fields TO i_ctinput_fields.
    After that I've called function 'CRM_ORDER_MAINTAIN', to copy the Items from the Master Contract.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
            EXPORTING
              it_sales          = i_sales
              it_schedlin_i     = i_schedlin_i
            CHANGING
              ct_orderadm_i     = i_ctorderadm_i
              ct_input_fields   = i_ctinput_fields
            EXCEPTIONS
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              OTHERS            = 5.
    Maybe if you're not working with Contracts, the procedure is not properly correct.
    I suggest to put a break-point into crm_order_maintain and try to add the Item manually.
    If you reproduce exactly the standard, I'm shure it will work.
    Lorenzo

  • 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

  • Item wise attachment in sales contract(VA41)

    Hello Expert,
    I have an requirement to attach risk assessment document in sales order contract item level. Anyone have experience on this? we can able to attach in header level but the actual requirement is item level.
    Regards,
    Vadamalai A.

    Vadamalai Adhimoolam
    Give the document number which is created from CV01N to VA41 in item level
    Appreciate that you have updated promptly once you found the solution.  Please also share where exactly you keyed in the document number
    G. Lakshmipathi

  • LSMW for Purchasing Contracts(ME31k) for Services

    Hi All
    I am hoping that someone would be able to guide me or give a suggestion on this. I have seen many questions asked in the forum about upload for Service Conrtacts but none of these have been clearly answered.
    The standard  idocs PURCONTRACT_CREATE01 doesn't have service segments and also BLAORD03 doesnt have account assignment so the only option is recording but while doing recording using me32k , the cursor points the to recorded entry ( static) used in recording and tries to update that service line record and fails . As a workaround I tried a recording by leaving empty lines and it woked fine but the trouble with that is only 20 service lines ( what is visible in a page) can be recorded
    So I have worked out another option as below and looks to be working but I feel the process is cumbersome and may be error prone when i have different scenarios . Has any body used a better solution using LSMW ? The option i tried is
    Using a recording of ME31k, create the Service Line with a line no equivalent to maximum possible line for example if my maximum possible line is 100, create the contract with Service Line No as 100
    Using a recording of me32k, insert the lines 99 to 1 in descending order and also making sure that source file has line no's from 99 in descending order . Also while recording , the + ( insert row) on left side of service screen was used .
    Using another recording of me32k, renumber the service no's to be consecutive order ( recording of Edit -->renumber in Service Screen ) .This is required because some contracts may only have 3 service lines and some may have 100 lines and it will look odd to have only 3 service line with 98,99 and 100
    Any suggestion from anybody who has uploaded/migrated Service contarcts using LSMW appreciated .In our project, there is a general guidance to avoid Z programs for upload and want to use that as last option.

    Sorry Mallinath
    Can you please clarify me whats the method you are referring. The link you sent me talks about
    BAPI_SAG_CREATE (CHANGE) which doesn't have any fields referencing service master ( Activity Number ) not does it have any fields related to Service tab in ME32K/ME31K?
    Appreciate if you can give some more information.
    Regards
    Abhilash

  • 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

  • Lsmw for sales order upload

    Dear Friends,
                 I am trying to upload sales order data using transaction VA01 by Batch Input Recording method in LSMW. But I am not able to get line items due to the fact that I am not able to assign two source structures. So i am trying to upload by Abap Coding in LSMW. But still I am not able to get the Item Data. So Kindly help me in this.
    With Regards,
    H.Krishnan

    use the first method (Direct Input)
    Object : 0090  (Sales)
    Method : 0000
    Programname: RVINVB10
    In structure relations u can find header and line itemas.
    before that define 2 structures.
    ===================================================
    After creattion of one structure..
    again click on create button> now it will ask samelevel/lowerlevel..give ur option>then u can add the fields in the next step.
    pls.reward if it helps u and close this thread
    Thanks
    Eswar
    Message was edited by: Eswar Kanakanti

  • LSMW for sales order uploading

    Hi Guys,
    I need to upload single time sales order detials into SAP through flat file, is any sap standard LSMW methods are available or I need to develop a Z program.
    Could you please give your suggestions?
    Thanks,
    Gourisankar.

    Hi gourishankar,
    LSMW is not a bad one, but striaght BDC programme with BAPI would be the
    best
    so see this link it may help you.
    http://www.****************/Tutorials/LSMW/Bank/page1.htm
    thanks
    karthik

  • LSMW for contract Migration

    Hi ,
    We need to move approx 2000 Sales Contracts (VA41) from Legacy system to SAP with LSMW.Could you please suggest
    the best way to do that ,Bapi, IDOC or transaction recording.
    I will appreciate if you can throw some light on them and guide few steps on them
    Regards

    Hello Komal,
    I do understand your requirement of migrating 2000 Sales contract from Legacy system to SAP system through LSMW. I would suggest you to go for BAPI for contract with items of different characteristics.
    The steps involved here are given as :
    1. Define the source structure as well as the field of the legacy system.
    2. Cleansing activity is done in order to eliminate the unwanted data if present.
    3. Extract the Data from the legacy system.
    4. Field and structure Mapping of the Target (SAP system) is be done.
    5. Start the process of Uploading by using BAPI.
    6. Correct if any discrepancies that comes up due system performance issue.
    BAPI is the SAP business objects stored in the Business Object Repository (BOR) to encapsulate the data and processes involved.It is one of the effective process for uploading the data to SAP system from legacy.
    Mass data transfer using BAPIs utilizes the same ALE technology that is used for continuous data transfer. This means the data to be copied from the source system is imported into the target system in IDoc format. In the target system, the IDocs are then used to generate BAPI calls that ensure the data is written to the database.
    Before the mass data transfer can be performed, you have to identify the relevant business objects in the target system and determine which BAPIs will be used to import the data. To determine which objects are involved, you have to establish a connection between the online transactions used during production operation and the underlying business objects.
    Regards,
    SARTHAK

  • FG production on sales order but RM procurement on Sales Contract.

    Dear Gurus
    Here is the client requirement for Planning and Procurements of FGS and Rms.( Process Industry)
    1) Client wants to make sales Contract VA41 for FG in which they will create schedule line for item with delivery date in Month format with Quantity.
    From VA41 sales contract creation , they want their RMS to be Procured but NO MRP should be run or impacted for Final Assembly. In short NO MRP for FG
    2) After VA41,  they again want to run VA41 in which they will create ''With reference and in contract tab, they will make Customer PO with reference to above Contract. This number will give them a Qty Variance between customer's purchase order and the sales documents created.
    3) Again with Reference of Customer PO, they will make a Sales order from VA41 and this sales order they will Produce their FG.
    So FG Production is Sales order driven but RM procurement is Sales Contract driven.
    1) Which Planning strategy i should assign to RM and FG?
    2) What will be step by step configuration guide from PP and SD side.?
    Appreciate your reply
    Thanks
    Shailesh

    In SPRO
    goto SD>Schedule line>Define schedule line categories
    here check if the schedule line category associated with your mentioned order has a flag ticked for Availability.
    Availability check for sales
    You must carry out an availability check for the following transaction.
    The indicator is determined as a proposal in conjunction with the respective requirements type. It can be changed in individual shipping transactions. However, only one restriction is effective.
    Example
    You do not set an indicator for maintaining the requirements type. In this case, no availability check is carried out. This is independent of the selection in the respective transaction.
    You set an indicator for maintaining the requirements type. In this case you can decide whether or not you require an availability check for the relevant transaction.
    reward points if it helps
    regards
    Biju

Maybe you are looking for