Fonction SAP BSV_HELP_STATUS_LINE - F1 Help for a Status in a Status Bar

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_LINE BSVX-STTXT C 40 Status bar
I_MODE 0 'I' X Mode: 'I' = System Status, 'E' = User Status
I_OFFSET SYST-FDPOS I 4 Cursor Position in the Status Bar
I_STSMA JSTO-STSMA C 8 SPACE X Status Profile (Needed in Mode 'E')

Functionality
This function module can be used to program F1 help for status bars.
If you press F1 on a status abbreviation, the documentation to theunderlying system or user status is displayed.
If you press F1 over a BLANK in the status bar or over a field text,the general F1 help for the status bar is displayed.

Example

Screen fields:
MKAUF-SYSST: System status line
MKAUF-ANWST: User status line

In the screen flow logic:
field mkauf-sysst module help_status on help-request.
field mkauf-anwst module help_status on help-request.

module help_status input.
data: fn like screen-name,
offs like sy-tabix,
text like mkauf-sysst.
get cursor field fn offset offs value text.
case fn.
when 'MKAUF-SYSST'.
call function 'BSV_HELP_STATUS_LINE'
exporting
i_line = text
i_offset = offs
i_mode = 'I'
i_stsma = ' '.
when 'MKAUF-ANWST'.
call function 'BSV_HELP_STATUS_LINE'
exporting
i_line = text
i_offset = offs
i_mode = 'E'
i_stsma = kauf-par_stsma.
endcase.
endmodule. " HELP_STATUS INPUT

Description
40-character status line as delivered by the function moduleSTATUS_TEXT_CONVERSION.

Description
Cursor position in the status line as delivered by
GET CURSOR FIELD .. OFFSET position