‎2006 May 05 4:48 PM
Hello Experts,
Can any body tell me what is the purpose of this FM in ABAP: CUOV_GET_FUNCTION_ARGUMENT
and CUOV_SET_FUNCTION_ARGUMENT
Thanks in Advance.
‎2006 May 05 4:54 PM
CUOV_GET_FUNCTION_ARGUMENT
Short text harvests entrance valued out of generic function interface
Functionality this function building block serves the access on function arguments, that are delivered at a
user-defined function building block in form of the generic interface (table).
Example at a function building block will deliver the generic interfaces-table QUERY with petition value for the arguments LENGTH and WIDTH. The value of WIDTH can be read out of the table then as follows for
the further processing:
CALL FUNCTION 'CUOV_GET_FUNCTION_ARGUMENT' IMPORTING ARGUMENT = 'WIDTH' EXPORTING ATFLV = WIDTH
IF SY-SUBRC = 0.
..
In more by more analogy manner take action on the value by LENGTH. In this example, the Aufrufer must know, that the value of the argument
WIDTH of the numeric type is.
Parameter ARGUMENT VTYPE SYM_VAL NUM_VAL IO_QUERY FLEW
Exceptions BADLY_NEED_FOUND
Function group CUOV
<b>CUOV_SET_FUNCTION_ARGUMENT</b>
Short text setting exit valued in generic interface
Functionality this function sets the value of an edition parameter in the generic interface of an external function building block.
Parameter ARGUMENT VTYPE SYM_VAL NUM_VAL MATCH
Exceptions EXISTING_VALUE_REPLACED
Function group CUOV
Hope thisll give you idea!!
<b>P.S award the points.!!! DOn`t forget :)!!!!</b>
Good luck
Thanks
Saquib Khan
"Knowledge comes but wisdom lingers!!"
"Some are wise and some are otherwise"
‎2006 May 05 4:57 PM
hi Jak,
Check this out search for those FM u find the need and usage of those
http://help.sap.com/bestpractices/BBLibrary/Documentation/M04_BB_ConfigGuide_EN_KO.doc
Regards,
Santosh
‎2006 May 05 5:02 PM
Hi Saquib Khan ,
Thank you for Quick response.Points are given.
But i did't get it.Can you elobarate it?
If i want to run it separately from SE37 t-code what relavant I/P values i can have?
Regards
‎2006 May 05 5:09 PM
.get value of input characteristic AST_PC_RAM
call function 'CUOV_GET_FUNCTION_ARGUMENT'
exporting
argument = 'BN_CHARAC2'
importing
sym_val = charc2_char
tables
query = query
exceptions
arg_not_found = 01.
if sy-subrc <> 0.
raise internal_error.
endif.
..add result to the table of output characteristics
call function 'CUOV_SET_FUNCTION_ARGUMENT'
exporting
argument = 'BN_ID'
vtype = 'CHAR'
sym_val = id_char
tables
match = match
exceptions
existing_value_replaced = 0
Hope thisll give you idea!!
<b>P.S award the points.!!! DOn`t forget :)!!!!</b>
Good luck
Thanks
Saquib Khan
"Knowledge comes but wisdom lingers!!"
"Some are wise and some are otherwise"
‎2006 May 05 5:13 PM
‎2006 May 05 5:22 PM
Pl..award the points and close the thread!! if problem Solved !!
Thanks
SK
‎2006 May 05 5:56 PM
Hi ,
Can u pls tell me what is this 'BN_CHARAC2'
if i give the same as argument while running FM in se37 it is giving error.
Regards