Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unlock project definition

Former Member
0 Likes
1,089

Hi,

I have used the following function module (ENQUEUE_EC_PROJ) to lock the project definition. The project was locked sucessfully.

CALL FUNCTION 'ENQUEUE_EC_PROJ'

EXPORTING

mode_proj_enq = 'E' " Write mode

mandt = sy-mandt

typ = 'D' " Project Definition

pspid = gv_project_definition

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3 .

But while unlock, I have used the function module: DEQUEUE_EC_PROJ . but this function module was not UN LOCKED the project definition. Do you have any suggestions how to use this FM?

CALL FUNCTION 'DEQUEUE_EC_PROJ'

EXPORTING

MODE_PROJ_ENQ = 'E'

mandt = sy-mandt

typ = 'D'

pspid = gv_project_definition.

Thank you.

Regards

Pallavi

Hi,

I have used the following function module (ENQUEUE_EC_PROJ) to lock the project definition. The project was locked sucessfully.

CALL FUNCTION 'ENQUEUE_EC_PROJ'

EXPORTING

mode_proj_enq = 'E' " Write mode

mandt = sy-mandt

typ = 'D' " Project Definition

pspid = gv_project_definition

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3 .

But while unlock, I have used the function module: DEQUEUE_EC_PROJ . but this function module was not UN LOCKED the project definition. Do you have any suggestions how to use this FM?

CALL FUNCTION 'DEQUEUE_EC_PROJ'

EXPORTING

MODE_PROJ_ENQ = 'E'

mandt = sy-mandt

typ = 'D'

pspid = gv_project_definition.

Thank you.

Regards

Pallavi

1 REPLY 1
Read only

Former Member
0 Likes
673

I did not see anything incorrect. But, I think value of parameter typ should be 'P'. (P for ProjDef and H for WBS; the parameter is optional)