on 03-23-2012 12:30 PM
The scenario is like If I will give “PRINT” then it gives JOB_OUTPUT_INFO-OUTPUTDONE = ‘X’ in the smart form function module and if I will give “PRINT PREVIEW” then it gives JOB_OUTPUT_INFO-OUTPUTDONE = ‘ ’. It is working fine with one document.
For Multiple document its not working.
bcoz CONTROL_PARAMETERS has two fields NO_OPEN, NO_CLOSE. The below logic is written for ‘not every time cursor goes on to PRINT button’. It only goes once for PRINT button
It has logic like with in loop.
SSF_FUNCTION_MODULE_NAME
Loop at itab into wa.
LS_CTR-NO_OPEN = 'X'.
LS_CTR-NO_CLOSE = 'X'.
AT FIRST.
LS_CTR-NO_OPEN = ' '.
ENDAT.
AT LAST.
LS_CTR-NO_CLOSE = ' '.
ENDAT.
Call func /1BCDWB/SF00000248'.
EXPORTING
CONTROL_PARAMETERS = LS_CTR
IMPORTING
DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO
JOB_OUTPUT_INFO = JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Endloop.
Because of above Logic in smartform function module this JOB_OUTPUT_INFO-OUTPUTDONE = ‘ ’ always become BLANK form multiple document print and the last document become JOB_OUTPUT_INFO-OUTPUTDONE = ‘X’ after giving “PRINT”.
For this If user gives PRINT then the printout data should be modifying ZTABLE.But it modify the last data only.
I need help on this for not every time cursor gose to print and the Ztable get modified by all documents.
Thanks & Regards
Jahnavee
Hi,
Can you explain the process and what you trying to acheive functionality wise and not technically. So that to understand what you are trying to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Good Morning
I have to print multiple Contract Document and with that data should update the ZTABLE, And for every document the Print screen should not open. Only once open the "PRINT SCREEN" for giving 'PRINT'. For that I already add the logic. But the problem is coming that because of that logic the "PRINT SCREEN" open once, but then not all documents are added in the ZTABLE. Only the last document add in the ZTABLE.
It has reason that JOB_OUTPUT_INFO-OUTPUTDONE = ‘ ’ si coming blank for every document. only last document has JOB_OUTPUT_INFO-OUTPUTDONE = ‘X’.
thats why only last document update in the ztable.
I hope it will help u to understand the scenario.
Thanks & Regards
Jahnavee Trivedi
Hi,
Check this
http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/content.htm
If you want to start a new spool request for the print request, set the
TDNEWID field of the Output Options in this first call.
Also check http://help.sap.com/saphelp_nw04/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/content.htm
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.