Application Development and Automation 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: 
Read only

Report Drill Down

Former Member
0 Likes
739

Hello All,

I have a report which displays G/L Account header info from BKPF. It displays the fields in order as BUKRS BELNR BUDAT WAERS XBLNR TCODE USNAM KURSF. The requirement is to drill down for each of these records. The drill down should take the user to FB03 tcode 'Display Document-Overview'. How can I do this? Pls help.

Thanks

M A

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Hi

U should to display the fyscal year (GJAHR) too:

START-OF-SELECTION.

LOOP AT ITAB.
  WRITE: / ITAB-BUKRS,
  ...................

  HIDE: ITAB-BUKRS,
        ITAB-BELNR,
        ITAB-GJAHR.
ENDLOOP.

CLEAR ITAB.

AT LINE-SELECTION.

CHECK NOT ITAB IS INITIAL.

SET PARAMETER ID'BLN' FIELD ITAB-BELNR.
SET PARAMETER ID'BUK' FIELD ITAB-BUKRS.
SET PARAMETER ID'GJR' FIELD ITAB-GJAHR.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

Max

Hello All,

I have a report which displays G/L Account header info from BKPF. It displays the fields in order as BUKRS BELNR BUDAT WAERS XBLNR TCODE USNAM KURSF. The requirement is to drill down for each of these records. The drill down should take the user to FB03 tcode 'Display Document-Overview'. How can I do this? Pls help.

Thanks

M A

4 REPLIES 4
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
709

Hi,

You need to use call transaction and at line selection.

Read only

Former Member
0 Likes
710

Hi

U should to display the fyscal year (GJAHR) too:

START-OF-SELECTION.

LOOP AT ITAB.
  WRITE: / ITAB-BUKRS,
  ...................

  HIDE: ITAB-BUKRS,
        ITAB-BELNR,
        ITAB-GJAHR.
ENDLOOP.

CLEAR ITAB.

AT LINE-SELECTION.

CHECK NOT ITAB IS INITIAL.

SET PARAMETER ID'BLN' FIELD ITAB-BELNR.
SET PARAMETER ID'BUK' FIELD ITAB-BUKRS.
SET PARAMETER ID'GJR' FIELD ITAB-GJAHR.

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

Max

Read only

0 Likes
709

Thanks a lot Max

Read only

Former Member
0 Likes
709

If it is a normal report, then you can do this:

at user-command.

if sy-ucomm = <focde for double click>.

set parameter 'BLN' field itab-belnr. "This field must have been hidden in the end-of-selection section when it is written.

call transaction 'FB03' and skip first screen.

endif.