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

Handle print function in standard report

Former Member
0 Likes
498

Hi,

Is it possible to handle print event in standard report ? I made my own status-gui with print button activated (assigned function code), added in code:

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'PRN'.

PERFORM my_prn_control.

ENDCASE.

but, when I press print button in report, at-user-command section isn't triggered 😕

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Hi,

Do one thing.

Use dubugger. Put it at case statement.

Click on print button or menu.

See what is in sy-ucomm.

Reward if useful!

Hi,

Is it possible to handle print event in standard report ? I made my own status-gui with print button activated (assigned function code), added in code:

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'PRN'.

PERFORM my_prn_control.

ENDCASE.

but, when I press print button in report, at-user-command section isn't triggered 😕

2 REPLIES 2
Read only

Former Member
0 Likes
467

Hi,

Do one thing.

Use dubugger. Put it at case statement.

Click on print button or menu.

See what is in sy-ucomm.

Reward if useful!

Read only

0 Likes
466

strange... after few restarting of abab probram sy-ucomm cointains correct assigned value