Application Development 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: 

What does SM64 Do , BDC...

Former Member
0 Kudos
117

Hi,

I want to know hat does t-code SM64 do?

It triggers an event. I want to know what sort of event does it trigger, I am making a BDC for that but am not sure for all of its functionality.I also want to know when exactly does it create an event manually...

Also in the program if the bdc executes then under which circumstances does an entry be present in SM35 and not present in Sm35 if SY-SUBRC =0, i.e no error.

Regards

Arnab.

1 REPLY 1

anversha_s
Active Contributor
0 Kudos
62

Hope this will help.

Events let you start background jobs when particular changes in the SAP system take place. When an event occurs, the background processing system starts all jobs that were scheduled to wait for that event.

http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e2a543b11d1898e0000e8322d00/frameset.htm

Events have meaning only in the background processing system. You can use events only to start background jobs.

Triggering an event notifies the background processing system that a named condition has been reached. The background processing system reacts by starting any jobs that were waiting for the event.

http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e37543b11d1898e0000e8322d00/frameset.htm

Use function module BP_EVENT_RAISE to trigger an event from an ABAP program.

Example

  • Report processing before triggering event...

  • Trigger event to start background jobs waiting for the event.

DATA: EVENTID LIKE TBTCJOB-EVENTID.

DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.

EVENTID = 'SP_TEST_EVENT'. " Event name must be defined

" with transaction SM62.

EVENTPARM = 'EVENT1'. " Optional: a job can be

" scheduled to wait for an

" EVENTID or combination of

" EVENTID and EVENTPARM.

CALL FUNCTION 'BP_EVENT_RAISE' " Event is triggered. Jobs

EXPORTING " waiting for event will be

EVENTID = EVENTID " started.

EVENTPARM = EVENTPARM

TARGET_INSTANCE = ‘ ‘ " Instance at which an event

" should be processed. Can

" generally be omitted.

EXCEPTIONS OTHERS = 1. " Exceptions include event not

" defined, no EVENTID

" exported, etc.

Regards,

anver