Example: sapgui_call_method_of_active_objectMethod and Property Functions

Invokes a method of the active object.

int sapgui_call_method_of_active_object( const char *method_name, char *arg1, ...  char *argn, [optionalArguments,] LAST );
method_nameThe name of the SAP method to invoke
arg1..argnArguments to the method.
optionalArgumentsOptional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

The function sapgui_call_method_of_active_object invokes the method method_name of the current active object selected by sapgui_active_object_from_parent_method or sapgui_active_object_from_parent_property.

args are the arguments that are passed to the control's method. See SAP documentation for discussion of object methods and their arguments.

Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.


You can parameterize all string (char type) arguments.