2006 Nov 28 10:22 PM
I'm trying to use the function module CUCB_GET_CONFIGURATION, but I'm a little confused as to what to use for the import parameters, and I can't seem to find documentation on it... could anyone explain?
Background: I'm doing a user exit for when the user presses Save for Orders, in VA01 and VA02, using Z_MV45A_SAVE_DOCUMENT_PREPARE. I would like to use the characteristic values in variant configuration (Extras -> Configuration)... so that's what I'm getting at.
Thanks!
Madeline
2006 Nov 28 11:16 PM
It appears that we use this function module in most of our programs. Works pretty good.
data: i_char type table of comw with header line.
* Retrieve Characteristics.
call function 'CUD0_GET_VAL_FROM_INSTANCE'
exporting
instance = vbap-cuobj
tables
attributes = i_char
exceptions
instance_not_found = 1.
Regards,
Rich Heilman
I'm trying to use the function module CUCB_GET_CONFIGURATION, but I'm a little confused as to what to use for the import parameters, and I can't seem to find documentation on it... could anyone explain?
Background: I'm doing a user exit for when the user presses Save for Orders, in VA01 and VA02, using Z_MV45A_SAVE_DOCUMENT_PREPARE. I would like to use the characteristic values in variant configuration (Extras -> Configuration)... so that's what I'm getting at.
Thanks!
Madeline
2006 Nov 28 10:53 PM
Hi Madeline,
Why don't you use FM VC_I_GET_CONFIGURATION instead?
Please check this sample codes.
...
select single * from vbap where vbeln = p_vbeln
and posnr = p_posnr.
if sy-subrc = 0.
l_instance = vbap-cuobj.
endif.
call function 'VC_I_GET_CONFIGURATION'
exporting
instance = l_instance
tables
configuration = i_configuration
exceptions
instance_not_found = 1
internal_error = 2
no_class_allocation = 3
instance_not_valid = 4
others = 5.
loop at i_configuration.
....
endloop.
...Hope this will help.
Regards,
Ferry Lianto
2006 Nov 28 10:53 PM
2006 Nov 28 11:16 PM
It appears that we use this function module in most of our programs. Works pretty good.
data: i_char type table of comw with header line.
* Retrieve Characteristics.
call function 'CUD0_GET_VAL_FROM_INSTANCE'
exporting
instance = vbap-cuobj
tables
attributes = i_char
exceptions
instance_not_found = 1.
Regards,
Rich Heilman
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |