BAPI for Service contract
Hi All
Have anybody used BAPI_CUSTOMERCONTRACT_CHANGE.
I need to change the unit costing in the contract.
To go to unit costing in VA42 transaction, we have to use
(ctrl+f7 or Extras ->Costing)
Please let me know, if anybody used any other BAPI to add ot change the exisiting entries
Regards
Madhan Doraikannan
Hi Madhan,
I have used this BAPI and you can use this for costing all you need to do is pass the value and flag 'X' that needs to be changed in the BAPI. Please find the code I have used.
CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
EXPORTING
salesdocument = i_salesdoc_in-vbeln
contract_header_in = i_contractheaderc
contract_header_inx = i_contractheaderu
SIMULATION = C_X
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
TABLES
return = i_bapiret
contract_item_in = i_contract_items1[]
contract_item_inx = i_contract_itemsx[]
partners = i_partner[]
PARTNERCHANGES =
PARTNERADDRESSES =
conditions_in = i_condition[]
conditions_inx = i_conditionu[]
CONTRACT_CFGS_REF =
CONTRACT_CFGS_INST =
CONTRACT_CFGS_PART_OF =
CONTRACT_CFGS_VALUE =
CONTRACT_CFGS_BLOB =
CONTRACT_CFGS_VK =
CONTRACT_CFGS_REFINST =
contract_text = i_contract_text[]
contract_data_in = i_contract[]
contract_data_inx = i_contractu[].
CONTRACT_KEYS =
EXTENSIONIN =
IF sy-subrc EQ 0. "#EC *
- Commit the BAPI which will finally create Service Contracts
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
Regards,
Tim
Similar Messages
-
How to create service items and sales order for service contracts.
Hi,
I have created item using Purchased Item template and one more item(service item) using service /warranty program template. Then I have used these items to create sales order with service item in it and closed that order , but Iam not getting this order in service contracts. Is this right way to create sales order for service items. I
item name:- personal_computer
copied from purchased order template. service is enabled and install base is checked and enable service coverage is enabled.
item name:- service_item
copied from service /warranty program template
service is selected to inactive,
service type: service
duration: 1 year
template: Gold
and saved the item.
Then I have used these two items in sales order for service contracts. But that sales order is not hitting in service contracts. Is there any error with item creation.
Thanks,
Bharat G.Following SAP Notes to be referred for Service Tax:
1. 778976 u2013 Service Tax and Ecess on Service Tax
2. 1032265 - SEcess on Service Tax
Regards
AK -
BAPI for Service order creation
Hi ,
Please tell me if any Bapi for service order creation , T-code : IW31
regards,
PrakashHi Prakash,
Have a look on the following BAPIs:
BAPI_ISUSMORDER_CREATEMULTIPLE - Create Service Orders
BAPI_ALM_CONF_CREATE - Create confirmation for maintenance/service order
WTY04_CREATE_SERVICE_ORDER - Create Service order via function module.
Hope this will help.
Regards,
Nitin. -
How do I "run" an ldt file for Service Contracts?
Ref. BugNo. 4450150
How do I “run” an .ldt file for Service Contracts?
Do I use FNDLOAD and if so is this the way to do it
FNDLOAD apps/apps_password 0 Y UPLOAD @FND:OKS_TOP/patch/115/import/US/okskfinv.ldt
ThanksSee Note:142483.1
Subject: How to Define the ORACLE_SERVICE_ITEM_FLEXFIELD -
BOM IN CRM Only for Service Contract
Hello
We want have a BOM explosion working in CRM for service contracts
Here are the details :
We have replicated the materials from ECC to CRM. We are not maintaining any BOMu2019s in ECC.
The idea is that we maintain the BOM Structure in CRM only, as we donu2019t want to have the Items as a billable item in a position, only for information purposes (or later on for metering)
We have maintained the product category for the header product in CRM so we are able to maintain depended components
(Relationship type SCDEC S Dependent Components (DC) )
Not we are able to assign dependent component to the header material
Item category groups:
We understand that the standard item category groups that should be used are ERLA for the header product and LUMF for the Item product.
In order to support the same functionality for the given item category group , maintained at the product level in ECC we copied the same setting for the item category group from the standard to
our settings.
Standart
Tx type Item Cat Group item category structure scope
TA ERLA TAQ A single level Explosion of Structured Product
TA LUMF TAP A single level Explosion of Structured Product
So we have copied TAQ to ZTAQ and TAP to ZTAP.
ZS01 is a copy of SC (service contract)
Tx type Item Cat Group item category structure scope
ZS01 ZLEI ZTAQ A single level Explosion of Structured Product
ZS01 LEIS ZTAP A single level Explosion of Structured Product
But when we use a header product in the service contract, we cannot see the BOM is exploding.
We have also created some products in CRM with exactly the same Item Category groups as the standard and when we create a standard order (TA) in CRM, the BOM is NOT exploding.
Questions:
Is it possible to have the BOM setup only in CRM, like we try to do it?
Is it possible to use our own item category groups in CRM more is the functionality only working with ERLA and LUMF?
Is it possible to use the BOM Explosion in Service contracts as well ?
What steps are we missing to get the BOM explosion in CRM ?
Thank you for your help
Frank
Edited by: Frank Foerstner Foerstner on Dec 9, 2011 12:34 PMThanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
break-point.
*DATA : i_ce_goodsmovement TYPE REFERENCE
ALM_ME_CUSTOMER_ENHANCEMENT.
DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
*DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
CALL METHOD lr_badi_goods_movement->create
EXPORTING
ce_goodsmovement = ce_goodsmovement
IMPORTING
user_data = ls_user_data
custom_user_data = ls_ce_user_data
goods_movement = goods_movement
changing
return = return[].
CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
TABLES
return = return.
endmethod.
Please help me to get the data in this method. How do I call this. -
BAPI for Service Orders Confirmation
Can somebody please provide BAPIS for Service Orders Confirmation and other related BAPIS
Thank youTo create service confirm order use "BAPI_BUSPROCESSND_CREATEMULTI".
Regards,
Animesh -
Automatic invoice generation for service contract
Hello,
I want to create the automatic invoicce generation for service contract based on the order.
whenever i raise service contract order system should create the invoice automatically.
could please let me know the settings?Hi JP Reddy
You can schedule VF04/VF06 for your requirement, such that VF06 will run every 15/30 minutes and will generate billing document for your contracts automatically.
Else go for Z extension development which will assign as output type to your contract and once triggered it will create invoice.
try and revert -
Conditions for service contract
hello,
I am creating service contract containing one line item ( i.e.activity) and no. of services in that line item. in the change mode i wanna put some condition on the activity level but not on service code level, but system is not showing the condtion in change mode. for activity level . pls adviceHi,
For service contract you can not assign any condition type.
You can assign at service level.
Hope it will help you.
Regards,
Manish Agarwal -
How to get price list line id for service contract line(subline)
Does some one know how to find a price list line id for service contracts line (sub line)?
There is actually a column in table okc_k_lines_b which is called price_list_line_id, but it looks like it is never used (all columns values are NULL). I have tried to investigate reprice API's which are used in contracts authoring form, but they are too huge and it didn't lead to nay result. There is a way (bad hack), by calling OKS_QP_INT_PVT.COMPUTE_PRICE it is possible to get price list line id by which contract line is priced, it would be kina fine if I would need to find line id for some rows, but it wont work for thousands!
Is there some proper way how could I get price list line id by which is service contract line priced?Hi,
Check out the following query that gets the price_list_id on subline_level and more.
The price_list_Id is stored as a rule.
SELECT
chd.contract_number
, par.party_number
, par.party_name
, ldf.pas_nummer
, ldf.pas_houder
, rh.object1_id1 hdr_price_list_id
, rsl.object1_id1 sl_hdr_price_list_id
, pld.parkeerterrein
, msi.segment1
, sit.description
FROM
okc_k_headers_b chd
, okc_k_lines_b clt
, okc_k_lines_b cls
, okc_k_lines_b_dfv ldf
, okc_k_items cit
, okc_rule_groups_b rgh
, okc_rules_b rh
, okc_rule_groups_b rgt
, okc_rules_b rtl
, okc_line_styles_b lst
, okc_rule_groups_b rgs
, okc_rules_b rsl
, okc_line_styles_b lss
, qp_list_headers_b plh
, qp_list_lines pll
, qp_list_lines_dfv pld
, qp_pricing_attributes pat
, mtl_system_items_b msi
, mtl_system_items_tl sit
, hz_cust_accounts cac
, hz_parties par
WHERE
rgh.chr_id = chd.id
AND rh.rgp_id = rgh.id
AND rh.jtot_object1_code = 'OKX_PRICE'
AND cac.cust_account_id = rtl.object1_id1
AND par.party_id = cac.party_id
AND clt.chr_id = chd.id
AND clt.lse_id = lst.id
AND lst.lty_code = 'SERVICE'
AND rgt.cle_id = clt.id
AND rtl.rgp_id = rgt.id
AND rtl.jtot_object1_code = 'OKX_CUSTACCT'
AND cls.cle_id = clt.id
AND cit.cle_id = cls.cle_id
AND cit.jtot_object1_code = 'OKX_SERVICE'
AND cls.lse_id = lss.id
AND lss.lty_code = 'COVER_ITEM'
AND cls.id = rgs.cle_id
AND rgs.id = rsl.rgp_id
AND rsl.jtot_object1_code = 'OKX_PRICE'
AND plh.list_header_id = rsl.object1_id1
AND plh.list_header_id = pll.list_header_id
AND pll.rowid = pld.row_id
AND pat.list_header_id = pll.list_header_id
AND pat.list_line_id = pll.list_line_id
AND cit.object1_id1 = pat.product_attr_value
AND cit.object1_id2 = chd.authoring_org_id
AND msi.inventory_item_id = cit.object1_id1
AND msi.organization_id = cit.object1_id2
AND sit.inventory_item_id = msi.inventory_item_id
AND sit.organization_id = msi.organization_id
AND sit.language = userenv('LANG')
AND cls.rowid = ldf.row_id
Hth,
Martin
Edited by: mvdons on 4-sep-2008 2:13 -
Mile stone billing for service contract
Hi gurus,
can you help me for the following:
i want to configure mile stone billing for service contract in my client business process,
can any one send me the complete configuration process steps for mile stone billing.
I'll reward you full marks,
Thanks in advance
nitchelHiya...
Billing Plan for Milestone Billing
Milestone billing means distributing the total amount to be billed over multiple billing
dates in the billing plan.
As each milestone is successfully reached, the customer is billed either a percentage of
the entire project cost or simply a pre-defined amount.
During sales order processing, the system determines from the item category whether a
billing plan is required and, if so, which type of plan
The type of billing plan that is determined at this point is set up in Customizing and
cannot be changed in the sales document.
Billing plans for periodic billing and milestone billing plans for project-related milestone
billing have different overview screens so that you can enter data relevant to your
processing.
For example, for milestone billing, you must be able to enter data to identify the
individual milestones.
IMG configuration requires :-
1. Maintain billing plan types for milestone billing in OVBO.
2. Define date description in SM30 - V_TVTB.
3. Maintain Date Category for Billing Plan Type IN OVBJ.
4. Allocate date category in SM30 - V_TFPLA_TY.
5. Maintain date proposal for Billing Plan Type in OVBM.
6. Assign Billing Plan Type to Sales Documents Type in OVBP.
7. Assign Billing Plan Type to Item Categories in OVBR.
8. Define rules for determining the date in OVBS.
Milestone billing is typically used for billing projects, such as plant engineering and
construction projects. Such projects often include a series of milestones that mark the
completion of different stages of the work. In the SAP R/3 System, milestones are defined
in a network along with planned and actual dates for the completion of work. The milestones
are also assigned to the billing dates in the billing plan.
Each milestone-related billing date is blocked for processing until the Project System
confirms that the milestone is completed.
Delivery-relevant order items for which a milestone billing plan applies are billed on the
basis of the requested delivery quantity and not on the total of the confirmed quantities.
The connection between the project and the sales document item is made in the individual
schedule lines of the item. Each schedule item can be assigned to a network in a project.
To display the project-related data for a schedule line, proceed as follows:
In one of the overview screens of the sales document, select
1. Item -> Schedule lines.
2. Mark the schedule line and select Procurement details.
The following figure shows an example of milestone billing where only the Contract have
been billed :
Order Item Turbine 100,000
Billing Plan
Billing date Description % Value Billing Block Milestone Billing Status
01-10-94 Contract 10 10,000 - x x
01-03-95 Assembly 30 30,000 x x
01-04-95 Maintenance 30 30,000 x x
01-05-95 Acceptance 30 30,000 x x
01-06-95 Final invoice .. .. x
Network/Activities
Milestone Estimate Actual
Assembly 01-03-95 01-03-95
Maintenance 01-04-95
Acceptance 01-05-95
For each billing date in a milestone billing plan, you can specify whether the billing
date is:
1. fixed
2. always updated with the actual date of the milestone
3. updated with the actual date of the milestone, if the date is earlier than the
planned billing date for the date
Keep Sapping
Regards -
Resuls Analysis for Service Contracts - Revenue in Excess of Billing.
Dear Experts,
We are running RA for Service Contracts.
COntract period is 01/11/2010 to 30/10/2011. Montlhy Value is 1000, Yearly value 12000
1) The Billing Plan is Quarterly Billing (deferred).If we Run RA in KKA3. Planned revenue showing is 12000 / 4 quarters = 3000 .
If we Run RA in KKA3 , the planned revenue shown is 3000 instead of 12000.
2) We have incurred some cost for the month of November 2010. If we RUN RA on KKA3 for the month of november 2010 , we should get 1000 as Actual Revenue and 2000 Should be shown in Revenue in Excess of Billing(REB). But it is not showing as Revenue in Excess of Billing.
Please help.
Regards,
Shareeq
Edited by: K M AHAMED SHAREEQ HUSSAIN on Oct 28, 2010 2:55 PM
Edited by: K M AHAMED SHAREEQ HUSSAIN on Nov 4, 2010 4:18 PMDear Experts,
The Planned Revenue problem is solved now. We will have to run a Program(OSS Note). The Revenue in Excess of billing is there. Please help.
Regards,
Shareeq
Edited by: K M AHAMED SHAREEQ HUSSAIN on Nov 7, 2010 4:32 PM -
RA for Service Contracts.
Dear Experts,
We are running RA for Service Contracts.
The Contract period is 01/11/2010 to 30/10/2011. The Montlhy Value is 1000, so the Total value of the Contract is12000
The Billing Plan is Quarterly Billing (deferred). We have incurred some cost for the month of November 2010. If we RUN
RA on KKA3 for the month of november 2010 , we should get 1000 as Actual Revenue and 2000 Should be shown in Revenue
in Excess of Billing(REB). But it is not showing as Revenue in Excess of Billing.
Please help.
Regards,
ShareeqPatch Updated.
-
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 -
Fm or bapi for service order confirmation (iw41)
hi,
Can you please tell me a fm or bapi for service order confirmation in iw41HI dido...
you can use CRM_ORDER_MAINTAIN.
you can process any document type you want
regards
Marco -
BAPI for getting contract details
Hi,
I need a BAPI for getting contract details. Please let me know if there is any such BAPI.
Regards,hi,
Check this FM FI_DOCUMENT_READ
Maybe you are looking for
-
I am using a 4th gen ipad with an epson Xp400 air printer my ipad was able to find printer but now it cannot. Printer says wifi setup ok. Do not understand why it can't find printer. Never did work right away always have to restart ipad or do wifi se
-
Using in clause having more than 4000 chars in a VO.
Hi Experts, JDEV version 11.1.1.5.0 I have a problem passing a bind variable having length of more than 4000 chars in ADF for use in a IN clause. For e.g the query is select user_id from employees where user_name in ( SELECT column_value FROM TAB
-
Retriving archived material doc in MB51
Hi All, I have archived few material documents, I am able to retrive them using the T.code MB51, here there are 3 check boxes at the bottom of the screen. 1. Data base 2. short documents 3. Reread short docs in Archive. 1.can any one let me know from
-
File to RFC problem- data is not inserting into ztable in R3 system
Hi i have done File to RFC scenario which picks data from flat file and inserts into ztable via RFC in R3. but while testing my scenario everything is successful in XI monitoring (Successful flag in MONI and RWB) and in auditlog message status is DLV
-
PSEv4: Templates for creating album pages
My wife and I just got PSEv4, and have been having fun with the creation tools --specifically the photo album page creator. But (there's always a but)... We're already feeling like the templates available are limiting, and would like to have more opt