Skip to Content

BAPI_OBJCL_CHANGE old values are empty only new value is filled.


I am changing batch characteritcs using BAPI_OBJCL_CHANGE.

The new characterics value is added correctly.
But after the call the values of the old characteristics are empty.

I use the following code.

REFRESH lt_return.

CLEAR ls_allchar.

ls_allchar-charact = 'BM_TYPE'.

ls_allchar-value_char = ls_zbatch_update-value_char.

ls_allchar-value_neutral = ls_zbatch_update-value_neutral.

APPEND ls_allchar TO lt_allchar.



objectkey = ls_zbatch_update-objnum

objecttable = 'MCH1'

classnum = ls_zbatch_update-classnum

classtype = '023'


allocvaluesnumnew = lt_allnum

allocvaluescharnew = lt_allchar

allocvaluescurrnew = lt_allcurr

return = lt_return.

Does anyone can explain me how i can change this code that the old values does not change.

Thanx in advance

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Feb 13, 2013 at 04:27 AM

    Use this below BAPI Sequence for your issue .

    pass get detail information to change bapi with your new values then Commit .






    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 12, 2013 at 03:04 PM

    I am shocked i did not get any reply on this.
    it is well known that all the old characteristics well disappear if they are not given as parameter to the bapi.
    So i have to get them and put them in this bapi tpogether with this new value.
    Can some one help me with this

    Add comment
    10|10000 characters needed characters exceeded