'Smof - Erpsite': Get The RFC Destination Attached To The SITEID Type ERP
'Smof - Erpsite': Get The RFC Destination Attached To The SITEID Type ERP
lv_destination = ls_smof_erpsh-rfcdest.
IF lv_free_callouts EQ '*'.
* Begin of changes by Abid : 10th April 2018 TR : CMDK901014.
* Below lines Commented by Abid. No need to show pending free callo
uts if free callout is unlimited
* CONCATENATE 'Pending free callouts: Unlimited,' lv_amc_options
* INTO ep_callout
* SEPARATED BY space.
* End of changes by Abid TR : CMDK901014.
ELSEIF lv_free_callouts IS INITIAL.
* Begin of changes by Abid : 10th April 2018 TR : CMDK901014.
* Below lines Commented by Abid. No need to show pending free callo
uts if free callout is unlimited
* CONCATENATE 'Pending free callouts: Unlimited,' lv_amc_options
* INTO ep_callout
* SEPARATED BY space.
* End of changes by Abid TR : CMDK901014.
ELSE.
* Begin of changes by Abid : 10th April 2018 TR : CMDK901014.
* To resolve AMC details not showing up on CRM ISSUE.
* logic : lv_free_callouts is of type Char, when free call outs is u
nlimited :
* the statement "MOVE lv_free_callouts TO lv_callouts" is throwing e
rror because :
* lv_callouts is of type I so type mismatch happens.
* So excluding the assignments when free callout is unlimited.
IF NOT ( lv_free_callouts cs 'UNLI').
* End of changes by Abid TR : CMDK901014.
MOVE lv_free_callouts TO lv_callouts.
* Begin of changes by Abid : 10th April 2018 TR : CMDK901014.
ENDIF.
* End of changes by Abid TR : CMDK901014.
SELECT guid
object_id
FROM crmd_orderadm_h
INTO CORRESPONDING FIELDS OF TABLE lt_serv_re
q_temp
WHERE process_type = 'YSVR'
AND zzfld00000j = '003' " AMC Free Callout
-- 002 Old value.
AND posting_date BETWEEN lv_start_date AND
lv_end_date.
IF lt_serv_req_temp[] IS NOT INITIAL.
LOOP AT lt_serv_req_temp INTO ls_serv_req_temp.
INSERT ls_serv_req_temp-guid INTO TABLE lt_guid.
ENDLOOP.
ls_requested_objects = 'REFOBJ'.
INSERT ls_requested_objects INTO TABLE lt_requested_objects.
CLEAR ls_requested_objects.
lt_serv_req[] = lt_serv_req_temp[].
lv_free_callouts = lv_callouts.
ENDIF.
ENDIF.
IF lv_days_diff LE 30.
lv_diff = lv_days_diff.