2009 Sep 17 9:10 AM
hi frends i am executing a program that reads data from two tables then multiply two field values to obtain the result.But when i execute the program a run time error msg " program 'Zpmreportnew' not found " occurs. before it on execution some run time error related to overflow during arithmetic calculation was being displayed and now this error.
Plz help me to solve it. my code is :
REPORT ZPMREPORTNEW.
data var1(10) type n.
data var_mat_no(18) type c.
data var_qty(10) type p decimals 3.
data var_mov_price(7) type p.
data var_cost(7) type p decimals 3.
tables RESB.
select * from RESB .
var_qty = RESB-BDMNG. "it assigns req qty to var_qty.
var_mat_no = RESB-MATNR. " it assigns the material no of the reserved material to the var_mat_no.
tables MBEW.
select * from MBEW where MATNR = var_mat_no.
var_mov_price = MBEW-VERPR. " it assigns moving price to var_mov_price.
endselect.
write: / 'var_qty =', var_qty,
/'var_mov_price= ', var_mov_price.
var_cost = var_mov_price * var_qty.
write / ' req cost is '.
write / var_cost.
endselect.
Edited by: achalmehra on Sep 17, 2009 10:12 AM
Edited by: achalmehra on Sep 17, 2009 10:12 AM
hi frends i am executing a program that reads data from two tables then multiply two field values to obtain the result.But when i execute the program a run time error msg " program 'Zpmreportnew' not found " occurs. before it on execution some run time error related to overflow during arithmetic calculation was being displayed and now this error.
Plz help me to solve it. my code is :
REPORT ZPMREPORTNEW.
data var1(10) type n.
data var_mat_no(18) type c.
data var_qty(10) type p decimals 3.
data var_mov_price(7) type p.
data var_cost(7) type p decimals 3.
tables RESB.
select * from RESB .
var_qty = RESB-BDMNG. "it assigns req qty to var_qty.
var_mat_no = RESB-MATNR. " it assigns the material no of the reserved material to the var_mat_no.
tables MBEW.
select * from MBEW where MATNR = var_mat_no.
var_mov_price = MBEW-VERPR. " it assigns moving price to var_mov_price.
endselect.
write: / 'var_qty =', var_qty,
/'var_mov_price= ', var_mov_price.
var_cost = var_mov_price * var_qty.
write / ' req cost is '.
write / var_cost.
endselect.
Edited by: achalmehra on Sep 17, 2009 10:12 AM
Edited by: achalmehra on Sep 17, 2009 10:12 AM
2009 Sep 17 9:13 AM
2009 Sep 17 9:24 AM
i tried it several tyms.evry tym i tried it to execute same run tym error occurd that loading prgram not found
2009 Sep 17 9:27 AM
Hi
How do you run it? BY SE38?
If it's so try to post the main parts of the dump
Max
2009 Sep 17 10:18 AM
2009 Sep 17 10:23 AM
2009 Sep 17 10:32 AM
but sachin if it is wrkng fine wid ur systm then wat cud be th prblm wid mine?
2009 Sep 17 10:34 AM
2009 Sep 17 10:34 AM
sachin cud u plz paste ouput for me.is it showing the cost of each nd every reservtion.
2009 Sep 17 10:35 AM
2009 Sep 17 10:38 AM
Hi,
Your code is giving following output:
17.09.2009 ZPMREPORTNEW. 1
-
var_qty = 80,600
var_mov_price= 1
req cost is
80,600
var_qty = 10,000
var_mov_price= 0
req cost is
0,000
var_qty = 8,000
var_mov_price= 0
req cost is
0,000
var_qty = 110,000
var_mov_price= 0
req cost is
0,000
var_qty = 0,000
var_mov_price= 2
req cost is
0,000
var_qty = 53,400
var_mov_price= 0
req cost is
0,000
var_qty = 2,400
var_mov_price= 0
req cost is
0,000
var_qty = 1,600
var_mov_price= 0
req cost is
0,000
var_qty = 167,400
var_mov_price= 0
req cost is
0,000
var_qty = 0,000
var_mov_price= 0
req cost is
0,000
var_qty = 125,000
var_mov_price= 0
req cost is
0,000
var_qty = 20,000
var_mov_price= 0
req cost is
0,000
var_qty = 5,000
var_mov_price= 0
req cost is
0,000
var_qty = 15,000
var_mov_price= 2
2009 Sep 17 10:42 AM
yeah thnx dear i tried it on my quality server and it is wrkng fine ther.thnx a lot for help
2009 Sep 17 10:43 AM
Hi
Your code is ok, I think some problem is in SAP memory or in some system tables of SAP after the previous dumps, probably now something is missiing there.
If you can post the dump (the main part of it), perhaps we can have more informations
Max
2009 Sep 17 10:44 AM
good that it is working fine.. Can you please still post the dump trace so that we can check why the problem was occuring??
2009 Sep 17 10:48 AM
hi sachin by dump post u wanna ask for the source code or that error screen
2009 Sep 17 10:54 AM
Hi,
go to tcode ST22 and select the error which you faced. Copy the information in ABAP Developer View Folder adn paste it here.
Regards,
Sachin
2009 Sep 17 11:46 AM
Short text
Program "!PMREPORTNEW1" not found.
What happened?
There are several possibilities:
Error in the ABAP Application Program
The current ABAP program "SAPLALDB" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
or
Error in the SAP kernel.
The current ABAP "SAPLALDB" program had to be terminated because the
ABAP processor detected an internal system error.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
However, program "!PMREPORTNEW1" does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
2009 Sep 17 1:02 PM
Hi
!PMREPORTNEW1: it means your program was buffered, and now the system tries to run this program instead of ZPMREPORTNEW1.
U should check some OSS note
Max
2009 Sep 17 10:34 AM
Hi
Goto table D020S, and give your program name, check whether your program stored in the memory or not
Rgds,
Sripal
2009 Sep 17 12:50 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |