Assign contract in BAPI_SALESORDER_CHANGE
Dear Gurus,
I'm working on changing the sales order through 'BAPI_SALESORDER_CHANGE', my requirement is to assign the contract item pricing to specific item in sales order.
Assign contract is possible when you go thru va42 transaction but I'm not really aware what parameters to be passed into 'BAPI_SALESORDER_CHANGE' to meet my requirement.
Pls help me.
Regards,
Suresh Deshpande.
Hi
You should transfer the same data you use in VA42:
so:
SALESDOCUMENT: order number
ORDER_HEADER_IN: the header data you need to change
ORDER_HEADER_INX: here set the flag of the field you need to change.
For example you need to change purchase order date:
ORDER_HEADER_IN-PURCH_DATE = <new date>.
ORDER_HEADER_INX-PURCH_DATE = 'X'.
You have to do the same for the item data (tables ORDER_ITEM_IN and ORDER_ITEM_INX) and the other data.
Anyway this fm uses fm SD_SALESDOCUMENT_CHANGE using business object BUS2032.
Check if your document type belongs to this object:
use fm SD_OBJECT_TYPE_DETERMINE.
If your type order doesn't belong to this object yuo can try to use directly fm SD_SALESDOCUMENT_CHANGE.
Max
Similar Messages
-
Assigning contract to bom item
Hi,
We are creating contract with BOM sub item pricing Item category (TAP)and assigning manual condition type to sub item TAN.
And creating order with Same BOM materials sub item pricing and trying to assign contract at header item with item category TAP.
What is the problem here is that Pricing is not carrying out from Contract to Sales order ,when contract been assigned at header item category TAP and expecting price will be changed in sub item with item category TAN where manual condition type set up.
Can any body please help me out what can be done for the price change in sub item when contract getting assigned at header level item TAP.
Regards,
Pavan.Hi JP,
I have tried with item category TAE as Main item and TAN as sub item Still contract new pricing is not carrying to Order.
What i am thinking is tht can copying controls will make any difference in this.
Can you give any more options ,which will help me in this.
Thanks & Regards
Pavan -
Assign contract to sales order item
Hello *,
I want to assign a contract to a sales order item in a ABAP report. The function module "BAPI_SALESORDER_CHANGE" seems not be suitable for this action. The document link is not correct.
Do you have any idea how to solve the problem?
Regards,
Ole.Hi,
I'm using now a batch input with VA02 to assign the contract! It works.
Regards,
Ole. -
ASSIGN SALES CONTRACT TO SALES ORDER
Hi,
I have created a sales contract. now i want to assign that sales contract to sales order with same material and sold to party.
But the price is not getting captured in material conditions after assigning it to sales contract.
Assigning the contract through EDIT - ASSIGN CONTRACT - HEADER is done properly.
But while assignining it through EDIT - ASSIGN CONTRACT - ITEM it gives error msg saying
'Subsequent assignment for preceding doc. with schedule lines not possible'
I am not able to rectify this error. Could you please help me in this case?
Regards,
KrutikaDear Krutika
Go to VTAA, select your contract type and sale order type and execute. Again select your item category and double click on schedule line. Ensure that the schedule line what should flow in sale order is maintained there. Block that schedule line and click on blue lens on top left and maintain the routines as follows:-
Copying requirements:::501
DataT::::::::::::::::::::::::::201
thanks
G. Lakshmipathi -
Contract Document No in Assignment field in Acc Doc
Please do let me know whether we can assign Contract no in assignment field of accounting document.
Regards,
GHS.Hi
Standard Copy Control Settings between Delivery and Billing Document at the Header Level do not provide the value of Contract Number as possible Assignment Number.
See if you can increase the number of possible charateristic values for the field Assignment Number. If you are trying this, make sure you also have the same charateristic value in the field titled Reference Number. -
Link sales Order with contract
Hi,
We have created a sales orders using va01,but without referencing to contract.
is there any way to link these sales order to the old contracts.
Pls help,
ThanksHi,
If your sales order has subsequent documents then it is not possible to link to your old contracts.For such orders this option will be disabled.
For those order that don't have subsequent orders:
Goto VA02 T.Code.
Enter the order number.
Enter.
Ensure that the customer numbers are same in both.If not change the custoemr numebr in order.After that Click on Sales document-->Create with reference.While changing the customer the taxes will be redetermined.
Enter your contract number.
Click on copy.
New material will be added here to your old one.If you want then you can keep this or delete the material of your order and then save.
Or you can assign your sales order to contract also.
Goto VA02,Enter your order number.Edit-->Assign contract.Her you can assign either Header or item also.
Regards,
Krishna. -
Automatic posting of service G/L account in contract
Hi Gurus,
when I make a PO with a service that have a valuation class associated the G/L account at account assignement is automatically posted. But when I make a contract this is not appening someone knows why??
Regards
LRHi there,
First of all at PO no posting to the GL account happens, if your scenario is service procurement then when you save tour service entry sheet at thta point sytem post the amount to the GL account assigned in your PO.
Second, you can only enter the GL account at the PO for the account assigned PO, no provisions for entering valuation class in PO.
You can't post to an GL account for account assigned contract but you can always control the postings by making it account assigned.
Regards,
Sujoy -
Dear Mates
My requirement is of as follows.please help me in how to do it in SAP.
1.Service Contract (Contract type : WV & Item Category : WVN) with peridic billing plan
2.Create Notification with ref to Service contract (Please correct me if iam wrong.Also where to assign Contract type to Notification type)
3.Creation of Service order with ref to Service notification.
4.Costs are been captured there.
5.Creating Debit memo request(Debit memo request(LV) is created with ref to Service contract or service order i need clarification here!)
6.Creating debit memo with ref to debit memo request.
Kindly anybody can explain me the configuration to be done to run the above processHi,
1.Service Contract (Contract type : WV & Item Category : WVN) with peridic billing plan
Copy / use the contract type WV and item cat WVN, would suitable for your requirement
2.Create Notification with ref to Service contract (Please correct me if iam wrong.Also where to assign Contract type to Notification type)
You may attach technical object (Equipment / Functional location / Material Serial number) with the contract. Whenever you are creating notification, system will determine the contract pertaining to the reference object (Equipment / Functional location / Material Serial number)
3.Creation of Service order with ref to Service notification.
IW34 to create Service order from notification. Order can be created from Notification screen
4.Costs are been captured there.
Cost / Revenue are captured in Service order
5.Creating Debit memo request(Debit memo request(LV) is created with ref to Service contract or service order i need clarification here!)
Created with reference to the Service order (not from contract)
6.Creating debit memo with ref to debit memo request.
VF01 is to create DM wrt DMR
[Useful link|http://help.sap.com/saphelp_46c/helpdata/en/e6/4a8df09e0311d189b70000e829fbbd/frameset.htm]
Hope this helps
Babu -
Service Module - Contract Template
Hello Experts,
</p>
We plan to implement service module in our SBO8.8 (pl6). I've been reading subjects about it for several weeks and do some testing. We've been using SBO almost about 1.5 years and trying to utilize its capabilities from time to time.
</p>
Our requirements for Service Module consist of 2 scenarios,
</p>
- Serial numbered items.</p>
Create contract templates with "serial number" contract type.</p>
Set automatic creation in General settings for customer equipment card (CEC).</p>
Assigned to item in item master data.</p>
Whenever delivery or A/R invoice made, CEC made automatically "per serial number" bassis,</p>
while Service contract also automatically made in "per delivery/AR invoice" basis.</p>
</p>
The questions I still wonder are,</p>
1. In which part of the setup tells SBO to create Service contract automatically?</p>
The reason I asked is, what happened if there are 2 differenct contract template? one based on serial number, and the other one
based on customer. When I got to choose which Contract Template to use?</p>
This would be the same with how can I choose contract template in Item Master Data general tab when I want to assign
contract template based on Customer/Items Group contract type?
</p>
2. When the customer make a complain, and the item needs to be send back for repair. How can I received this item without
using the Return/AP credit memo windows? </p>
The reason is, the item has been sold to distributor, distributor sold to dealer, and
then dealer sold to end user. While the end prices in between are beyond our control, we do not know what amount to put on
return/AP credit memo form. Is there a way we could just received it without involving journal entry (the amount)? and after repair, delivery it back to customer.
</p>
3. Item A sold to Customer A, item B sold to Customer B. Then in reality, Customer A sold item A to Customer B. In our database, both CEC and Service Contract for item A will be under customer A. When customer B calls to make service call, how do we choose
that item serial number (being sold to customer A) for the service being made for Customer B?</p>
I tried to choose the serial number first on the servic call windows to bring that specific items, apparently Customer A automatically
filled in the customer field. If I tried to change the customer, the serial number field will be gone and can only be updated by
items belongs to Customer A.
</p>
- The second scenario would be how to give service contract to customer whom items they bought mosly are managed by batch.</p>
It almost the same with question #1 above. When do we got to choose to link a service contract to 'specific' customer that we
want to provide service warranty? So when delivery/AR being made, all items inside it reflect the service contract we want.
</p>
Seems like I stil have a lot to learn the advantages and limitation for this service module before implementing in our production database. Hope to hear any advices and feedback.
</p>
Thank you,</p>
Peter
Edited by: Peter Widjaja on May 14, 2010 10:10 AMroadman18,
This article should cover the issue you are experiencing. Give the steps outlined under the light patern a shot and let us know if it helps.
Best of Luck!
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
After Sales Order is created I need to assign a new Item to an existing Quantity Contract.
When you first create an Item and press enter you will receive the Popup Outline Agreements exist for Line Item (if your setting in VOV8 is = B) I select list and then double click the correct QTY contract. The problem is that when i do this it is replacing my Plant in the Sales Order with the Plant from the QTY Contract.
I also tried to reference this item by skipping this message and using the menu path in VA02 (or VA01) EDIT > Assign Contract > Item Level. Here is enter my Contract # and press Assign. Now the Plant doesn't get replaced, however I receive a Popup saying New Pricing Carried Out. This now replaces my pricing on my Sales Order with the pricing from the Quantity Contract (CQ).
So the question is - how come when assigning a contract either through the menu path or through the Popup (Outline Agreement) I get different results? Shouldn't the copy control work the same using both of these methods?
I appreciate the help.
Thanks -Hello,
Its very normal that you can enter order quantity more than the reference contract quantity flowing from the contract.
Additionally its not recommended that you change the standard SAP standard messages from warning to error etc.
Better you should go for an exit. Use following details:
Goto SE38 & enter include MV45AFZZ
Then goto user exit "USEREXIT_SAVE_DOCUMENT". In this you should tell your ABAPer to write code such that it compare the previuosly refered quantity & hence does not allow to enter quantity more that that in contract. You will get error message while saving the document & system will thus prevent extra entry of quantity in sales order.
Hope this solves your requirement
Regards,
Dhananjay -
Hi guys,
I know that by maintaining a source list, we can generate schedule lines for a scheduling agreement through MRP run.
Our requirement is that, release orders are to be created through MRP run, if any contract exists for that material. If no contract exists for that material, MRP run should trigger purchase requisitions.
is it possible?
if yes, what is the configuratin required for this?
anybody can help me out?Hi,
MRP Run will look at Source list for creating schedule lines if u maintain creation indiactor as 3 (create schedule lines) against a vendor
in ur case of Contracts
maintain this indicator as 2 (relevent to MRP)
assign Contract No. & line item against the row (vendor)
system will create PR assigned with contract no. and if u conver this to PO , a contract release order is created
if u are not asigning any contract in source list system will create PR with vendor assigned
no config required for this
only correct assignments in source list are enough
hope this helps
Regds
Dheeraj -
RE FX module - loading the legacy contracts..
Hi REFX experts,
iam new to this module .
And i need to load the RE-contracts into the system.
1. Should i load all the PR bulk first.
2. Should i load all teh RO bulk firtst.
3. Should i load all the CN bulk first.
Or should i load in sequecne 1 PR first, next 1 RO next and 1 CN next ?
And next i know there are BAPI's
BAPI_RE_PR_CREATE,
BAPI_RE_RO_CREATE and
BAPI_RE_CN_CREATE
And my question is how to prepare the source files in what format for RE contracts ?????
TERM_RENEWAL_RULE LIKE BAPI_RE_TERM_RN_RULE_DAT
TERM_NOTICE_OBJ LIKE BAPI_RE_TERM_NT_OBJ_DAT
TERM_NOTICE_RULE LIKE BAPI_RE_TERM_NT_RULE_DAT
TERM_OBJECT_REL LIKE BAPI_RE_TERM_OBJREL_DAT
TERM_ORG_ASSIGNMENT LIKE BAPI_RE_TERM_OA_DAT
TERM_PAYMENT LIKE BAPI_RE_TERM_PY_DAT
TERM_RHYTHM LIKE BAPI_RE_TERM_RH_DAT
TERM_ADJUSTMENT LIKE BAPI_RE_TERM_AJ_DAT
TERM_SR_REPORTING LIKE BAPI_RE_TERM_SR_REP_DAT
TERM_SR_SALES LIKE BAPI_RE_TERM_SR_SL_DAT
TERM_SR_PEAK_SALES LIKE BAPI_RE_TERM_SR_PS_DAT
TERM_SR_RHYTHM LIKE BAPI_RE_TERM_SR_RH_DAT
ACT_DEPOSIT LIKE BAPI_RE_ACT_DEPOSIT_DAT
PARTNER LIKE BAPI_RE_PARTNER_DAT
OPTION_RATE LIKE BAPI_RE_OPTION_RATE_DAT
OBJECT_REL LIKE BAPI_RE_OBJECT_REL_DAT
MEAS_CN LIKE BAPI_RE_MEAS_CN_DAT
CONDITION LIKE BAPI_RE_CONDITION_DAT
RESUBM_RULE LIKE BAPI_RE_RESUBM_RULE_DAT
STATUS LIKE BAPI_RE_STATUS_DAT
EXTENSION_IN LIKE BAPIPAREX
RETURN LIKE BAPIRET2
TERM_WITHHOLDING_TAX LIKE BAPI_RE_TERM_WT_DAT
TERM_WITHHOLDING_TAX_ITEM LIKE BAPI_RE_TERM_WT_ITEM_DAT
COSETTLE_RULE LIKE BAPI_RE_COSETTLE_RL_DAT
TERM_PAYMENT_SPLIT LIKE BAPI_RE_TERM_PYSPLIT_DAT
Your answers are highly appreciated ..
Srinivas.Hi Srinivas,
To Load Contract, you need to have higher Hierarchy object.
In Real Estate master data flow is some thing like this,
Business Entity (BE)
Building (BU)
Property (PR)
Rental Unit (RO)
Contract (CN)
BU and PR are at same level, Generally PR are used for Lease-In contract where vendors are used.
Now coming to your question,
You can Assign contract to any of Higher Hierarchy (BE, BU,PR,RU) it depends on the client requirement and Desgin.
IF you are working on Lease-In contract, (General Solution)
Create BE
Create PR and attached to BE
Create CN for PR
If you working on Lease-Out contract (General Solution)
Create BE
Create BU assign it to BE
Create RU Assign it to BE
Create CN for RU
Note:- In RE Classic you have lease-out and lease-in contracts seperately but when it comes to Flexibel Real Estate you have only contract and you differentiate it with Contract Type.
It Depends upon how your are giving input file to BAPI It can either
1. Tab Delimited Text file or
2. Excel File.. Etc
Below is sample format (Tab Delimited) input format for BAPI
XXX\000XXX0200011,1,500,100
XXX\000XXX0200011,2,CONTRACT,29991231,,20090101,20090101,,,6,0005750200011
XXX\000XXX0200011,3,,
XXX\000XXX0200011,4,,,,,,,,,,,,,,,,,08000290
XXX\000XXX0200011,5,,,,,1,1,,,,,0,1,0,
XXX\000XXX0200011,6,08000290,TR0600
XXX\000XXX0200011,7,IM,500/10001/00000011
XXX\000XXX0200011,8,,100,IM,500/10001/00000011,,,20090101,29991231,INR,INR ,,,,,,,,,100,,,,,,100
XXX\000XXX0200011,9,,,,,,,,,,
Cheers,
Veman
Edited by: veman goli on Mar 25, 2009 3:36 AM -
Dear Friends
When I run Consumption based MRP, it creates one PR for each item, we have nearly 2000 items, most of them r having contract, is there any way i can assign contract as source to PR, insteaded of creating source list for all. So pl let me know how can i assign directly contract as a source to the PR to avoide to create more no of PR . after MRp run if it creates more PR, then its a big issue to go one by one and assign the source. Assign cotract as a sourceHi,
What Kumar says helps if you have many PRs for the SAME material.
But, if I understand your problem, you have many PRs for different materials, and you want MRP to do the source determination.
This can be done via source list maintenance; another way could be that you first create a purchase order out of all the PRs by adopting them into the Order, and only after that you do the source determination, so this is done only once for all.
Regards,
Mario -
PR with Contract Reference.
Hey MM Gurus,
I wanted to make a PR with reference to a Contract(Account assignment contract with multiple account assignment),
Unlike PO when i give the Contract in the PR Agreement Field it is not pulling all the details.I need to enter few datas like material & Plant etc.,to pull the contract.Source is assigned automatically as source list maintained.
Anyway it is not pulling the account assignment details.we need to enter it each time.
Is it possible to make the acc.***.details pulled into the PR automatically,
Being URGENT,immediate response is highly appreciable.
Regards,
KKHi KK
No, it's not possible to pull account *** details from contract in PR
Best regards
Ramki -
Hi Friends
I have nearly 8000 items, most of them having contract but no sourcelist. While MRP run i want to assign contract as a source to the P.R, insteaded of creating Sourcelist for all the materails.
Pl guide me how can i assign contract as a source for PR, any other way to assign the cotract without creating Sourcelist. Creating and maitaining the Sourcelist for all the materials is a big issues. My problem is while Everytime MRP run it creates nearly 700 PR , its a big headche to assign source to each PR. To avoide this i want to assign Contract as a source for PR.
Thanks
ShivaniHi
You can assign the source as a contract manually by clicking assign source of supply or using ME56, ME57 but not thru automatically in MRP.
System will check for the source in the following order if the source determination indicator is on for the PR
1) Quota arrangement > 2) Source list > 3) Outline agreement > 4) Inforecord
Hope it helps
Thanks/karthik
Maybe you are looking for
-
How to restore Thinkpad T43 or R52 using rescue and recovery CD's
The genuine IBM Recovery CD Set will re-install your ThinkPad T43 or R52 (listed types only) with the original pre-load factory software, including Windows XP Professional with a legal, valid license, and all the original IBM Drivers and applications
-
MediaPlayback component intermittent stuttering
I'm creating a very simple .mp3 player in Flash 8. When the user selects one of four audio files, I set the contentPath of the component instance to the .mp3's filepath. There's also a button that plays/pauses the .mp3 using the myInstance.play() and
-
[OT] Adobe Live 2007
Intenso, muy intenso. Mucho márketing de la CS3, poca chicha a nivel técnico, pero muy enriquecedor a nivel humano. Impresionante la ponencia de Dramweaver CS3 y spry de Andrés; suave pero muy bien llevada la de Dani Granatta (ddl+) de vídeo en Flash
-
Okay, so first problem is that the home hub 3 is terrible at distributing speeds, when 2 computers are being used at the same time, one isn't able to even load pictures on pages! Now onto the second part. Wired internet is 100 times slower than wirel
-
Fax screen comes up every time i try to print
Every time I try to print from my pc the send fax cover page screen pops up and when I cancel or close it my document never prints. If I go to control panel I see that my printers name has changed to have the word fax in front of it. When I try to p