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: 

Printer and modify table

Former Member
0 Kudos
76

Hello:

I face the problem as follow:

If I preview, do not modify the table I create. If I print by printer in fact, must modify the table.How to make it comg true.

Regards&Thanks!

zagory

1 ACCEPTED SOLUTION

Former Member
0 Kudos
36

Hi zagory,

1. what i understood is that

u want to DETECT

whether the user has select print-preview

or print.

2. in sapscript we have to do like this :

3.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

form = 'ZAM_TEMPSS1'

IMPORTING

<b> RESULT = RESULT</b>

exceptions

canceled = 1.

4. this RESULT

has one field

<b> TDPREVIEW</b>

5. It will be X if preview,

blank if PRINT.

6. From here u can detect

regards,

amit m.

1 REPLY 1

Former Member
0 Kudos
37

Hi zagory,

1. what i understood is that

u want to DETECT

whether the user has select print-preview

or print.

2. in sapscript we have to do like this :

3.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

form = 'ZAM_TEMPSS1'

IMPORTING

<b> RESULT = RESULT</b>

exceptions

canceled = 1.

4. this RESULT

has one field

<b> TDPREVIEW</b>

5. It will be X if preview,

blank if PRINT.

6. From here u can detect

regards,

amit m.