How to get spool no created when a job is created
Hi,
I am creating a Job using Job_Open,Job_Submit and Job_Close FM's
The job created will have a spool associated.
How can i programmatically find out spool number created ?
Pls Help!!
Answers will be rewarded.
Rohan
hi,
use the below fm
GET_JOB_RUNTIME_INFO Get the current job number from a program. Also returns other useful info about the current job.
regards,
pavan t
Similar Messages
-
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
Hi,
I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
( f.ex. cannot verifying it correct in xmlspy )
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
I do generate it in this matter :
declare
xmldoc CLOB;
ctx number ;
utl_file.file_type;
begin
-- generate fom xml-view :
ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
DBMS_XMLGEN.setRowSetTag(ctx, null);
DBMS_XMLGEN.setRowTag(ctx, null );
DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
-- create xml-file:
xmldoc := DBMS_XMLGEN.getXML(ctx);
-- put data to host-file:
vblob_len := DBMS_LOB.getlength(xmldoc);
DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
UTL_FILE.put_line(bHandle, vbuffer, FALSE);
UTL_FILE.fclose(bHandle);
end ;
maybe while work UTL_FILE there is a change the encoding ?
How can this solved ?
Thank you
Norbert
Edited by: astramare on Feb 11, 2009 12:39 PM with database charsetsMarco,
I tryed to work with dbms_xslprocessor.clob2file,
that works good,
but what is in this matter with encoding UTF-8 ?
in my understandig, the xmltyp created should be UTF8 (16),
but when open the xml-file in xmlSpy as UTF-8,
it is not well ( german caracter like Ä, Ö .. ):
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
-- test:
create table nh_test ( s0 number, s1 varchar2(20) ) ;
insert into nh_test (select 1,'hallo' from dual );
insert into nh_test (select 2,'straße' from dual );
insert into nh_test (select 3,'mäckie' from dual );
insert into nh_test (select 4,'euro_€' from dual );
commit;
select * from nh_test ;
S0 S1
1 hallo
1 hallo
2 straße
3 mäckie
4 euro_€
declare
rc sys_refcursor;
begin
open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
end;
( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
open in xmlSpy is:
<?xml version="1.0"?>
<ROWSET>
<ROW>
<S0>1</S0>
<S1>hallo</S1>
</ROW>
<ROW>
<S0>2</S0>
<S1>straޥ</S1>
</ROW>
<ROW>
<S0>3</S0>
<S1>m㢫ie</S1>
</ROW>
<ROW>
<S0>4</S0>
<S1>euro_</S1>
</ROW>
</ROWSET>
regards
Norbert -
How to get the search option when we are creating new view
Hi,
How to get the search functionality when we are creating new view.
Ex:- if we see the standard component BT112S_SC. Under this
AdvancedSP is the view,
same kind of view if i want to create new view with same bol entity in my new component. I am unable to get that search functionality.
for search functionality,,i think view should inherit the super class CL_BTSRV_ADVS_CNTRL, but in my new view controller class, i am unable to find this class.
Can anybody give me some inputs on this.
Thanks,
neelamIn case you are still not able to proceed please refer the following blog.
http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view
Regards,
Harshit -
How to get spool along with e-mail or FAX
Hi,
I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
Could any one suggest me how to get spool along with e-mail or FAX option.
Thanks in advance.Hi,
check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
hope u'll get some idea.
Regards,
Sneha. -
How to Get Spool ID after PO release. (To send PDF for ext E-mail)
Hi Experts,
I am new to Email sending from SAP.
I am facing a big problem from many days. I am in a new support project.
I have a issue that when ever a PO is released from ME23N or ME28 it should send a mail to vendor.
This is working fine in Development including delivery report or failed report back to approver...
I dont know where is PRD and who is doing that,
But my support manager says that only some PO's are sent to vendors not all...
everytime they approve only some emails sent to vendors...!
But every PO is same and for same vendor's...
Even failure & delivery messages are missing for (sent failed email's)
But after all I observed only one thing that we have a select statement....
DATA: GS_RESULT TYPE ITCPP.
DATA : L_DATE(9).
DATA : BEGIN OF LT_TSP01 OCCURS 0,
RQIDENT LIKE TSP01-RQIDENT,
RQCRETIME LIKE TSP01-RQCRETIME,
DATE(8),
TIME(8) TYPE N,
END OF LT_TSP01.
SELECT RQIDENT RQCRETIME FROM TSP01 INTO CORRESPONDING FIELDS OF
TABLE LT_TSP01 WHERE RQCRETIME LIKE L_DATE
AND RQIDENT EQ GS_RESULT-TDSPOOLID.
IF SY-SUBRC = 0.
(All Email sending code)(including delivery & failure delivery)
Endif.
So I suspect it is not picking up the Spool request from this Table TSP01 or may be not updated to this table.
I have searched in SCN, I have seen may E-mail Codings
But every one says to get Spool- ID & Convert to PDF,,,
My Question is How to get Spool ID correctly and tell me how it is updated. when a PO released by ME23N or ME28.
please any one clear my doubt as I am completely helpless here.
Thanks in advance,
Dunlop.Hi,
Is it a SMart form.....
If it is a smartform, then Smartfom interface itself has a spool id parameter....
you can directly het that from this parameter...
CALL FUNCTION "FMa Name'
EXPORTING
control_parameters = wsl_control
output_options = wsl_outpt
user_settings = ''
wtg_itemdetails = tl_itemdet
wtg_vttp = l_vttp
IMPORTING
job_output_info = sl_spooldet
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
The inporting parameter sl_spolldet will have the Spool id.
and you fetch by, using the below mentioned way..........
READ TABLE wsl_spooldet-spoolids INTO wsl_wa_spool INDEX 1.
IF sy-subrc = 0.
Convert it into PDF using 'CONVERT_OTFSPOOLJOB_2_PDF'
then attach it and send a mail.....with all properties set such as Delivery report....
endif.
If you have any issues, please let me know........
Thanks & Regards,
Vamsi -
How to get Manager id automatically when Employee Id is given.
How to get Manager id automatically when Employee Id is given.
1) I created a simple BO with two elements namely
1.Employee Id
2.Manager id
How to get employee's first name and last name?
And how will i get manager id automatic when i click employee id in element field.
Anbu.Have you tried to use "APPS.FND_CONCURRENT" API?
http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
Thanks,
Hussein -
How to get those Char Description when i record please give a solution
Hi Experts
when i try to extend using BDC the meterial all data is getting copied to new plant but in MRP3 Configure varients is not getting copied in bdc i am getting all the values from parent plant but these values are not getting displayed in new plant for only *MRP3 Configure varients
how to get those values please give a solution
and
when i am trying to make the BDC recording of creation of meterial in this process
in MRP3 when i give configurable meterial = Lamp or CT or VOLTMETER and when
i go for configurevariants button it's not displaying any Char Description for the perticular meterial
but in general when i creat a material process there Char Description are coming where i can give the values
how to get those Char Description when i record please give a solutionHi Maen Anachronos
i am Getting popup where i can give any value
but in creation of meterial for a perticular config meterial there is will be 1 templete in which we will get some constant Char Description where we'll have some options to give the value
but when it 's done in BDC Recording it's not displaying any values Char Description then how can we decide the values to what to give when Recording -
How to notifiy to a user when Euipment is automatically created?
Dear All,
How to notifiy to a user when Euipment is automatically created when an asset is created in AS01. I am an Abapper who needs to use a workflow to send the mail to the user to notify the same. If anyone has configured the same , then kindly guide me.
Regards,
FawazYou can try using Powershell
[Reflection.Assembly]::LoadWithPartialName("Microsoft.AnalysisServices")
$SSASServerName = "servername"
$SSASDB = "database"
$SSASServer = New-Object Microsoft.AnalysisServices.Server
$SSASServer.Connect($SSASServerName)
$SSASDatabase = $SSASServer.Databases.Item($SSASDB)
$SSASDatabase.Roles | select Role,Members,CreatedTimestamp | where {$_.CreatedTimestamp -gt (Get-Date).AddMinutes(-60)}
--Prashanth -
How to get the Useru2019s position when the user doesnu2019t have CP relation
We have a custom program which will add / delete attributes (In transaction PPOSA_BBP). It is working fine for users which were assigned with CP relation But it fails for users which doesnu2019t have CP relation (since we are getting the position of users form HRP1001 then we are retrieving the existing attributes based on the position after that updating the attributes) as we are getting the position from HRP1001 it fails for users were no CP relation.
Help us how to get the Useru2019s position when the user doesnu2019t have CP relation. Suggest us any function module or how to query the HRP1001 or some other table if exists
Regards
PaulHi Paul,
Have a look at these tables.
Using table BUT000 the central business partner data are stored, f.e. partner type, partner names, partner number, partner guid, person number, etc. In table BUTBKK the bank data to a business partner are stored.
Central business partner address data
The table ADRC is used for the address of a business partner. Table BUT020 links the business partner number with the address number. Using table BUT021 several addresses to a business partner with different usages (modes), f.e. correspondence or delivery address, can be stored. The personal data of a business partner person are stored with key person number in table ADRP. The person number is assignd to a business partner person in table BUT000. Communication data of business partners as e-mail, telephone, fax, etc. are stored in the tables ADDR1 u2013 ADDR12. The business address of a contact person or an employee consists of the organization address (company resp. org.-unit) and of an address addition, which describes f.e. a building, a room number, etc. The address addition is stored in table ADCP and is identified by the keys address number of the organization address and person number.
Relationships between business partners
Table BUT050 contains the relationships between a business partner organization and a business partner person using relation types. The relation types are defined in table TBZ9, f.e. the relation type u2018has employeeu2019 corresponds to identifier u2018BUR010u2019, the relation type u2018has contact personu2019 corresponds to identifier u2018BUR001u2019. Table BUT051 stores communication data of a contact person relationship (compare to table ADCP). Table BUT052 stores several address numbers to one business partner relationship (including a standard flag).
Hope this helps,
Kind Regards,
Matthew -
How to get on your ipad when it is disabled
how to get on your ipad when it is disabled
FORCE IPAD INTO RECOVERY MODE
1. Hold Sleep/Wake button down and slide to turn off iPad
2. Turn on computer and launch iTune (make sure you have the latest version of iTune)
3. Plug USB cable into computer's USB port
4. Hold Home button down and plug the other end of cable into docking port. Do not release button until you see picture of iTune and plug.
5. Release Home button.
ON COMPUTER
6. iTune has detected iPad in recovery mode. You must restore this iPad before it can be used with iTune.
7. Select "Restore iPad"... -
Does anyone know how to get a imessage back when deleted
does anyone know how to get a imessage back when deleted
The only way is to restore from a backup that has the message you want. If you do this you will lose anything since that backup.
-
How to get iMessage to work when all it says is waiting for activation
How to get iMessage to work when all it says is waiting for activation
Hi Howell,
Welcome to Apple Support Communities.
This article on troubleshooting FaceTime activation has some steps you can try:
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/ts4268
Have a great day,
Jeremy -
How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"
How to get the SQL Signon that Agent Jobs "Run As" or "Executed as User"?
I have an install SQL scripts that creates a Linked Server. I want to put some security on the Linked Server and only grant the Agent Job Signon (the "Run As" or "Executed as User") access to the linked server. I need to retrieve the
Agent Job Signon (something like "NT SERVICE\SQLAgent$FIDEV360BI02").
I could query certain jobs and SUBSTRING the Message column - using some form of the query below, which would return "Executed as user: NT SERVICE\SQLAgent$SSDEVBI02. The step succeeded." But that is pretty imprecise.
use msdb
SELECT [JobName] = JOB.name,
[Step] = HIST.step_id,
[StepName] = HIST.step_name,
[Message] = HIST.message,
[Status] = CASE WHEN HIST.run_status = 0 THEN 'Failed'
WHEN HIST.run_status = 1 THEN 'Succeeded'
WHEN HIST.run_status = 2 THEN 'Retry'
WHEN HIST.run_status = 3 THEN 'Canceled'
END,
[RunDate] = HIST.run_date,
[RunTime] = HIST.run_time,
[Duration] = HIST.run_duration,
[Retries] = HIST.retries_attempted
FROM sysjobs JOB
INNER JOIN sysjobhistory HIST ON HIST.job_id = JOB.job_id
-- CHANGE THIS
-- WHERE JOB.name like '%GroupMaster%' or Job.name like '%etlv%'
ORDER BY HIST.run_date, HIST.run_timeby default all sql jobs are executed as sql server agent account, unless otherwise a proxy is setup.
you can get the proxy information as Olaf mentioned, if the proxy_id is null for the step, it implies that the job step was executed as sql server service account and in such case it will be null
so, if it is null, it ran as sql server agent account.
so, one work around is get the sql server agent service account and if the proxy is null, that means it ran as sql server agent account, so, use isnull function. the disadvantage would be if the sql server agent account was switched, you might not get the
accurate information as the new account will show up though the job really ran as old account, to get this information, you need to get this from the logmessage column as you mentioned above.
try this code...
/*from sql 2008r2 sp1, you get the service accounts using tsql,otherwise you have to query the registry keys*/
declare @sqlserveragentaccount varchar(2000)
select @sqlserveragentaccount= service_account
from sys.dm_server_services
where servicename like '%sql%server%agent%'
select message,isnull(name,@sqlserveragentaccount) as AccountName
from sysjobhistory a inner join sysjobsteps b
on a.step_id=b.step_id and a.job_id=b.job_id
left outer join sysproxies c on c.proxy_id=b.proxy_id
Hope it Helps!! -
Urgent:How to get the Sqltext for Oracle Sumbitted Jobs in 10g
Dear All,
Could you help me out in sorting the below problem.
I use to get the current running sql's with following below query in 9i.
SELECT A.SID,B.HASH_VALUE, OSUSER, USERNAME, SQL_TEXT
FROM V$SESSION A, V$SQLTEXT B
WHERE B.HASH_VALUE = A.SQL_HASH_VALUE
AND USERNAME LIKE upper('%SCHEMA%')
ORDER BY B.HASH_VALUE, B.PIECE;
This is will work in 10g also for user-triggered sqls,stored procedures etc.
But when oracle submits job i'm not able find which qurery is running.
Seems For oracle jobs in 10g for V$session contain column SQL_HASH_VALUE as Zero and hence i'm not able find the any sql's running.
Could you please any of you help me out how to get the Sqltext for Orcle submited Jobs in 10g.
Please revert asap as this is very urgent for me.
Thanks in Advance
Anil.Have you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
Thanks,
Hussein -
How to get an empty form when we run the page?
Hi all!
Hope you are well
My question is, how to get an empty form at run time? means when we run the page, text fields are filled with blank....Could anyone please help me with this..
Thanks in advance,
nanda.Hi Nanda,
Just follow these steps:
1) Create a bounded taskflow (uncheck the create with fragments checkbox)
2) Drag the CreateInsert operation on your bounded taskflow and mark it as the default activity
3) Drag a view and link the CreateInsert to the view component using a control flow case
4) Double click on the view to create the page
5) Drag the view object on the page as an ADF form
6) Go back to your bounded taskflow and from the General tab make sure under visibitliy you select "url-invoke-allowed"
Run you tasfklow and your form will be rendered in insert mode.
Regards
Antonis
Maybe you are looking for
-
BI Publisher Enterprise 11g prevent users from scheduling reports
Hi there I have created an intranetreptuser that I would like only to have access to running reports in BI publisher and not scheduling them. I also created an application policy that only has the one policy: runreportsonline and granted that policy
-
What is the significance of 'Irrelevant' column in SWWUSERWI
Hi, I wanted to know why do we have a column 'Irrelevant'(i.e. NO_SEL) in SWWUSERWI What is the use of it? What is the meaning if it market 'X'? Please can someone tell this to me? With Regards, Vimal
-
We need a report to show the quantities for the current Purchase Order (PO), and the quantities for the previous revision. This way we can see at a glance how the quantities have changed. You can see a screen shot at the foot of this page http://www.
-
Server 2012 Std (dutch) upgrade to Server 2012 R2 Std (dutch)
Hi, I have several 'Server 2012 Standard' (volume licenced) servers installed within the Dutch language, and would like to upgrade them to R2. I downloaded the R2 eval version (EN, can't find any Dutch version) and tried to upgrade the server. While
-
TS3999 syncing iCloud calendar with gmail
I have no idea how to sync my iCloud calendar with gmail calendar. I keep getting two claendars, and the one under iCloud Home does not show up in gmail.