Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM

Former Member
0 Likes
930

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.

7 REPLIES 7
Read only

former_member181966
Active Contributor
0 Likes
890

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 this’ll 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"

Read only

0 Likes
890

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

Read only

0 Likes
890

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

Read only

0 Likes
890

.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 this’ll 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"

Read only

0 Likes
890

Hi ,

Thanks

Read only

0 Likes
890

Pl..award the points and close the thread!! if problem Solved !!

Thanks

SK

Read only

0 Likes
890

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