
DATA : ls_document_key TYPE cte_s_fnd_post_doc_key,
lo_doc_store_handler TYPE REF TO cl_cte_fnd_post_doc_store.
ls_document_key-system_key = '1'. "Generally Constant Value
ls_document_key-document_type = 'ER'. "For Expense Report
ls_document_key-revision_id = lv_revision_id. "Generally '001'
ls_document_key-document_id = lv_doc_id. "Concur Document ID
CALL METHOD cl_cte_fnd_post_hdl_factory=>get_doc_store_handler
EXPORTING
iv_document_type = ls_document_key-document_type
RECEIVING
rr_doc_store_handler = lo_doc_store.
CALL METHOD lo_doc_store_handler->get_document
EXPORTING
is_document_key = ls_document_key
IMPORTING
es_data = ls_data.
{"employee":{"employeeOrgUnit3Code":null,"employeeOrgUnit4Code":null,"employeeOrgUnit5Code":null,"employeeOrgUnit6Code":null,"employeeOrgUnit1Value":null,"employeeOrgUnit2Value":null,"employeeOrgUnit3Value":null,"employeeOrgUnit4Value":null,"employeeOrgUn……….
METHOD if_badi_cte_fin_post_dt_change~map_entry_additional_data.
FIELD-SYMBOLS: <ls_entry> TYPE cte_s_additional_data.
APPEND INITIAL LINE TO et_entry_additional_data ASSIGNING
<ls_entry>.
IF <ls_entry> IS ASSIGNED.
<ls_entry>-name = 'CBDATE'.
<ls_entry>-value = lv_date.
ENDIF.
ENDMETHOD.
"employeeId":"60125678"
METHOD if_badi_cte_fin_post_adj_doc~adjust_posting_document.
FIELD-SYMBOLS: <fs_accit> TYPE accit.
LOOP AT ct_accit ASSIGNING <fs_accit>.
ASSIGN ct_accrel[ posnr = <fs_accit>-posnr ] TO
FIELD-SYMBOL(<fs_accrel>).
IF <fs_accrel> IS ASSIGNED.
ASSIGN is_document_data-entry[ entry_id = <fs_accrel>-entry_id ]
TO FIELD-SYMBOL(<fs_entry>).
IF <fs_entry> IS ASSIGNED.
ASSIGN <fs_entry>-additional_data[ name = c_zuonr ] TO <fs_data>.
IF <fs_data> IS ASSIGNED.
<fs_accit>-zuonr = <fs_data>-value.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |