cancel
Showing results for 
Search instead for 
Did you mean: 

Script Logic - Check Work Status

Former Member
0 Kudos

Hi,

I am using the standard process chain "/CPMB/DEFAULT_FORMULAS_LOGIC" to trigger Script logic file.

I have created some logic to clear and copy data to a targer category. I want to check the workstatus of the target category and if it is locked i want to clear/copy to fail.

I am not sure how to go about this? I was thinking of adding the following but that is just a guess!

TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)

any advice would be helpful.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Hi Leo,

Script logic will not affect records closed by workstatus. You don't need to do anything!

But you can't check work status in script logic.

Vadim

Former Member
0 Kudos

Hi,

Ideally did want an option for the user to select option to check whether the copy should happen if the data had been locked. Have done this via the standard COPY package.

Can this be done with the script logic e.g. using paramters in the package?

Or if you create a script logic file does it always check the workstatus?


thanks

former_member186338
Active Contributor
0 Kudos

I have already answered "if you create a script logic file it always check the workstatus"!

In script logic you can't write to the closed by work status scopes! No way!

Vadim

Answers (1)

Answers (1)

former_member200327
Active Contributor
0 Kudos

Yes, the code you "guessed" should work for the standard COPY Package. Additionally you have to put similar code for step APPEND_LOAD and remove RADIOBUTTON prompt.

Regards,

Gersh