cancel
Showing results for 
Search instead for 
Did you mean: 

[CHARM] Changing User Status with action

Former Member
0 Kudos

Hi Experts

How can I change user status while exeucting action? (I created new TR-TYPE based on SDHF)

I want to do like when performing transport to Test, status is set to "in Test".

I added "USER_STATUS" parameter in processing parameters of transport action; however, status does not change although transport action is performed.

What else do I need to check?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

raguraman_c
Active Contributor
0 Kudos

Hi,

You should use HF_SET_STATUS.

In this if you had given correct status for USER_STATUS. IT should work.

Feel free to revert back.

-=-Ragu

Former Member
0 Kudos

Hi Raguraman

Thank you for your reply.

> You should use HF_SET_STATUS.

> In this if you had given correct status for USER_STATUS. IT should work.

Yes, I know HF_SET_STATUS changes user status. What I want to do is to change

user status when HF_EXECUTE_ACTION IMPORT_PROD is executed.

It this possible?

As far as Iknow, one action definition can contain only 1 method call. So I can not create

action definition like. (Am I right?)

Z_action_definition

Method call HF_EXECUTE_ACTION IMPORT_PROD

Method call HF_SET_STATUS TJ30 E0005

Regards

Former Member
0 Kudos

Hello,

this is possible (this is also how the standard sap process is working) but it works the other way round

Example of import of ur.gent correction into production

You set the status E0006 with HF_SET_STATUS

this will trigger the IMPORT_PROD following the SAP standard entry), you may even trigger many actions here

SDHF SDHFHEAD E0006 10 IMPORT_PROD

the status will only be set if IMPORT_INTO_PROD_OK condition is met (see standard entry)

SDHF SDHFHEAD E0006 10 IMPORT_INTO_PROD_OK SOCM_ACTION_LOG

If you want to change or add lines the set-up is made in the SPRO .....Change transaction types -> Actions in Change request Management

I hope it helps

best regards Xavier