Skip to Content

Custom fields update in EQUi

Hi,

I am using BAPI - BAPI_EQUI_CHANGE to update custom fields in EQUI . the custom field has been added to various ITOB structures. Here is my code ::

DATA : ls_itob   TYPE bapi_itob,
        ls_itobx  TYPE bapi_itobx,
        ls_spec   TYPE bapi_itob_eq_only,
        ls_specx  TYPE bapi_itob_eq_onlyx,
        ls_return LIKE bapiret2.

CALL FUNCTION 'BAPI_EQUI_GETDETAIL'
   EXPORTING
     equipment         = p_equnr
   IMPORTING
     data_general_exp  = ls_itob
     data_specific_exp = ls_spec
*   DATA_FLEET_EXP    =
*   RETURN            =
   .

ls_itob-ztest = abap_true.
ls_itobx-ztest = abap_true.

CALL FUNCTION 'BAPI_EQUI_CHANGE'
   EXPORTING
     equipment         = p_equnr
     data_general      = ls_itob
     data_generalx     = ls_itobx
     data_specific     = ls_spec
     data_specificx    = ls_specx
    VALID_DATE        = SY-DATUM
    VALID_TIME        = SY-UZEIT
   IMPORTING
     return            = ls_return.
.

   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.


However it doesn't update the custom field. Any idea what could be missing ?


Existing posts in SCN weren't of help much !

regards,

AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 14, 2015 at 07:00 AM

    Hi Ankit,

    Sap Provide Extension in /out in bapi to update custom field in master or transaction data,

    but in your case no such thing present in bapi. IF i am not wrong u just add field in BAPI_ITOB str.

    Technically speak how system will know in which place it should place.so i suggest to debug and find some exit or badi where u move your custom data to strd str field of your table .

    http://www.programdevelop.com/2661758/

    i will try to give the point .

    Thanks & Regards,

    Swadhin..

    Add comment
    10|10000 characters needed characters exceeded