In order to achieve this , table ESDUS can be used.
SELECT single * FROM esdus INTO @DATA(ls_esdus2) WHERE uname = @sy-uname AND
action = 'PurchaseOrder' AND
element = 'item_view SUBVIEW_INDEX'.
IF ls_esdus2 IS NOT INITIAL.
ls_esdus2-active = '18'.
MODIFY esdus FROM ls_esdus2.
ENDIF.
CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT'
EXPORTING
i_ebeln = <data>-ebeln
i_ebelp = <data>-ebelp
EXCEPTIONS
not_found = 1
no_authority = 2
invalid_call = 3
preview_not_possible = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE 'Call Transaction not possible' TYPE 'I'.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 |