on 05-15-2009 7:21 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yup , thanks for yr answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.