sap - Creating method in ABAP OData service -


i working on odata service sap fiori application. when try code bapi inserting notifications database, doesn't work & don't know why. colleague told me it's because of missing mandatory parameters filled them , no result. here's code :

method avisset_create_entity.  data: ls_data type zcl_zpm_avis_mpc=>ts_avis.  data: l_notif        type bapi2080_nothdre-notif_no,       l_notif_type   type bapi2080-notif_type,       l_notif_hd_exp type bapi2080_nothdre,       l_notif_header type bapi2080_nothdri,       i_return       type table of bapiret2.  io_data_provider->read_entry_data( importing es_data = ls_data ).  if ls_data not initial.   l_notif_type = 's3'.   l_notif_header-equipment = ls_data-equnr.   l_notif_header-reportedby = sy-uname.   l_notif_header-short_text = ls_data-qmtxt. *      l_notif_header-notif_date = ls_data-qmdat.    l_notif_header-code_group = 'maindiag'.   l_notif_header-coding =  'desi'. *      l_notif_header-coding =  ls_data-iwerk. *      funct_loc    call function 'bapi_alm_notif_create'     exporting *         external_number    =       notif_type         = l_notif_type       notifheader        = l_notif_header *         sender             = *         orderid            =     importing       notifheader_export = l_notif_hd_exp     tables *         notitem            = i_notitemi *         notifcaus          = i_notcausi *         notifactv          = i_notactvi *         notiftask          = i_nottaski *         notifpartnr        = i_notpartnri *         longtexts          = i_notfulltxti *         key_relationships  = i_notkeye       return             = i_return.    l_notif = l_notif_hd_exp-notif_no.   call function 'bapi_alm_notif_save'     exporting       number = l_notif.    call function 'bapi_transaction_commit'     exporting       wait = 'x'. endif.  endmethod. 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -