How to write a job parameter?
hi all:
at OEM I create a job,
there are some information about job:
type is process,
then
at parameter table:
owb_rt loc_wf process flow1 system parameter cust parameter
I do not know what is system parameter and cust parameter?
my workflow have a input parameter is : "2004-05-26"
please help thanks!
cust parameter is constant,how to setup cust parameter to variable?
Similar Messages
-
Hello. I want to write certain information in a background job log of my ABAP. Because the job last several hours, I need to inform the user the step the job is in.
Does anyone know how to do that?
TIAThis is weird. With your solution the Job log registers an event without description.
Example:
11.03.2006 23:09:06 Job started
11.03.2006 23:09:06 Step 001 started (program XXXX, variant &0000000000000, user name xxxx)
11.03.2006 23:09:06
11.03.2006 23:09:10
11.03.2006 23:09:13
11.03.2006 23:09:16
11.03.2006 23:09:16
11.03.2006 23:09:16
11.03.2006 23:09:18
11.03.2006 23:09:18 -
The functionality of job to delete data for every one week or whenever it count reaches greater than 10,000 and how should we configure it
Edited by: 812809 on Feb 24, 2011 3:30 AMhi there
here in this procedure checks the data if the numbers of rows is greater than or equal to 10,000 then it will delete
the table and also check on daily basis
i am checking on the daily basis because if in the 6th day if data reaches more that 10000 then it should delete it
create or replace procedure delete_date_jobs
V_COUNT NUMBER := 0;
V_DATE DATE := TO_DATE ('02/FEB/2011');
BEGIN
SELECT COUNT (1) INTO V_COUNT FROM EMP;
DBMS_OUTPUT.put_line (v_date);
IF V_COUNT >= 10000
THEN
DELETE FROM HITESH;
ELSIF MOD (SYSDATE - V_DATE, 7) = 0
THEN
DELETE FROM HITESH;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
END delete_date_jobs;after that create a job which runs on daily basis
BEGIN
SYS.DBMS_JOB.REMOVE(277);
COMMIT;
END;
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'begin delete_date_jobs exception when no_data_found then null; end;'
,next_date => to_date('24/02/2011 18:05:07','dd/mm/yyyy hh24:mi:ss')
,interval => 'SYSDATE+1'
,no_parse => FALSE
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/regards
Hitesh
Edited by: Hitesh Nirkhey on Feb 24, 2011 6:50 PM -
How to write log information into SM37 batch job log
Hi,
I have a report running in batch mode, and I would like to log the start time and end time for some part of the code (different Function modules). I need to write this log information into the batch job log. Therefore I can check the time frame of my FMs.
After search the SDN, I can only get some information on how to write log into the application log displayed in SLG1, but that's not I want. I want to write batch log information, and check it in SM37.
If you have some solution or code to share, please. Thanks a lot.
Best Regards,
BenHi Nitin
Thanks for the reply. Could you explain it with some code ?
I tried to use the write statement , but it did not wrok. I could not see the result in SM37.
write : "start of the FM1 processing".
FM1 code
write : "end of the FM1 processing".
but those two statement did not show in SM37..
1) how to use a information message ?
2) how to use NEW PAGE PRINT ON and PRINT OFF command. ?
I would appreciate if you can write some code ,that I can use directly.
Thanks a lot.
Best Regards,
Ben -
How to write sql query with many parameter in ireport
hai,
i'm a new user in ireport.how to write sql query with many parameters in ireport's report query?i already know to create a parameter like(select * from payment where entity=$P{entity}.
but i don't know to create query if more than 1 parameter.i also have parameter such as
$P{entity},$P{id},$P{ic}.please help me for this.
thanksYou are in the wrong place. The ireport support forum may be found here
http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=9 -
How to create a LOV for a ESS Job Parameter
Hi,
I have an ESS job and for one of the parameter , I want to provide users to select from the static List of values.
What is the easiest possible approach and how to achieve that.
Thanks in Advance,
AnkitSorry I missed it somehow. So, assuming currently the job parameter is a text box. Here, is what you can do.
1. Create a new Fusion application with a model project in it. Then Create a new view object with data based on static values type in the JDeveloper.
2. Create a new Fusion Applications Customization Application based on the exploded EAR
3. Open the page you want to change by customize option and then keep a note of the current binding value from the ess parameter inputText and then delete this field from UI.
4. Shuttle the newly created vo in the AM used for this page. For this to be available you will need to add your project created in step 1 as a library to the Customization application.
5. Now expand the data controls and drop the attribute from the VO as a LOV on your page and copy the value binding from the deleted field to this one.
Please note that the above approach should work but I have not personally tried or tested it. Also you will need to go through the extensibility guide for setting up your environment, to understand the customization process, and deploying it to test. Extensibility guide can be found [http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e16691/toc.htm]
Thanks & Regards !
Vik
Fusion Apps Developer Relations
http://blogs.oracle.com/fadevrel
Please mark the response helpful or answered appropriately -
How to write a shell script to execute a procedure with out parameter
Hi,
How to write a shell script to execute a procedure with out parameter.
here is my procedure
PROCEDURE sample(invar1 VARCHAR2,
invar2 VARCHAR2,
invar3 VARCHAR2,
invar4 VARCHAR2,
ecode out number);
Any example really helpfull
Thanks in advanceOr if we're passing values in, maybe something like:
Test procedure:
CREATE OR REPLACE PROCEDURE p (myin IN VARCHAR2, myout OUT VARCHAR2)
AS
BEGIN
myout :=
CASE myin
WHEN 'A' THEN 'APPLE'
WHEN 'B' THEN 'BANANA'
ELSE 'STARFRUIT'
END;
END;Shell script:
#!/bin/bash
my_shell_variable=$1
unset ORACLE_PATH
sqlplus -s un/pw@db <<-EOF
set feedback off pause off
set pagesize 0
set autoprint off
VAR out varchar2(30)
VAR myin varchar2(30)
exec :myin := '${my_shell_variable}'
BEGIN
p(:myin, :out);
END;
print out
exit
EOFTest:
/Users/williamr: xx A
APPLE
/Users/williamr: xx B
BANANA
/Users/williamr: xx
STARFRUITObviously in a real script you would not hardcode the password or let it show in a "ps" listing.
Message was edited by:
William Robertson -
How to write script calling with parameter [CS6-js (Mac)]
I'm doing script for produsing some sound:
var mString = "tell application \"Play Sound\"\rplay \"Mac:Users:a.ivanov:Sounds:" + "copied.wav" + "\"\rend tell"
app.doScript(mStrtest, ScriptLanguage.applescriptLanguage);
This work well.
Now, i'd like to call this script from other script with any desired wav-file (not only "copied.wav" )). How to write down correctly calling other script with param.
ThanksHi,
var myParameters = ["Mac:Users:a.ivanov:Sounds:", "copied.wav"];
var myAppleScript = "tell application \"Play Sound\" to play ((item 1 of arguments) & item 2 of arguments)";
app.doScript(myAppleScript, ScriptLanguage.applescriptLanguage, myParameters);
doScript also excepts file, so if wanted save the line myAppleScript as *.jsx and insert the Filereference in the doScript
P.S. Assume MacOsx prior 10.5 may not include afplay -
How to schedule a job in another system.
Hi,
Now i have an ABAP program, which run in system ABC, client 001. i want to schedule a job in the program, with the function modules JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE. But this job should run in ABC/002.
How to write code?
Who can help me on the requirement, or provide me another new solution except event trigger?
Thanks & Best Regards,
JohnneyHere is the code. It works fine..
FUNCTION Z_F_TRIGGER_REPORT.
""Local Interface:
*" IMPORTING
*" VALUE(I_PROG) TYPE D010SINF-PROG
*" VALUE(I_VARIANT) TYPE VARIS-VARIANT
*" VALUE(I_MODE) TYPE CHAR01
*" EXPORTING
*" VALUE(E_SUBRC) TYPE SYST-SUBRC
*" VALUE(E_MSG) TYPE CHAR80
Functio ID : Z_F_TRIGGER_REPORT
TITLE : Report Trigger Tool
Create Date: 15.03.2004
Author : Denis Vieira
Ownership : For the exclusive use of the Procter & Gamble Company
Description:
The purpose of this function module is to trigger programs
requested remotely.
AUTHORIZATION CHECKS
OBJECT AUTHORITY FIELDS ABAP FIELDS
| |
CHANGE HISTORY *
DATE | Name | Description | Reference *
29.Jun.2006 | BA4513 | Unicode conversion and upgrade | SPK290606
| | to My SAP ERP |
**eject.
Check if selected program exists in the destination file
SELECT SINGLE SUBC
FROM D010SINF
INTO D010SINF-SUBC
WHERE PROG EQ I_PROG
AND R3STATE EQ C_A.
IF SY-SUBRC NE C_0.
MOVE C_2 TO E_SUBRC.
MOVE 'Report does not exist in destination system'(M01) TO E_MSG.
EXIT.
ENDIF.
Check if program request is an executable program
IF D010SINF-SUBC NE C_1.
MOVE C_2 TO E_SUBRC.
MOVE 'Report is not an executable program'(M02) TO E_MSG.
EXIT.
ENDIF.
Check if selected variant exists in the destination file
SELECT COUNT( * )
FROM VARIS
INTO W_COUNT
WHERE REPORT EQ I_PROG
AND VARIANT EQ I_VARIANT
AND DYNNR EQ C_1000.
IF W_COUNT EQ C_0.
MOVE C_2 TO E_SUBRC.
MOVE 'Variant does not exist in destination system'(M03) TO E_MSG.
EXIT.
ENDIF.
IF I_MODE EQ C_B.
PERFORM 0100_BACKGROUND USING I_PROG I_VARIANT
CHANGING E_MSG E_SUBRC.
ELSE.
PERFORM 0200_FOREGROUND USING I_PROG I_VARIANT
CHANGING E_MSG E_SUBRC.
ENDIF.
ENDFUNCTION.
*eject
*& Form 0100_background
Executes Selected program in BackGround Mode VIA JOB
*Block commented from here SPK290606
*FORM 0100_BACKGROUND USING L_PROG L_VARIANT
CHANGING L_MSG L_SUBRC.
*Block commented till here SPK290606
*Block added from here SPK290606
FORM 0100_BACKGROUND USING L_PROG LIKE D010SINF-PROG
L_VARIANT LIKE VARIS-VARIANT
CHANGING L_MSG TYPE CHAR80
L_SUBRC TYPE SYST-SUBRC.
*Block added till here SPK290606
CONCATENATE C_AREA
C_UND
L_PROG
C_UND
SY-DATUM
C_UND
SY-UZEIT
INTO W_JOBNAME.
Create a JOB and Get the Number for further execution
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = W_JOBNAME
IMPORTING
JOBCOUNT = W_JOBCOUNT.
IF SY-SUBRC NE C_0.
MOVE C_2 TO L_SUBRC.
MOVE 'Error opening job'(M07) TO L_MSG.
EXIT.
ENDIF.
Submit program
SUBMIT (L_PROG)
USING SELECTION-SET L_VARIANT
VIA JOB W_JOBNAME NUMBER W_JOBCOUNT
AND RETURN.
IF SY-SUBRC NE C_0.
MOVE C_2 TO L_SUBRC.
MOVE 'Error Submitting Job'(M06) TO L_MSG.
EXIT.
ENDIF.
Closes job to start its processing
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = W_JOBCOUNT
JOBNAME = W_JOBNAME
STRTIMMED = 'X'.
IF SY-SUBRC NE C_0.
MOVE C_2 TO L_SUBRC.
MOVE 'Error closing job'(M08) TO L_MSG.
EXIT.
ENDIF.
MOVE C_0 TO L_SUBRC.
MOVE 'Program Submitted in Background Mode'(M09) TO L_MSG.
ENDFORM.
*eject
*& Form 0200_foreground
Executes Selected program in ForeGround Mode VIA Submit
*Block commented from here SPK290606
*FORM 0200_FOREGROUND USING L_PROG L_VARIANT
CHANGING L_MSG L_SUBRC.
*Block commented till here SPK290606
*Block added from here SPK290606
FORM 0200_FOREGROUND USING L_PROG LIKE D010SINF-PROG
L_VARIANT LIKE VARIS-VARIANT
CHANGING L_MSG TYPE CHAR80
L_SUBRC TYPE SYST-SUBRC.
*Block added till here SPK290606
SUBMIT (L_PROG) USING SELECTION-SET L_VARIANT
EXPORTING LIST TO MEMORY AND RETURN.
IF SY-SUBRC EQ C_0.
MOVE C_0 TO L_SUBRC.
MOVE 'Report submitted successfully'(M04) TO L_MSG.
ELSE.
MOVE C_2 TO L_SUBRC.
MOVE 'Error submitting report'(M05) TO L_MSG.
ENDIF.
ENDFORM. -
How to find the correct Parameter Id
hi
below is my code...
i have the report in ALV grid display...
wn i double click on the materail number i want to get the "Basic data 1" screen but my problm is wn i click on the material it is displaying the view selections tab i dont want it to be displayed...
i hav written below code..
wt is wrong in my code?
and tell me exactly how can i find the Parameter ID for a perticular screen....
FORM F01_ALV_EVENT_USER_COMMAND
USING COMMAND LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
ENDIF.
CLEAR wa_final-aufnr.
WHEN 'PLNBEZ'.
READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
IF SY-SUBRC EQ 0.
SET PARAMETER ID 'MAT' FIELD WA_FINAL-PLNBEZ.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
ENDIF.
Regards
SmithaHi Smitha,
I worked on the similar example that you have stated.....
You try using this way...
You are assinging the parameter id write....i think the field that you are clicking check the value and then compare that value and proceed this way....it will work....
get cursor field fs_lips-vbeln value w_data.
if fs_lips-vbeln ne 'FS_LIPS-VB'.
message 'Click on Delivery Number Only'(004) type 'E'.
endif.
set parameter id 'VL' field w_data.
call transaction 'VL02N' and skip first screen.
commit work.
wait up to 10 seconds.
Regards. -
How to send a job log/Spool once the job completed?
Could you please help me how to send a job log/Spool once the job completed.
There was an option is available System Send mail to send a mail once the job completed . So could you please help me how we can send a job log using this option .
I have tried the below but i didn't get any mail . Could some one help this please !
For example :
Job chain name : Test_spool
Step1 : Reportstep
Job definition u2013 XXX_YYY
Step2: Mailstep
Job definition: system_mail_send
Expression : Reportstep,job<(what i need to mention here )>:reportstep/log.txt
Check the ablove mentioned is correct and correct me , still i didnu2019t get the log in the mail please .
Thanks
RamkumarHi Ram,
I need your help on getting mail alert with log file.
here is how i have provide the parameter valure for job definition: system_mail_sent.
Step1 with one job1 and step2 with one job1
In step2 , i have included the job definition to send mail. with below parameter.
Relative Job: Step 1, Job 1
Job File: step 1, job 1: step 1/log.txt
Please let me know if the above method is correct or not.
NOTE: mail server and from address are configured.
Thanks,
Karthik -
How to schedule a job in portal ?
Hi,
How can we schedule job in portal just like we have in SAP ?
thanks,
BHi Mayank,
Thank you for the response.
I followed your points and in schedular task wizard, I selected Eclipse project instead of Generation directory. Here I gave a simple webdynpro project. (with the intention of writing my code in it) But I face foll problems.
When I deployed this webdynpro project, I am not able to see it in the portal scheduler tasks. how should I locate it ?
I should select Generation directory or Eclipse project ? if generation directory, which directory should I give ?
Where should I write the code ?
thanks,
B -
Hi,
Iam new to the xml,
can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>.
Regards,
vikram.here is the your XML parse in 11g :
select *
from xmltable('//Entity' passing xmltype
'<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>
') columns
"dcode" varchar2(4000) path '/Entity/dcode',
"ddesc" varchar2(4000) path '/Entity/ddesc',
"reauthflag" varchar2(4000) path '/Entity/reauthflag'
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
Using this parser you can create procedure as
SQL> create or replace procedure myXMLParse(x clob) as
2 begin
3 insert into MyXmlTable
4 select *
5 from xmltable('//Entity' passing xmltype(x) columns "dcode"
6 varchar2(4000) path '/Entity/dcode',
7 "ddesc" varchar2(4000) path '/Entity/ddesc',
8 "reauthflag" varchar2(4000) path '/Entity/reauthflag');
9 commit;
10 end;
11
12 /
Procedure created
SQL>
SQL>
SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
PL/SQL procedure successfully completed
SQL> select * from MYXMLTABLE;
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
SQL>
Ramin Hashimzade -
Can anyone share with me how you write Javadoc?
Can anyone share with me how their companies write Javadoc?
Are your developers solely responsible for it? Do your technical writers own it or review it? How do you make sure it's good?
Right now, my software developers are mostly responsible for writing all the API info and it's of poor quality and really lacking details. I don't mean spelling/grammar-type problems. My developers just don't seem to "get" what information to include, no matter how many guidelines or checklists I give them.
A very simple example is:
* Gets the status
public java.lang.Integer getStatus() {...}With no indication of what status values may be returned and what the values might mean.
How do you ensure that what you write is actually useful? Please help!
I'm aware of the method Sun recommends, but I want to know what others do.
Thank youHi,
Well, concerning the question what a good API documentation should be. Just imagine, you are a programmer and you want to use that API. You need to know how it works. There can be only three ways to find it:
(1) The API documentation
(2) Probing experiments. Even a good documentation may not describe everything. Sometimes, the only way to understand certain things you particularly need may be guessing something, writing a code basing on it and see how it works. Then, guessing something again, more precisely now, and so on. Even a very good documented API (for instance, javax.swing) may require that sort of approach to be able to use it eventually.
(3) At last, when source codes are available, one may look at them and try to understand precisely, what a particular method actually does.
I think the better the API documentation the less one may need to endeavor those two last steps. There is actually a limit about it. Without any proper explanation at all, one may never be able to use a particular API, neither after probing it nor after looking at source codes (that is not to say the sources may be simple unavailable at all).
Concerning how to write the API documentation, that's mostly the question of managing your team. I think, basically, the original source of the ultimate information about everything implemented in the projects are those very programmers (developers) and, probably, some software architects. But those guys normally are not especially eager to write any documentation (especially developers). That your example just demonstrates it. It seems, your programmers just wrote that "Gets the status" for you to make them leave in rest after that. In addition, the programmers normally have such a sort of work and activity that does not match particularly well with the writing literature and doing their main job simultaneously. You should not enforce them to do that!
To write a good documentation, you will need to engage a technical writer. That's normally a guy with some programming background. However, writing some literature is actually what he does the best. (Sometimes, such people do something else about written word beyond the technical writing.) The job of that guy would be to write the documentation. This will take from him (or her) two basic things:
(1) The ability to understand the whole software system (that's where his programming background will be needed!);
(2) To communicate with the programmers who have developed the stuff and to obtain from them all the necessary information they know. That may require some personal (verbal) communication with them, because asking them to write everything again will only result in the same "Gets the status" explanations. However, to be successful in this, the technical writer needs to have some explicit management approval behind him. Otherwise, some of the guys will avoid speaking to him at all (saying they lack the time). So, the management should assign them the necessary priority for such communications.
Particularly big projects may even need to have the whole team of technical writers.
Anyway, writing docs is a hard work. But it is extremely important! The good documentation may both increase your sales and eliminate lots of expense on further support of your customers.
Regards,
Leonid Rudy
http://www.docflex.com -
How to write SQL in crystal report that can reuse SQL execution plan cache?
I write the following SQL with crystal report parameter fields, and it is connecting to SQL 2005
Select Name from Customer where CustID = '{?CustID}'
The SQL profiler show that It is an ad-hoc query, how to write parameterized SQL which can reuse Execution Plan.
Edited by: Chan Yue Wah on May 14, 2009 3:17 AMSince there are too many report, it is not possible rewrite all. Is that crystal report do not have option to change how it query the database ?
Maybe you are looking for
-
New to X1, some issues with DVR.
Two questions, since Live Chat seemed to totally misunderstand me. Is there an X1 box that uses Component cables instead of HDMI? To clarify further, the Red/Green/Blue wires for video. I received my self-install kit today. Tried hooking up the X1
-
How do you copy a video from a disk to a Mac or to an iPad?
I have a DVD disk with video content that I have rights to copy and use, but I don't know how to copy it onto my computer or my iPad. Can anyone help me?
-
How to clear the location history in reminder?
heyy guys. serious talk here. please please and please help me to figure this out. how to clear the location that had i been used in reminder? i've search from day to day. but there aren't answer yet. grr
-
Deciding what to do if user closes window(JDialog)
I am drawing shapes- Rectangle, Ellipse, Trianlge...I have big class that implements JFrame and it is used to draw the draw the shapes on the its content pane. Inside this class, I have an inner class that draws a custom JDialog frame. A user selects
-
Desperate for Mac OS X 4.6
Is it at all possible for me to install Mac OS X 4.6 on an iMac G3. It originally ran on Mac OS 9.2. Can I purchase an external hard drive for enough memory to do this?