cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extensions in BAPI_CATIMESHEETMGR_INSERT - CATSDB creation. give runtime error

0 Likes
472

Hallo guyes,

my request is to fill up the three z-customer fields in table CATSDB

using BAPI_CATIMESHEETMGR_INSERT.

All my data are in parameter table catsrecords_in but as far as I know

I have to fill up also extensionin parameter table somehow.

What I don't understand is how to link 'lines' in extensionin with 'lines' in

catsrecords_in.

What I did up to now is this:

wa_catsdb_ext-row = ' '.
wa_catsdb_ext-zzprdcode = wa_excel_data-zzprdcode.
wa_catsdb_ext-zzprdpoc = wa_excel_data-zzprdpoc .
wa_catsdb_ext-zzdelay = wa_excel_data-zzdelay.


********-----> Filling Extension Table
wa_extension_in-structure = 'BAPI_TE_CATSDB'.

wa_extension_in-valuepart1+0(10) = wa_catsdb_ext-row.

wa_extension_in-valuepart1+10(18) = wa_catsdb_ext-zzprdcode.
* wa_extension_in-valuepart1+28(40) = wa_catsdb_ext-zzprdtext.
wa_extension_in-valuepart1+68(3) = wa_catsdb_ext-zzprdpoc.
* wa_extension_in-valuepart1+71(8) = wa_catsdb_ext-zzjstfctn.
* wa_extension_in-valuepart1+79(40) = wa_catsdb_ext-zzjstftext.
wa_extension_in-valuepart1+119(40) = wa_catsdb_ext-zzdelay.
APPEND wa_extension_in TO it_extension_in.
CLEAR wa_catsdb_ext.

question is -

1) what should be in wa_catsdb_ext-row?

2)in CATSDB table i add five custom fields , but here i pass data to only three custom field. is it right?

3) when i pass these data in same way it gives runtime error.

In this time we do not have catscounter from CATSDB.

Thanks for every help.

Accepted Solutions (0)

Answers (0)