BAdIs to change the exported data

If you would like to change the data of the shipment, use the following BAdIs to change the data.

Document typeBAdI
Delivery/AEB/PA_SHP_DLV_01
/AEB/PA_SHP_DLV_02
Shipment/AEB/PA_SHP_SHP_01
/AEB/PA_SHP_SHP_02
Freight order/AE1/PA_SHP_FRO_01

Here is short example of a BAdI implementation ( /AEB/PA_SHP_DLV_02 ) that assigns a value to the reference text with the reference type "Delivery note number":

METHOD /aeb/if_ex_pa_shp_dlv_02~after_std_filling.
  DATA:
    ref_text TYPE REF TO /aeb/if_pa_pb_dl_ref_text_do.

  ref_text = im_data_object_factory->new_pa_pb_dl_ref_text_do(
               im_type  = /aeb/if_pa_pb_dl_ref_text_do=>c_type_delnote_number
               im_value = '87600123' ).
  APPEND ref_text TO ch_shp_req_do-referencestexts.
ENDMETHOD.