We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
Program Exit for the PBO in the initial screen.
You can use this Exit to change the header data and the control of the fields on the initial screen of the Earmarked funds. You can also regulate which functions are then deactivated.
The status or activity is also given in parameter I_TCTYPE. The status describes whether you are in create mode, change mode, and so on (see st2_* in Iinclude FMREQUAT) You can define field control information for the initial screen and and all other screens in table T_FLDPR.
You do not want the vendor to appear in the funds commitment display:
IF I_TCTYPE = ST2_ANL AND F_KBLK-BLTYP = BTY_COMMIT.
* Delete old entry
DELETE T_FLDPR WHERE FNAME = 'KBLD-LIFNR'.
T_FLDPR-FNAME = 'KBLD-LIFNR'.
T_FLDPR-KENNZ = '-'.
Meaning of the indicator (KENNZ field).
Will accept input: '.'
Display only: '*'
The functions which are not to be available can be listed in T_EXCL.
If you want to link the usage history display with an authorization check, the matching coding fragment could look like this:
...... "Query the authorization object
IF SY-SUBRC NE 0.
T_EXCL-FCODE = 'ENTW'.
In addition, header data can be changed in F_KBLK.