Program code fro Exit LMR1M002
Any One Please Provide me ABAP Code to Implement the Exit LMR1M002.
Its Urgent.....
Regards
AJIT
Moderator message : Search for available information. Thread locked.
Edited by: Vinod Kumar on Sep 26, 2011 3:25 PM
Hi Ajit,
Check sap noes:165692.The code is given clearly in that note.
Regards,
Madhu.
Similar Messages
-
SAP on V6R1 - ABAP Import:Program 'Migration Monitor' exits with error code
Hello,
We are doing an installation of SAP NW 7.01 SR1 on V6R1.
<br>
We were getting error in SAPAPPL2.TSK.bck we merged the files with following command:R3load --merge_only <TSK file> and refering sap note:Note 455195 - R3load: Use of TSK files.
<br>
We are again getting error in following steps:
<br>
sapinst.log
<br>
<br>WARNING 2009-09-30 23:25:28.477
Execution of the command "Y:\QOpenSys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 OS400 ppc64-64 j9ap64142sr13-20090310 (JIT enabled)
J9VM - 20090309_31291_BHdSMr
JIT - 20090210_1447ifx1_r8
GC - 200902_24)
I<br>mport Monitor jobs: running 1, waiting 27, completed 0, failed 0, total 28.
<br>Loading of 'SAPNTAB' import package: OK
<br>Import Monitor jobs: running 0, waiting 27, completed 1, failed 0, total 28.
Import Monitor jobs: running 1, waiting 26, completed 1, failed 0, total 28.<br>
Import Monitor jobs: running 2, waiting 25, completed 1, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 24, completed 1, failed 0, total 28.<br>
Loading of 'DOKCLU' import package: OK
Import Monitor jobs: running 2, waiting 24, completed 2, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 23, completed 2, failed 0, total 28.<br>
Loading of 'SAPAPPL1' import package: OK
Import Monitor jobs: running 2, waiting 23, completed 3, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 22, completed 3, failed 0, total 28.<br>
Loading of 'SAPAPPL2' import package: ERROR
Import Monitor jobs: running 2, waiting 22, completed 3, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 21, completed 3, failed 1, total 28.<br>
Loading of 'DD03L' import package: OK
Import Monitor jobs: running 2, waiting 21, completed 4, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 20, completed 4, failed 1, total 28.<br>
Loading of 'SCPRSVALS' import package: OK
Import Monitor jobs: running 2, waiting 20, completed 5, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 19, completed 5, failed 1, total 28.<br>
Loading of 'SAPSDIC' import package: OK
Import Monitor jobs: running 2, waiting 19, completed 6, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 18, completed 6, failed 1, total 28.<br>
Loading of 'SCPRVALS' import package: OK
Import Monitor jobs: running 2, waiting 18, completed 7, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 17, completed 7, failed 1, total 28.<br>
Loading of 'SAPSSRC' import package: OK
Import Monitor jobs: running 2, waiting 17, completed 8, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 16, completed 8, failed 1, total 28.<br>
Loading of 'FUPARAREF' import package: OK
Import Monitor jobs: running 2, waiting 16, completed 9, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 15, completed 9, failed 1, total 28.<br>
Loading of 'TODIR' import package: OK
Import Monitor jobs: running 2, waiting 15, completed 10, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 14, completed 10, failed 1, total 28.<br>
Loading of 'SEOSUBCODF' import package: OK
Import Monitor jobs: running 2, waiting 14, completed 11, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 13, completed 11, failed 1, total 28.<br>
Loading of 'E071K' import package: OK
Import Monitor jobs: running 2, waiting 13, completed 12, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 12, completed 12, failed 1, total 28.<br>
Loading of 'SAPPOOL' import package: OK
Import Monitor jobs: running 2, waiting 12, completed 13, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 11, completed 13, failed 1, total 28.<br>
Loading of 'SAPSPROT' import package: OK
Import Monitor jobs: running 2, waiting 11, completed 14, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 10, completed 14, failed 1, total 28.<br>
Loading of 'SAPSDOCU' import package: OK
Import Monitor jobs: running 2, waiting 10, completed 15, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 9, completed 15, failed 1, total 28.<br>
Loading of 'SAPCLUST' import package: OK
Import Monitor jobs: running 2, waiting 9, completed 16, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 8, completed 16, failed 1, total 28.<br>
Loading of 'SAPSLOAD' import package: OK
Import Monitor jobs: running 2, waiting 8, completed 17, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 7, completed 17, failed 1, total 28.<br>
Loading of 'SAPSLEXC' import package: OK
Import Monitor jobs: running 2, waiting 7, completed 18, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 6, completed 18, failed 1, total 28.<br>
Loading of 'SAPUSER' import package: OK
Import Monitor jobs: running 2, waiting 6, completed 19, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 5, completed 19, failed 1, total 28.<br>
Loading of 'SAPDDIM' import package: OK
Import Monitor jobs: running 2, waiting 5, completed 20, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 4, completed 20, failed 1, total 28.<br>
Loading of 'SAPDFACT' import package: OK
Import Monitor jobs: running 2, waiting 4, completed 21, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 3, completed 21, failed 1, total 28.<br>
Loading of 'SAPDODS' import package: OK
Import Monitor jobs: running 2, waiting 3, completed 22, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 2, completed 22, failed 1, total 28.<br>
Loading of 'SAPUSER1' import package: OK
Import Monitor jobs: running 2, waiting 2, completed 23, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 1, completed 23, failed 1, total 28.<br>
Loading of 'SAP0000' import package: OK
Import Monitor jobs: running 2, waiting 1, completed 24, failed 1, total 28.<br>
Loading of 'SAPAPPL0' import package: OK
Import Monitor jobs: running 1, waiting 1, completed 25, failed 1, total 28.<br>
Loading of 'SAPSSEXC' import package: OK
Import Monitor jobs: running 0, waiting 1, completed 26, failed 1, total 28.<br>
<br>
WARNING[E] 2009-09-30 23:25:28.524
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log,
<br>
ERROR 2009-09-30 23:25:28.914
FCO-00011 The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
<br>
<br>import_monitor.log.
<br>****************************************************************************************************************************************************
<br>INFO: 2009-09-30 23:26:33 com.sap.inst.migmon.LoadTask run
Loading of 'SAP0000' import package is successfully completed.
<br>
INFO: 2009-09-30 23:30:31 com.sap.inst.migmon.LoadTask run
Loading of 'SAPAPPL0' import package is successfully completed.
<br>
INFO: 2009-09-30 23:31:16 com.sap.inst.migmon.LoadTask run
Loading of 'SAPSSEXC' import package is successfully completed.
<br>
WARNING: 2009-09-30 23:31:31
Cannot start import of packages with views because not all import packages with tables are loaded successfully.
WARNING: 2009-09-30 23:31:31
1 error(s) during processing of packages.
INFO: 2009-09-30 23:31:31
Import Monitor is stopped.
<br>*************************************************************************************************************************************************
<br>SAPAPPL02.LOG
<br>**************************************************************************************************************************************************
<br>TVV1 in *LIBL type *FILE not found. MSGID= Job=015908/SAPINST/QJVAEXEC
(IMP) INFO: a failed DROP attempt is not necessarily a problem
(DB) INFO: TVV1 created #20091001110304
<br>
(DB) INFO: TVV1 deleted/truncated #20091001110304
<br>
(IMP) INFO: import of TVV1 completed (0 rows) #20091001110304
<br>
(DB) ERROR: DDL statement failed<br>
(ALTER TABLE "TVV1" DROP PRIMARY KEY )<br>
DbSlExecute: rc = 99<br>
(SQL error -539)<br>
error message returned by DbSl:
Table TVV1 in R3E04DATA does not have a primary or unique key. MSGID= Job=015908/SAPINST/QJVAEXEC
Your inputs will help a lot.
Regards,
PrasadHello,
We are doing an installation of SAP NW 7.01 SR1 on V6R1.
<br>
We were getting error in SAPAPPL2.TSK.bck we merged the files with following command:R3load --merge_only <TSK file> and refering sap note:Note 455195 - R3load: Use of TSK files.
<br>
We are again getting error in following steps:
<br>
sapinst.log
<br>
<br>WARNING 2009-09-30 23:25:28.477
Execution of the command "Y:\QOpenSys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 OS400 ppc64-64 j9ap64142sr13-20090310 (JIT enabled)
J9VM - 20090309_31291_BHdSMr
JIT - 20090210_1447ifx1_r8
GC - 200902_24)
I<br>mport Monitor jobs: running 1, waiting 27, completed 0, failed 0, total 28.
<br>Loading of 'SAPNTAB' import package: OK
<br>Import Monitor jobs: running 0, waiting 27, completed 1, failed 0, total 28.
Import Monitor jobs: running 1, waiting 26, completed 1, failed 0, total 28.<br>
Import Monitor jobs: running 2, waiting 25, completed 1, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 24, completed 1, failed 0, total 28.<br>
Loading of 'DOKCLU' import package: OK
Import Monitor jobs: running 2, waiting 24, completed 2, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 23, completed 2, failed 0, total 28.<br>
Loading of 'SAPAPPL1' import package: OK
Import Monitor jobs: running 2, waiting 23, completed 3, failed 0, total 28.<br>
Import Monitor jobs: running 3, waiting 22, completed 3, failed 0, total 28.<br>
Loading of 'SAPAPPL2' import package: ERROR
Import Monitor jobs: running 2, waiting 22, completed 3, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 21, completed 3, failed 1, total 28.<br>
Loading of 'DD03L' import package: OK
Import Monitor jobs: running 2, waiting 21, completed 4, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 20, completed 4, failed 1, total 28.<br>
Loading of 'SCPRSVALS' import package: OK
Import Monitor jobs: running 2, waiting 20, completed 5, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 19, completed 5, failed 1, total 28.<br>
Loading of 'SAPSDIC' import package: OK
Import Monitor jobs: running 2, waiting 19, completed 6, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 18, completed 6, failed 1, total 28.<br>
Loading of 'SCPRVALS' import package: OK
Import Monitor jobs: running 2, waiting 18, completed 7, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 17, completed 7, failed 1, total 28.<br>
Loading of 'SAPSSRC' import package: OK
Import Monitor jobs: running 2, waiting 17, completed 8, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 16, completed 8, failed 1, total 28.<br>
Loading of 'FUPARAREF' import package: OK
Import Monitor jobs: running 2, waiting 16, completed 9, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 15, completed 9, failed 1, total 28.<br>
Loading of 'TODIR' import package: OK
Import Monitor jobs: running 2, waiting 15, completed 10, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 14, completed 10, failed 1, total 28.<br>
Loading of 'SEOSUBCODF' import package: OK
Import Monitor jobs: running 2, waiting 14, completed 11, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 13, completed 11, failed 1, total 28.<br>
Loading of 'E071K' import package: OK
Import Monitor jobs: running 2, waiting 13, completed 12, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 12, completed 12, failed 1, total 28.<br>
Loading of 'SAPPOOL' import package: OK
Import Monitor jobs: running 2, waiting 12, completed 13, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 11, completed 13, failed 1, total 28.<br>
Loading of 'SAPSPROT' import package: OK
Import Monitor jobs: running 2, waiting 11, completed 14, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 10, completed 14, failed 1, total 28.<br>
Loading of 'SAPSDOCU' import package: OK
Import Monitor jobs: running 2, waiting 10, completed 15, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 9, completed 15, failed 1, total 28.<br>
Loading of 'SAPCLUST' import package: OK
Import Monitor jobs: running 2, waiting 9, completed 16, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 8, completed 16, failed 1, total 28.<br>
Loading of 'SAPSLOAD' import package: OK
Import Monitor jobs: running 2, waiting 8, completed 17, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 7, completed 17, failed 1, total 28.<br>
Loading of 'SAPSLEXC' import package: OK
Import Monitor jobs: running 2, waiting 7, completed 18, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 6, completed 18, failed 1, total 28.<br>
Loading of 'SAPUSER' import package: OK
Import Monitor jobs: running 2, waiting 6, completed 19, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 5, completed 19, failed 1, total 28.<br>
Loading of 'SAPDDIM' import package: OK
Import Monitor jobs: running 2, waiting 5, completed 20, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 4, completed 20, failed 1, total 28.<br>
Loading of 'SAPDFACT' import package: OK
Import Monitor jobs: running 2, waiting 4, completed 21, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 3, completed 21, failed 1, total 28.<br>
Loading of 'SAPDODS' import package: OK
Import Monitor jobs: running 2, waiting 3, completed 22, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 2, completed 22, failed 1, total 28.<br>
Loading of 'SAPUSER1' import package: OK
Import Monitor jobs: running 2, waiting 2, completed 23, failed 1, total 28.<br>
Import Monitor jobs: running 3, waiting 1, completed 23, failed 1, total 28.<br>
Loading of 'SAP0000' import package: OK
Import Monitor jobs: running 2, waiting 1, completed 24, failed 1, total 28.<br>
Loading of 'SAPAPPL0' import package: OK
Import Monitor jobs: running 1, waiting 1, completed 25, failed 1, total 28.<br>
Loading of 'SAPSSEXC' import package: OK
Import Monitor jobs: running 0, waiting 1, completed 26, failed 1, total 28.<br>
<br>
WARNING[E] 2009-09-30 23:25:28.524
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log,
<br>
ERROR 2009-09-30 23:25:28.914
FCO-00011 The step runMigrationMonitor with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
<br>
<br>import_monitor.log.
<br>****************************************************************************************************************************************************
<br>INFO: 2009-09-30 23:26:33 com.sap.inst.migmon.LoadTask run
Loading of 'SAP0000' import package is successfully completed.
<br>
INFO: 2009-09-30 23:30:31 com.sap.inst.migmon.LoadTask run
Loading of 'SAPAPPL0' import package is successfully completed.
<br>
INFO: 2009-09-30 23:31:16 com.sap.inst.migmon.LoadTask run
Loading of 'SAPSSEXC' import package is successfully completed.
<br>
WARNING: 2009-09-30 23:31:31
Cannot start import of packages with views because not all import packages with tables are loaded successfully.
WARNING: 2009-09-30 23:31:31
1 error(s) during processing of packages.
INFO: 2009-09-30 23:31:31
Import Monitor is stopped.
<br>*************************************************************************************************************************************************
<br>SAPAPPL02.LOG
<br>**************************************************************************************************************************************************
<br>TVV1 in *LIBL type *FILE not found. MSGID= Job=015908/SAPINST/QJVAEXEC
(IMP) INFO: a failed DROP attempt is not necessarily a problem
(DB) INFO: TVV1 created #20091001110304
<br>
(DB) INFO: TVV1 deleted/truncated #20091001110304
<br>
(IMP) INFO: import of TVV1 completed (0 rows) #20091001110304
<br>
(DB) ERROR: DDL statement failed<br>
(ALTER TABLE "TVV1" DROP PRIMARY KEY )<br>
DbSlExecute: rc = 99<br>
(SQL error -539)<br>
error message returned by DbSl:
Table TVV1 in R3E04DATA does not have a primary or unique key. MSGID= Job=015908/SAPINST/QJVAEXEC
Your inputs will help a lot.
Regards,
Prasad -
FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2
HI,
I am using the below Function Module
gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox'
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'Z_LS'
additional_parameters = gv_ap
TABLES
exec_protocol = t_fich
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
with this folder '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' return the error:
/nfs/ficheiros/FicheiroExtraccaoSIF/outbox not found and
External program terminated with exit code 2
but if i map other directory the function return the files and folders that directory have.
Anyone could help me.
Thanks and Regards.
Eduardo PaivaHi,
Yes i have read access to this directory and the command 'Z_LS' exists.
Best Regards,
Eduardo Paiva -
Error Message: External program terminated with exit code 2
Hi ALL
We are doing REORG tablespace in DB13 and i am getting below error message. Please help us to resolve the issue.
20100430 113234 DB6PM 000 Reorg_Tbspc:Command DB6CLP failed on server
20100430 103959 DB6PM 000 Reorg_Tbspc:Exitcode:Error
20100430 103959 DB6PM 000 Reorg_Tbspc:ERRORMESSAGE: An SQL error occured. Will print output of the command
20100430 103959 DB6PM 000 Reorg_Tbspc:External program terminated with exit code 2
20100430 103959 DB6PM 000 REASON=C call failed
Regards
K.Gunasekar
Edited by: KGUNASEKAR on Apr 30, 2010 6:55 AMExitcode 2, if returned from the OS, means "No such file or directory". Note that as of SAP kernel release 7, you usually do not have DB6CLP any more. Can you check if the executable is available in the SAP exe directory ?
If running SAÜ kernel 700 or higher, I suggest to apply a recent SP level.
Malte -
Program terminated with exit code 84
Hi All,
We are facing a issue in Production.
The scheduled jobs for today did not start today
Using export execution command we have exported the jobs and on completion of the first job we call the second one using the below command in script
//Example
exec('E:
Program Files
Business Objects
BusinessObjects Data Services
log
JOB_STAGING_TO_ODS.bat','',1);
As the schedule did not start the first job today we manually executed the first job , while calling the next job is sequence using the above command we received an error message as stated below
Program terminated with exit code <84>.
We have gone live with these jobs for few weeks now.
It was running fine until today.
we dont see a problem with the script.
If this the problem with access revoked to execute a batch file or something of that sort?
Request all your help in this regard.
Thanks in advanceWas this issue resolved for you?
We are also facing a similar kind of issue..
Job not executing when scheduled and not able to execute the job using exec command..
When used print command on the exec, we received the same error message "not able to execute the job" with the same exit code 84..
Can you please advice us on the same?
Thanks in Advance! -
What does "Program ended with exit code: 0" mean in Xcode?
Hello,
I am fairly new to programming and I have received the error "Program ended with exit code: 0" in the last few programs I have created. It shows in the output windows after I have ran the program. What does this mean?an exit code of 0 indicates no error. If a program wants to indicate there was something wrong when it exited it will exit with a non-zero value.
What types of programs are you writing? Normally you see this for command line type programs. -
What to add to an program code in order to trigger an background job
Hi there
I wander what to add to an program code in order to trigger an event which consequently can trigger an background job
thx in advanceCheck this code:
DATA : v_jobhead LIKE tbtcjob.
DATA : v_jobcount LIKE tbtcjob-jobcount.
DATA : v_eventparm LIKE tbtcjob-eventparm.
DATA : v_flg_released TYPE c.
DATA: e_error.
DATA: running LIKE tbtcv-run.
TYPES: esp1_boolean LIKE boole-boole.
CONSTANTS: esp1_false TYPE esp1_boolean VALUE ' ',
esp1_true TYPE esp1_boolean VALUE 'X'.
CONSTANTS: true TYPE boolean VALUE esp1_true,
false TYPE boolean VALUE esp1_false.
PARAMETERS: v_jobnam LIKE tbtcjob-jobname,
v_report LIKE sy-repid,
v_varian LIKE raldb-variant,
v_uname LIKE sy-uname.
START-OF-SELECTION.
* add the new job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
* delanfrep = 'X'
jobname = v_jobnam
IMPORTING
jobcount = v_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
e_error = true.
ELSE.
CALL FUNCTION 'JOB_SUBMIT' " or you can use SUBMIT statement as well.
EXPORTING
authcknam = v_uname
jobcount = v_jobcount
jobname = v_jobnam
report = v_report
variant = v_varian
EXCEPTIONS
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
OTHERS = 10.
IF sy-subrc <> 0.
e_error = true.
ELSE.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
* EVENT_ID = IC_WWI_WORKPROCESS_EVENT
* EVENT_PARAM = V_EVENTPARM
* EVENT_PERIODIC = 'X'
jobcount = v_jobcount
jobname = v_jobnam
strtimmed = 'X'
IMPORTING
job_was_released = v_flg_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
e_error = true.
ELSE.
DO.
CALL FUNCTION 'SHOW_JOBSTATE'
EXPORTING
jobcount = v_jobcount
jobname = v_jobnam
* IMPORTING
* ABORTED =
* FINISHED =
* PRELIMINARY =
* READY =
* running =
* SCHEDULED =
EXCEPTIONS
jobcount_missing = 1
jobname_missing = 2
job_notex = 3
OTHERS = 4.
IF sy-subrc <> 0.
e_error = true.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF running = space.
EXIT.
ENDIF.
ENDDO.
ENDIF.
ENDIF.
ENDIF. -
Program won't exit when reading in gif?!?
Hi,
I have written a class (see code below) that has a single method to read in two gifs, superimpose them, add text and then write the result to a jpeg file.
I test this in a simple main method (again see below). javac test.java, java test
The problem is that the program will not terminate. The final System.out.println() command is displayed in the terminal. It has to be halted with ctrl+c.
I have traced the problem to the image being read in! If I comment out the images being read in - in the MapMaker constructor (also commenting out where the images are used) - the program terminates correctly.
There are no exceptions flying around either!
Any ideas? I guess some system resource isn't being cleared, but don't know how to do this!
I can't use System.exit() because this class will be used in a .jsp page that will use the jpeg created!
Thanks in advance
Matt
MapMaker.java:
import java.awt.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.awt.geom.AffineTransform;
import java.io.*;
import javax.swing.*;
import java.awt.MediaTracker;
import java.awt.Canvas;
public class MapMaker extends Canvas implements java.io.Serializable{
private Image arrow;
// Read in the 2 .gif files of the arrow and the map
public MapMaker() {
// When commenting out these lines, the program works fine
arrow = Toolkit.getDefaultToolkit().getImage ("arrow2.gif");
try {
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(arrow, 0);
tracker.waitForID(0);
} catch (InterruptedException e) {
System.out.println("Interrupted exception caught ");
e.printStackTrace();
// createMap generates a .jpg file fo the map with an
// arrow and wind direction
public void createMap() {
// Create a new Buffered image and associated Graphics 2D object
// Draw to the Graphics 2D object
BufferedImage bi = new BufferedImage(200,200,BufferedImage.TYPE_INT_RGB);
Graphics2D big = bi.createGraphics();
// Set the rendering hints
big.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
big.setRenderingHint(RenderingHints.KEY_RENDERING,
RenderingHints.VALUE_RENDER_QUALITY);
big.setBackground(Color.white);
big.clearRect(0, 0, 200, 200);
// Here I would add the images to big
// Add text
big.setFont(new Font("Dialog", Font.BOLD, 12));
big.setColor(Color.green);
big.drawString("12", 138, 128);
try {
// write the buffered image to a jpg file
File file = new File("test.jpg");
FileOutputStream out = new FileOutputStream(file);
// encodes bi as a JPEG data stream
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(1.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(bi);
out.close();
} catch (Exception ex) {
System.out.println("Failure to write JPEG file");
return;
} // createMap
// This tests the above class
import MapMaker;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
public class test {
public static final void main( String args[] ) {
try{
System.out.println("Making new MapMaker object");
MapMaker mapMaker = new MapMaker();
System.out.println("Making new map");
mapMaker.createMap();
System.out.println("Finished making the new map");
catch (Exception e){
System.out.println("Top level exceptions\n");
e.printStackTrace();
System.out.println("All the way");
return;
}If anyones interested. It turns out that this is a feature!
When windows resources (i.e. reading in an image) are used. Java programs won't exit automatically.
They have to be closed with System.exit() -
Tcode or program in which exit EXIT_SAPLCK21_002 is used
Hi all,
Can anyone please tell the Tcode or Program in which exit
EXIT_SAPLCK21_002 ( enhancement COPCP005) is being used.
Regards,
sudhaHi,
Check CO01, CO02, COR1, COR2
Please see the documentation below,
Develop Enhancements for Material Costing
The following SAP enhancements are available for the area Cost Estimate with Quantity Structure:
Costing Reports (SAPLXCKA)
Costing Production Resources and Tools (COPCP003)
Material Valuation with Cross-Company Costing (COPCP001)
Costing Bulk Materials (COPCP004)
Valuation Price for Materials from User Exit (COPCP005)
1. Costing Reports: SAPLXCKA
Here you can create your own reports for displaying cost estimates with quantity structure or activate the example reports in the standard system.
This enhancement contains the following components:
EXIT_SAPLCKAZ_001 Display/print itemization
This enhancement contains example program code from SAP that you can modify and use for your own enhancement, or activate directly as a report for the itemization.
EXIT_SAPLCKAZ_002 Display/print cost components
This enhancement contains example program code from SAP that you can either modify and use for your own enhancement, or activate as a report for the cost components.
EXIT_SAPLCKAZ_003 Display/print cost components and itemization
This enhancement does not contain example program code.
In the cost estimate with quantity structure you access the reports with Costs -> Display user exit. The report refers to the first cost component view listed. If you want to see the costs with reference to another cost component view, choose Settings -> Cost display and choose the desired report under Select view.
You can display your own reports in the information system by adding them to the report list for product costing.
See also:
Check report list for material cost estimate
2. Costing production resources/tools: COPCP003
This enhancement contains the component EXIT_SAPLCK01_001.
The costs for production resources and tools are calculated as a flat rate within production overhead.
This enhancement enables you to plan the costs for production resources in costing with quantity structure in different ways. Here you can specify how the production resources are to be costed.
In the cost component structure, the production resources can be shown in separate cost components.
This enhancement contains example program code from SAP that you can modify or use as is.
3. Material valuation with cross-company costing:
COPCP001
This enhancement contains the component EXIT_SAPLCK21_001.
Here you can enter the prices for valuation of a material that is transferred between company codes.
You have the following options for the valuation of materials that are transferred between company codes:
You are using the standard system without cross-company costing. In this case the system uses a price in the material master record in accordance with the valuation strategy. The material is treated as if it were externally procured.
You activate cross-company costing. In this case the material is recosted in the other company code or transferred according to the transfer control ID.
If you have not activated cross-company costing, you can use this enhancement to define alternative prices for valuation of a material that is transferred between company codes. That is, this enhancement allows you to specify which price should be used instead of the price from the material master record.
In include LXCKAF)) you can find an example program code. However, this code example can not be directly copied and used
4. Costing Bulk Materials: COPCP004
This enhancement contains the component EXIT_SAPLKKEX_001.
You can use this enhancement to plan the costs for bulk materials and show in the cost element itemization.
If the indicator Bulk material is set in the material master, the indicator Relevant to costing in in the BOM does not accept input for the item. The enhancement allows you to determine the costing relevancy. The items with the bulk materials indicator at item level of BOM are also included as relevant to costing.
This enhancement contains example program code from SAP that you can modify or use as is.
5. Valuation Price with Valuation Strategy U: COPCP005
This enhancement contains the component EXIT_SAPLCK21_002.
You can use this enhancement to specify prices for valuation of materials if you want to use valuation strategy U (valuation with USER EXIT) for material valuation to find a price for the materials.
This enhancement does not contain any example program code from SAP.
Activities
To activate the SAP example reports (the procedure is similar forthe other enhancements):
1. Create a new project or use an existing one.
2. Set the indicator SAP enhancements and choose Change.
3. Enter SAPLXCKA as the SAP enhancement and choose Save.
4. Set the indicator Enhancement components and choose Change.
5. Position the cursor on the enhancement component EXIT_SAPLCKAZ_001 and choose Edit -> Use SAP source code.
6. The system asks whether you want to create ZXCKAU01. Answer Yes.
7. Maintain the attributes.
8. Save the program and choose Back.
9. Position the cursor on the enhancement component EXIT_SAPLCKAZ_002 and choose Edit -> Use SAP source code.
10. The system asks whether you want to create ZXCKAU02. Answer Yes.
11. Maintain the attributes.
12. Save the program and choose Back.
13. Activate the project.
14. To display the reports, you must perform costing again.
Further notes
Unlike modifications, enhancements are always upgrade-compatible because they are implemented in a name range reserved for the customer rather than in the SAP original.
The general procedures for creating enhancements can be found in the enhancement transaction CMOD under Goto -> Online Manual. This takes you to the SAP library where you can find detailed information on customer exits.
For more information on the above enhancements, see the associated function module documentation.
Edited by: krishna reddygari on Mar 6, 2008 9:24 AM -
In VB Programming code -- How to access the formula for suppressing a field
In VB Programming code -- How to access the formula for suppressing a field
I am using Crystal Reports 2008 v1
Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
My problem is that I am unable to access the formula used to dynamically suppress a field.
The following code is working:
mySections = rd.ReportDefinition.Sections
For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
iloop = 0
For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
myTextObject.Text = "new field text goes here"
mySection.SectionFormat.EnableSuppress = True
' Here is where I want to change the formula for the Suppression
End if
iloop = iloop + 1
Next
Next
I can not find any reference to the actual suppression formula in the SDK help file.
Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten. The results of the formula determine the suppression.
Is there a way to reference this formula. I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.Hello, Mark;
If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
Elaine -
At first I thought it was just my own programs that I created with netbeans that had this problem; however, even the demo programs under the sdk folder give me this problem when i try to run them. Virtual Machine Loader will just come up with pop up saying "Could not find the main class. Program will not exit"
I am a fairly competent programmer, not new to java. But I am new to guis in java, and using netbeans to create them. The program I am creating gives me this error with javaw and with java it will tell me NoClassDef for grouplayout. I checked the manifest file it looks alright:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Main-Class: desktopapplication2.DesktopApplication2
Class-Path: lib/appframework-1.0.3.jar lib/swing-worker-1.1.jar lib/swing-layout-1.0.1.jar lib/ant-swing.jar lib/SwingSet2.jar lib/swing-layout-1.0.3.jar
X-COMMENT: Main-Class will be added automatically by build
}(brackets not included)
I am sort of lost.... Do I need to install ant separately?
I feel like there may be some classpath issues?
I have java 1.6 update 4 and netbeans 6.0
I am completely lost I have been working on fixing this for the past 2 or 3 days now, and reading up all the information.
Note: This is just a standard desktop application.
Also I just thought of something. If I have install the development kit do I also need to install the framework or whatever for 6.0 separately? Meaning installing the latest version of jvm. Sorry if this isn't clear i forgot what it is called.
Sorry if this sounds like a beginner question or something, but I am going crazy. If i am having this much trouble running my own program i really hope distributing files won't be this much of a nightmare....Please become familar with resources at the NetBeans site. There are tutorials and FAQs that cover usage of NB, and how to do things like you're asking.
See my reply in this thread for more information
http://forum.java.sun.com/thread.jspa?threadID=5270931&tstart=0 -
Regarding how to find out a program is User Exit/executable
Hi,
Can anybody tell me how can we find wether a particular program is used in executable program (or) user exit program?
One thing we can find out is wether the program type is 'I' or 'R' etc..
Thanks in advance.
Thanks,
Deep.Hi...
See the following links..
it helps you a lot..
how can we C the USER_EXITS in Z programs
how can we find the list of user exits for a transaction
How to find the active user exits in my client
How to find user exits for a transaction
Hope it helps you...
Let me know if u have any more doubt...
Reward points if useful......
Suresh....... -
Generation of program code for the ABAP Query
Dear all,
In the creation of the ABAP query, in the final step of SQ01, Query- more functions- generate program is made.
Why the program code is generated for the ABAP query? please give the logical explaination for the same.
Thanks and Regards,
PrashPrash,
a) Do you mean Program code does not have significance in query creation?
No it does not mean this. All queries run based on an ABAP program. In the standard query editing process, when you save and execute the query, you will automatically re-build the existing ABAP program as necessary. You do not need, though, to execute the menu steps you outlined in order to build, maintain, or execute the query. It is only there for special purposes, as outlined above by Jürgen
b) Can we see the program code generated in any transaction?
From any screen, System > Status. Place your cursor on the field in "Program (screen)". Double click.
Rgds,
DB49 -
Syntax highlighted program code in keynote?
Is there any easy way insert programming code (in my case Ruby code) into a slide so it shows up with syntax highlighting and formating suitable for the code?
I.E. so it looks like the highlighted code in Textmate or other gui editors?TextWrangler (and thus presumably BBEdit) do preserve their syntax colouring when PDFed, as does Taco HTML Edit. My guess is that this is capability is an app-by-app feature.
If you were desperate for a PDF output to Keynote, you could always copy the text from Textmate and paste it into the freeware TextWrangler. You would likely have to adjust the default syntax colouring to match Textmate, but that would be relatively straightforward. -
How to see programming Code for UCCX Script
Hi All,
How can I see the programming Code for UCCX Script? I have a script and want to see its Code , something like :
int sum = 0;
boolean alternate = false;
boolean isValid = false;
try {
int i = 0;
for (i = ccnumber.length() - 1; i >= 0; i--) {
int n = Integer.parseInt(ccnumber.substring(i, i + 1));
if (alternate) {
n = n * 2;
if (n > 9) {
n = (n % 10) + 1;
sum += n;
alternate = !alternate;
isValid = (sum % 10 == 0);
} catch (Exception e) {
return -1;
return (isValid == true ? 1 : 0);
thanks,
HamedYou're not going to find code per se, unless you have some java class you wrote and then you would only see the code if you had the source java file. The script is the only interface you get for "code".
david
Maybe you are looking for
-
So my little brother locked my Iphone 5 out, so it said to connect it to my Itunes. So now I connect it to Itunes, however now when I click on restore (That's my only option) it says that "Find my Iphone must be turned off before restore". So I went
-
Why do I need to wait for an engineering for an al...
I'm moving home at very short notice due to a death in the family. I'm an existing BT customer moving to a rented home which 6 weeks ago had a working phone line. I work from home via IP and webex etc so having a working phone line and broad band are
-
Apps on computer needing to be put back on IPAD
I was trying to backup my IPAD and selected the transfer purchases option... it had me authorize the computer and copied everything over nicely. When grabbing my IPAD a few minutes later it had a lot more free space... this is because it copied all m
-
Hi again guys... I thought it'd be pretty stupid of me that whenever I would run into a problem I would make a new thread about it. Hence, this is the only thread I am ever going to post in regarding my own questions. I would like to start off with a
-
Music in Source doesn't load into Ipod mini
I purchased an album, and it shows in the source column as "digital booklet". It doesn't load into my ipod. Am I doing something wrong? What is a digital booklet?