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

update ATWRT field in AUSP Table using FM-BAPI_OBJCL_CHANGE

former_member396057
Participant
0 Likes
2,910

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.

1 REPLY 1
Read only

kcelikmih
Explorer
0 Likes
1,580

Hi

You would use conversion-exit for value  '000000000000000095A000000062'  before send it to function.


Kind regards.

Kadir