data: fs_esruo type esruo.
data: ft_esruo type standard table of esruo.
data: f_active type esdus-active.
data: ft_esduscom type standard table of esduscom.
select * into corresponding fields of table ft_esruo
from esruo
where uname eq sy-uname
and object_typ eq 'BUS2105'.
sort ft_esruo by timestamp descending.
read table ft_esruo index 1 into fs_esruo.
concatenate fs_esruo-object_id 'A' into f_active.
call function 'ES_READ_USER_SETTINGS'
exporting
iaction = 'MEPO'
* IUNAME = IUNAME
* IDB = IDB
* ILIKE = ILIKE
tables
iesdus = ft_esduscom
.
call function 'ES_DELETE_USER_SETTINGS'
exporting
iaction = 'MEPO'
ielement = 'Application Req_Process'
* iactive =
* IUNAME = IUNAME
* isave = 'X'
* TABLES
* IESDUS = IESDUS
exceptions
not_found = 1
others = 2
.
if sy-subrc eq 0.
endif.
call function 'ES_APPEND_USER_SETTINGS'
exporting
iaction = 'MEPO'
ielement = 'Application Req_Process'
iactive = f_active
* IUNAME = IUNAME
isave = 'X'
* TABLES
* IESDUS = IESDUS
.
call function 'ES_READ_USER_SETTINGS'
exporting
iaction = 'MEPO'
* IUNAME = IUNAME
* IDB = IDB
* ILIKE = ILIKE
tables
iesdus = gt_esduscom
.
call function 'ES_DELETE_USER_SETTINGS'
exporting
iaction = 'MEPO'
ielement = 'Application Req_Process'
* iactive =
* IUNAME = IUNAME
* isave = 'X'
* TABLES
* IESDUS = IESDUS
exceptions
not_found = 1
others = 2
.
if sy-subrc eq 0.
endif.
call function 'ES_APPEND_USER_SETTINGS'
exporting
iaction = 'MEPO'
ielement = 'Application Req_Process'
iactive = '0019324803V' "Requisition number + mode (V - change, A - display)
* IUNAME = IUNAME
isave = 'X'
* TABLES
* IESDUS = IESDUS
.
Before going to your Z-Transaction call FM ES_DELETE_USER_SETTINGS, in most cases internal table of FG are filled already so you don't need to call ES_READ_USER_SETTINGS before. Like here for Purchase order number
call function 'ES_DELETE_USER_SETTINGS'
exporting
iaction = 'MEPO'
ielement = 'Application Po_Process'
* iactive =
* IUNAME = IUNAME
isave = 'X'
* TABLES
* IESDUS = IESDUS
exceptions
not_found = 1
others = 2
.
if sy-subrc eq 0.
endif.
call function 'ES_READ_USER_SETTINGS'
exporting
iaction = 'PurchaseOrder'
* IUNAME = IUNAME
* IDB = IDB
* ILIKE = ILIKE
tables
iesdus = gt_esduscom
.
call function 'ES_DELETE_USER_SETTINGS'
exporting
iaction = 'PurchaseOrder'
ielement = 'DYN_4000-BUTTON TOGGLE_STATE'
* iactive =
* IUNAME = IUNAME
* isave = 'X'
* TABLES
* IESDUS = IESDUS
exceptions
not_found = 1
others = 2
.
if sy-subrc eq 0.
endif.
call function 'ES_APPEND_USER_SETTINGS'
exporting
iaction = 'PurchaseOrder'
ielement = 'DYN_4000-BUTTON TOGGLE_STATE'
iactive = '2' "1 = collapsed, 2 = expanded
* IUNAME = IUNAME
isave = 'X'
* TABLES
* IESDUS = IESDUS
.
Action | Element | Active | Description |
---|---|---|---|
MEPO | Application Po_Process | 4500000001AX | ME22N/ME23N: Default document to open and it's display mode |
MEPO | Application Req_Process | 0019324803V | ME52N/ME53N/ME54N: Defualt document to open and it's display mode |
MEPO | SAPLMEGUI/0000 Tree-On | ME22N/ME23N: Document overview X = display , empty = hidden | |
MEPO | SAPLMEGUI/0000 Tree-Width | 374 | ME22N/ME23N: Document overview width |
MEPO | Tree-Control Tree-On | ME22N/ME23N: Document overview X = display , empty = hidden | |
MEPO | Tree-Control Tree-Width | 374 | ME22N/ME23N: Document overview width |
MIGO_DEFAULTS | A01R01BWART | 101 | MIGO: default movement type for A01 (Goods Receipt) R01 (Purchase Order), by analogy to other actions and reference document types |
MIGO_DEFAULTS | A01R01SOBKZ | MIGO: default special stock indication for A01 (Goods Receipt) R01 (Purchase Order), by analogy to other actions and reference document types | |
MIGO_DETAIL | ACTIVE_TAB | OK_GOITEM_MATERIAL | MIGO: Default active tab for details |
MIGO_DETAIL_TOGGLER | VISIBILITY | X | MIGO: Colapse or expand Details section |
MIGO_FIRSTLINE | A01 | R01 | MIGO: Default Referenced Document type for Action A01 (by analogy also for other actions) |
MIGO_FIRSTLINE | ACTION | A04 | MIGO: Default Action for transaction |
MIGO_HEADER | ACTIVE_TAB | OK_GOHEAD_GENERAL | MIGO: Default active tab for header |
MIGO_HEADER_TOGGLER | VISIBILITY | X | MIGO: Colapse or expand Header section |
MIGO_TREE | DISPLAY | X | MIGO: Display Overview (X = display, empty = hidden) |
MIGO_TREE | WIDTH | 160 | MIGO: Overview tree width |
MIRO | ITEM_LIST_VERSION | 7_6310 | MIRO: Invoice Items Layout |
MIRO | REFERENZBELEGTYP | 1 | MIRO: Default Reference Document Category |
MIRO | TREEV_DISPLAY | MIRO: Display / Hide PO worklist | |
MIRO | TREE_DISPLAY | X | MIRO: Display / Hide PO structure |
MIRO | VORGANG | 1 | MIRO: Transaction type |
PurchaseOrder | DYN_4000-BUTTON TOGGLE_STATE | 1 | ME21N/22N/23N: Header section collapsed (1), expanded (2) |
PurchaseOrder | DYN_4001-BUTTON TOGGLE_STATE | 2 | ME21N/22N/23N: Items section collapsed (1), expanded (2) |
PurchaseOrder | DYN_4002-BUTTON TOGGLE_STATE | 2 | ME21N/22N/23N: Item details section collapsed (1), expanded (2) |
PurchaseOrder | HEADER-TABSTRIP SUBVIEW_INDEX | 1 | ME21N/22N/23N: Default tab to be opened on Header section |
PurchaseOrder | POHeaderProposer BSART | NB | ME21N/22N/23N: Default document type |
PurchaseOrder | POHeaderProposer BUKRS | ME21N/22N/23N: Default Company Code | |
PurchaseOrder | POHeaderProposer EKGRP | ME21N/22N/23N: Default purchase group | |
PurchaseOrder | POHeaderProposer EKORG | ME21N/22N/23N: Default purchase organization | |
PurchaseOrder | POItemProposer AFNAM | ME21N/22N/23N: Default Requsitioner | |
PurchaseOrder | POItemProposer BEDNR | ME21N/22N/23N: Default Tracking Nr | |
PurchaseOrder | POItemProposer EEIND | ME21N/22N/23N: Default delivery Date | |
PurchaseOrder | POItemProposer ELPEI | ME21N/22N/23N: Default delivery Date category | |
PurchaseOrder | POItemProposer KNTTP | ME21N/22N/23N: Default Account Assignment Category | |
PurchaseOrder | POItemProposer LGORT | ME21N/22N/23N: Default Storage location | |
PurchaseOrder | POItemProposer WERKS | ME21N/22N/23N: Default Plant | |
PurchaseOrder | Shopping-Basket #1 DROP-ON | X | ME21N/22N/23N: Shopping basket on-off |
PurchaseOrder | item_view SUBVIEW_INDEX | 18 | ME21N/22N/23N: Default Item Details tab |
PurchaseRequisition | DYN_4003-BUTTON TOGGLE_STATE | 2 | ME51N/52N/53N/54N: Header section collapsed (1), expanded (2) |
PurchaseRequisition | DYN_4004-BUTTON TOGGLE_STATE | 2 | ME51N/52N/53N/54N: Items section collapsed (1), expanded (2) |
PurchaseRequisition | DYN_4005-BUTTON TOGGLE_STATE | 2 | ME51N/52N/53N/54N: Item details section collapsed (1), expanded (2) |
PurchaseRequisition | REQ-HEADER-TAB SUBVIEW_INDEX | 2 | ME51N/52N/53N/54N: Default tab to be opened on Header section |
PurchaseRequisition | ReqProposer AFNAM | ME51N/52N/53N/54N: Default Requsitioner | |
PurchaseRequisition | ReqProposer BEDNR | ME51N/52N/53N/54N: Default Tracking Nr | |
PurchaseRequisition | ReqProposer EEIND | ME51N/52N/53N/54N: Default delivery Date | |
PurchaseRequisition | ReqProposer ELPEI | ME51N/52N/53N/54N: Default delivery Date category | |
PurchaseRequisition | ReqProposer KNTTP | ME51N/52N/53N/54N: Default Account Assignment Category | |
PurchaseRequisition | Shopping-Basket #2 DROP-ON | X | ME51N/52N/53N/54N: Shopping basket on-off |
PurchaseRequisition | req_item_view SUBVIEW_INDEX | 11 | ME51N/52N/53N/54N: Default Item Details tab |
RM06BA00 | USERVARIANT | SAP&STANDARD | ME5A: User variant |
RM06BZ00 | USERVARIANT | TEST | ME56/57: User variant |
RM07DOCS | PA_AISTR | ARCHIVE | MB51: Default Archive Information Structure |