How to know the spool requests generated from my program?
hi
I want to get the spool request(s) that are generated from my report that's run either in foreground or background? how to know this? i know that we can go to sm37 and see, but is there any table or fm which stores this data? if i give my program name that's run on a particular date, i should get the spool request numbers. tsp01 only has the spool no. and not the program name..pl suggest...thanks all
Sathish. R
Hi ,
The system field sy-spono contains the spool numbers .
If you have such requirement, you can create one custom table with fields :
spool no, program , date , time
whenever you run ur program update this table ,
with system fields . spono , sy-repid , sy-datum and sy-uzeit .
Thaks .
Similar Messages
-
How to see the spool request number
hi experts,
how to see the spool request number of any object......
may be form or report........U can go to SP01/SP02.
For generating spool u can look into this code.
FORM write_to_spool.
DATA : l_f_list_name LIKE pri_params-plist,
l_f_destination LIKE pri_params-pdest,
l_f_spld LIKE usr01-spld,
l_f_layout LIKE pri_params-paart,
l_f_line_count LIKE pri_params-linct,
l_f_line_size LIKE pri_params-linsz,
l_f_out_parameters LIKE pri_params,
l_f_valid.
l_f_line_size = 255.
l_f_line_count = 65.
l_f_layout = 'X_65_255'.
l_f_list_name = sy-repid.
to get defult spool device for the user
SELECT SINGLE spld INTO l_f_spld FROM usr01 WHERE bname = sy-uname.
IF sy-subrc = 0.
MOVE l_f_spld TO l_f_destination.
ENDIF.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
COPIES = C_NUM3_UNKNOWN
COVER_PAGE = C_CHAR_UNKNOWN
DATA_SET = C_CHAR_UNKNOWN
DEPARTMENT = C_CHAR_UNKNOWN
destination = l_f_destination
EXPIRATION = C_NUM1_UNKNOWN
immediately = 'X'
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
layout = l_f_layout
line_count = l_f_line_count
line_size = l_f_line_size
list_name = l_f_list_name
LIST_TEXT = C_CHAR_UNKNOWN
MODE = ' '
NEW_LIST_ID = C_CHAR_UNKNOWN
NO_DIALOG = C_FALSE
RECEIVER = C_CHAR_UNKNOWN
RELEASE = C_CHAR_UNKNOWN
REPORT = C_CHAR_UNKNOWN
SAP_COVER_PAGE = C_CHAR_UNKNOWN
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = l_f_out_parameters
valid = l_f_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF l_f_valid NE space.
NEW-PAGE PRINT ON PARAMETERS l_f_out_parameters.
WRITE : /5 'Material No.',
25 'Message Type',
40 'Message Issued'.
ULINE.
LOOP AT g_t_message_table WHERE type = 'E'.
WRITE : / g_t_message_table-matnr UNDER 'Material No.',
g_t_message_table-type UNDER 'Message Type',
g_t_message_table-message UNDER 'Message Issued'.
ENDLOOP.
NEW-PAGE PRINT OFF.
ENDIF.
ENDFORM. " WRITE_TO_SPOOL
Regards -
How to get the spool request number ?
Hi All,
I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
the transaction the print screen comes where I can do
print preview or print.
Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
How do I get the spool request number ?
Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
Please let me know.
Answers will be awarded...
TusharHi,
You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
Regards,
Gagan -
WPF: How to know the selection is come from datagrid or from ListBox?
Our application has a page which includes DataGrid and ListBox.
Both ItemSource are binding to PlateCells.
public ObservableCollection<CellVM> PlateCells
public class CellVM : BaseViewModel
public CellVM(int wellNumber)
WellNumber = wellNumber;
Row = wellNumber / define.NumberofWellsInRow;
Col = wellNumber % define.NumberofWellsInRow;
// row and col are 0-based
public int WellNumber { get; set; }
public int Row { get; set; }
public int Col { get; set; }
bool _isSelected;
public bool IsSelected
get { return _isSelected; }
set
_isSelected = value;
OnPropertyChanged("IsSelected");
string _sampleId;
public string SampleId
{ get { return _sampleId; }
set
_sampleId = value;
OnPropertyChanged("SampleId");
when a cell is selected, the cell will be highlight in both DataGrid and ListBox.
We also implement SelectAll button for both DataGrid and ListBox.
And SelectAll is ToggleButton. First time click is select All cells and second time click, it will unselect All cells.
What we notice when SelectAll button is click, all cells in both DataGrid and List box are highlight.
After that click on a grid any cell, all cells becomes unselected in both DataGrid and ListBox.
We assume this the behavior from DataGrid, after click SelectAll and click any cell in DataGrid will remove all selection and only highlight one cell in the datagrid.
However, this is behavior does not happen in ListBox. click any cell in ListBox only unselect that cell and not unselect all cells.
So we need to know click(selection) is coming from DataGrid or ListBox and take different actions.
How do we know the click is coming from DataGrid or ListBox? Thx!
JaneC>>How do we know the click is coming from DataGrid or ListBox? Thx!
It depends on where in the code you want to be able to determine this. In the view model class you cannot really know if the user clicked in the ListBox or in the DataGrid because the view model knows nothing (and shouldn't know either) about any of these
controls. It only exposes a property that may be set from anywhere.
Handling the GotFocus event for any or each of the controls seems to be a good solution because then you can take the appropriate action depending on which control was focused/clicked.
You could of course move the code that is being executed when the GotFocus event occurs, i.e. the code in your event handler, from the code-behind of the view to the view model class by using a command in the view model class and then hook up the GotFocus
event to this command using event triggers:
<DataGrid>
<i:Interaction.Triggers>
<i:EventTrigger EventName="GotFocus" >
<i:InvokeCommandAction Command="{Binding YourCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</DataGrid>
How to do this is a topic of its own though. Please refer to my blog post about how to handle events in MVVM for more information:
http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/. You will need to reference an assembly that is part of the Expression Blend SDK which you can download from here:
http://www.microsoft.com/en-us/download/details.aspx?id=10801.
Anyway, as mentioned, handling the GotFocus event seems like a good idea here since you cannot determine which control that was clicked in the setter of the source property in the view model class.
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question. -
How to know the all user name from system/system login
hi all,
i want to know the all user names from system login who are the existing user like
regards
srinivasHello,
Using DBA_USERS will give more details
select * from dba_users;Regards -
How to genrate the spool request for the smart form.
Hi Friends,
I have a page to FAX to vendor for which i have made a smartform for the page to be send. For this purpose i have to genrate the spool request without displaying the output of the smartform. The program should give the spool number genrated.
can you please suggest somthing.
Regards,
Vidya.hi
for this when u r callin the form write some code in u r program
IF RADIOBUTTON = 'X' . "GET THE SPOOL
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ELSE.
CONTROL_PARAMETERS-NO_DIALOG = ' '.
ENDIF.
and pass this to the calling form.
Please Close this thread.. when u r problem is solved. Reward if Helpful
Regards
Naresh Reddy K -
How to delete the Transport Request release from SE09
Please let me know How can I delete the New Transport release request from SE09 and if I HAVE OBJECTS SUCH AS Process chain and process variant, infopackage in one request. Being A NEW request it has Delevelopment correction ABDK904193 under main request ABDK903667, should I double click on ABDK904193 FIRST AND then go to request editor and change - display and select all request and delete it and save and then delete main request ABDK903667. If I do this will there be any problems on Process chain Objects such as locking or unlocking. let me know if there are any more steps that need to be taken to avoid any trouble.
hope u will help me asap
thanks
hardeepHi Hardeep,
Allways delete child node and then parent node.Coz Parent node does not allow you to delete straight away so first delete child node either by double clicking and select all>>delete or individually select each object by placing cursor on it and say Delete by pressing the Delete Icon..it will prompt u message obj is locked press delete that will delete the object, subsequently when all objects are deleted then delete the request also.
when u delete a request all the objects saved or locked onto that request are released or unlocked.
So all the objects that were previously locked or saved onto a req are now ready to save into another req.
Simply say, once the objects are deleted from the req they are independent again with latest changes and readily available to save onto a diff req.
another option is release the req but do not transport it to target system.
Regards
Ellora -
How to print the spool request with a given file name.
Dear Experts;
I used FM RSPO_OUTPUT_SPOOL_REQUEST to print spool request. And the device type is a local pdf printer. By default, the download file name will be the spool id. How can I change the download file name? Thanks!
Convert 'CutePrinter' to qualify the format.
CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
EXPORTING
input = 'CutePrinter'
IMPORTING
output = lv_device.
Downloading as pdf by printer
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
device = lv_device
spool_request_id = pa_spool
EXCEPTIONS
archive_dest_invalid = 1
archive_dest_not_found = 2
archive_dest_no_right = 3
cannot_archive = 4
change_archdest_no_right = 5
change_copies_no_right = 6
change_dest_no_right = 7
change_devtype_no_right = 8
change_prio_no_right = 9
change_telenum_no_right = 10
change_title_no_right = 11
dest_invalid = 12
dest_not_found = 13
dest_no_right = 14
internal_problem = 15
invalid_fax_attribute = 16
invalid_parameters = 17
non_owner_no_right = 18
no_layout = 19
no_spool_request = 20
out_again_no_right = 21
spooler_problem = 22
OTHERS = 23SELECT SINGLE * FROM tsp01 into rq WHERE rqident = p_spool .
* To get attributes of spool request
CALL FUNCTION 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
EXPORTING
rqident = p_spool "Spool Request Number
IMPORTING
rq = rq "Consists the Spool Document Type Details
TABLES
attributes = dummy
EXCEPTIONS
no_such_job = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*Convert spool request into PDF, dependent on document type
IF rq-rqdoctype = 'OTF' OR rq-rqdoctype = 'SMART'. "Doc Type is of Sap Script or Smart form
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool "Spool Request Number
no_dialog = 'X'
pdf_destination = 'X'
no_background = 'X'
IMPORTING
pdf_bytecount = bin_size
bin_file = pdf_xstring "This fm will convert the spool data into
TABLES
pdf = it_pdf . "PDF Format in this importing string
ELSEIF rq-rqdoctype = 'LIST'. "Doc Type of List
* Convert spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool "Spool Request Number
no_dialog = ' '
dst_device = 'LOCL'
pdf_destination = 'X'
no_background = 'X'
IMPORTING
pdf_bytecount = bin_size
bin_file = pdf_xstring "This fm will convert the spool data into
"PDF Format in this importing string
TABLES
pdf = it_pdf.
ENDIF.
* Downloading file to p_file loation in PDF foramt
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_size
filename = w_filename "Custom File name
filetype = 'BIN'
TABLES
data_tab = it_pdf
Prabhudas -
How to use the column names generated from Dynamic SQL
Hi,
I have a problem with Dynamic SQL.
I have written an SQL which will dynamically generate the Select statement with from and where clause in it.
But that select statement when executed will get me hundreds of rows and i want to insert each row separately into one more table.
For that i have used a ref cursor to open and insert the table.
In the select list the column names will also be as follows: COLUMN1, COLUMN2, COLUMN3,....COLUMNn
Please find below the sample code:
TYPE ref_csr IS REF CURSOR;
insert_csr ref_csr;
v_select VARCHAR2 (4000) := NULL;
v_table VARCHAR2 (4000) := NULL;
v_where VARCHAR2 (4000) := NULL;
v_ins_tab VARCHAR2 (4000) := NULL;
v_insert VARCHAR2 (4000) := NULL;
v_ins_query VARCHAR2 (4000) := NULL;
OPEN insert_csr FOR CASE
WHEN v_where IS NOT NULL
THEN 'SELECT '
|| v_select
|| ' FROM '
|| v_table
|| v_where
|| ';'
ELSE 'SELECT ' || v_select || ' FROM ' || v_table || ';'
END;
LOOP
v_ins_query :=
'INSERT INTO '
|| v_ins_tab
|| '('
|| v_insert
|| ') VALUES ('
|| How to fetch the column names here
|| ');';
EXECUTE IMMEDIATE v_ins_query;
END LOOP;
Please help me out with the above problem.
Edited by: kumar0828 on Feb 7, 2013 10:40 PM
Edited by: kumar0828 on Feb 7, 2013 10:42 PM>
I Built the statement as required but i need the column list because the first column value of each row should be inserted into one more table.
So i was asking how to fetch the column list in a ref cursor so that value can be inserted in one more table.
>
Then add a RETURNING INTO clause to the query to have Oracle return the first column values into a collection.
See the PL/SQL Language doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/returninginto_clause.htm#sthref2307 -
How to delete the spool request number
HI Masters,
My program creates a spool request. And i want to delete that spool request number? How to delete that??
Thanks in advance.hi
good
The program are RSPO0041 or RSPO1041.
This is handy whenever you encounter a user who managed to create a lot of spool requests which are choking your system.
Deleting them with SP01 will be too slow and you will get time out if it exceed the online time limit specify by your basis people.
<b><REMOVED BY MODERATOR></b>
thanks
mrutyun^
Message was edited by:
Alvaro Tejada Galindo -
How to modify the SQL being generated from BC, to fix the issue
Hi,
We have seen a strange issue in our implementation.The issue is also reproducible in Vanilla environment.
In Contact List Applet, if we Query in First Name or Last Name fields in UI, the Query being generated is,showing that, Siebel is Querying for first name in S_POSTN_CON.CON_FST_NAME. This is a normalized column for S_CONTACT.FST_NAME.
This is causing the performance issue.
When I check the configuration in Tools for Contact BC's First Name field, it is configured as follows.
Join = S_CONTACT
Column = FST_NAME.
I do not understand, Why it is still querying in S_POSTN_CON.
Any suggestions on how to fix this issue to make the Query to be performed on S_CONTACT.FST_NAME?
Regards
VamshiHi Vamshi,
As Robert mentioned, there just happens to be a number of things that need to be analyzed prior to changing the shape of the buscomp that triggers that sql.
If this siebel performance issue occurs on a production environment, you should certainly look at the performance trend/characteristics of that sql over time and assess its the impact on your business community (...), then carefully identify its -true- root-cause, implement a fix and validate it against a production-like environment in order to verify there is no regression associated with it; once the fix is deployed on your production system, you want to monitor its benefit overtime and on a 24x7 basis…all this may sound very generic yet good practices.
If you are looking at -effectively- solving this siebel peformance issue (and others...) in a timely manner, best is to have your Siebel Teams 1)use a Siebel-specific performance monitoring software technology built by Siebel Architects (like GMT v1.8.5, more info @ www.germainsoftware.com) that is able to collect 24x7 all the data needed for root-cause analysis(and more..), and 2)have senior siebel architects (like Robert's team) that have successfully solved tones and severe performance and scalability issues for many years, provide technical guidance to your team throughout the resolution process.
Siebel CRM is a great CRM software solution that is very complex. Every "switch you turn on/off", every customization you built into it may generate performance issues if it is not carefully implemented, optimized, tested...and monitored 24x7 once it is deployed onto your production system.
Good luck w/ this..
Regards,
Yannick Germain
CEO & Founder
GERMAIN SOFTWARE llc
Complete Siebel Performance Monitoring Tool
21 Columbus Avenue, Suite 221
San Francisco, CA 94111, USA
Cell: +1-415-606-3420
Fax: +1-415-651-9683
[email protected]
http://www.germainsoftware.com -
How to know the Transport Request status?
Hi all,
i need to develop a report wherein i need to display the status of the Transport Request..i mean it should display wheteher it has move to the Production system?Is there any table or FM which gives the cross system details of the Transport Request.
Thanks in advance,
Rakesh.Hi Rakesh,
Please check this FM.
TR_LOG_OVERVIEW_REQUEST_REMOTE
TR_LOG_OVERVIEW_REQUEST
TR_LOG_OVERVIEW_REQUESTS
Hope this will help.
Regarsds,
Ferry Lianto
Please reward points if helpful. -
Is it possible to know the %TEMP% environment variable from my program?
I would like to know if my program want to save a file to the temp storage on my PC, how can I know the %TEMP% environment variable in Windows in my program?
You could pass in the %TEMP% as a system variable at startup. java -cp . -Dwhateveryouwanttocallit=/tmp.
Here's my guess as to what the .bat file might contain. I assume you are running on Windows(TM).
java -cp . -Dwhateveryouwanttocallit=%TEMP%
You could use a batch script to populate the variable and then start up your program. Then you could access the variable by using an extremely rude class called System. You can use System.getProperty("whateveryouwanttocallit") to retrieve the value. -
How to know the record status changing from NEW to INSERT while keying-in a field
Thanks to Kevin Clarke & Steven Declercq for helping me out with my previous queries.
Can any one out there tell me how to intercept when the reocrd status is changing from NEW to INSERT (while a field is being keyed-in in a blank(new) record).
Thanks
BrijeshHi Kevin,
Thanks.
Unfortunately, I could'nt find a trigger named 'ON-DATABASE-RECORD'.
Are you sure it exists?
Cheers
Brijesh -
How to find the Web AS Port from ABAP program
Hi
I have an ABAP program which passes an URL for a BSP page to the Alert Framework. While creating the URL I need to find out the Hostname and port number for the Web service for that server. Hostname comes from sy-host but I am not able to find the port number.
Please help...
Thanks in advanceHi,
consider this little code snippet:
data: l_urls type tihttpurls2.
call method cl_http_server=>get_extension_info
EXPORTING
extension_class = 'cl_http_ext_bsp'
IMPORTING
urls = l_urls.
l_urls contains a table of configured ports. maybe that helps.
regards, Ulli
Maybe you are looking for
-
I installed CS6 on my new retina MacBook pro laptops. InDesign and Acrobat display document pixilated. I ran the updates and it fixed Illustrator and Photosho, but not InDesign and Acrobat. What can I do to make them display in high resolution? HELP!
-
Changing all caps text to lower case in PSE 7 ?
I have PSE 7.0, and am trying to add text to an image. When I add the text, and type it in all in lower case, the text appears in all capitals, in text layer, and changing my keyboard caps lock doesn't make any difference. However, in the layers sum
-
Submit dynamic program in ABAP
Hi, I have to take the name of the program from the user in parameter on the selection screen and then call it. for this purpose i have used SUMBIT stmt as follows: parameters : p_pname(15), "program name p_var(15). " nam
-
Adding content via multiple computers
So here's what I got. For awhile I've been managing my iPhone on my computer. Syncing my apps, and manually adding music. I just purchased a new comp and I'm trying to manage my iPhone with it, but I'm unable to add any music to the phone via the new
-
How do I delete old videos etc in cloud?