2015 Mar 03 3:56 PM
Hi All,
I am using the FM - " BAPI_OBJCL_CHANGE " to update the ATWRT field in AUSP Table.
I am passing values to FM :
EXPORTING :
OBJECTKEY = 000000000000000095A000000062
OBJECTTABLE = MCHA
CLASSNUM = BAT_COST
CLASSTYPE = 023
In Tables :
wa_alloc_values_char-charact = " '0000000029'. "Characteristics
wa_alloc_values_char-value_char = "320". "Characteristics value
APPEND wa_alloc_values_char TO it_char_data.
ALLOCVALUESCHARNEW = it_char_data.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
OBJECTKEY = '000000000000000095A000000062'
OBJECTTABLE = lc_objtab
CLASSNUM = lc_clasnm
CLASSTYPE = lc_clastp
* STATUS = '1'
* STANDARDCLASS =
* CHANGENUMBER =
* KEYDATE = SY-DATUM
* NO_DEFAULT_VALUES = ' '
* KEEP_SAME_DEFAULTS = ' '
* IMPORTING
* CLASSIF_STATUS =
TABLES
ALLOCVALUESNUMNEW = it_num_data
ALLOCVALUESCHARNEW = it_char_data
ALLOCVALUESCURRNEW = it_curr_data
RETURN = lt_return.
I am getting the errors in lt_return and the FM is not updating the ATWRT field in AUSP Table.
Errors :
1. Class type 023, object type MCHA, object 000000000000000095A000000062
2.Object 000000000000000095A000000062 does not exist
3.Assignment was not created
Please help me.
Thanks.
2015 Mar 06 1:57 PM
Hi
You would use conversion-exit for value '000000000000000095A000000062' before send it to function.
Kind regards.
Kadir