Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Updating custom fields in CRMD_CUSTOMER_H using CRM_ORDER_MAINTAIN

$
0
0

Hi,

 

I would like to know if anyone has succeded updating custom fields added via EEWB in CRMD_CUSTOMER_H table using function module CRM_ORDER_MAINTAIN in a custome program. Below is the code I have tried in a custom program and want to know if I am missing anything here:

 

ls_customer_h-ref_guid = gt_guid-guid.

ls_customer_h-zzfulfilment = 'X'. "This is the custom field

INSERT ls_customer_h INto TABLE lt_customer_h.

ls_input_Fields-ref_guid = gt_guid-guid.

ls_input_fields-objectname = 'CUSTOMER_H'.

ls_field_names-fieldname = 'ZZFULFILMENT'. "Custom field name

INSERT LS_FIELD_NAMES INTO TABLE LT_FIELD_NAMES.

LS_INPUT_FIELDS-FIELD_NAMES[] = LT_FIELD_NAMES[].

APPEND LS_INPUT_FIELDS TO LT_INPUT_FIELDS.

 

CALL FUNCTION 'CRM_ORDER_MAINTAIN'

      EXPORTING

        it_customer_h     = lt_customer_h

      IMPORTING

        et_exception      = lt_exception

      CHANGING

        ct_input_fields   = lt_input_fields

      EXCEPTIONS

        error_occurred    = 1

        document_locked   = 2

        no_change_allowed = 3

        no_authority      = 4

        OTHERS            = 5.

lt_exception is always empty hence and sy-subrc is always 0 but still CRMD_CUSTOMER_H is not getting updated.

 

Appreciate your help on this.

 

Regards


Viewing all articles
Browse latest Browse all 4552


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>