BAPI_RE_CN_CHANGE, BAPI_RE_CN_CREATE
Hi REFx Gurus,
My requirement is copy an existing contract, from a company to another company.
After copying all objects, i go to create contract with BAPI_RE_CN_CREATE, with respective transformation of all objects to the new company code.
But the enddate of the new created contract(RECNENDABS), wich field does not exist in BAPI above, is not correct.
I guess the renewall rule was not runned for new contract during activation, because the rule is not active.
Can it be activated with this BAPI ? or with BAPI_RE_CN_CHANGE ?
Any way of force the enddate for new created contract ?
The requirement is copy the contract with all old dats in new contract.
Thanks & Regards
PCA
Hi
Hope you are using 'BAPI_TRANSACTION_COMMIT' in your prog. If not you should .
Regards
Vinay
Similar Messages
-
Error while executing the function module BAPI_RE_CN_CREATE
Dear All
I was using the the function module BAPI_RE_CN_CREATE. When I am trying to execute the function module I am getting the error message u201CBusiness transaction RECN doest existu201D. While inputting the parameters for the function module I have given RECN In the input field TRANS. Requesting you to please kindly suggest.
Regards.
VaraprasadHi Varaprasad,
please try the following.
1. Create a contract manually in the system
2. Use BAPI_RE_CN_GET_DETAIL to show how the fields and structures are filled.
3. Check and change the parameters for BAPI_RE_CN_CREATE accordingly.
Hope that helps.
Regards, Franz -
How to use BAPI_RE_CN_CHANGE to insert conditions
Hi,
I need to insert conditions in a RE contract, i find out that the BAPI BAPI_RE_CN_CHANGE could do this, but it's not working, the BAPI return is OK, but no records are inserted in the cointract.
Anyone can send me the parameters that i had to pass to the BAPI ou a example code of it ?
Thanks a lot.Hello,
I have solved the problem, i'm sending a invalid parameter to the BAPI.
Now the condition is being inserted into the contract.
Thanks -
Error while creating RECN contract in BAPI_RE_CN_CREATE
Dear All
I was using the the function module BAPI_RE_CN_CREATE for creating RECN contract. When I am trying to execute the function module I am getting the error message u201CNo instance of the object type contract REFX has been created. External reference: REC<new>." in the RETURN parameter.
please guide me to overcome this problem.
Regards.
S.Saravananbadi : recn_contract
LSMW to add distribution details to General contrcat
Check if the above can help you..
Regards,
PR.
Edited by: Pathanjali Reddy on Feb 18, 2009 12:15 PM -
BAPI_RE_CN_CHANGE don't commit
Hi,
When i use BAPI_RE_CN_CHANGE it dosn't work and no change for contract.
can any one help me
thank's
BR,
AhmedHi
Hope you are using 'BAPI_TRANSACTION_COMMIT' in your prog. If not you should .
Regards
Vinay -
Need to use BAPI_RE_CN_CREATE to create an unlimited contract
Hi,
I would like to create an unlimited contract using BAPI above. I tried to change the 1st end date to 31.12.9999, but the status still show fixed term contract.
Any guys can shade some light on this?
Regards,
ZhengHello,
I have solved the problem, i'm sending a invalid parameter to the BAPI.
Now the condition is being inserted into the contract.
Thanks -
BAPI_RE_CN_CHANGE renewal term deletion
Hi experts,
Please help.. I need help in deleting the renewal item in a real estate contract. Just need to know what parameters need to be passed and changed to delete the renewal line item in transaction RECN. I have tried bdc but the screens in transaction RECN are diff in background and cannot process renewal item deletion.
A program is required to delete the renewal terms and flag the contracts for deletion. there are about 120000+ to be processed and we need to do it in background.
thank you in advance.
PauloHi
Hope you are using 'BAPI_TRANSACTION_COMMIT' in your prog. If not you should .
Regards
Vinay -
Iam trying to create FI-CA contracts...
Hi FI-CA experts,
I am trying to create a contract using FM: BAPI_CTRACCONTRACTACCOUNT_CR1 and i am passing all the relevant BP data to it.
But iam getting this 1 error:
Message class: >3
061 You cannot maintain category &1 contract accounts online
Any ideas on this.
Thanks.
Srini.Hi Srini,
I suppose you are talking about Flexible Real Estate contracts, If so, I don't know why you were using
BAPI_CTRACCONTRACTACCOUNT_CR1 BAPI innstead of that you can use
BAPI_RE_CN_CREATE for Creating contract
BAPI_RE_CN_CHANGE for changinng Contract
BAPI_RE_CN_GETDETAIL for getting the details of contract
And for classic Real Estate , I think we have standard BAPI's
Thanks
Veman -
LSMW to add distribution details to General contrcat
Hi,
I have a requirement to create an LSMW to add distribution details to a RE general contract.
I could do it through a recording but this is working only if there is one condition for the contract.
The cases where there are more than one condition, i could not record the process of selecting the desired condition.
Plesae let me know if it is possible by any way to do an LSMW for adding distribution details for contract with more than one condition.
RgdsHi Haranadh,
Even for SAP Flexible Real Estate for Version 4.7, you have BAPI
BAPI_RE_CN_CREATE
BAPI_RE_CN_CHANGE
BAPI_RE_CN_GET_DETAIL you can use according you requirment
Regarding you question,
I understood that you are added distribution to existing contract, SO you can use
BAPI_RE_CN_CREATE Bapi
You can load distribution details to contract with more than one condition also..please see example below.
my input file to BAPI is ,txt file which is format to match BAPI structure
S500\0005750200011,1,S500,100
S500\0005750200011,2,CONTRACT,29991231,,20090101,20090101,,,6,0005750200011
S500\0005750200011,3,,
S500\0005750200011,4,,,,,,,,,,,,,,,,,08000290
S500\0005750200011,5,,,,,1,1,,,,,0,1,0,
S500\0005750200011,6,08000290,TR0600
S500\0005750200011,7,IM,S500/S50001/00000011
S500\0005750200011,7,IM,S500/S50001/00000012
S500\0005750200011,7,IM,S500/S50001/00000013
S500\0005750200011,7,IM,S500/S50001/00000014
S500\0005750200011,8,,,,,,,,,,,,,,,,,,08000290
Here
a. S500\0005750200011 is the object number..which will constant through out you record for given contract
b. 1
2
3
4...are index, every index represents 1 stucuture in BAPI
and if distribution details is 7 structure, repeat it depends upon you conditions.
Thanks
Veman. -
Error while uploading the Real Estate Contract using IDOC & BAPI
Hi All ,
I am trying to uploading the real estate contract data by using LSMW IDOC & BAPI methods .
In IDOC method I have used the Basic type as BUS1505_CREATE01 and Message type as BUS1505_CREATE. I have passed all mandatory fields then also i am unable to create the CONTRACT but and i am able to create CONTRACT using the bapi BAPI_RE_CN_CREATE by passing the values in SE37 and i am able create CONTRACT manually in transaction code RECN . Can any body know the reason .
In BAPI method I have used the Business Object BUS1505 ,Method CREATE ,Message type BUS1505_CREATE and Basic type BUS1505_CREATE03 . I have passed all the mandatory fields then also i am unable create the CONTRACT But with the same fields i am able create CONTRACT manually in transaction code RECN and i am able to create CONTRACT using the bapi BAPI_RE_CN_CREATE by passing the values in SE37 .
Regards
SrihariHi All,
I was passing blank entries so the above errors were coming. I removed those blank entries and now Im getting error like .
"Individual renewal rule does not contain any extension periods"
"No instance of object type ContractREFX has been created. External reference: REC <NEW>'. -
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 -
Uploading of contract with adjustments.
Dear all.
i was using the function module BAPI_RE_CN_CREATE to create the contract . the contract is uploading fine with out the adjustment details.now the issues is when i have slected the adjustment rule FREECUS which is avilable in the system . The conditionis not gettting adjusted. and also the condition is not getting approved even though i have slected the option in the BAPI accordingly. can any body suggest how to upload this contract with adjustments.
Regards.
Varaprasad.Hi Varaprasad,
you can use BAPI_RE_CN_CREATE to upload adjustment rules also (parameter TERM_ADJUSTMENT). But it is not possible to upload results of former adjustments of old system. In this case you have to adjust adjustment rules accordingly so that it is possible to continue adjustments after uploading of contracts.
Regards, Franz -
Good day Gurus,
I implemented BAPI_RE_CN_CREATE inside a BADI.
The syntax that I use is CALL FUNCTION BAPI_RE_CN_CREATE IN BACKGROUND TASK. I used "IN BACKGROUND TASK" because without that, the function keeps on looping. After adding the command, the BAPI works. Here is my question, how can I retrieve immediately the contract number that the BAPI created? I hope you can help me.
Thanks in advance.
EllyHi Kesav,
We put the BADI in AFTER_SAVE Method. The code is like this......
if sy-ucomm = 'TRANS_NEXT'.
CALL FUNCTION BAPI_RE_CN_CREATE
importing
endif.
When the the system reach at CALL FUNCTION part, it does'nt execute it and it jumps back to "IF" condition part. We look for solution in the forum and someone suggest to put "IN BACKGROUND TASK" and we didi that. It works actually. But after excuting the CALL FUNCTION and search the contract that was save in VICNCN table, it was not updated yet.
OUr scenario is that we want to know what is the contract number being created after the CALL FUNCTION module because we have another requirement that we will use that field after creating the contract.
Elly -
Regd: Problem in REFX RO and CN
Hi REFX experts,
Iam running the legacy files for RO and CN contracts.
Iam running the same file multiple times.
In this case how to restrict the creation of RO and CN objects mutiple times. Once this objects are created next time if i run the same legacy file it should not create again . It should give some error message it already exist like that.
Iam using BAPI: BAPI_RE_RO_CREATE and BAPI_RE_CN_CREATE.
Is there any option to use "BLOCKING" or "LOCKING" for contracts ?
Any solid suggestions and solid Inputs from experts when you run the same legacy file again and again?
Thanks in advance.
Srini.Hi Srini,
you can do this by writing small piece of code in LSMW.
For Rental Unit and Contract screens you have fields , Old Rental Number and Old contract number, you need to give input into these fields and in LSMW
Write small code, where OLD Rental number or Old contract repeat then skip it.
Example for RU
SELECT SINGLE SMENR SALTNR
FROM VIBDRO
INTO IT_VIBDRO
WHERE SALTNR = SRC_BP_RE_RENTAL_OBJECT-RENTAL_UNIT_OLD_SYSTEM
AND BUKRS = 'XXXX'
AND SWENR = 'XXXXXXXX'.
IF SY-SUBRC = 0.
SKIP_TRANSACTION.
ENDIF.
ou should right this code in BEGIN_OF_TRANSACTION_
Thanks
Veman -
BAPI / FM to Create Contract (Real Estate RE)
Hi,
Is there an available BAPI or Function module which will allow us to create contracts (RE module) without going through tcode FOIM / FOIO? These 2 tcodes are tedious to use manually.
Hope to hear a response from the experts here soon. Thank you in advance!Hi Dennis,
Actually I'm not an expert in RE but I'm an expert searching in SE37
Could this function module be useful for you?
BAPI_RE_CN_CREATE
Cheers,
Ana Luisa.
Edited by: Ana-Luisa Sixtos on Jul 29, 2010 10:06 AM
Maybe you are looking for
-
How to get these substrings based on the string entered
Hi friends i want the substring entered in the string the string is something like this: 1234,3653,7684,3254,8777,987,234 now i want the substrings between commas can some one help me with it pls in the first substring i need 1234 in the second i nee
-
How to get rid of 7.0.3 and get back to 6.5.2
I bought QuickTime Pro 6 early last year and have since been - mindlessly, I admit - routinely accepting the automatic upgrades to QuickTime. It never occurred to me that an upgrade would reduce the functionality of the product. I don't use QT much s
-
Final Cut Pro keeps quitting on me!!
As I'm trying to import an audio track from a CD into Final Cut, the program 'unexpectedly quits'. How do I import music for Final Cut to stopping shutting down on me?!?
-
Calculating discount on invoice lines
Hello All, I am having a little trouble accuratley calculating a discount percentage for line items on my invoice report, generally the calculations work ok however on the odd occasion where oracle has rounded the selling price in order management i
-
Installing indesign : asking for photoshop disk
after a hard drive crash, i'm trying to reinstall all my programs. i've successfully installed photoshop and illustrator but during my indesign cs3 install (downloaded from the adobe.com) it asks me to insert my photoshop cs4 disk. since i've purchas