Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_CATIMESHEETMGR_CHANGE (extension table)

Hi experts,

Im using BAPI_CATIMESHEETMGR_CHANGE to update some records from catsdb. I have to update some costume fields so im using the extension table. When i execute the the bapi the records aren't modified.

Here is a sample code of what i am doing. Please advice

     lv_counter = lv_counter + 1.
     lv_te_catsdb-row = lv_counter.
     MOVE-CORRESPONDING k_catsdb TO lv_te_catsdb.
     lv_te_catsdb-zzshift = k_catsdb-zzshift.
     lv_te_catsdb-zzadjreason = k_catsdb-zzadjreason.


     k_catsrecords_in-employeenumber = k_catsdb-pernr.
     k_catsrecords_in-abs_att_type = p_awart.


     k_extensionin-structure = 'BAPI_TE_CATSDB'.
     k_extensionin-valuepart1 = lv_te_catsdb.

     APPEND k_catsrecords_in TO i_catsrecords_in.
     APPEND k_extensionin TO i_extensionin.

     CLEAR: k_catsrecords_in, k_extensionin.
   ENDLOOP.

   SORT i_catsrecords_in BY counter.
   SORT i_extensionin BY valuepart1.

   CALL FUNCTION 'BAPI_CATIMESHEETMGR_CHANGE'
     EXPORTING
       profile          = c_retroadj
*     TESTRUN          =
       release_data     = 'X'
*     AGENT            =
       text_format_imp  = 'ASCII'
     TABLES
       catsrecords_in   = i_catsrecords_in
       extensionin      = i_extensionin
*     CATSRECORDS_OUT  =
*     EXTENSIONOUT     =
*     WORKFLOW_TEXT    =
       return           = i_return
*     LONGTEXT         =
*     SA_EXTENSION_IN  =
*     SA_EXTENSION_OUT =
     .

Tags:
replied

Did you map field CATSDB-COUNTER to CATSRECORDS_IN-COUNTER?

Regards,

Raymond

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question