Application Development 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: 

Custom fields update in EQUi

ankit_munshi2
Participant
0 Kudos

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

1 REPLY 1

former_member182915
Active Contributor
0 Kudos

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..