Hi,
I am implementing a BADI. In the method I call a SAP standard function. In the first line of the function I can see data in a table (no code at this point populates the table). This, I presume, has been populated by the function-pool the FM belongs to. I would like to see that table before calling the FM. Is it possible to declare the function-pool before I call the function so that I can see the table entries outside of the FM? In the code below the required table is 'gt_date_wrkt'. As you can see it is not populated in the FM itself.
Any suggestions?
method.....
...
call function 'CRM_DATES_READ_SINGLE_OB'
exporting
IV_DATESET_GUID = iv_ref_guid
IS_LOGICAL_DATE_KEY = lS_LOGICAL_DATE_KEY
importing
ES_DATE_WRK = ls_date_wrk
exceptions
PARAMETER_ERROR = 1
ENTRY_DOES_NOT_EXIST = 2
AT_LEAST_ONE_RECORD_NOT_FOUND = 3
ENTRY_IS_DELETED = 4.
.....
function crm_dates_read_single_ob .
statics: ls_date_wrk like line of gt_date_wrkt.
data: lt_dateset_guids type crmt_object_guid_tab,
lv_errorcode type sysubrc.
// check parameter
if iv_dateset_guid is initial and is_logical_date_key is initial.
message e103(crm_order_misc) raising parameter_error.
endif.
// read entry from object buffer
read table gt_date_wrkt into ls_date_wrk
with key guid = iv_dateset_guid
appt_type = is_logical_date_key-appt_type
is_duration = is_logical_date_key-is_duration.
Thanks.