Stop generating spool in smartform.
Hi All,
I need to stop soopl generation in smart forms .Can any one give some suggestions . I have used TDDELETE = X but it is not working . SAP Gurus give your suggetions .....
Regards,
Veera
Hello,
I propose 2 methods:
Please follow the following logic:
1. Create a New IntTab with unique Customers.
2. Loop in this New IntTab.
3. Initialize all the Fields/Structures.
4. Get the details of the corresponding Customer.
5. Call the SSF in the Loop.
This would reinitialize the SSF Variable for Page number.
.or.
I understand that the PAGE numbers are written in separate window.
You need additional global field in SSF to hold the Customer number, and one for Page Number.
First, you initialise with the first customer number.
Since, this window being called for every page make a comparison of the IntTab Customer Number with the New Field for Customer Number.
If both does NOT match, you reinitialize the field for Page and if it matches you can increment the Page Number.
Hope either of the above helps you.
Best Regards, Murugesh AS
Similar Messages
-
How can we stop generating spools for some batch jobs?
HI guys,
Is memory will be occupied in SAP during spool generation from batch jobs ?
If yes, to reduce occupied memory, we want to stop generating spools for few batch jobs. Please suggest me the way how we can acheive this.(Step details)
Please help me.
Thanks in Advance.
Regards,
SahilStopping the spool generation for background jobs will not help you to reduce the memory load.
First check what is the total memory utilization and type of processes where the memory is being utilized more.
EWA can give you better idea to get the above details.
Spooling concept doesn't eat that much of memory what you are expecting.
Regards,
Nick Loy -
Long time for generating spool request for smartforms
Hi,
I'm have designed a smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
The Code i used is below
CALL FUNCTION lv_fname
EXPORTING
p_belnr = p_belnr
p_bukrs = p_bukrs
p_gjahr = p_gjahr
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please help me out to sort this issue.
Thanks,
Ramesh
Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AMHi Rameshkumar,
you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
Regards
Clemens -
SSF_OPEN generating spool only for LOCL Device
Hello all,
I am using SSF_OPEN and SSF_CLOSE function module and in between i am calling two function modules.
I have to generate a spool request for the smartform output (No preview) with the output device mentioned through selection-parameter.
The problem i am getting is , the spool is always generating for device 'LOCL' , no matter what device i give in the selction parameter.
Please help me solve this issue.
Here is the code snippet i have used:
lw_control-no_open = 'X'.
lw_control-no_close = 'X'.
lw_control-no_dialog = 'X'.
lw_option-tdnewid = 'X'.
lw_option-tdimmed = 'X'.
lw_option-tddest = p_ldest.
lw_option-tddelete = space. "Delete After Printing
*Opens an internal session of smartform,
* call all smartforms in this sessions
CALL FUNCTION 'SSF_OPEN'
EXPORTING
control_parameters = lw_control
output_options = lw_option
IMPORTING
job_output_options = lw_job_output
EXCEPTIONS
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
What are the parameters to be passed to the smartform? is it sufficient if passed control parameters here only on SSF_OPEN Fm ?
Regards,
GiriKindly use in this way to generate spool as per your required output device
data : tspoolid1 type ssfcrespd,
tspoolid2 type ssfcrescl,
tspoolid3 type ssfcresop,
spool type ssfcrescl-spoolids,
control_parameters type ssfctrlop,
output_options type ssfcompop.
output_options-tdnoprev = 'X'.
output_options-tdnewid = 'X'.
output_options-tdimmed = 'X'.
output_options-tddelete = 'X'.
control_parameters-no_dialog = 'X'.
output_options-tddest = 'LP02'.
call function fm_name
exporting
control_parameters = control_parameters
output_options = output_options
user_settings = ''
goodsmvt_header = goodsmvt_header
poheader = poheader
ch1 = ch1
head = ch2
importing
document_output_info = tspoolid1
job_output_info = tspoolid2
job_output_options = tspoolid3
* tables
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5.
if tspoolid2-spoolids is not initial.
* To hold the value of tab index
spool = tspoolid2-spoolids.
read table spool into wa_spool index 1.
concatenate 'GRN_NOTE_' v_mblnr into v_npdf.
** v_npdf = v_mblnr.
submit rstxpdft4 using selection-screen '1000'
with spoolno eq wa_spool
with p_file eq v_npdf
and return.
endif.
Many Thanks / HImanshu Gupta -
Hi,
I need the standard Program name to Generate the spool in Smartform program and use the spool to convert to PDF and then send the PDF to external Mail ID.
Regards,
thanigaiHi:
have a look
http://sapbrainsonline.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
RSPO_OPEN_SPOOLREQUEST -
Creating Spool from Smartform??
Hi
Can anybody tell how to get the spool from smartform?
Thanks in Advance
Davinder SinghHi Davinder,
After the execution of smartform function module the import parameter JOB_OUTPUT_INFO is populated with data. This is of type SSFCRESCL.
The component SPOOLIDS of JOB_OUTPUT_INFO contains list of spool id generated for smartform..
This spool id can be used to read spool request generated using any standard func module like RSPO_RETURN_ABAP_SPOOLJOB.
Hope this helps you....
Enjoy SAP.
Pankaj Singh. -
Preventive maintance plan stopped generating order automatically
hi,
greetings.
hi have strucked in one place.
we are running back ground job scheduling for both time basd maintanace and performance based maintance.
it was generating good for all
un fortunately system stopped generating it is keeping hold even then call dates is completed
call no plan date call date completion duepackage scheduling type/status active version unit
9 10.12.2011 10.12.2011 WK Scheduled Complete 0 Da
10 17.12.2011 17.12.2011 WK Scheduled Complete 0 Da
11 24.12.2011 24.12.2011 WK Scheduled Complete 0 Da
12 31.12.2011 31.12.2011 WK 1M Scheduled Complete 0 Da
13 07.01.2012 07.01.2012 WK Scheduled Complete 0 Da
14 14.01.2012 14.01.2012 WK Scheduled Complete 0 Da
15 21.01.2012 21.01.2012 WK Scheduled Complete 0 Da
16 28.01.2012 27.01.2012 WK 1M Scheduled Hold
17 04.02.2012 03.02.2012 WK Scheduled Hold
18 11.02.2012 10.02.2012 WK Scheduled Hold
19 18.02.2012 17.02.2012 WK Scheduled Hold
20 25.02.2012 24.02.2012 WK 1M Scheduled Hold
plz suggest us in the t-code of sm37 when we checkd with basis team its getting releasd ,and finshed with spool request
and no errors also.
after reschedulnig also its not getting scheduled for completed dates.Hi,Divakar
you might have removed sort field or Authorization group field in maintenance plan additional data tab.
Please check once.
Regards,
Sunil -
Sends mail to vendor as well as generates spool
Hi All,
1)I am triggering PO for output type ZNEU for external send option(transmission medium is 5).it sends mail to vendor as well as generates spool.
I want to stop spool generation.
2) Also i can debug the driver program while i click on print preview buttion in ME22n but i can't debug the driver program while i trigger the output type although i use /h and update debugging
Could you please help me out.
Thanks
MSIHi,
I need to send a mail to inbox of an user and external mail id of the same user.
Can I achieve this through a single send mail step?,
First Check as Mentioned by Arghadip Kar , if not working follow the below method.
1) Through the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" you can send.
2) You have to write a Program and Using the above FM you have send the mail.
3) Refer this [Link|https://wiki.sdn.sap.com/wiki/x/nYKdAw]
Regards,
Surjith -
Unable to generate spool for two tables in report output
Hi,
I created report with two custom containers displaying two tables in output. When I execute the report in background spool is created only for one table in top custom container.
What should be done to generate spool for both the tables in two different custom containers.
Thanks,
Abhiram.Hi,
Check the bellow link for your requirement.
<<link removed>>
Regards,
Goutam Kolluru.
Edited by: kishan P on Feb 2, 2012 1:50 PM -
Regarding running a report in background and generate spool
Hi,
I am developing a report [<b>REPORT1</b>].
It is taking long to execute if data is more.
Now i want to schedule this report in background and generate spool along with.
So once i execute REPORT1 it should run in background & generate spool?
Can anybody give inputs for the same!
Thanks,
Deep.Hi,
to generate spool, use below code
FORM create_spool .
CONSTANTS : l_c_device(4) VALUE 'LOCL'.
Create Spool Request
NEW-PAGE PRINT ON
LINE-SIZE 120
DESTINATION l_c_device
IMMEDIATELY ' '
KEEP IN SPOOL 'X'
NEW LIST IDENTIFICATION 'X'
NO DIALOG.
ENDFORM. " create_spool
And after createing spool to get the spool number use below code,
FORM obtain_spool_id .
TYPES : BEGIN OF t_tsp01,
rqident TYPE tsp01-rqident,
rqowner TYPE tsp01-rqowner,
END OF t_tsp01.
DATA : it_tsp01 TYPE STANDARD TABLE OF t_tsp01,
wa_tsp01 LIKE LINE OF it_tsp01.
SELECT rqident
rqowner
FROM tsp01
INTO TABLE it_tsp01
WHERE rqowner = sy-uname.
SORT it_tsp01 BY rqident DESCENDING.
READ TABLE it_tsp01 INTO wa_tsp01 INDEX 1.
IF sy-subrc = 0 .
v_spool_nr = wa_tsp01-rqident.
ENDIF.
Capture the immediate spool created for this report
v_spool_nr = sy-spono.
ENDFORM. " obtain_spool_id
<b>Reward points</b>
Regards -
Is there any FM to generate spool request for error log of a background job
Hi,
I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log or how can this be done? Kindly provide sample code if possible.
Thanks.
Nimish Dongare.Hi Nimish,
How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
If u don mind, can u give me ur email id to communicate.
Thanks,
Shreekant -
Windows 8 stops printer spooler in vista pc
My AIO HP F4280 printer spooler service in my Windows Vista PC stops when I send a print job via wireless from my Windows 8 laptop PC. I downloaded and installed the Windows 8 software for the F4280 and if the printer is connected to the Windows 8 PC, prints from the Windows 8 PC, as well as prints sent via wireless from the Vista PC, are done with no issues.
Going back to wireless from the Win 8 to the Vista continues to stop the spooler service.
All known updates for both PCs have been installed.Hello Campersteve. Please refer to this Microsoft forum for troubleshooting on this issue: http://answers.microsoft.com/en-us/windows/forum/windows_8-hardware/print-spooler-keeps-stopping-win...
The forum contains great troubleshooting steps that could resolve the issue. Let me know if this assists you or not. I'm only here to help!
Mario
I worked on behalf of HP. -
RBCA_PP_SIF_RUN_PP_TEMPLATE generates spool only in debug mode
Hi
I have developed a PP report based on the templaate RBCA_PP_SIF_RUN_PP_TEMPLATE. The report is a simple selection and is supposed to write to the spool (success or error messages). Using WRITE <text> should write to the spool for every job under this parallel processing.
When I am debugging the code, or simply set a breakpoint (BCADEBUG) and execute, spool appears. But if i simply run the job with same variant (no debugging, no BCADEBUG), the spool does not appear.
Any suggestions why this is happening ans how to generate spool in all modes.
Regards
VikramHi Billy,
this is nasty.
My strategy for this situation would be to start 2 browsers.
In 1 browser session I use the Apex Application Builder and in the other (in private/ incognito) browser I run the application in debug mode.
The debug information can be viewed in the Application Builder using the Utillities or by using the URL to the debug screen directly like so
http://localhost:8888/pls/apex/f?p=4000:19:<APP_SESSION>:::RIR,19:IR_APPLICATION_ID,IR_PAGE_ID:<APP_ID_OF_APP_TO_DEBUG>,<PAGE_TO_DEBUG>regards,
Erik-jan -
Stop generating the IDOC, soap-xi-idoc
Dear SDN,
I have a interface SOAP(HTTP) -> XI -> R/3.
In this interface, 3rd party sending 4 fields and are getting updated in R/3.
Now, I need to change in this interface.
There are 4 fields in sender side and one field is like (PersonNumber)primary field. while updating this fields, I have to check whather the primary field is exist in R/3 then only update remaining fields else do not update the record/IDOC in R/3.
And we are using XSLT mapping.
The intension of the chage in interface is when the PersonNumber doesnot exist then do not generate the IDOC. whenever the PersonNumber is not there the system is generating the IDOC details with status 51.
So I need to stop generating IDOC when the PersonNumber is not there in R/3 system .
In this scenario, how can I procede further.
Please need your help and help me.
Thanks
Bala PrasadHi,
In XI you can stop an interface (without generating error) only in receiver determination.
In your case you can use receiver determination condition which checks if PersonNumber is coming blank etc. If blank then choose a non existing receiver and choose the option "Terminate Message Processing without any error"
In case if you have any complaex condition then you will have to go for enhanced receiver determination.
Let me know in case you need any further help.
Regards,
Anurag Mahendru. -
Dynamic Documents ( CL_DD_DOCUMENT ) in background to generate spool
Hi Everyone,
Is it possible for a Dynamic Document with the use of CL_DD_DOCUMENT to run in background and generate spool output?
If it is possible, can you please tell me how?
Thanks in advance.Hi Denver,
dynamic documents are screen controls to be put in a (enjoy) container controlled by SAPGUI. In background, SAP just ignores any display processing for GUI controls.
The CL_GUI_ALV_GRID is an exception here, in background output is converted to an ALV list. I don't know and I don't think that for dynamic documents anything comparable exists.
Regards,
Clemens
Maybe you are looking for
-
How to find out whether the system user is a vendor or a purchaser
Hi, I am working in SRM 5.0. I have a requirement that some fields of Bid invitation can be visible by purchaser but not to bidder. How to find out whether the system user (user id though which system logged in) is a vendor or a purchaser. Kindly hel
-
Pages can't open a document, what to do?
Hi, Since a couple of days Pages won't open any document for me. This includes documents I open immediatly from an e-mail, documents that I open via Pages or documents that I open via Documents. I get the message Pages has stopped immediatly then, in
-
PrintToGo only when connected to WiFi?
Hello, When I'm not connected to wifi, the documents printed with PrintToGo do not get zo my Z10. Is that how it should work or should documents always arrive, even when I'm on my mobile network?
-
ORA-02097,ORA-00384 error
I want to use db_recycle_cache_size,I find the size of db_recycle_cache_size is 0,like follows: SQL> show parameter db_recycle_cache_size NAME TYPE VALUE db_recycle_cache_size big integer 0 Then I use alter system command to resize db_recycle_cache_s
-
How do I make a boolean tone?
On my VI, I currently have 2 boolean indicators (LEDs). In addition to these LEDs lighting up, I would like to have audible tones as well. For example, whenever LED 1 is on, I want to play a 440Hz tone. Whenever LED 2 is on, I want to play a 880Hz