on 2020 Oct 15 9:08 PM
I want to update Credit Card Details to Table: CRMS4D_PAYPLAN_D, for a quotation in BRIM.
i'm using CRM_ORDER_MAINTAIN and Exporting it_payplan_d with Credit Card Details.
Calling CRM_ORDER_SAVE and BAPI_TRANSACTION_COMMIT after CRM_ORDER_MAINTAIN.
though the FM is giving SY-SUBRC 0, it is not updating any record in CRMS4D_PAYPLAN_D.
is the object name correct in Input fields: "ls_input_fields-objectname = 'FS_007_10_EXT_LOAN_COND'."
Please help, am i missing anything here.
* Updating Payplan:
* Credit Card Details
ls_payplan_d-ref_guid = lt_orderadm_h[ 1 ]-guid.
ls_payplan_d-guid = lt_orderadm_h[ 1 ]-guid.
ls_payplan_d-card_token = ls_token-cc_token.
ls_payplan_d-card_holder = lv_name.
ls_payplan_d-ref_kind = 'E'.
ls_payplan_d-card_type = ls_token-cc_type.
ls_payplan_d-card_no = '************' && ls_token-cc_4_digit.
ls_payplan_d-auth_ref = ls_token-auth_req_id.
ls_payplan_d-card_beg_date = sy-datum.
ls_payplan_d-card_exp_date = ls_token-exp_date.
ls_payplan_d-card_merch_id = lv_mername.
* Update Input Fields:
ls_input_fields-ref_kind = 'D'.
ls_input_fields-ref_guid = ls_payplan_d-guid.
ls_input_fields-objectname = 'FS_007_10_EXT_LOAN_COND'.
ls_input_fields-field_names[] = lt_nametab[].
INSERT ls_input_fields INTO TABLE lt_input_fields.
* Calling FM:
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_payplan_d = lt_payplan_d
IMPORTING
et_exception = lt_exceptions
CHANGING
ct_orderadm_h = lt_orderadm_h_maint
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
Request clarification before answering.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.