Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extensions in BAPI_CATIMESHEETMGR_INSERT - CATSDB creation.

Former Member
0 Likes
567

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:

CLEAR ls_te_catsdb.

PERFORM get_last_2_char USING lv_asnum CHANGING l_last2.

ls_te_catsdb-row = ' '.

ls_te_catsdb-zzltext = lv_ktext.

ls_te_catsdb-zzleistnr = lv_asnum.

ls_te_catsdb-zzerschw = l_last2.

CLEAR ls_extensionin.

ls_extensionin-structure = 'BAPI_TE_CATSDB'.

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

ls_extensionin-valuepart1+10(40) = ls_te_catsdb-zzltext.

ls_extensionin-valuepart1+50(8) = space.

ls_extensionin-valuepart1+58(18) = ls_te_catsdb-zzleistnr.

ls_extensionin-valuepart1+76(2) = ls_te_catsdb-zzerschw.

APPEND ls_extensionin TO gt_extensionin.

Guestion is what should be in ls_te_catsdb-row field?

In this time we do not have catscounter from CATSDB.

Thanks for every help.

2 REPLIES 2
Read only

Former Member
0 Likes
476

No ideas?

Read only

StarDev
Participant
0 Likes
476

HI Mark. Did you achieve to find the answer ? Even I am facing the same problem. I would really appreciate your input.

Thanks and Regards,

Ravi SIngh