on 09-15-2008 11:40 AM
Hi
How to populate an eewb created field in opportunity(organisation tab) in pcui while saving it (code to be implemented in order_save BADI), is there any fm to achieve this?
Thanks
try with FMs: CRM_CUSTOMER_H_UPDATE_DU, CRM_CUSTOMER_I_UPDATE_DU.
I use them to save values in Z fields on opportunity.
Regards
Radek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
*first read:
CALL FUNCTION 'CRM_CUSTOMER_I_READ_DB'
EXPORTING
iv_guid = lv_iv_guid
IT_GUIDS_TO_READ =
IMPORTING
es_customer_i_db = ls_records_to_update
ET_CUSTOMER_I_DB =
EXCEPTIONS
header_does_not_exist = 1
error_occurred = 2
OTHERS = 3
.
*then update records in ls_records_to_update:
ls_records_to_update-zz*** = 12334.
INSERT ls_records_to_update INTO TABLE lt_records_to_update.
*and update document:
CALL FUNCTION 'CRM_CUSTOMER_I_UPDATE_DU'
EXPORTING
it_records_to_insert =
it_records_to_update = lt_records_to_update
IT_RECORDS_TO_DELETE =
IT_GUID_TO_DELETE =
.
IF sy-subrc <> 0.
ls_return-type = sy-msgty.
ls_return-id = sy-msgid.
ls_return-number = sy-msgno.
ls_return-message_v1 = sy-msgv1.
ls_return-message_v2 = sy-msgv2.
ls_return-message_v3 = sy-msgv3.
ls_return-message_v4 = sy-msgv4.
APPEND ls_return TO lt_return.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.