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

Printer and modify table

Former Member
0 Likes
371

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
Read only

Former Member
0 Likes
331

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
Read only

Former Member
0 Likes
332

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.