RSPDN1639236
RSPDN1639236
RSPDN1639236
Number 1639236
Component PD AP
Description
When Transportation Management module in SAP is activated (by using the user parameter
TM_INVOICE_CLERK), PD AP batch input call of MIRO fails due to change in display order
of tabs.
After applying this note system will check if TM is active and force navigation to PO
reference tab.
! PD AP doesn’t support parameter value 01 as PO reference tab is hidden in such case !
Pre-correction
1) Open SE24, enter /COCKPIT/CL_SYSTEM and add new Attribute as described below
METHOD is_tm_active.
2
PROCESS DIRECTOR Note
IF lc_client_system IS INITIAL.
SELECT SINGLE version FROM sfw_active_b2 INTO l_dummy
WHERE version = 'A'
AND bfunction = ic_bfunc_name.
ELSE.
" Note: Client handling is automatically done by the compiler here :
"where mandt = sy-mandt
SELECT SINGLE version FROM sfw_active_bfunc INTO l_dummy
WHERE version = 'A'
AND bfunction = ic_bfunc_name.
ENDIF.
IF sy-subrc = 0.
eb_switched_on = abap_true.
ELSE.
eb_switched_on = abap_false.
ENDIF.
ENDMETHOD.
7) Go to SE91 and add new message number 137 into message class /COCKPIT/CHK
3
PROCESS DIRECTOR Note
TM module active - user parameter &1 with value &2 not supported
4
PROCESS DIRECTOR Note
* Is TM active?
IF /cockpit/cl_system=>mr_system->is_tm_active( ) = abap_true.
GET PARAMETER ID 'TM_INVOICE_CLERK' FIELD lc_tm_disp_type.
" 01 - PO ref tab is hidden => unsupported
IF lc_tm_disp_type = '01'.
CALL FUNCTION '/COCKPIT/OBJ_MESSAGE_APPEND'
EXPORTING
i_type = 'E'
i_id = '/COCKPIT/CHK'
i_number = '137'
i_message_v1 = 'TM_INVOICE_CLERK'
i_message_v2 = lc_tm_disp_type
TABLES
c_tab_messages = e_tab_messages.
IF 1 = 2. MESSAGE e137(/COCKPIT/CHK) WITH space. ENDIF.
RAISE error_occured.
ENDIF.
ENDIF.
<<<<INSERT
* Initialize global data
ls_header = i_str_header.
….
5
PROCESS DIRECTOR Note
….