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

How to trigger an event in the program

Former Member
0 Likes
509

Hi,

I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.

In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.

So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.

Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.

And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.

Please help me. Thanks in advance,

Best Regards,

Paddu.

1 ACCEPTED SOLUTION
Read only

former_member435013
Active Participant
0 Likes
454

Hello Paddu,

have a look at tables

- btcsev, btcsed (system events)

- btcuev, btcued (user events)

and use function BP_EVENT_RAISE.

kind regards

Walter Habich

Hi,

I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.

In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.

So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.

Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.

And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.

Please help me. Thanks in advance,

Best Regards,

Paddu.

1 REPLY 1
Read only

former_member435013
Active Participant
0 Likes
455

Hello Paddu,

have a look at tables

- btcsev, btcsed (system events)

- btcuev, btcued (user events)

and use function BP_EVENT_RAISE.

kind regards

Walter Habich