on 2022 Aug 17 10:21 AM
Hi experts,
We are trying to limit a PPF action to be triggered only when an external ticket exists already for the Solman ticket, under the "External Helpdesk" tab.
However, there seems to be no SAP standard condition that can be used here, any ideas on how this can be done?
Thanks!
Regards,
Luigi
Request clarification before answering.
Hi Luigi,
i didn't found any Standard so you will need to create an BADI Implementation for your Business Objects on Method MODIFY_CONTAINER. You need to Check the guid Ref on ict_incidentguid.
Best regards
Kim
Code Example (DATA declaration missing...)
**********************************************************************
* Parameter: Has External Refrence
* Starts and Stops Interface PPF-Actions if external Reference exists or not
**********************************************************************
WHEN 'EXT_REF_EXIST'.
"check if object was already saved to db (needed for comparison
SELECT SINGLE guid FROM crmd_orderadm_h INTO lv_guid_db WHERE guid = lv_guid .
IF lv_guid_db IS INITIAL.
CALL METHOD ci_parameter->set_value
EXPORTING
element_name = ls_value-element
data = abap_false
RECEIVING
retcode = lv_return.
CONTINUE.
ELSE.
SELECT SINGLE ( ict_guid ) INTO @lv_ict_guid FROM ict_incidentguid WHERE order_guid = @lv_guid.
IF sy-subrc = 0.
CALL METHOD ci_parameter->set_value
EXPORTING
element_name = ls_value-element
data = abap_true
RECEIVING
retcode = lv_return.
ENDIF.
IF sy-subrc <> 0.
CALL METHOD ci_parameter->set_value
EXPORTING
element_name = ls_value-element
data = abap_false
RECEIVING
retcode = lv_return.
ENDIF.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Kim, will try this out!
Regards,
Luigi
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.