cancel
Showing results for 
Search instead for 
Did you mean: 

Actions

Former Member
0 Kudos

Hello,

I'm using the actions to print a report in complaints.

When this action is triggered and the reprot is printed, I would like to trigger a new action to change the status automatically to 'report printed'.

Any idea how I can do this?

Thanks in advance,

Regards,

Frédéric

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use FM CRM_ACTION_EXECUTE to trigger actions.

Alternate, check standard program RSPPFPROCESS to trigger PPF actions.

Thanks

Kamal

Former Member
0 Kudos

Hello Kamal,

Thanks for the reply but what I need is a way to automtically change the status to 'report printed' when the action to print the report is executed.

Any idea?

Regards,

Frédéric

Former Member
0 Kudos

Hi Frederic,

I assume that 'report printed' is a User Status. Once your Action is triggered , call function CRM_STATUS_SET_INTERN to set the Status.

Regards,

liju

Former Member
0 Kudos

Hello,

Thanks for the reply.

Yes 'report printed' is a User Status.

I know which function to use to change a user status.

What I do not know is how to detect that my report is printed (action executed) and then automatically change the status.

Regards,

Frédéric

Answers (1)

Answers (1)

former_member927251
Active Contributor
0 Kudos

Hi Frederic,

Instead of action triggering a report, trigger a BADI implementation for the action.

Follow the following steps:

1. Create a BADI implemetation for the definition EXEC_METHODCALL_PPF in SE19.

2. Write the report code in that BADI implemetation.

3. If you need to get some inputs from user as selection screen parameters use the function module 'POPUP_GET_VALUES'

4. After doing everything just before setting the rp_status = 1(we set this to indicate the action was successful), call the function module to set the status.

5. You now need to configure your action profiles, action definitions in SPRO.

<b>Reward points if it helps.</b>