cancel
Showing results for 
Search instead for 
Did you mean: 

Locking of a Contract in RE-FX

0 Kudos

Is there a BAPI that can lock a contract (Lock Master Data, Lock Account Assignment, Lock Planning) after it has been created through the RECN transaction?

Basically, the requirement is that a contract entered through the RECN transaction, once activated will go through a Approval Workflow. During that process the contract should only be viewable in display mode.

Thanks a lot in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amlan Bardhan,

You can lock the contract, after creating please use BAPI

BAPI_RE_CN_CHANGE

In this BAPI you need to pass the Business Transaction value (TRANS) -

Thanks

Veman

0 Kudos

Hi Verman,

Thanks a lot for your reply. I did try the BAPI that you have suggested and try with the Business Transaction "PSSM", which after executing came back with a message "The status of the contract was changed".

However I can still pull up the same contract in RECN in change mode and then make changes and save..

My requirement is that once the contract is locked through the BAPI in workflow, no one should be able to edit it until the contract is unlocked from within workflow.

Any further input would be greatly appreciated.

Thanks

Amlan

Answers (1)

Answers (1)

0 Kudos

I had to go with a BDC session for unlocking the contract. Everytime I called the BAPI with the unlocking transaction code, I would get the message "The contract is locked and cannot be changed"..The BDc works fine though

Amlan