Hello.
I'm using FM "AGS_SD_GDAPI_IF_WS_UPDATE" to add text of type SU99 to a Solman Incident.
That is working fine.
But i don't know how to achieve this goal for a Solman Change Request. GUID is found by
FM CMS_ORDERADM_H_READ.
But using FM "AGS_SD_GDAPI_IF_WS_UPDATE" for the Change Request leads to the
message "Process type & is no incident or is not maintained in DNO_CUST04" (AGS_SD_GDAPI/037)
According Transaction type ZMCR is customized in DNO_CUST04, but assigned to "CHANGE_REQUEST_NEW".
data :
lt_return type bapiret2_t,
ls_return type bapiret2,
lt_messages type zbc_message_text_t,
ls_message type zbc_message_text,
lt_text type comt_text_lines_t,
ls_line type tline,
l_guid(32) type c.
clear lt_return.
refresh lt_return.
ls_line-tdformat = '*'.
ls_line-tdline = i_transport_request.
append ls_line to lt_text.
* determine whether ticket is incident or CR
if go_model->request_ticket_number+0(1) = '7'.
ls_message-tdid = 'ZTRA'.
ls_message-tdspras = 'DE'.
ls_message-lines = lt_text.
append ls_message to lt_messages.
else.
ls_message-tdid = 'SU99'.
ls_message-tdspras = 'DE'.
ls_message-lines = lt_text.
append ls_message to lt_messages.
endif.
try.
clear l_guid.
l_guid = go_model->guid_ticket.
call function 'AGS_SD_GDAPI_IF_WS_UPDATE' destination 'PFAMDT100'
exporting
iv_guid = l_guid
* IS_MESSAGE_DATA =
* IT_PARTNER =
it_text = lt_messages
* IT_ATTACHMENTS =
importing
et_return = lt_return.
call function 'BAPI_TRANSACTION_COMMIT' destination 'PFAMDT100'
exporting
wait = space
importing
return = ls_return.
call function 'RFC_CONNECTION_CLOSE'
exporting
destination = 'PFAMDT100'
* TASKNAME =
exceptions
destination_not_open = 1
others = 2.
if sy-subrc <> 0.
endif.
catch cx_root.
endtry.
Any ideas what to do to get the text added in a Change Request object ?
Thanks a lot,
Sebastian