Skip to Content

BOM History upload using BAPI_MATERIAL_BOM_GROUP_CREATE

Dear Experts,

I am trying to upload BOM history using BAPI_MATERIAL_BOM_GROUP_CREATE.

It is working fine for ITEMS change history.

But for header changes, i am facing difficulty to update. Pic1 shows BOM header history in CS03.

In source system, we have 2 lines in STKO(Pic2).

Error Message: Transfer of discontinued variants not yet programmed

Sample Code:

IF ls_bomhead-aenra IS INITIAL.
IF ls_varint-valid_from_date IS INITIAL.
ls_varint-valid_from_date = '99991201'.
ENDIF.
ls_varint-change_no = ls_bomhead-aennr.
ls_varint-function = c_funct_new.
APPEND ls_varint TO lt_varint.
CLEAR ls_varint.
ELSE.
IF ls_varint-valid_from_date IS INITIAL.
ls_varint-valid_from_date = '99991201'.
ENDIF.
*-------------NEW
ls_varint-function = c_funct_new.
ls_varint-change_no = space.
APPEND ls_varint TO lt_varint.
* CLEAR ls_itemas.
*-----------DEL
ls_varint-function = c_funct_del.
ls_varint-change_no = ls_bomhead-aenra.
APPEND ls_varint TO lt_varint.
CLEAR ls_varint.
ENDIF.


Where am i doing wrong?


Best Regards

LLD

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 14, 2016 at 03:36 PM

    Dear Experts,

    Any info?

    Best Regards

    LLD

    Add a comment
    10|10000 characters needed characters exceeded