If the data that you want to extract is not visible on a screen, you can use IF_LSAPI (l-shape application programming interface) to pass the data to the side panel application. This API can be called from the back-end part of the dynpro application to write data to the data context. This mechanism forces you to modify the existing dynpro application (provided that this is possible).
Interface IF_LSAPI is the communication interface between the shell, the content area, and the side panel application. For more information, see the interface documentation in the ABAP system.
If the data to be provided to the side panel is not displayed as an SAP GUI field, add the following programming code in the ABAP program:
DATA lo_lsapi TYPE REF TO if_lsapi. lo_lsapi = cl_lsapi_manager=>get_instance( ). lo_lsapi->if_lsapi_data_context~set_tag_value( name = lv_tag_name type = lv_tag_type value = lv_tag_value ).
Parameter |
Type |
Associated Type |
Default |
Description |
---|---|---|---|---|
NAME |
Importing |
STRING |
Tag name to be set |
|
TYPE |
Importing |
STRING |
STRING |
Tag data type |
VALUE |
Importing |
STRING |
Tag value to be set |