Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV button Call Up Report OK_CODE &EB9

Former Member
0 Kudos

What does ALV button Call Up Report OK_CODE &EB9 do? I can find no documentation on it and I have no clue what it does. Any information on this would be great thank you

2 REPLIES 2

Former Member
0 Kudos

seems that the icon is ICON_TABLE_SETTINGS. dont think that has any relevance to its functionality

fabriziofazi2
Member
0 Kudos

HI

The icon is part of the "BRST Report to report interface" functionality.

The use can be set by customizing and in some applications, for example SAP Query.

The basic tables are TRSTI/TRSTT

Allows you to run reports or transactions from within a report.

To load tables you can use:

FORM start_brst_tool .

*------------------------------------------------- -------------------*

* BRST Report to report interface

* Tab. TRSTI/TRSTT

* Creation of reports to Call

* Reports chosen with &EB9

*------------------------------------------------- -------------------*

DATA ls_report TYPE rstirec.

*------------------------------------------------- -------------------*

ls_report-rtool = 'RT'. "ABAP/4 reports

ls_report-ronam = sy-repid.

CALL FUNCTION 'RSTI_REPORT_ADD'

EXPORTING

e_fccls = '9'

e_report = ls_report

EXCEPTIONS

no_authority = 1

wrong_function_call = 2

foreign_lock = 3

OTHERS = 4.

IF sy-subrc <> 0.

ENDIF.

ENDFORM.

Then you can use "&EB9" as it is or in the "&IC1":

FORM user_command_ic1 USING ps_selfield TYPE slis_selfield

CHANGING f_ucomm TYPE syucomm.

DATA ls_alv TYPE ty_alv.

*------------------------------------------------- -------------------*

READ TABLE gt_alv INTO ls_alv INDEX ps_selfield-tabindex.

CASE ps_selfield-fieldname.

WHEN 'LIPS_VBELN'.

IF ls_alv-lips_vbeln IS NOT INITIAL.

SET PARAMETER ID 'VL' FIELD ls_alv-lips_vbeln.

CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.

ENDIF.

WHEN 'VBBE_VBELN'.

IF ls_alv-vbbe_vbeln IS NOT INITIAL.

f_ucomm = '&EB9'.

SET PARAMETER ID 'AUN' FIELD ls_alv-vbbe_vbeln.

SET PARAMETER ID 'VST' FIELD ls_alv-vbap_vstel.

ENDIF.

ENDCASE.

ENDFORM. " USER_COMMAND_IC1

You can * BRST Report to report interface
* Tab. TRSTI/TRSTT
* Creazione dei report da Chiamare
* Report scelti con &EB9