| Home • Tips • Tutorials • Sample Specs • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
Email a FriendWhat's New?
Contribute?What's Hot? |
Triggering Workflow on table-level eventsStep 8: Provide a Form routine as
‘CREATE_CUST_INFO’ and click on Editor Button.
Step 9: Select the ‘New Include’ and
continue.
Step 10: Write the following code in the
include program. Activate it. Activate your function group as well. FORM CREATE_CUST_INFO. ZCUST_INFO-CR_DATE = SY-DATUM. ZCUST_INFO-CR_TIME = SY-UZEIT. IF ZCUST_INFO-COUNTRY = 'IN'. DATA: W_OBJTYPE TYPE SWETYPECOU-OBJTYPE,
W_OBJKEY TYPE SWEINSTCOU-OBJKEY,
W_EVENT TYPE SWETYPECOU-EVENT.
W_OBJTYPE = 'YH355_BO'.
W_OBJKEY = ZCUST_INFO-CUSTNO.
W_EVENT = 'SENDEMAIL'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = W_OBJTYPE
objkey = W_OBJKEY
event = W_EVENT
.
COMMIT WORK. ENDIF. ENDFORM. Step 11: Go to SE11. Click on Utilities
-> Table Contents -> Create Entries.
Step 12: Enter the following detail
except Date and Time.
Step 13: Click on Save.
In
result, Date and Time will get populated and event will get trigger.
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM,
Inc. is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||