cancel
Showing results for 
Search instead for 
Did you mean: 

what is generic function....?????

Former Member
0 Kudos

I have heard somewhere IfWithoutElse is generic function.how?????

Accepted Solutions (1)

Accepted Solutions (1)

aashish_sinha
Active Contributor
0 Kudos

hi,

is it ?

generic function

Generic functions are functions for which the method executed depends on the class of its arguments. A generic function is defined in terms of methods which describe the action of the generic function for a specific set of argument classes called the method's domain

Generic functions are true functions that can be passed as arguments, returned as values, used as the first argument to funcall and apply, and otherwise used in all the ways an ordinary function may be used.

A name can be given to an ordinary function in one of two ways: a global name can be given to a function using the defun construct; a local name can be given using the flet or labels special forms. A generic function can be given a global name using the defmethod or defgeneric construct. A generic function can be given a local name using the generic-flet, generic-labels, or with-added-methods special forms. The name of a generic function, like the name of an ordinary function, can be either a symbol or a two-element list whose first element is setf and whose second element is a symbol. This is true for both local and global names.

The generic-flet special form creates new local generic functions using the set of methods specified by the method definitions in the generic-flet form. The scoping of generic function names within a generic-flet form is the same as for flet.

Hope this definition will help you in sorting out which is generic function :).

regards

Aashish Sinha

PS : reward points if helpful

Answers (5)

Answers (5)

Former Member
0 Kudos

u all r correct!!!....

now i got what is generic what is generating function...

thanx to all and sdn....

nikhil_bose
Active Contributor
0 Kudos

hi sam,

I am not concluding anything here:

read these<i>

The ifWithoutElse assin the then part to the target if the condition is true.

The Else value of ifWithoutElse depends on whether the result of this function is transferred to a target field or to a function. The way the standard function ifWithoutElse() operated was predefined in the ELSE case.

Now, if the value resulting from this function is to be transferred to another function in the target-field mapping, you have the option of setting the ELSE value in the function properties.

</i>

http://help.sap.com/saphelp_nw04/helpdata/en/5d/db0e83e8e74202a5bff527055ab7e5/content.htm

regards,

nikhil

Former Member
0 Kudos

Hi,

IfWithoutElse is not a generic function.

Generating Functions

The standard functions of the Constants function category do not have an input value. Therefore, they generate a value for a target field instead of taking it from a source field. In addition to these functions, all functions (regardless of whether they are standard or user-defined functions) that do not have input values are referred to as Generating Functions.

If generating functions are assigned to a target field, the attributes minOccurs and maxOccurs determine how frequently a value is generated:

· If minOccurs = 0 the value of the function is generated once.

· Otherwise, the value of the function is generated as often as is specified by minOccurs.

Note

This applies regardless of the value set in maxOccurs. Even if maxOccurs = “unbounded“, the mapping runtime will still only generate the value as often as is specified by minOccurs.

If generating functions are assigned to a function, it is the input queue with the most values for the current context that determines how often the generating function generates a value

Regards,

Sathish Raj

Former Member
0 Kudos

hey sam,

>> IfWithoutElse is generic function

ifwithoutelse is not a generic function!!

any function not receiving an input and giving output is generic like constant, currentdate...

regards,

latika.

Former Member
0 Kudos

Hi Sam,

generic function?

All functions (regardless of whether they are standard or user-defined functions) that do not have input values are refered to as Generating Functions (Constant, Sender, Receiver and CopyValue() are generating functions).

All other functions are generic function

Regards,

Azeez khan.