Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CRM_ORDER_MAINTAIN

alejandro_romero2
Participant
0 Kudos
91

Hi gurus i have this problem when i use this function

CALL FUNCTION 'CRM_ORDER_MAINTAIN'

EXPORTING

IT_ACTIVITY_H = lt_newactiv

IT_STATUS = lt_status

IT_SERVICE_OS = lt_just

CHANGING

CT_INPUT_FIELDS = lt_inpfields

EXCEPTIONS

ERROR_OCCURRED = 1

DOCUMENT_LOCKED = 2

NO_CHANGE_ALLOWED = 3

NO_AUTHORITY = 4

OTHERS = 5.

IF sy-subrc EQ 0.

i want to edit the field listcode of the structure subject wich is inside of the table lt_just, i fill the listodefield with 'A2ZIC-0R70O703' but when i want to see the result in the transaction

crmd_bus2000126 in the result field it is not updated by this function what should i do ? thanks

2 REPLIES 2

Former Member
0 Kudos
56

Hello,

Try in this way

delete adjacent duplicates from y_ct_input_fields.

call function 'CRM_ORDER_MAINTAIN'

exporting

it_appointment = p_it_appointment

importing

et_exception = lt_exeption

changing

ct_orderadm_h = y_lt_orderadm_h_temp

ct_orderadm_i = p_it_orderadm_i

ct_input_fields = y_ct_input_fields

exceptions

error_occurred = 1

document_locked = 2

no_change_allowed = 3

no_authority = 4

others = 5.

What ever the you want to modify pass the value to y_ct_input_fields

0 Kudos
56

thanks i tried as you say but it doesnt work