Skip to Content

Custom fields data population using BAPI_CATIMESHEETMGR_INSERT

Hi Experts,

Please help me on how to pass the data to custom fields of CATSDB table using BAPI_CATIMESHEETMGR_INSERT. I tried to code in the way shown below :

But data is not populating to my corresponding custom fields instead populating to the field next to the field Row of structure BAPI_TE_CATSDB , and getting the dump " TABLE_INVALID_INDEX ".

data :ls_ext_in TYPE BAPICATS7,

lt_ext_in TYPE TABLE OF BAPICATS7.

ls_te_catsdb-row = '00001100'.
ls_te_catsdb-zzprdcode = 'PRD00001'.
ls_te_catsdb-zzprdpoc = '50'.
ls_te_catsdb-zzjstftext = 'APPROVAL NOT RECEIVED'.

ls_ext_in-structure = 'BAPI_TE_CATSDB'.

ls_ext_in-valuepart1+0(10) = ls_te_catsdb-row.

ls_ext_in-valuepart1+10(8) = ls_te_catsdb-zzprdcode.

ls_ext_in-valuepart1+18(3) = ls_te_catsdb-zzprdpoc.

ls_ext_in-valuepart1+21(40) = ls_te_catsdb-zzjstftext.

APPEND ls_ext_in to lt_ext_in.

Add comment
10|10000 characters needed characters exceeded

  • There are some FunctionModules that do something similar :

    • MAP2E_CATSDB_EXT_TO_BAPICATS7
    • MAP2I_BAPICATS7_TO_CATS_EXT


    Check if you can use these ... (See the lengths of the Elements in "BAPICATS7" and the Program Include "LBAPICATSF01" ...)

  • Get RSS Feed

0 Answers