cancel
Showing results for 
Search instead for 
Did you mean: 

Regd: Problem in REFX RO and CN

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Yup , thanks for yr answer