Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Understanding BEFORE METHODS

Friends,

Does anybody can explain to me how does a BEFORE/AFTER/SECONDARY METHOD works ?

Why it don't has any binding ?

Can I send the WI_ID to the method ?

replied

<b>Before Method</b>

A synchronous function that is executed before the task's method and on the same screen, within the execution of a dialog work item or background work item.

The method can be any object method in the Business Object Repository. It does not have to refer to the same object as the task's method and it must not create this object.

If the work item is executed several times the before method is also executed several times.

<b>After Method</b>

A synchronous function that is executed after the task's method and on the same screen, within the execution of a dialog work item or background work item.

The method can be any object method in the Business Object Repository. It does not have to refer to the same object as the task's method. If the work item is executed several times if the terminating event has not occurred, the after method is also executed several times.

<b>Secondary Method</b>

A transaction that is executed in addition to the main method in the execution of a dialog work item or a background work item.

A secondary method is connected to the leading method of the step, typically to display additional information. It can be any object method defined in the Business Object Repository.

If the work item is executed several times (for example, the terminating event has not occurred), the secondary method is also executed several times.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question