A method is typically called from a task on some flow, or a single step task. There is however another way to call your method. What has to be taken into account when calling a method is that the parameters a method requires or proposes need to be passed on to the "caller" via the method container. So the actual parameters to using macro
Coding example for the creation of an event, which also places some data on the event container to be passed on to the flow (or task). The object key of the business object is supplied (required) in this case with a hardcoded purchase order number. Where the object key consists of more than one values, they should be concatenated together into the
OBJKEY field (field length should be takeninto account, so do not use the
CONCATENATE statement untested).