Can i write some code in the Debugger
Dear,
Can we write some code at the time of debugging.
For ex. In Production my code is c = a + b.
now i want c = a - b.
<Modified subject line>
Moderator Message: Please use more descriptive subject lines in future.
Edited by: Suhas Saha on Nov 17, 2011 12:27 PM
Hi Anuj,
First, even I would like to stress the point mentioned above by Suhas. No matter how critical the issue is & even if you have these rights in Production, do NOT change the values in Production system. NOT RECOMMENDED AT ALL.
About your question of activating from the debugger:
The De-bugger only opens the source code in a New Window. Till you execute the existing code or activate it from the ABAP EDITOR, your code remains the same. As you are in Production you will have to trnasport the changes after activating the code with the changes.
Regards,
Pranav.
Similar Messages
-
Hi, folks can some body help me¡ How I can use de second code to the Itunes card to use the Itunes card.... My number is vanished, how i can submit my Itunes card?
iTunes Store: Invalid, inactive, or illegible codes
http://support.apple.com/kb/TS1292 -
How can I write new objects to the existing file with already written objec
Hi,
I've got a problem in my app.
Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
If anyone of you know something about this issue, please help!
JaiHere is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
* Created on 2004-12-23
package com.cpic.msgbus.monitor.util.cachequeue;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
* @author elgs This is a very high performance implemention of Cache.
public class StackCache implements Cache
protected long seed = 0;
protected RandomAccessFile raf;
protected int count;
protected String cacheDeviceName;
protected Adapter adapter;
protected long pointer = 0;
protected File f;
public StackCache(String name) throws IOException
cacheDeviceName = name;
f = new File(Const.cacheHome + name);
raf = new RandomAccessFile(f, "rw");
if (raf.length() == 0)
raf.writeLong(0L);
* Whne the cache file is getting large in size and may there be fragments,
* we should do a shrink.
public synchronized void shrink() throws IOException
int BUF = 8192;
long pointer = getPointer();
long size = pointer + 4;
File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
FileInputStream in = new FileInputStream(f);
FileOutputStream out = new FileOutputStream(temp);
byte[] buf = new byte[BUF];
long runs = size / BUF;
int mode = (int) size % BUF;
for (long l = 0; l < runs; ++l)
in.read(buf);
out.write(buf);
in.read(buf, 0, mode);
out.write(buf, 0, mode);
out.flush();
out.close();
in.close();
raf.close();
f.delete();
temp.renameTo(f);
raf = new RandomAccessFile(f, "rw");
private synchronized long getPointer() throws IOException
long l = raf.getFilePointer();
raf.seek(0);
long pointer = raf.readLong();
raf.seek(l);
return pointer < 8 ? 4 : pointer;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
public synchronized byte[] load() throws IOException
pointer = getPointer();
if (pointer < 8)
return null;
raf.seek(pointer);
int length = raf.readInt();
pointer = pointer - length - 4;
raf.seek(0);
raf.writeLong(pointer);
byte[] b = new byte[length];
raf.seek(pointer + 4);
raf.read(b);
--count;
return b;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
public synchronized void save(byte[] b) throws IOException
pointer = getPointer();
int length = b.length;
pointer += 4;
raf.seek(pointer);
raf.write(b);
raf.writeInt(length);
pointer = raf.getFilePointer() - 4;
raf.seek(0);
raf.writeLong(pointer);
++count;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
public synchronized int getCachedObjectsCount()
return count;
* (non-Javadoc)
* @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
public String getCacheDeviceName()
return cacheDeviceName;
} -
Html snippet is not working on iweb 9. i can't write a code, Html snippet is not working on iweb 9. i can't write a code
You don't get this window when you insert an HTML snippet on the page?
Click to view full size
If you don't try the following:
delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
Click to view full size
launch iWeb and try again.
OT -
How can i write a code to get sume of value from days.
Hi,
how can i write a code to get the sum of value of days(example 1 to 30).
This is in BPS ...
i created multi planning area and creted planning function with {keyfigure name,planning area,days}.
now i want to read all the actual values from basic planing area(basic cube) and calculate the sum of the value.if you have idea can you share the code.
ENTRIES = VARC ( 'zvardays' ). ex(zvardays like 28 days or 29 days or 30 days or 31 days)
COUNT = ENTRIES.
*Get the all the days value from actual
FOREACH PAREA = 'basic planning area'.
COUNT = 1.
DO
SUM = SUM + {amount, count} (amount is a keyfirgure value)
ENDDO.
COUNT = COUNT+1.
SUMACT = SUM.
ENDFOR.
can you correct the above code ....to read the values and sum of the those value.
Thanks...Hi ..
That is ok..
Can you provide sample code for my requirement..
and also how can i pass the error message (can you help me syntax )
and if my acutal-total is not equal to plan-total then
i have to pass the error message and then i have to restrict save the data how i can i restrict(user can not save the data until the values should be equal) .
Can you help me it is very urgent..
thanks.//
Edited by: Eyda rose on Jun 4, 2008 9:29 PM -
How can I write HTML code in this forums
Sorry but I didn't know where to post this thread.....
How can I write HTML code in this forums?Hello,
Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
In case of the <a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
Hope this helps,
Arie. -
Mavericks 10.9.3. MacBook. Can I write a Rule in the Mail app to return an email to Sender? I have tried many, many times but no luck so far. Is it even possible, or am I wasting my time?
There is no specific option to do that, although you can redirect a message if it meets certain criteria. I believe if you wanted to bounce it back to the sender, then you would need an AppleScript to run. If you do some Google or MacUpdate searching you may find an existing script for this purpose.
-
Can anyone shed some light on the OS X icon "irregularity?"
Had expected icons (Mail, Reminders, Calendar, etc.) would update to those of iOS 7 with the Mavericks update. They did not (for me)! Should I be doing something in order to see the updated icons in Applications and Dock? I noticed the icons changed in iCloud. This obviously is not a major issue just an observation. Can anyone shed some light on the OS X "irregularity?"
When I upgraded to Mavericks... The Calendar and Notes icons were updated also.
After the first reboot... they reverted back to the last generation. -
When I add some code like the below to a webpage
sometimes when I add some code like the below to a
webpage[dwmr mx 2004 or cs4], the page destroyed/currupted like the
css missing[is inside a template], well I think page stills
displays ok online but in "design view" default fonts appear etc
destructions, well how I recover page just prior entered the code ?
<input name="st" type="hidden" value="<?=
isset($_GET['sort'])?$_GET['sort']:(isset($_GET['price'])?'price':(isset($_GET['popular'] )?'popular':(isset($_GET['wd4'])?'wd4':(isset($_GET['salon'])?'salon':(isset($_GET['manual '])?2:1)))));
?>" />
<script type="text/javascript">
function highlightTableCells()
document.getElementById('cars').style.backgroundColor='#00CC66';
switch(document.getElementById('st').value)
case "price":
document.getElementById('price').style.backgroundColor='#00CC66';
break;
case "2": //manual
document.getElementById('manual').style.backgroundColor='#00CC66';
document.getElementById('manual2').style.backgroundColor='#00CC66';
break;
case "1":
document.getElementById('auto').style.backgroundColor='#00CC66';
document.getElementById('auto2').style.backgroundColor='#00CC66';
break;
case "salon":
document.getElementById('salon').style.backgroundColor='#00CC66';
document.getElementById('salon2').style.backgroundColor='#00CC66';
break;
case "wd4":
document.getElementById('wd4').style.backgroundColor='#00CC66';
document.getElementById('wd42').style.backgroundColor='#00CC66';
break;
case "0":
document.getElementById('all').style.backgroundColor='#00CC66';
break;
case "popular":
document.getElementById('popular').style.backgroundColor='#00CC66';
document.getElementById('popular2').style.backgroundColor='#00CC66';
break;
case "4wd":
document.getElementById('wd4').style.backgroundColor='#00CC66';
document.getElementById('wd42').style.backgroundColor='#00CC66';
break;
case "mpvs":
document.getElementById('mpvs').style.backgroundColor='#00CC66';
break;
case "cabrios":
document.getElementById('open').style.backgroundColor='#00CC66';
break;
case "a":
document.getElementById('a').style.backgroundColor='#00CC66';
break;
case "b1":
document.getElementById('b1').style.backgroundColor='#00CC66';
break;
case "b2":
document.getElementById('b2').style.backgroundColor='#00CC66';
break;
case "c":
document.getElementById('c').style.backgroundColor='#00CC66';
break;
case "d":
document.getElementById('d').style.backgroundColor='#00CC66';
break;
case "d1":
document.getElementById('d1').style.backgroundColor='#00CC66';
break;
case "e1":
document.getElementById('e1').style.backgroundColor='#00CC66';
break;
case "e2":
document.getElementById('e2').style.backgroundColor='#00CC66';
break;
case "f":
document.getElementById('f').style.backgroundColor='#00CC66';
break;
case "g":
document.getElementById('g').style.backgroundColor='#00CC66';
break;
case "h1":
document.getElementById('h1').style.backgroundColor='#00CC66';
break;
case "h2":
document.getElementById('h2').style.backgroundColor='#00CC66';
break;
case "i":
document.getElementById('i').style.backgroundColor='#00CC66';
break;
case "j":
document.getElementById('j').style.backgroundColor='#00CC66';
break;
case "k1":
document.getElementById('k1').style.backgroundColor='#00CC66';
break;
case "k2":
document.getElementById('k2').style.backgroundColor='#00CC66';
break;
case "n":
document.getElementById('n').style.backgroundColor='#00CC66';
break;
case "p1":
document.getElementById('p1').style.backgroundColor='#00CC66';
break;
case "p2":
document.getElementById('p2').style.backgroundColor='#00CC66';
break;
case "s":
document.getElementById('s').style.backgroundColor='#00CC66';
break;
case "u":
document.getElementById('u').style.backgroundColor='#00CC66';
break;
</script>Take a look at a previous thread on this topic: http://forums.adobe.com/message/5099353
-
I can't watch some videos in the web
i can't watch some videos from the web, it tells me that i need the latest version of adobe flash player, and i have installed already , but still the same problem. specially with youtube videos.
What is your operating system & browser?
What is your installed Flash Player version? -
my ipad shows capacity 13.6 GB, available 0 bytes. Can I clear some items from the memory to increase the available memory?
Getting message "storage almost full"One usually large user of storage space is photos and videos. You could import them to a computer and then delete them from the iPad: Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
You can also go to Settings > General > Usage and click on "Manage Storage" (in the Storage section, not the iCloud section) and that will show what is using the storage and may help you decide if you want to delete some apps or something else. -
Hello
I keep getting an error message when I write the following
<?if:LanguagePreference_ID335='F'?><?'Numéro d’inscription TVQ'?><?end if?>
Is there anyway to write this code and keep the apostraphy?try as below:
<?if:LanguagePreference_ID335='F'?><?'Numéro d?’inscription TVQ'?><?end if?>
Cheers
AJ -
SQ01 DIsplay Problem (Can v write abap code ) Sql Query
Hi
Need help in SQL Query
I generated one sql query which has the following output in general .
Customer name description amount
asrq1 sharekhan Amount payed 10
asrq1 sharekhan Amount Advance 20
asrq1 sharekhan Amount due 30
but i need the output in the following way
Customer name AMount payed Amount Advance Amount Due
asrq1 sharekhan 10 20 30
and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write
a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it
% comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .
can anyone help me in this answers will be awarded points.First, I will suggest to go for ABAP report for this kinda requirement.
If you really want to go for it through SQ01, even then you will have to write some ABAP to display the records in one row. You will need to create three custom fields.
I will give Psudo for one field:
Field Name := ZAmountPayed
Select Amount_Payed into varAmountPayed from Table Where Emp# = '12345'
ZAmountPayed := varAmountPayed
Convert the above into relative ABAP code and create 2 more similar fields, and you should be all set.
You have to know the table names and any other calculations to get the right data. -
Hi, everyone.
I have an issue in se80 code editor in change mode. My user has a developer rights(SSCR key). I can create new FM ,Groups, and other staff, and I can also modify parameters and atributes .
So I've created a new group and new FM in se80, added some parameters, but I can't write even a word in code editor. When I switch from Display mode to Change mode, the text of FM became gray, and I can't edit it.
Another thing which I've noticed is that when I push to Pattern button, I get an notification:"Operation is not supported in display mode Message no. ED054". That is strange, because I've already switched to Change mode.
Im working in a development instance of SAP.
I also checked in se06 that all the modifications are enabled.
Why I can't edit code in code editor in se80?
Here is an example, I just created a new FM: https://picasaweb.google.com/lh/photo/79VFM1sjXLqyvXIU8eczwpcWfBhizPTn_L1_ayIG_S0?feat=directlink
Edited by: Roman Kislitsin on Jun 10, 2011 8:46 AMHi,
Try from menu EDIT -> Modifcation operations -> Switch off assistant.
Regards,
Ravi. -
Can i write java code in JavaScript function
I want to call JavaBeans within JavaScript function. Can I do it?
I have a button in JSP . When the button be clicked,the data be inputted will be checked by JavaScript function. If check is ok, then call a Bean's function to write the data to database.
Please Help!well indeed u can write java code in javascript functions. But probably it will not work the way u want it to.
when u say that u click a button, it means that some client side action is performed. Now if u wud require a java bean to be called then it means that the server needs to be contacted for the same, and if that has to be done, necessarily the form needs to be submitted.
U can populate values from a java bean and then the same can be made available to a javascript variable / function when the page is loaded rather than, when the button is clicked.
What u can do is on click of button u can process [display / calulate..etc ] the information which has already been got by the java bean.
Kris
Maybe you are looking for
-
Hi, There was ios 4.1 in my iphone3gs.i have tried to update it through itunes but there is a problem.After installation through itunes,there is problem that it is not activating my iphone and shows a message that your iphone could not be activat
-
Cash Inflows and Outflows- company code wise, project wise etc.
Hi Gurus, Client's requirement says they need cash inflows and cash outflows related to a company code, project wise etc. for a specified period. What needs to be done for this requirement? Do we have to implement Cash Management and liquidity foreca
-
How do i type in info to these questions
how do i type in info to theses questions
-
IPod will mount but has blank screen - display
Hey guys, I have a 30gb ipod with video and today I dropped in on carpet at work. Now the display is blank. I can mount it on my imac at home and I even hear the click when i press menu/play/ff/rev buttons. Does this sound like something just came lo
-
I have constructed a Smart Collection I use to begin my workflow. I bring my just downloaded photos into the collection. Tis is my frist selection. I will eather pick or reject the photo. No other rating or lable is used, only pick or reject. Proble