Dump with decimals operation
Hii all
DATA: P1 TYPE P DECIMALS 14,
I1 type i VALUE '256323',
I2 TYPE I VALUE '2'.
P1 = I1 / I2.
WRITE: / P1.
when i run above prgm i am getting dump.
so here i need to increese the lentgh of integer(I1)
and i dont need to decrease the decimal lentgh.
plz tell me is any way..?
Edited by: Alvaro Tejada Galindo on Mar 25, 2008 11:11 AM
Hi
try this
DATA: P1 TYPE p DECIMALS 2,
I1 type i VALUE '256323',
I2 TYPE I VALUE '2'.
P1 = I1 / I2.
WRITE: / P1.
Regards,
V.balaji
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 25, 2008 11:12 AM
Similar Messages
-
LazyLoading: dump with basic operation
Hi all,
I have two JPA entities: Company and Employee
Company is in a @OneToMany relationship with Employee
Employee is in a @ManyToOnw relationship with Company and owns the relationship
I have marked Employee's side as eager and Company side as lazy
I have developed a simple ejb which does something like this:
public void retrieveCompany(String id){
Company cmp = em.find(Company.class, id);
If I invoke this ejb from a WDJ or another EJB I get an odd error on lazy loading
Caused by: java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2951)
at com.sap.engine.services.orpersistence.core.StoreManager.createLazyRelation(StoreManager.java:238)
at com.sap.engine.services.orpersistence.core.StoreManager.loadMultipleToManyRelationships(StoreManager.java:1349)
at com.sap.engine.services.orpersistence.core.StoreManager.processEntityInfos(StoreManager.java:1148)
at com.sap.engine.services.orpersistence.core.StoreManager.loadOrRefreshFromDB(StoreManager.java:226)
at com.sap.engine.services.orpersistence.core.StoreManager.loadEntityOrRefreshExisting(StoreManager.java:180)
at com.sap.engine.services.orpersistence.core.PersistenceContextImpl.loadEntityFromConnection(PersistenceContextImpl.java:247)
at com.sap.engine.services.orpersistence.core.PersistenceContextImpl.loadEntity(PersistenceContextImpl.java:262)
at com.sap.engine.services.orpersistence.core.PersistenceContextImpl.find0(PersistenceContextImpl.java:191)
at com.sap.engine.services.orpersistence.core.PersistenceContextImpl.find(PersistenceContextImpl.java:175)
at com.sap.engine.services.orpersistence.core.MonitoredPersistenceContextImpl.find(MonitoredPersistenceContextImpl.java:246)
at com.sap.engine.services.orpersistence.entitymanager.EntityManagerImpl.find(EntityManagerImpl.java:129)
at com.sap.engine.services.orpersistence.entitymanager.EntityManagerHandleImpl.find(EntityManagerHandleImpl.java:42)
at com.sap.engine.services.orpersistence.container.EntityManagerProxy.find(EntityManagerProxy.java:82)
This error is solved if I set Company's side of the relationship as EAGER, but this is not acceptable to me.
Can anyone please advice?
Thanks, regards
Vincenzohi all,
I found out what was missing:
As per JPA specifications relationships must be modeled using
Collection, Set, List, Map
AND NOTHING ELSE
you must not use ArrayList or whatever even though they implement those interfaces.
However, I would like to use this thread to define the final truth about SAP JPA lazy loading behavior:
In my WDJ model I call an EJB method which returns an entity which has a oneToMany relationship marked as lazy
The returned entity is detached and if nothing is specified you will get an "entity is detached" dump.
So: if you want your collection loaded from db, in your EJB you might use something like
myEntity.getMyCollection().size();
in this way I have checked that all the items in the collection are loaded and returned.
if you don't want you collection loaded you must use somethink like:
myEntity.setMyCollection(null);
So that it will kill the proxy which has been loaded in place of the actual collection object.
Please comment and report your experience, this is fundamental for everyone using SAP JPA implementation
Thanks, regards
Vincenzo -
Using Modulus (%) arithmetic operator with decimals
When trying to use the arithmetic operator modulus with decimals there seem to be some errors in the results. Is there a restriction on the number/value of decimals that can be used with this operator? Am I perhaps just using it incorrectly?
example ...
Double valA= new Double("12.4");
Double valB = new Double("1236");
double result = valB.floatValue() % valA.floatValue();
System.out.println("valB : " + valB );
System.out.println("valA: " + valA);
System.out.println("result : " + result);
produces :
valB : 1236.0
valA : 12.4
result : 8.40003776550293
But :
Double valA= new Double("12.5");
Double valB = new Double("1236");
double result = valB.floatValue() % valA.floatValue();
System.out.println("valB : " + valB );
System.out.println("valA: " + valA);
System.out.println("result : " + result);
produces :
valB : 1236.0
valA : 12.5
result : 11.0Floating point arithmetic in general is not exact. The problem is that you are expecting exact results.
In the second example where you use 12.5 and 1236.0 is just so happens that both of those numbers can be represented exactly, so you do get an exact result. -
Photo Elements 12 editor shuts down when I select enhance>Photomerge>Panorama. I am using Mac Book Pro with Yosemite operating system. Otherwise, the program preforms properly. Any suggestions?
When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.
These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad and start typing the name.
The title of the Console window should be All Messages. If it isn't, select
SYSTEM LOG QUERIES ▹ All Messages
from the log list on the left. If you don't see that list, select
View ▹ Show Log List
from the menu bar at the top of the screen.
Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
Please don't indiscriminately dump thousands of lines from the log into this discussion.
Please don't post screenshots of log messages—post the text.
Some private information, such as your name, may appear in the log. Anonymize before posting. -
I have an iMac and use OS 10.4.11 & Firefox 3.6.19. Firefox prompted me to download an update (to 7.0.1). I looked up the system requirements on your website, and it stated the update is compatible with OS 10.4.11. But after I downloaded and installed the update, it failed to work on grounds of incompatibility. Hence 2 questions: (1) Why did Firefox prompt me to download an incompatible update? (2) Why did your website claim the update is compatible with my operating system when it is not?
Sorry, it's because Firefox 4+ are only compiled for the Intel processors.
There is a separate project for PPC Macs called Ten Four Fox. You might give it a spin when you're tired of 3.6.
http://www.floodgap.com/software/tenfourfox/ -
How do I access websites that warn: "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...."? When I try to download any alternate browser, all I get is another warning that the alternate is "not compatible with your operating system." Is Firefox preventing this? The site listed below is a job application site. I've had this same problem with other job application sites also.
== URL of affected sites ==
https://storefront.kenexa.com/lithia/cc/Home.ssThere should be a User Agent Switcher menu item under Tools, which gives you the browser names you can impersonate.
The menu item name changes to the browser UA you are presently using.
There is also a User Agent Switcher button, you can add it using View -> Toolbars -> Customize, and dragging the button to your toolbar.
See http://chrispederick.com/work/user-agent-switcher/features/ and http://chrispederick.com/work/user-agent-switcher/help/
You can just start trying IE versions (or the versions it says on the site) until it lets you in. -
Hi
I have one Zreport which gives the result in ALV form.
After getting the result(1 row with 33 columns) when I tried to export the ALV results to spread sheet using the option : List-> Export-> Spread Sheet OR by click on Excel icon in the display screen,I'm getting the short dump with the description "No more storage space available for extending an internal table" .
After analysis ,find that dump is raising in the FM : F4_GET_RESULT of Include Program : LSDH3U03.
Can anyone provide us some clue .
Thanks & Regards,
SreeramHi,
If the display is in ALV grid format, then you can try another approach to save the data in a spreadsheet.
- Right-click on any output cell.
- Select 'Spreadsheet' from the drop down list
- radio-button 'All available formats'
- Excel (In existing XXL format)
Thanks!
VS. -
How to use tree tables with CRUD operation for begineers ADF 11g
This is Friday night call for help.
This is only few sample ressources on the web for tree table and only one with CRUD operation.
I used this one http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html because this is the only one that address CRUD.
And it is shaky. Deletion works fine but insertion not very well. This is working using custom code provided below.
Depending if the user selection in the tree, the code insert from the master node to the children node.
Any other options because it is not working well.
Also where Oracle describes how to use the row, rowset, itorator API? This is really hard to understand like almost if we should not use it.
then if not how can I insert in tree with two nodes and insert in the parent or children depending the users selection.
Lately I 'been posting questions on this forum with no response. This hurts. I understand developers cannot spend their time on this but People from Oracle, please help. We pay licenses...
public void createChildren(RowIterator ri, Key selectedNodeKey) {
final String deptViewDefName = "model.DepartmentsView";
final String empViewDefName = "model.EmployeesView";
if (ri != null && selectedNodeKey != null) {
Row last = ri.last();
Key lastRowKey = last.getKey();
// if the select row is not the last row in the row iterator...
Row[] found = ri.findByKey(selectedNodeKey, 1);
if (found != null && found.length == 1) {
Row foundRow = found[0];
String nodeDefname =
foundRow.getStructureDef().getDefFullName();
if (nodeDefname.equals(deptViewDefName)) {
RowSet parents =
(RowSet)foundRow.getAttribute("EmployeesView");
Row childrow = parents.createRow();
parents.insertRow(childrow);
} else {
RowSet parents =
(RowSet)foundRow.getAttribute("EmployeesView");
Row childrow = parents.createRow();
childrow.setAttribute("DepartmentId",
foundRow.getAttribute("DepartmentId"));
parents.insertRow(childrow);
} else {
System.out.println("Node not Found for " + selectedNodeKey);
}I am looking for a sample that describe how to design a jsf page with a tree table.
So you have Department and employees. In the tree first comes Department and if you click the node you see the employees assigned to this department.
I need to be able to insert a new department or a new employee from the tree table by clicking on a insert button in the panel collection toolbar depending on user selection in the tree.
I got part of it working but not good enough.
By problem is the get insertion working
I have a createChildren method in my AM implementation that get in input a RowIterator and selected node key.
To goal is to create new records depending of the user selection and the input parameters get populated by the binding like this:
#{backing_treeSampleBean.selectedNodeRowIterator} #{backing_TreeSampleBean.selectedNodeRowkey} via method binding with parameters.
Is it the right approach?
First to be able to insert a parent record, I select nothing in the tree and ri and selectedNodeKey comes to null
we run this code
ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
//ViewObjectImpl vo = getDepartmentsView1();
Row foundRow = vo.first();
Row childrow = vo.createRow();
vo.insertRow(childrow);
A new blank entry appears in the parent node and we enter a value.
The the problem starts when we want to add a child to this parent.
We select the created parent and press the insert button, this code get executed
if (nodeDefname.equals(deptViewDefName))
//list of the children of the parent and create an new row
RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
Row childrow = childRows.createRow();
childRows.insertRow(childrow);
But the new entry does not appear, it is almost like it would be created for a different parent because this is a mandatory field that is not feel in yet and the interface complaints of a missing value. It is created somewhere just not a the right place... This is my guess.
Do you see something wrong with the code?
The full code og my create children method is there below
I am using jdeveloper 11.1.1.3.0 any issues with tree table to know about with this version?
Thanks for your help
public void createChildren(RowIterator ri, Key selectedNodeKey) {
final String deptViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidaySchedExceptionsView";
final String empViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidayExceptionDatesView";
if (ri != null && selectedNodeKey != null) {
// last row
Row last = ri.last();
Key lastRowKey = last.getKey();
// if the select row is not the last row in the row iterator...
Row[] found = ri.findByKey(selectedNodeKey, 1);
if (found != null && found.length == 1) {
// foundRow is the row selected
Row foundRow = found[0];
// The row selected can be the parent node or the child node
String nodeDefname = foundRow.getStructureDef().getDefFullName();
// if parent row
if (nodeDefname.equals(deptViewDefName))
//list of the children of the parent and create an new row
//works but we try to resolve the creation of a parent
RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
Row childrow = childRows.createRow();
//childrow.setAttribute("HolidayDate", new java.util.Date().getDate());
System.out.println("insert child row from master");
childRows.insertRow(childrow);
} else
//RowSet ParentRow = (RowSet)foundRow.getAttribute("SchHolidaySchedExceptionsView");
//RowSet childRows = (RowSet)ParentRow.first().getAttribute("SchHolidayExceptionDatesView");
Row childrow = ri.createRow();
System.out.println("insert child row from child ");
} else {
System.out.println("Node not Found for " + selectedNodeKey);
} else {
System.out.println(" param null try creating for first row : " +
ri + " * " + selectedNodeKey);
ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
Row foundRow = vo.first();
Row childrow = vo.createRow();
vo.insertRow(childrow);
} -
Getting dump with message CALL_FUNCTION_GET_NAME_FAILED
Hi,
My requirement is to write a report which will be run in background every Monday and the result will be sent to a user as email with excel as attachment.
I tried it by giving the email in 'Spool list recipient' in SM36. ut since the length of the output is more than 255 chars, so i thought of writing the email code as shown below.
DATA: l_message_content LIKE soli OCCURS 10 WITH HEADER LINE,
l_receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
l_packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
l_listobject LIKE abaplist OCCURS 10,
l_compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
lw_object_hd_change LIKE sood1,
l_compressed_size LIKE sy-index.
l_receiver_list-recnam = sy-uname .
l_receiver_list-esc_des = 'B'.
APPEND l_receiver_list.
lw_object_hd_change-objla = sy-langu.
lw_object_hd_change-objnam = 'Selection'.
lw_object_hd_change-objsns = 'P'.
Mail subject
lw_object_hd_change-objdes = 'KRB SAP Inconsistency Report'.
Mail body
APPEND 'Consisteny report between KRB and SAP' TO l_message_content.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = l_compressed_size
TABLES
in = <fs_table>
out = l_compressed_attachment.
DESCRIBE TABLE l_compressed_attachment.
CLEAR l_packing_list.
l_packing_list-transf_bin = 'X'.
l_packing_list-head_start = 0.
l_packing_list-head_num = 0.
l_packing_list-body_start = 1.
l_packing_list-body_num = sy-tfill.
l_packing_list-objtp = 'ALI'.
l_packing_list-objnam = 'Selection'.
l_packing_list-objdes = 'SAP KRB Consistency Report'.
l_packing_list-objlen = l_compressed_size.
APPEND l_packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = lw_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = l_message_content
receivers = l_receiver_list
packing_list = l_packing_list
att_cont = l_compressed_attachment.
I am getting the mail which i checked in SBWP but when i clicked on the attachment i am getting dump with message CALL_FUNCTION_GET_NAME_FAILED.
Short text
Error when starting a Remote Function Call.
What happened?
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
An error occurred when executing a Remote Function Call.
Error analysis
An error occurred when executing a Remote Function Call.
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
Status of connection.... "RFC DRV=??? ???"
Internal error code.... "RFC_IO4"
Internal error: Invalid RFC handle.
Trigger Location of Runtime Error
Program SAPMSSY1
Include SAPMSSY1
Row 266
Module type (FORM)
Module Name XAB_RUN_DRIVER
Please help in this.
<removed by moderator>
Edited by: Thomas Zloch on Sep 14, 2011 11:57 AMHi,
Check your RFC Connection Configuration. Also, check the used username & password.
Reward points if the asnwer is helpful.
Regards, -
ASSIGN_TYPE_CONFLICT dump with 2LIS_13_VDITM
Hi Expert
When i execute 2LIS_13_VDITM DTP for the cube 0SD_C03 I gt a dump with this message: ASSIGN_TYPE_CONFLICT
I use the SAP transformation and SAP DTP. All the routine are SAP routine. No generic abap exist
Can any one help me please?
ThanksHi
It's OK, juste reactivate the tranformation... Incroyable
Thanks -
Short dump with an error SAPSQL_LIKE_QUOTES
Hi,
today we have more short dumps with an error SAPSQL_LIKE_QUOTES. this means The logical condition contains a text field literal, for which there is no closing quotation mark.
as per my analysis i found the below code from the std. sap program SAPLBTCH in that include LBTCHF19.
TRANSLATE p_buffer1 USING '*%'.
IF p_buffer1 CO '% '.
IF NOT i_mandatory IS INITIAL.
CONCATENATE i_name '<> ''''' INTO o_where
SEPARATED BY space.
ENDIF.
EXIT.
ENDIF.
can you please tell me that there is a sapce in the line IF p_buffer1 CO '% '.
please advice me if this statement is true or should not contain any spaces between the quotations.
Thanks,
KasiHi Kasi,
please check this link
[SAPSQL_LIKE_QUOTES|http://www.google.com/#hl=en&num=100&q=SAPSQL_LIKE_QUOTES&fp=1&cad=b]
Kind regards,
Clemens -
Hello,
I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu. I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source. However, I receive an error "The VI is not in a state compatible with this operation." I was able to successfully make a single sub-vi work within a sub-panel using a true/false case structure and the exact same coding. However, now that I am using an Enum box wired to a case structure, I receive this error. I have attached my block diagram as well. Could anyone assist me as to where it is that I am going wrong?
Thanks in advance!
Solved!
Go to Solution.
Attachments:
enum subpanels.JPG 22 KBtorm wrote:
I have attached my block diagram as well
I only see a picture. Can you attach the VI instead? At what point do you close the reference?
torm wrote:
I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.
Well, if the code is identical except for the source, only the source should be inside the case, right? Why duplicate code?
LabVIEW Champion . Do more with less code and in less time . -
ABAP short dump with "CNTL_ERROR"
Hi,
I am getting an ABAP short dump with "CNTL_ERROR" while using an input script. What do I do?
Thanks,
Sreekar.Hi,
Newer versions of SAP GUI and R/3 include external controls called as ActiveX (OCXs). ABAP code internally issues some commands to flush and refresh these controls. Since, when using GuiXT and input scripting, these controls are not created, and ABAP dumps. Use keyword "Enable controls" (without quotes on a separate line) in a screen block that has an ActiveX control.
Example:
Screen SAPLCOIH.3000
Enter "/Menu=4,1,5"
Screen SAPLSP01.0100
Enter "=No"
Screen RIPLKO10.1000
Enable controls
Set F[Group] "UG"
Enter "/8"
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
Transport with return code 12 ,short dump with 'DBIF_RSQL_SQL_ERROR'
Dear All,
My trasnport contains infoprovider. DTP,transpformations, character realtionships , aggregation levels ,web templates, programs.
I got a transport failed with Return code 12, and it is showing message :
Program terminated (job: RDDEXECL, no.: 06031600)
See job log
Execution of programs after import (XPRA)
End date and time : 20101026060421
Ended with return code: ===> 12 <===
I have short dump with 'DBIF_RSQL_SQL_ERROR' exception 'CX_SY_OPEN_SQL_DB'.
in how to correct the error :
below is the detials.
Database error text........: "ORA-01578: ORACLE data block corrupted (file #
211, block # 79950)#ORA-01110: data file 211:
'/oracle/RBW/sapdata15/xbw_188/xbw.data188'#ORA-26040: Data block was loaded
using the NOLOGGING option"
did someone has the same problem .
Help is really appreciated.
Regards
VeeraI am afraid you will need to esclate this to BASIS team.. seems some issue with database
-
Short dump with TPM_TRD1 000
hi everyone,
when I run the Tcode:TBB1,i come across a ABAP short dump error.
my system environment is:
PC
windows2003NT
oracle10.2
independant system without SLD control
The error info as follow:
Note 837202 - TPM_MIGRATION:tpm18: Short dump with TPM_TRD1 000
Summary
Symptom
You migrate from Release CFM or Enterprise 1.10 to ERP 2.0 or higher. There are already parallel valuation areas in use. In tpm_migration_cat, you specify a key date. In the test system, the following short dump occurs for the parallel valuation areas:
Error message short text:
Internal error: SLD
Message class: "TPM_TRD1"
Number: 000
Variable 1: "SLD"
Other terms
CL_DISTRIBUTOR_SLD, TPM_TRD1000
Solution
In the production system, you have to carry out tpm18 before the technical upgrade for all business transactions that are before the key date from tpm_migration_cat.
I do not understand how to do with the soluton
eg.what is "tpm18"?
Do need your helps,
Thank you very much
PeterHi Peter,
I guess you found note 837202 when you were looking for a solution for the TBB1 dump you encountered.
This note deals with a special situation when executing tpm18 (which is the transaction for fixing and posting derived flows) in a test system after migration and it tells you you should run tpm18 in production before the technical upgrade.
I am not sure if this really applies to your situation, maybe you should rather check if note 821854 and the solution therein can be helpful.
But without more information (e.g. knowing more about your release, your 'migration history' and the part of the coding where the dump is raised), it is quite difficult to give a diagnosis.
Maybe you should think of sending a customer message to SAP support via the SAP marketplace if you cannot get rid of this problem on your own.
Maybe you are looking for
-
Mid-Level Integration/Software Engineer Position
Mid-Level Integration/Software Engineer Position We have an immediate need for innovative, results-oriented people that desire a challenging, fast-paced environment in which to apply their skills. The ideal candidate is highly motivated and possesse
-
I Want To Download Paid Apps It Says (We could not complete your request. There was an error in the App Store. Please try again later. (100) What Should I Do Tell Me Please I Went To Youtube To Find Any Tutorial And Its All Just CRAP So Please Give M
-
IPad mini wifi problems since Yosemite Upgraded
SInce upgrading to Yosemite on my iPad 2 Mini, the wifi has slowed massively! Is there a fix? thanks!
-
Hi ! I need help to make a indesign plugin with panel. It's doesn't work for me ! I have : - Xcode 3.2.1 - SDK CS 5.5 When i open a exemple project that is working (many exemple project make error when i build them) and when i build it, it create man
-
Nokia 6300 camera says opeation Failed
Hi I really need help in this.. I have a NOKIA 6300 the phone was working very good but now suddenly the camera on opening shouts operation failed. and than a black screen comes to the main screen.. Help me its urgent the vendor says that the phone n