Application Development 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: 

BAPI_CATIMESHEETMGR_INSERT - task component

Former Member
0 Kudos

Hi all,

we're using BAPI_CATIMESHEETMGR_INSERT to register time entries in CATS. But when using the transaction CAT2 fields as task component and task level are visible, while I do not find a value to store them in this BAPI.

Is this possible ?

kind regards,

Björn

4 REPLIES 4

Former Member
0 Kudos

Hello,

I am using the same FM we need to pass all this values

See this example programs.

LBAPICATSU13

LIWWOU22

RBUS7024

See this example code.

move:

y_wa_final_itab-pernr to y_wa_catsrecords_insert-employeenumber,

y_wa_final_itab-catshours to y_wa_catsrecords_insert-catshours,

y_wa_final_itab-lstar to y_wa_catsrecords_insert-acttype,

y_wa_final_itab-price to y_wa_catsrecords_insert-price,

y_wa_final_itab-description to y_wa_catsrecords_insert-shorttext,

'H' to y_wa_catsrecords_insert-unit,

'HUR' to y_wa_catsrecords_insert-isocode_unit,

'H' to y_wa_catsrecords_insert-unitq,

'HUR' to y_wa_catsrecords_insert-iso_unitq,

y_wa_final_itab-catsquantity to y_wa_catsrecords_insert-quantity,

y_wa_final_itab-skostl to y_wa_catsrecords_insert-send_cctr,

y_wa_final_itab-workdate to y_wa_catsrecords_insert-workdate,

y_wa_final_itab-tcurr to y_wa_catsrecords_insert-trans_curr.

perform y_f_read_txt using y_wa_final_itab-counter.

if y_i_longtxt[] is initial.

clear y_wa_catsrecords_insert-longtext.

else.

move:y_k_x to y_wa_catsrecords_insert-longtext.

endif.

append y_wa_catsrecords_insert to y_i_catsrecords_insert.

clear: y_wa_catsrecords_insert, y_wa_final_itab, y_wa_catsdb.

call function 'BAPI_CATIMESHEETMGR_INSERT'

exporting

profile = 'Z_PLMJ1'

release_data = 'X'

text_format_imp = 'ITF'

tables

catsrecords_in = y_i_catsrecords_insert

catsrecords_out = y_i_catsrecords_temp

return = y_i_return

longtext = y_i_longtxt.

Former Member
0 Kudos

Problem solved

There's an OSS note which tells to create the missing fields manually in the structure

0 Kudos

Hi,

Am facing the same problem now. Can you provide me the OSS note which you used to resolve this issue?

0 Kudos

Hello Bjorn. Could you provide the OSS note number ? I would really appreciate it.