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

Similar Messages

  • Price condition determination for purchasing contract(ME31K)

    Hi Experts,
         It is possible to apply  price condition determination in purchasng contract(ME31K)?  We had maintain the price condition for below keys: WBS/Material number and this condition record work well in purchase order. But I hope that this condition record is applied in pruchasing contract when we create contract by ME31K. Plz kindly give me a suggestion.
    So I want to check the condition dtermination is whether fullfil my requirement. If we can not use the price condition determination to get the net price, then we only go for user-exit to get it.
    Thank you very much in advance.

    >
    Gangrong Chen wrote:
    > Hi Experts,
    >  
    >      It is possible to apply  price condition determination in purchasng contract(ME31K)?  We had maintain the price condition for below keys: WBS/Material number and this condition record work well in purchase order. But I hope that this condition record is applied in pruchasing contract when we create contract by ME31K. Plz kindly give me a suggestion.
    >
    > So I want to check the condition dtermination is whether fullfil my requirement. If we can not use the price condition determination to get the net price, then we only go for user-exit to get it.
    >
    > Thank you very much in advance.
    Why not, in me31k, click on condition button on toolbar for item conditions and for header conditions, click on menu bar path HEADER>CONDITIONS and maintain your conditions accordingly.

  • LSMW - Upload purchase contracts (ME31K) with BAPI

    I'm trying to upload some contracts from the legacy to SAP ECC 6.0 using LSMW.
    I've already worked with Direct Input and Batch Input record with LSMW but never with BAPI.
    I found business object BUS2014 / Message Type - PURCONTRACT_CREATE but I don't know how to continue the process. Could you give me some suggestions?
    Thanks in advance,
    Guiza

    Hi,
    I saw some examples but I'm still with the same problem. At step 4 Maintain Structure Relations I have this error: "No target structures could be found - Message no. /SAPDMC/LSMW_OBJ_030001".
    What could be?
    Step 1 - Business Object Method -
    BUS2014
    Method: Create
    Step 2 - I've create 2 structures
    Header and Item
    Step 3 - I associate the fields that I want to upload.
    I don't know but could the error be because the Idoc Inbound Processing?
    Thanks,
    Guiza

  • Tables for Purchase contract Tax pricing

    Hi ,
         I want to display purchase contract detail in the standard layout.
    For Displaying pricing we need the Document condition number of the contract.
    Normally in Purchase order pricing document number is in EKKO table and field name is KNUMV.
    In same procedure i search for Contract pricing but am not able to find the pricing document number table and the pricing table.
    Please guide me how can we pick the pricing values from purchase contract.
    what is the tables for purchase contract  Tax pricing ?
    Regards,
    Madhan  - Chennai .

    hii,
         it is
                   KONH                                    Conditions header
                    KONP                                    Conditions items
                    KONV                                    Procedure ( billing doc or sales order)
                    KOND
                          VEDA                                     Contract data
    regards,
    Shweta

  • Commitment plan for purchase contracts

    Hi Experts,
    PLz explain the * Commitment plan for purchase contracts*  this is new functionality  in ECC 6.0
    PLz explain the above statement.
    Regards
    Pratap

    Dear Gurus! ! !
    Some will have some idea possible way to this?
    Thank you and greetings,
    Jose Zapata

  • Hello. I want to cancel for purchasing a subscription for Adobe ExportPDF.

    Hello,  I want to cancel for purchasing a subscription for Adobe ExportPDF.

    Cancel your membership or subscription | Acrobat, Acrobat.com online services

  • BAPI for Purchasing Contract

    Hi  All,
    Can anybody suggest some BAPI for uploading pricing conditions in a purchasing contract.
    Thanks,
    Arun

    Hi Arun,
      refer to the link for BAPI's:
    http://www.sapbapi.com/bapi-list/
      Also refer to the link:
    Re: VK11,
    With luck,
    Pritam.

  • Attach the file for purchase requisition using BSP service

    Hi All,
    I have Requirement Attach the any file like(PDF,TXT,PPT) to Purchase requisition using BSP service.Could please provide me any function module or BAPI for this functionality.
    Thanks in advance.
    Regards,
    Rajesh.

    Hi All,
    REPORT ZTESTJLG3 . .
    parameter p_mandt like sy-mandt default '120' .
    parameter p_equi type equnr default '1000007' .
    parameter p_path like IBIPPARMS-path memory id AD_LOCAL_PATH .
    parameter p_name(30) default 'Test attach 100007' lower case .
    " nom attachement .
    data w_prog like sy-repid .
    data w_dynnr like sy-dynnr .
    data w_attachement type borident .
    initialization .
    w_prog = sy-repid .
    w_dynnr = sy-dynnr .
    " test jean luc recuperer le code de
    fucntion module 'GOS_EXECUTE_SERVICE'
    data lo_container TYPE REF TO cl_gui_container .
    *call method lo_container->get_container_type .
    at selection-screen on value-request for p_path .
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = w_prog
    DYNPRO_NUMBER = w_dynnr
    FIELD_NAME = 'P_PATH'
    IMPORTING
    FILE_NAME = p_path .
    start-of-selection .
    if sy-mandt ne p_mandt .
    write 'Erreur mandt ' .
    exit .
    endif .
    data ws_borident like borident .
    ws_borident-OBJKEY = p_equi.
    ws_borident-OBJTYPE = 'EQUI'.
    data w_document like SOOD4 .
    data : begin of wt_files occurs 0 .
    data fname(128) .
    data end of wt_files.
    wt_files-fname = p_path .
    append wt_files .
    data folder_id like SOODK .
    call function 'SO_FOLDER_ROOT_ID_GET'
    EXPORTING
    region = 'B'
    IMPORTING
    folder_id = folder_id
    EXCEPTIONS
    others = 1.
    w_document-foltp = folder_id-objtp .
    w_document-folyr = folder_id-objyr .
    w_document-folno = folder_id-objno .
    append document to documents.
    w_document-objdes = p_name .
    w_document-objnam = p_name .
    data w_h_data like sooD2 ..
    data w_fol_data like sofm2.
    data w_rec_data like soos6 .
    w_h_data-objdes = p_name .
    CALL FUNCTION 'SO_DOCUMENT_REPOSITORY_MANAGER'
    EXPORTING
    METHOD = 'IMPORTFROMPC'
    OFFICE_USER =
    REF_DOCUMENT = w_document
    NEW_PARENT =
    IMPORTING
    AUTHORITY =
    TABLES
    OBJCONT =
    OBJHEAD =
    OBJPARA =
    OBJPARB =
    RECIPIENTS =
    ATTACHMENTS =
    REFERENCES =
    FILES = wt_files
    CHANGING
    DOCUMENT = w_document
    HEADER_DATA = w_h_data
    FOLMEM_DATA = w_fol_data
    RECEIVE_DATA = w_rec_data .
    if w_document-okcode = 'CREA' or w_document-okcode = 'CHNG'.
    w_attachement-objtype = 'MESSAGE'.
    w_attachement-objkey = w_document(34).
    CALL FUNCTION 'BINARY_RELATION_CREATE_COMMIT'
    EXPORTING
    OBJ_ROLEA = ws_borident
    OBJ_ROLEB = w_attachement
    RELATIONTYPE = 'ATTA'
    IMPORTING
    BINREL =
    TABLES
    BINREL_ATTRIB =
    EXCEPTIONS
    NO_MODEL = 1
    INTERNAL_ERROR = 2
    UNKNOWN = 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.
    ENDIF.
    endif .
    For above requirement i am trying like above code.
    working fine but which transaction i can find the attach file.I am trying to fine using ME52N transaction but i c't find this file.
    Please suggest me how can i find this one
    Thanks in advance,
    RajeshV.

  • Purchasing Contract bapi for rejection

    Hi
    Please I need to create a RFC to reject a Purchasing Contract  workflow, I´ve found just BAPI_CONTRACT_CHANGE bapi but it just works with contracts with material itens, it doesn´t work with contracts with service itens.
    helpful answers will be awarded.
      DATA:
         wl_header TYPE bapimeoutheader,
         wl_headerx TYPE bapimeoutheaderx.
      wl_header-procstat = '08'.
      wl_headerx-procstat = 'X'.
      CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
        EXPORTING
          purchasingdocument = i_ebeln
          header             = wl_header
          headerx            = wl_headerx
        TABLES
          return             = bapiret2.
      READ TABLE bapiret2 TRANSPORTING NO FIELDS
      WITH KEY type = 'E'.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.

    Hi Michel,
    I also have same requirement , Can you please send me the code.
    My Email ID : [email protected]
    Appreciate your help!
    Thanks,
    Sivaji.

  • LSMW create Vendor Contract ME31k

    Hello Guys,
    I have create a LSMW using recording to upload a series of contract with multiple lines.
    I have defined 2 source structure with the respective fields I intent to input values.
    Header, field 1, field 2
    Item, field 1, field 2
    I have also maintained the appropriate structure for 2 different files, where first file has the header data and Item files has the item data.
    I am reading and converting the data correctly but the sequence of my LSMW recording is corrupted. What is the best way to go with the recording for this LSMW. I am struggling to define the multiple items for a contract.
    I do not have BUS2014 and IDOC did not work.
    Thanks

    To create the contract with multiple lines you are required to create two recordings and maintain two different source file.
    First Record is dedicate to create the Contract with a dummy item.
    Create the record for ME31K choose the fields you require to maintain. You are required to input the first line, use a dummy item so you are able to save the contract.
    Second Record is dedicate to add item in the contract.
    Create a record for ME32K it is not require to input the contract number as the record will use last create contract. Remember to call Edit Enter lines to call the last line to input the material ID.
    You are required to map the Header and Item level using identifiers for header and Item
    On the Header you can make the Item a constant of the dummy material.
    You are required to maintain two different source file one for Header and one for Item and then define the source structure.
    If someone have a better way I am happy for advices.

  • Apple Support for purchase of AppleCare for Mac Mini / Cinema Display Combo

    Below is an email that I recently submitted to Apple for feed back on the support system. I am writing here to find out if anyone might have any ideas about how to address this issue without resorting to a 2 hour wait on the phone (my last experience with Apple support). I have redacted some info with ID's and Case numbers as I know Apple does not actively monitor these forums so it would not make sense for them to be posted.
    Here is the question:
    How do others in the Apple community feel about the points that I make in this email? I am curious to know if I am off base in my expectations or if what I am requesting is reasonable?
    Here is the email:
    As someone who has spent 15 years as a web professional and has purchased/approved for purchase more than $1 Million dollars in Apple products, I have to say my recent experience with Apple customer service has been incredibly lackluster and almost insulting. Here is the issue that I am trying to resolve (not why I have written this email):
    I recently purchased a mac mini and cinema display and in addition purchased apple care for both. I only received confirmation of apple care for the mac mini. Hence I have an issue.
    Fail #1) I was asked when trying to register the apple care I purchased at MacAuthority, that I need to upload a receipt. I uploaded said receipt and then waited. Some time later I recieved an email (Jan 21) with with the following information - Case ID: XXXXXXXXXX / AppleCare Registration Number: XXXXXXXXXXXXX / Product Case ID: XXXXXXXXXXX saying my information had been received. I then responded to the email (Jan 21) saying that I did not see an option during the registration for registering both the monitor and the mini. I figured this was based on the registration number and maybe just did not show in the front end. I then waited 7 days to send another email (Jan 28). No response.
    I typically spend my evenings taking care of things like this, as I can almost always address them through a couple of emails and it is done. I don't have time to sit on hold during the day waiting for a live person. Especially when I am doing work that ensures I can buy the product of the company I am waiting on hold with. Instead I try to rely on the most efficient method, which most companies have realized is email communication, when it is implemented properly.
    Fail #2) Rather than making a call to Apple Support on my dime (during the day), I instead head over the support site thinking that at a minimum I would find a contact support form or an auto ticking email address. Heck maybe I would even be able to look up the case ID. To my surprise, there was no contact form, there was no support email address.
    Fail #3) I then started hunting for the next logical step. I saw the link to the Express support and thought - "ah cool, they have a routing system to get my need to the right person/department". Errrrrr - wrong. Although that is what it appeared to be, in the end I was presented with only one option. Call back later. Seriously. SERIOUSLY
    Fail #4) Now, after having spent more than 2 hours of my time trying to get this issue resolved, I am still going to forced to talk to someone on the phone. This is so incredibly insane for a modern web business who supposedly is fanatical about their customers!
    I surely hope that this changes or my last purchase will be MY LAST PURCHASE. I have had so many experiences in the last 3 years that made me feel like I was inconveniencing "Apple". I am about to give up on the brand. There is a "greedy" feeling that I get when dealing with Apple rather than on of "wonderment"
    There are lots of other options that I know provide a better customer experience. Why would I choose Apple over them? I dropped the iPhone for this reason and went to Android after having multiple issues with a support need that later ended up being a known hardware issue with the iPhone 3G.
    I currently own two mac mini's, 1 cinema display, a 17" loaded MBP, a 15" loaded MBP, two airport extremes, an airport express and an iPad. I have spent over $11K with Apple personally in the last 2 years and I cannot get an option to contact someone by email or file a trouble ticket?
    I truly hope someone has taken the time to fully read this email, as I cannot imagine that this is the message that Apple wants to send to its customers. If you have read this and can be so kind as to respond, I will gladly give you some other insights about how Apple can better serve its customers. If you can help me with my support issue, even better.
    Jamie

    Fail #1) I was asked when trying to register the apple care I purchased at MacAuthority, that I need to upload a receipt. I uploaded said receipt and then waited. Some time later I recieved an email (Jan 21) with with the following information - Case ID: XXXXXXXXXX / AppleCare Registration Number: XXXXXXXXXXXXX / Product Case ID: XXXXXXXXXXX saying my information had been received. I then responded to the email (Jan 21) saying that I did not see an option during the registration for registering both the monitor and the mini. I figured this was based on the registration number and maybe just did not show in the front end. I then waited 7 days to send another email (Jan 28). No response.
    It's not clear to me on what information you were expecting from them. Did you, however, check the status of the coverage here to see if perhaps the coverage was registered correctly?
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Fail #2) Rather than making a call to Apple Support on my dime (during the day), I instead head over the support site thinking that at a minimum I would find a contact support form or an auto ticking email address. Heck maybe I would even be able to look up the case ID. To my surprise, there was no contact form, there was no support email address.
    Apple does not provide support via email (except for the iTunes Store) and never has. Whether or not you wish to consider this a "fail" is your call, but they have always provided support only via the phone except for a short experiment with live chat which I believe they've abandoned.
    Fail #3) I then started hunting for the next logical step. I saw the link to the Express support and thought - "ah cool, they have a routing system to get my need to the right person/department". Errrrrr - wrong. Although that is what it appeared to be, in the end I was presented with only one option. Call back later. Seriously. SERIOUSLY
    Seriously. Though I think you misread. The option is available for you to set up a time when they can call _you. Or you can just elect to call later. It's your choice which you select.
    Fail #4) Now, after having spent more than 2 hours of my time trying to get this issue resolved, I am still going to forced to talk to someone on the phone. This is so incredibly insane for a modern web business who supposedly is fanatical about their customers!
    See number 1.
    I surely hope that this changes or my last purchase will be MY LAST PURCHASE.
    Suit yourself. I very much doubt that Apple will change their policy, since it's been the same for many years. There's nothing anyone here can suggest to change things or address them differently. You'll have to talk with them on the phone if the registration didn't go through as expected. Again, you can set up a time when they will call you so as to avoid waiting on hold.
    Regards.

  • Commitment Plan for Purchase Contracts for Version 5.0

    Dear Gurus! ! !
    It is a pleasure to greet and thank for the support ...
    I need to know if there is any way to implement the commitment funds using Contracts in SAP Version 5.0
    If there is a way we need to do in the system?
    If not what is the best practices for cases that use the Purchasing Document Contract in a business process?
    Best Regards
    JFZL

    Dear Gurus! ! !
    Some will have some idea possible way to this?
    Thank you and greetings,
    Jose Zapata

  • Settings for Purchase Order output using services for MM-SUS scenario?

    Dear Gurus,
    I am configuring the service procurement classic and plan driven procurement for MM-SUS
    environment. We are on SAP SRM 7.01/ECC 6 EHP5.
    I need to maintain the below settings for PO output:
    1. RUN transaction SWETYPV
    2. IN the object types field, enter CL_SE_PUR_WF_OUT.
    3. In the event field, enter CREATED.
    4. In the receiver type field, enter WS53800008.
    5. In the receiver function module field, enter SWW_WI_CREATE_VIA_EVENT_IBF.
    6. Select the 'Linkage Activated' checkbox.
    7. Save your entries.
    Similarly, one more entry for the event CHANGED.
    However, the system is not allowing me to save the settings.
    If I choose BOR Object Type 'CL_SE_PUR_WF_OUT', it gives an error message 'Object type CL_SE_PUR_WF_OUT is not defined'.
    If I choose object category 'Business class for object type CL_SE_PUR_WF_OUT, it gives an error message 'Class CL_SE_PUR_WF_OUT is not a business class.'
    There are similar entries in the table SWETYPV for object type CL_SE_PUR_PO_WF_OUT' with object category CL.If we copy the entries and tries to replace the
    object type 'CL_SE_PUR_PO_WF_OUT' with CL_SE_PUR_WF_OUT and save it, it gives an error message 'CL is not used for workflow event'.
    Could you please help me on how to configure the settings for PO output from ECC system using services?
    Any input is highly appreciated.
    Thanks and regards,
    Ranjan

    Hi Ranjan,
    Please add the value 'CL' in the table SWF_CATIDS
    Then it will work.
    With Regards,
    Malay

  • API  for updating contract Relationships for Contract Repository

    Hi all,
    what is the API used to update th Contract relationship details in oracle contracts?
    Please help.

    Hello,
    LSMW (Recording/IBIP--Change mode Is Not available in STD SAP ) Will not help you In this case.So Please go for BDC Programme.write BDC logic in such way that it will always fetch Those operation In Task List Which need to be Upadted with  Contract Numbers  by applying condtion check for those operation in task List.
    Reagrds,
    Rakesh

  • SRM -- MDM -- ECC integration for central contract management for SRM 7.0

    Hi there,
    I am questioned by a client with respect to the possibility of the following scenario -
    1. There are several SAP back end systems in place.
    2. SRM 7.0 will be implemented as single sourcing system.
    3. The SAP back end systems carry different material master codes for the same material and this will remain the same and no cleaning effort to have a unique code across all systems is going to be done.
    4. If we use MDM in the mix - will it be possible for the SRM system to act as a central contracting solution and create a central contract with the unique material code in MDM.
    5. On distribution of this contract across to individual SAP back end system the back end should map the MDM code to correct material code in that respective system.
    Any insights with respect to if this is possible with some enhancements or not at all possible will be highly appreciated.
    Thanks and Regards,
    Shantanu Joshi

    Hello Shantanu Joshi
    Your business scenario is standart MDM functionality
    More about how it works you can read from:
    MDM overview
    and standart help links (see scenarios part):
    http://help.sap.com/saphelp_mdm550/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm
    Regards
    Kanstantsin

Maybe you are looking for