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.
Similar Messages
-
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 (creating vendor)
Hi.
I want to create vendors using LSMW with batch input ( transaction XK01 ).
Can I get from LSMW vendor numbers of created vendors?after running the LSMW program the Seeeion will be created , goto SM35 tcode and select your session and process if any method , after processing the session your name select agagin your session and click log there you can findout the created vendors....
-
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,
GuizaHi,
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 -
Hello,
Can someone give me some info. wrt to Vendor Contract:
1. The spro setting needed for the same
2. The master data
3. Procedure for creating Vendor Contract and creating subsequent documents.
4. How is inventory handles in such case
Is the concept of Vendor Contract same as the Contract in SD...as in SD we create a Quantity Contract and then we create subsequent documents as 'Call-off' [sales orders] and with each call-off..appropriate quantity is reduced from the contract....
Is Vendor Contract also same....
Another question i have wrt to subcontracting and TPO [third party order].
Can we have Subcontracting Third party orders and in what scenerios.
and how would we configure these.
Regards,
GauravjitHello,
A Contract is a long-term agreement with a vendor (one of the two forms of Outline Agreements in the system) to supply materials or provide services for a certain period of time.
A Contract is sometimes referred to as a blanket order. The two types of contracts are:
Quantity
Value
A Contract can be created directly or with reference to an Outline Agreement Request (Requisition), an RFQ, or another Contract.
A Contract contains a validity period with specific beginning and ending dates.
Purchase Orders created against a Contract are called Release Orders (in non-system terms, they are also known as blanket releases, contract releases or call-offs). Quantities and delivery dates are specified in the Release Order.
SPRO Setting : MM >> Purchasing >> Contract
1. Define number range
2. Define document type ( If required)
3. Release strategy ( If required)
Steps :
1. ME31k
2. ME21N
3. MIGO with ref to Contract release order ( PO)
4. MIRO
Regards,
Shailesh -
Best practice to use contract(ME31K) in reference a PR
Hi,
I create a PR(me51n) with service (the commitment is on the PR), next I create a contract(me31k) in reference with the PR. In the contract I do some change, I subdivide the service in two lines. After with ME57 I assign the contract with the PR.
When I want to create a PO (contract release ord), should I us the contract in reference or the PR. If I use the contract my commitment do not follow and if I use 50% for my PR the commitment is used at 100%.
What is the best practice?
Best regardsHi,
If I use the entire PR it is true but if I use only 50% of it. The commitment of the PR disappears and the commitment of the PO is 50% of the PR. And I want to found a way to transfert only the % of the commiment used in the PO.
Best regards -
Hi All,
I am trying to create Service contracts using IDOC type CRMXIF_ORDER_SAVE_M in CRM thru LSMW.
I have a mapping issue of the file fields to the segment fields;
I have 5 files, Contract Header, Items, Dates, Partners, Objects(Serial numbers);
I Appreciate if you send me the mapping details for me if some one has already done this please;
or any otherhelp on the notes/documents are highly appreciated
Thanks
Iverhi, do you mean the problem is in the file resource file, and you want to use it in LSMW?
If so, I have meet the similar problem, two source file inbound into LSMW. one header , one item
And I solve it in this way,
combine the 2 file before lsmw read it, like this
Header data 1 / item1
header data 1 / item2
header data 2 / item1
header data 3 / item1
header data 3 / item2
for each line, the header data is exist, if item is mutiple, the header line can be repeat.
Then the 2 file combine to one file, lsmw read the combined file
You need to do some additional logic in data mapping, mapping the different item in each loop, but header data once if they are same. -
Dear all,
I have to migrate data. One object is the Material Contract:
Contract
In the SAP Purchasing component, a type of "outline agreement", or longer-term buying arrangement. The contract is a binding commitment to procure a certain material or service from a vendor over a certain period of time.
Can please anybody give me a hint what Business Object (BAPI, Batch-Input etc.) to use in LSMW to create the contracts.
Kind regards
Roman BeckerHi, I hade the same problem yesterday, I solved it by first one recording for transaction ME31K with the header of the contract (lifnr) and the first position.
When this is done I get the contract no.
Then I created a recording for transaction ME32K for one item (material, price and so on). In the input file I put in the contract no. for the key. -
How to create a contract? ( Types: volume,time,quality contracts)
Hi Gurus,
How to create a contract? ( Types: volume,time,quality contracts)
Give the procedure to create above mentioned types of contract.
Bye
Narasimha Rao Gunda1.Access the transaction choosing one of the following navigation options:
SAP ECC menu Logistics Materials Management Purchasing Outline Agreement Contract Create
Transaction code ME31K
2.On the Create Contract: Initial Screen, enter the following values and choose Enter:
Vendor xxxx
Agreement type MK
Agreement date Todayu2019s date
Purchasing Organization
Purchasing Group xxx
Plant xxx
3.On the Create Contract: Header Data screen, in Validity End field, enter end date (e.g. two years in the future) of the contract and choose Enter.
4.On the Create Contract: Item Overview screen, enter the following values:
Material
Target Quantity 10000
Net price xxxx usd per 100 PC
Plant 1000
5.Remark: Delete any entry in the field storage location.
6.Additional step:
If you want to use the information of an existing info record mark the line of the agreement item (item 10) and go to Environment Info record. On the Info record: General Data screen choose Conditions. On the screen Display Gross Price Condition (PB00): Condition Supplements you can see the value of the gross price (here: 1282.5 per 100 pieces.).
7.Choose Save (Check if the automatic print function of the contract works). -
How to create Service Contract-Urgent
Hii All,
Can anyone tell me what all the requirements needed to create a service contract?
I shall be thankful to anyone who could please please send me the step by step procedure to create the service contract.
Thanks
Gopi.Hi Gopal ,
Use following steps for creating service contract.
1] Use t-code <b>ME31K</b>
2] Enter details like Vendor , Agreement type (MK) , Purch Orgn Purch.group.In the same , enter Item Category as "<b>D</b>" and respective account assignment category (K,F etc.)
3]In second screen enter Validity period , then short text for the desired services.In next screen , enter Service details and proper account assnmnt
Save the contract
Regards
Nilesh -
How to create a contract with one supplier and two dealers?
Hi Gurus,
I have a contract with a supplier (eg. Apple), but the products and services are supplied by two dealers.
The supplier is the manufacturer and with whom the negotiation of prices is made.
The dealers are those who make the delivery of the products and services and who the payment is done.
How can I create a contract with these characteristics in SRM 7.0?
I don't want to create two contracts with same products and services for two suppliers (Dealer_1 and Dealer_2).
How can this be handled through business partner type "Vendor"?
In "Partner" section in "Header" --> "Basic data", I can only add 1 vendor.
The system is:
Component software: SRM_SERVER
Release: 700
Level: 0008
Support package: SAPKIBKV08
Thanks in advance and best regards,
Alonso ValenzuelaHi Wadim,
I have a similar requirement to create order lines in an existing contract with reference using BAPI_CUSTOMERCONTRACT_CHANGE. The order lines get created in the contract. However, the condition types from the order line which i'm referencing are not getting referenced and are not getting added in the Contract's line after referencing.
Did you come across any such issue ? If yes , could you suggest the solution ?
Regards,
Venkat. -
Error in the LSMW for vendor master using standard batch/direct input
I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
Batch Input Interface for Vendors
FB012 Session 1 : Special character for 'empty field' is /
FB007 Session 1 session name VNDR_CREATE_ was opened
FB104 Trans. 2 XK01 : Acct already exists; general area not being processed
FB125 ... Data in table BLFA1 cannot be processed
FB016 ... Last header record ...
FB014 ... BLF00-STYPE 1
FB014 ... BLF00-TCODE XK01
FB014 ... BLF00-LIFNR 300951
FB014 ... BLF00-BUKRS 402
FB014 ... BLF00-EKORG /
FB014 ... BLF00-KTOKK VEND
FB017 ... Last data record ...
FB014 ... BLFA1-STYPE 2
FB014 ... BLFA1-TBNAM BLFA1
FB014 ... BLFA1-ANRED /
FB014 ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
This is because when we use XK01 to create the vendor by using thePlease check this answered link:
Re: LSMW for Vendor Master
LSMW Upload vendor master data
Edited by: Afshad Irani on May 5, 2010 12:42 PM -
What Function Module can be used to create vendor master data in SAP R/3?
Hello -
I've been trying to find a standard SAP delivered BAPI that can be used to create vendor master records in ECC 6.0. Up to this point I have not been able to do so. With SAP MDM solutions and SRM solutions it seems logical that SAP would deliver a standard BAPI that can be used to create vendor master records in the ERP/R3 environment (similar to the BAPI_MATERIAL_SAVEREPLICA for creating material master data records).
I have been able to find BAPI_VENDOR_CREATE but this only calls the online transaction and does not offer much additional functionality beyond what transaction code XK02 already offers.
The next best alternative appears to be IDOC_INPUT_CREDITOR but our preference would be to not use IDOCs for the project we are working on.
Can anyone offer any insight or personal experience on how vendor master records have been successfully interfaced with SAP R/3? Did you have to use IDOCs or create a custom RFC call? Thanks for the help!
Rich Wortmann
<< Personal information removed >>
Edited by: Rob Burbank on May 14, 2009 10:43 AMQuite a gap in the BAPI arsenal. I think the options are IDoc, which you don't want, good old program RFBIKR00 (requires flat file for input, can be used via LSMW) or DIY (very complex).
Thomas -
Creating Vendor Master Records from HR Master Records
Dear Experts,
I have been using t-code PRAA to create vendor master records from HR master records. The client would like to have one vendor number for a group of employees (in this case external contractors all working for the same company). The system won't allow me to link several PERNR to one LIFNR (i.e. error message).
Is it, however, possible to do this?
Thank you.
Edited by: Philip on Jan 14, 2011 9:58 PMHi ,
PRAA has one to one relation ship , means it created 1 vendor for 1 employee .
If you are using PERNR then you cant use one vendor to may PERNR .
Either create them as individual vendor or else have a manual control system in place where in you will have to create a dummy PERNR and then allocate all the cost to this invidual vendor , if you are paying the check to only 1 contractor for say 100 contract employees you can use this .
else it is a better mechanism and control to have 1 is to 1 in case of employee to vedor .
Regards ,
Dewaang T. -
LSMW for Vendor Master (t-code XK01)
Hi guys,
I'm creating a LSMW for Vendor Master (t-code XK01) using direct input but the following error message appears:
In the step "Create batch input session", I get the following error:
FB012 Session 1 : Special character for 'empty field' is /
FB007 Session 1 session name VENDOR was opened
FB112 Trans. 1 : No transaction code was transferred
FB016 ... Last header record ...
FB014 ... BLF00-STYPE 1
FB014 ... BLF00-TCODE /
FB014 ... BLF00-LIFNR DETES998
FB014 ... BLF00-BUKRS /
FB014 ... BLF00-EKORG /
FB014 ... BLF00-KTOKK 0001
FB013 ....Editing was terminated
I mapped the TCODE filed using xk01 and the same error still displays; in the first step I select Object 0040, method 0002 and the program is RFBIKR00, is this correct?
Some of the fields are stored ina different table; How can I mapped this fileds?
Any you can provide will be great......Hi,
Are you getting this error immediatly or later half?
1. This could be with same Vendor number which would be existing in the system.
2. Data inconsistencies.
What are the flat files that you have is it a single file or more than one?
Thanks,
Prashanth
Maybe you are looking for
-
Payment clearing of a partially cleared document.
Hello, I have a question on how the payment clearing works for the below scenario: When we post a credit memo for Vendor through MIR7, the below accounts will hit: Dr Vendor Cr GR/IR Dr Costs (Expense a/c) Cr Tax Cr Cash Discount Clearing a/c. As par
-
Firefox keeps crashing, and I think it might be virus-related.
I had a nasty virus about a month ago, but after running a couple antivirus programs, it seemed to be gone for good. One of the problems it caused was that it caused Firefox to crash when i had several tabs/windows open at once. But even though the v
-
is it possible to transfer consingment stock to sub con directly with setting of automatic stock determination?
-
Ever since I did the lastest iPhoto update my picture albums have not correctly matched up with the corresponding photos. i.e. my wedding pictures now show up in my vacation album. The picture thumbnails are not showing me the correct photos. 15 in
-
Display document from Content Server
Hello Expert, I need to display document in CE portal, that are stored on ECC content server. Does anyone know how to do this? Thank you in advance. Francois Edited by: François BECKER on Oct 13, 2011 9:39 AM