Hi Hasan,
Thanks for the reply.
The FM CRM_CONFIRM_ADD_ITEM_EC is being called. But here when the routine put_to_atp is called, the IV_CONF_MODE is always set to 'C'. To get schedlin details we need to set it to 'D' and it will be set by BADI CRM_ATP_INFO_BADI.
The middleware parameters are also maintained.
The problem that i am facing is, in the FM FM CRM_CONFIRM_ADD_ITEM_EC, the BADI CRM_ATP_INFO_BADI' is called at line 314. But in my case it never reached there because the check at line 307,
IF ( lv_lookup_only = true OR lv_extinf_defined = true ), always fails.
These two variables are set at line 227 by below FM -
CALL FUNCTION 'CRM_AV_CHECK_DEFINED'
EXPORTING
iv_header_guid = iv_header_guid
IMPORTING
ev_apo_defined = lv_apo_defined
ev_r3_defined = lv_r3_defined
ev_lookup_only = lv_lookup_only
ev_extatp_defined = lv_extatp_defined
ev_extinf_defined = lv_extinf_defined
ev_apo_info_only = lv_apo_info_only.
What configuration should i maintain, am i missing something here. Why varibles lv_extinf_defined and lv_lookup_only are always false?
Please suggest.
Thanks - Mahendra