05-14-2009 3:30 PM
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
05-15-2009 8:41 AM
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.
06-10-2009 8:09 AM
Problem solved
There's an OSS note which tells to create the missing fields manually in the structure
10-19-2009 1:59 PM
Hi,
Am facing the same problem now. Can you provide me the OSS note which you used to resolve this issue?
06-06-2013 10:57 AM
Hello Bjorn. Could you provide the OSS note number ? I would really appreciate it.