on 08-25-2015 5:51 PM
Hi experts,
Im using BAPI_CATIMESHEETMGR_CHANGE to update some records from catsdb. I have to update some costume fields so im using the extension table. When i execute the the bapi the records aren't modified.
Here is a sample code of what i am doing. Please advice
lv_counter = lv_counter + 1.
lv_te_catsdb-row = lv_counter.
MOVE-CORRESPONDING k_catsdb TO lv_te_catsdb.
lv_te_catsdb-zzshift = k_catsdb-zzshift.
lv_te_catsdb-zzadjreason = k_catsdb-zzadjreason.
k_catsrecords_in-employeenumber = k_catsdb-pernr.
k_catsrecords_in-abs_att_type = p_awart.
k_extensionin-structure = 'BAPI_TE_CATSDB'.
k_extensionin-valuepart1 = lv_te_catsdb.
APPEND k_catsrecords_in TO i_catsrecords_in.
APPEND k_extensionin TO i_extensionin.
CLEAR: k_catsrecords_in, k_extensionin.
ENDLOOP.
SORT i_catsrecords_in BY counter.
SORT i_extensionin BY valuepart1.
CALL FUNCTION 'BAPI_CATIMESHEETMGR_CHANGE'
EXPORTING
profile = c_retroadj
* TESTRUN =
release_data = 'X'
* AGENT =
text_format_imp = 'ASCII'
TABLES
catsrecords_in = i_catsrecords_in
extensionin = i_extensionin
* CATSRECORDS_OUT =
* EXTENSIONOUT =
* WORKFLOW_TEXT =
return = i_return
* LONGTEXT =
* SA_EXTENSION_IN =
* SA_EXTENSION_OUT =
.
Did you map field CATSDB-COUNTER to CATSRECORDS_IN-COUNTER?
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Call below FM after 'BAPI_CATIMESHEETMGR_CHANGE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN = .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.