03-22-2006 4:30 AM
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
03-22-2006 4:37 AM
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.
03-22-2006 4:37 AM
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.