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: 

How to update AFVC-OTYPE in service order operation by Bapi or FM.

former_member193737
Participant
0 Kudos
854

Hi All,

We are using Bapi_alm_order_maintain to create and change service order, we need to update two new fields like Job

and below description but here is no field in that bapi to pass below fields.

Please let me know how to update below fields by Bapi or FM.

1 REPLY 1

NTeunckens
Active Contributor
0 Kudos
258

Please see SAP-Notes :

  • 2878071 - Qualifications Profile gets deleted after modifying Operation : link
  • 2693466 - Assigned qualification not copied when copying an operation : link


The Note 2693466 implements code in BAdI "IBAPI_ALM_ORD_MODIFY" with Extension-Structure "EAM_S_OPER_ADD_FIELDS_FOR_BAPI" :

  METHOD if_ex_ibapi_alm_ord_modify~modify_input_data.
* new with note 2693466 **************************************************

    DATA ls_oper_add_fields   TYPE eam_s_oper_add_fields_for_bapi.

    CHECK extension_in-structure = 'EAM_S_OPER_ADD_FIELDS_FOR_BAPI'.

    ls_oper_add_fields  = extension_in-valuepart1.

    READ TABLE ct_operation ASSIGNING FIELD-SYMBOL(<ls_operation>)
      WITH KEY vornr = ls_oper_add_fields-vornr
               uvorn = ls_oper_add_fields-uvorn.
    CHECK sy-subrc = 0.

    <ls_operation>-otype       = ls_oper_add_fields-otype.
    <ls_operation>-objektid    = ls_oper_add_fields-objektid.

  ENDMETHOD.