Skip to Content

BAPI_OBJCL_CHANGE old values are empty only new value is filled.

Hello,

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.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

EXPORTING

objectkey = ls_zbatch_update-objnum

objecttable = 'MCH1'

classnum = ls_zbatch_update-classnum

classtype = '023'

TABLES

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
    avatar image
    Former Member
    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 .

    " BAPI_OBJCL_GETDETAIL"

    "BAPI_OBJCL_CHANGE"

    "BAPI_TRANSACTION_COMMIT"

    Regard's

    Smruti

    Add comment
    10|10000 characters needed characters exceeded

  • 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