Problem with posting write-ups in ABZU

Hello,
May I ask for your help on my concern about transaction ABZU? My asset was capitalized on 31.03.2009 and it has depreciated until last month. I would like to delete this asset because it should not have been recognized as ana sset, so my first procedure would be to derecognize the depreciated that was posted.
If I use transaction ABZU and use transaction type 700, I encounter an error that says "You cannot post write-ups". The long text explains that "None of the areas to be posted in accordance with the transaction type entered manages one of the depreciation types entered or cumulative values.".
If I use transaction type 710, I encounter the same error, but the long text says " According to the transaction type, you have to post to area 01. However, in this area, there is either no accumulated depreciation or the write-up depreciation type(s) are not managed in this area.".
I checked transaction OABU, and I could see that the depreciations areas allow unplanned depreciations. I cehcked the asset reports and the asset explorer and I can see that it contains accumulated depreciation.
What could be the reason for the error? Could it be some some settings in other customizing transaction other than OABU?
Thanks in advance for your advice.
Regards,
Peter

Hi peter
In the previous post you have mentioned that Depreciation is being Run from March - June.
iey i said 4 months.
Pass a JV means you post a document Crediting this Asset and Debitting any AUC(or any Expense G/L Account) for the Acquisition Amount.
After that you go and check in AW01N -->Asset Explorer, system will write the the Adjustment entries in all the periods of the useful life.
you then reduce the useful life for 5 months,then you will see the Total of the Depreciation posted for 4 months(it will be positive amount).
why 5months is 4months already Depreciation posted and 1month for running the Adjustment Amount(which is positive so that G/L Account Balances will also be adjusted).
You first try this scenario in test environment, you will be able to know clearly.
Hope you understand.
Regards
Venkat

Similar Messages

  • You cannot post write-ups

    Guru's
    we are getting this error message while posting the write up for a asset which has Accumulated depreciation for the pervious year as well as normal planned depreciation in the current year.
    You cannot post write-ups
    Message no. AA400
    Diagnosis
    According to the transaction type, you have to post to area 01. However, in this area, there is either no accumulated depreciation or the write-up depreciation type(s) are not managed in this area.
    Procedure
    Check the transaction type.
    who can i post the write up for the assets with out this error??? is this error should be interpreted as, due to no accumulated depreciation or write up depreciation is not in the particular asset for current year or previous year???
    kindly help me in this regards.  Thanks in advance.
    With regards
    Satish Karantth k.

    Hi,
    Write-ups are used for correction of depreciation values calculated in
    the past (closed fiscal years). It is not possible to post write-ups to
    assets that have been acquired within the current year. If you attempt
    this, you will receive error AA402. Please review the R/3 Library
    documentation for further information. The documentation describes the
    procedure for write-ups as well as the two situations where write-ups
    can be used.
    A write-up is generally understood to be a later change to the valuation
    of an asset. This change can take different forms, depending on the
    reasons for the change. A write up can only be posted, if there are
    accumulated values on an asset, it means the posting of a write up
    corrects the depreciation from the past.
    For example - The value adjustments (depreciation) that you calculated
    in the past were too high. You must now correct this error using a
    write-up in the current fiscal year. You can only post a write up, if an
    asset has accumulated values.
    But again the write-up functionality is designed to change prior year
    asset not current year acquired ones.
    If manual changes are necessary it may be possible for you to use
    transactions ABMA - Manual depreciation or ABAA - Unplanned depreciation
    to correct the depreciation amount.
    Open the new fisical year and do the write-up from the previous fisical year
    Regrds
    Venkataswamy

  • Cannot post write-ups

    Hi all,
    Please help me with this error
    AA400
    Diagnosis: According to the transaction type you have to post to area 01. However in this area, there is no accumulted depreciation or the write-up depreciation type(s) are not managed in this area.
    i have tried to look into existing config and the depreciation area allows unplanned and revaluation with all the accounts maintained.
    I just would like to confirm if write up or decrease depreciation to date is allowed only if the asset has an accumulated depreciation value at the start of the fiscal year ony.
    Fiscal year is 2008 and asset aquisition date is 2008. Posting write ups is not allowed if i use a value date that is 2008. However, if i enter a different value date which is 2009, writeup can be allowed already.
    I just want to make sure that i have the correct understanding.
    Please help me. I have a severity 1 issue and need to complete this very soon.
    Thanks,
    Ritchie

    One of the prerequisite for Writeup is that it can only be created for accumulated depreciation (that is, depreciation from previous years).

  • Problems with posting iDocs from MDM in SAP R3

    Hi,
    I am an MDM consultant, with limited knowledge about SAP R3.
    We send material master data from MDM, via PI to R3 using iDocs.
    We are having problems with posting MATMAS, and it seems the problems are with updating already existing materials.
    In BD87 we get the following warnings:
    The field MARA-ERVOE is not ready for input and was therefore not initialized
    The field MARA-ERVOL is not ready for input and was therefore not initialized
    The field MARA-FERTH is not ready for input and was therefore not initialized
    The field MARA-KZGVH is not ready for input and was therefore not initialized
    The field MARA-XCHPF is not ready for input and was therefore not initialized
    With the last message being:
    No changes made
    I have checked the MDM syndicator, and none of these idoc-fields are linked to the MDM repository.
    So they are syndicated blank.
    If we try to resend the material, it is again stopped and in BD87 I see the same messages.
    Please help me understanding how to solve these issues.
    Thanks,
    Thomas

    Hi,
    Please refer the below threads which talks about the similar problem
    http://scn.sap.com/thread/3180116
    http://scn.sap.com/thread/1374222
    Generally the basic view of the material to be created first. Then the sales, purchasing and other views to be created.
    There are few fields in the other views which gets values from the basic data view.
    Regards,
    Antony

  • Problem with posting message in forum

    This question was solved.
    View Solution.

    Hi dkpb,
    The problem here was that IE9 at the time was incompatible with the forum software.  That has since been fixed.  What is your issue now?  It helps if you describe your specific problem with posting so we can look into it for you.
    SunshineF
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • Problems with post-method in weblogic-server 6.0

    Hello,
              I tried to implement a servlet in Visual Cafe working with weblogic 6.0.
              As I used the get-method it worked fine, but as I used the post-method
              I got the following java.lang.IllegalArgumentException:
              bad URLMatchMap path:''
              Does anybody know about this error and where I would have to set the
              path-variable. I have already registered the servlet in web.xml
              Thanx for your help
              Thorsten
              

              Try installing SP1. In SP1 a bug regarding POST using HTTPS has been fixed. Check
              the bug id 041234 in this link
              http://edocs.bea.com/wls/docs60/notes/bugfixes2.html#1073617
              Shiva.
              "Raju" <[email protected]> wrote:
              > Hi,
              >>
              >> We are using Weblogic server 6.0 with out service pack 1.0.
              >>
              >> I am having problem with Https POST, i am using port 7002. and when
              >i use
              >> https post servlet hangs for lot of time. But when i use Https using
              >GET,it
              >> works fine.
              >>
              >> Did any one face the problems.
              >>
              >> Thanks in Advance.
              >>
              >> Raju
              >>
              >
              >
              >
              

  • Problems with DVD writer

    I recently built a new machine with a P965 Platinum MB.  I put in a Optiarc AD7170 DVD writer.  Even though I was able to install windows XP with it, I immediately had problems once windows XP was up and running.  The MSI utility CD wouldn't run.  Windows explorer would hang up.  I would also get some fatal windows errors.  I replaced the DVD writer with a CD writer that I had laying around and everything was fine. 
    I put the DVD writer in my older machine and it works fine.  I also had a friend try it in his and everything was OK.
    I couldn't find anything on the web about this particular brand.  There was some mentions in this forum about JMicron.  Could there be some incompatibility with the writer and the motherboard or the JMicron controller?

    I have a similar but actually quite different problem.  My p965platinum's BIOS won't even show my IDE drives,  sometimes,  well most of the time..
    OS Name   Microsoft Windows XP Professional
    Version   5.1.2600 Service Pack 3 Build 2600
    OS Manufacturer   Microsoft Corporation
    System Name   
    System Manufacturer   MICRO-STAR INTERNATIONAL CO.,LTD
    System Model   MS-7238
    System Type   X86-based PC
    Processor   x86 Family 15 Model 4 Stepping 1 GenuineIntel ~2999 MHz
    BIOS Version/Date   American Megatrends Inc. V1.8, 12/1/2007
    SMBIOS Version   2.5
    Windows Directory   C:\WINDOWS
    System Directory   C:\WINDOWS\system32
    Boot Device   \Device\HarddiskVolume1
    Locale   United States
    Hardware Abstraction Layer   Version = "5.1.2600.5512 (xpsp.080413-2111)"
    User Name   
    Time Zone   Mountain Daylight Time
    Total Physical Memory   2,048.00 MB (Corsair XMS2 DHX [matched pair] 2 x 2GB DDR2 6400C4DHX cas5) running 5,5,5,18
    Available Physical Memory   1.43 GB
    Total Virtual Memory   2.00 GB
    Available Virtual Memory   1.96 GB
    Page File Space   3.85 GB
    Page File   C:\pagefile.sys
    I have reset the CMOS several times and once in a great while the IDE and the devices,  1 WD60GB HDD and 1 Asus 1814 DVDR/RW,  will show and work.   I have changed out the cables several times and It showed up one time.  I just bought a new cable (24" rnd 80) and that hasn't helped. I have checked the power plugs to the devices and they have power.     I have set the drives from IDE - SATA - etc.   No go.  The DVD's jumper is set to Master and is at the end of the cable,  the HDD is set to Slave  on the middle of the cable. 
    Can't see a correlation but Boot.ini running in PAE mode.
    Could there be something wrong with the board or the BIOS?
    Twice I have done a hard shutdown and it has showed up.  But when I restart or shut it down for the night It won't show when it starts back up??   System Restore does nothing.
    On other old BIOS' I could hit a key to "detect" drives,  but this BIOS has no option for that.  Everything it "Auto".
    Any help would be appreciated

  • Problems with ImageIO.write()

    Well I am finding it very strange with ImageIO.write();
    Consider the following code snippet:
    BufferedImage img=ImageIO.read(new File("fw2.jpg"));
    BufferedImage img1=new BufferedImage(img.getWidth(),img.getHeight(),img.TYPE_INT_ARGB);
    for(int i=0;i<img.getHeight();i++)
    for(int j=0;j<img.getWidth();j++)
    img1.setRGB(j,i,img.getRGB(j,i));
    ImageIO.write(img1,"jpg",new File("fwinv.jpg"));
    So simply I am copying fw2.jpg to fwinv.jpg. fw2.jpg was also created
    using ImageIO.write().
    But the two files are having different pixel values.
    i.e If I read fwinv.jpg again I will get different pixel value that it was written.
    Why is this...Can any one please help me..

    Reading the written images back and displaying them in java works okay. The third image looks okay in RGB but wrong in ARGB when displayed by a native app. For more about this see reply 1 in Color problems and the linked bug report: Some Images written using JPEG Image Writer are not recognized by native applns.
    import java.awt.GridLayout;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class WriteTest {
        private JPanel getContent(BufferedImage src) throws IOException {
            File fileOne = new File("fileOne.jpg");
            ImageIO.write(src, "jpg", fileOne);
            BufferedImage image1 = ImageIO.read(fileOne);
            BufferedImage image2 = copy(image1);
            JPanel panel = new JPanel(new GridLayout(1,0));
            panel.add(new JLabel(new ImageIcon(src)));
            panel.add(new JLabel(new ImageIcon(image1)));
            panel.add(new JLabel(new ImageIcon(image2)));
            return panel;
        private BufferedImage copy(BufferedImage in) throws IOException {
            int w = in.getWidth();
            int h = in.getHeight();
            int type = BufferedImage.TYPE_INT_ARGB;   // problem in native apps
                       //BufferedImage.TYPE_INT_RGB;  // this one works okay
            BufferedImage out = new BufferedImage(w, h, type);
            for(int y = 0; y < h; y++) {
                for(int x = 0; x < w; x++) {
                    out.setRGB(x, y, in.getRGB(x, y));
            File fileTwo = new File("fileTwo.jpg");
            ImageIO.write(out, "jpg", fileTwo);
            return ImageIO.read(fileTwo);
        public static void main(String[] args) throws IOException {
            BufferedImage image = ImageIO.read(new File("images/cougar.jpg"));
            WriteTest test = new WriteTest();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(test.getContent(image));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Problem with CD writer interaction!!!!

    Hi! I'm trying to write a program that will interact with any CD writer which means the program supposed to be capable of burning data on a CD. Is it possible to interact with CD writer in Java? If it is can anyone point me to a online resource where it is explained clearly or can anyone explain it to me in plain English?
    Thanks in advance.
    --DM777                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    To burn CD's, you have to interact with the CD-burner on a pretty low level (hardware level). Java doesn't support this by default.
    There may be 3rd-party libraries (probably based on JNI), which give you burner support, but I don't know of one.
    Cheers,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Travel management - problem with post a trip for an employee in India

    Hi,
    I am configure travel management for a customer, in there SAP system. I have already made the configuration for countries like Sweden, Finland, Italy, Germany etc, but when I should do it for India I can not save a trip in PR05. I have copied the configuration (schema) from Sweden to India (India has no schema in standard) and that is no problem, but when I should enter a trip and save in PR05 I have the following problem:
    1. It seems like I am in US because travelling country is per default USA (it should be India when I have linked the employee to the company code for India in transaction code PO13 and PA40). I can change the country to IN (India).
    2. When I enter an expense type and amount, the system have a tax code for USA per default (I have configured that this expense type should choose a tax code in India but the system choose one for USA). I can change it to an Indian tax code.
    3. The system also ask for a tax jurisdiction code on the row for expense type. Here I can choose 9999 as a dummy. But I have no idea why I have to specify that. I think that is typical for USA?
    4. When I have changed the country to IN, the tax code to an indian tax code and specified the jurisdiction tax code to 9999 and then save I have got the following error message:
    " Customization for 1600 j_1iindcus missing in table
    Message no. 8I303" and when I have googled on that error message I found that I should go to:
    IMG-Logistics General-Tax on Goods movement -India-Basic Settings-Maintain COmpany code settings
    but that is according to logistics and everything else in the system as purchase etc is working fine with no problem with tax jurisdiction code so I don´t guess that I should change anything there if I destroy anything else.
    5. If I change the country to IN and not register any trip expense but instead register trip segment, that the employee should have compensation for travelling with its own car and then save I have got the message that I have not maintained the currency USD/rupie which is a sign of that the systém beleives that we are in USA.
    Please help. I have no idea how to come around this.
    Best regards Lisa

    Hi again,
    In transaction code FITVFELD I have IN as default country but if I change that country to another I still have US as trip country in PR05. In that transaction code (FITVFELD) I have domestic trip, international etc (like configuration in Sweden), but when I initialize a new trip for India I can not change trip type, if there is a domestic or international. When I do the same for Sweden I can choose so I wonder if the system get the information from USA from anywhere else.
    I have also read about jurisdiction code and that is special for USA and Canada and then not for India?
    Regards Lisa

  • I have had problems with inappropriate pop-ups after i downloaded utorrent for my mac and i can't get it to stop

    I chose to download torrent the other day and whenever i am on a unsecured website i get these inappropriate pop-ups and i can't click certain links, it redirects me to my top sites and opens a new window to mackeeperapp2.zeobit.com

    You probably installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Problem with post and get (jsp to servlet)

    ===jsp code(login.jsp)
    out.println("<form action='servlet/Login' action='post'>");
    out.println("Username <input type='text' name='user' /><br>");
    out.println("Password <input type='password' name='pass' /><br>");
    out.println("<input type='submit' value='Login' /><br></form>");
    the above jsp page is included in another jsp page
    ===jsp code(index.jsp)
    <jsp:include page='login.jsp' flush='true'/>
    when submit is clicked in the login form, the data is send (to Login servlet) in the url string, even though i am using "POST" method in the form.
    the output of request.getMethod() in the Login servlet gives "GET"
    what could be the problem?

    The code you've shown us looks fine. The problem isn't in the form code you've listed. Is the form being included inside another form on index.jsp? Does index.jsp have any forms of it's own? Perhaps you aren't submitting the form you think you are submitting. Or, are you redirecting in your serlvet somewhere? Or are you forwarding the request somehow?
    I agree with the previous post - we need to see the HTML output that index.jsp results in.
    Michael

  • Problem with posting comments of a specific picture

    So I have been able to post the comment in the page I am creating and that comment is also saved in the comment table in the database with the id of the picture but when i am in the first picture and I comment the comments are posted saved in the database with the id 1 and then i go to the second the comments are also posted and saved in the tabel comment with the id of the picture 2. But my problem is that when i go to the second picture i can also see the comments of the first picture. So in all of my pictures I can see comments of pictures with other id. How can i manage to solve this problem. Please suggest me sth
    I'll describe a little bit my database
    name of database is art
    picture tabel I have named piktur(id_piktur,Titulli,Pershkrimi,Piktur_url) rsGallery is picture recordset
    the comment tabel I have named komente(id_koment,id_piktur,Tekst)rsKomente is comment recordset
    Tekst is the column where the comment is save
    I'm using the session variable so i can get the id of the picture from the picture table and insert it in id picture column of the comment tabel
    this is the piece of code i guess i should make some conditions but i have tried sth myself but I have not managed to solve my problem. The pictures in my page are organised with paging and repeat region only showing 1 picture at a time. the comment are also repeat region showing all the comments at a time.
    <p>
          <?php  while ($row_rsKomente = mysql_fetch_assoc($rsKomente)) { ?>
            <?php
    $id_piktur=$row_rsGallery['Id_piktur']; $_SESSION['id_piktur']=$id_piktur;
              echo $row_rsKomente['Tekst']."<br/>" ;?>
            <?php } ?>
      </p>
    my entire code is shown below if you don't think this code is enough for solving the problem gallery.php Thank you in advance
    gallery.php
    <?php require_once('Connections/art.php'); ?>
    <?php session_start() ?>
    <?php
    if (!function_exists("GetSQLValueString")) {//this is some code i don't shown in here because it has nothing to do with the problem i want to solve}
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1") &&(isset($_SESSION['id_piktur'])) ) {
      $insertSQL = sprintf("INSERT INTO komente (Tekst,id_piktur) VALUES (%s,'".$_SESSION['id_piktur']."')", GetSQLValueString($_POST['tekst'], "text"));
      mysql_select_db($database_art, $art);
      $Result1 = mysql_query($insertSQL, $art) or die(mysql_error());
    $maxRows_rsGallery = 1;
    $pageNum_rsGallery = 0;
    if (isset($_GET['pageNum_rsGallery'])) {
      $pageNum_rsGallery = $_GET['pageNum_rsGallery'];
    $startRow_rsGallery = $pageNum_rsGallery * $maxRows_rsGallery;
    mysql_select_db($database_art, $art);
    $query_rsGallery = "SELECT Pershkrim, Piktur_url, Rankim,id_piktur FROM piktur";
    $query_limit_rsGallery = sprintf("%s LIMIT %d, %d", $query_rsGallery, $startRow_rsGallery, $maxRows_rsGallery);
    $rsGallery = mysql_query($query_limit_rsGallery, $art) or die(mysql_error());
    $row_rsGallery = mysql_fetch_assoc($rsGallery);
    if (isset($_GET['totalRows_rsGallery'])) {
      $totalRows_rsGallery = $_GET['totalRows_rsGallery'];
    } else {
      $all_rsGallery = mysql_query($query_rsGallery);
      $totalRows_rsGallery = mysql_num_rows($all_rsGallery);
    $totalPages_rsGallery = ceil($totalRows_rsGallery/$maxRows_rsGallery)-1;
    $maxRows_rsKomente = 10; $pageNum_rsKomente = 0; if (isset($_GET['pageNum_rsKomente'])) {   $pageNum_rsKomente = $_GET['pageNum_rsKomente']; } $startRow_rsKomente = $pageNum_rsKomente * $maxRows_rsKomente;
    mysql_select_db($database_art, $art); $query_rsKomente = "SELECT Tekst,id_piktur FROM komente"; $query_limit_rsKomente = sprintf("%s LIMIT %d, %d", $query_rsKomente, $startRow_rsKomente, $maxRows_rsKomente); $rsKomente = mysql_query($query_limit_rsKomente, $art) or die(mysql_error()); $row_rsKomente = mysql_fetch_assoc($rsKomente);   if (isset($_GET['totalRows_rsKomente'])) {   $totalRows_rsKomente = $_GET['totalRows_rsKomente']; } else {   $all_rsKomente = mysql_query($query_rsKomente);   $totalRows_rsKomente = mysql_num_rows($all_rsKomente); } $totalPages_rsKomente = ceil($totalRows_rsKomente/$maxRows_rsKomente)-1;
    $queryString_rsGallery = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsGallery") == false &&
            stristr($param, "totalRows_rsGallery") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsGallery = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsGallery = sprintf("&totalRows_rsGallery=%d%s", $totalRows_rsGallery, $queryString_rsGallery);
    $queryString_rsKomente = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rsKomente") == false &&
            stristr($param, "totalRows_rsKomente") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rsKomente = "&" . htmlentities(implode("&", $newParams));
    $queryString_rsKomente = sprintf("&totalRows_rsKomente=%d%s", $totalRows_rsKomente, $queryString_rsKomente);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Paintings</title>
    <link href="style_gallery.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
      </div>
    <div id="logo_wrapper">
    <!-- For the example logo, we used a font called "Ink Burrow", which is free from the major font sites. -->
    <div id="logo"><img src="_images/logo.png" width="600" height="79" align="right" /></div>
    </div>
    <div id="main_container">
    <div id="menu_container">
    <div id="menu">
    <ul id="base_menu" >
    <li><a href="index.php">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="gallery.php">Gallery</a></li>
    <ul class="sub_menu">
    <li><a href="#" title="Charcoal" >Charcoal </a></li>
            <li><a href="#" title="Oil paintings" >Oil paintings</a></li>
            <li><a href="#" title="Sketches" >Sketches </a></li>
            <li><a href="#" title="Our latest podcast" >Video Podcast</a></li>
    </ul>
    <li><a href="#">Contact </a></li>
    <li><a href="#">Events</a></li>
    <li><a href="login.php">Log in</a></li>
    </ul>
    </div>
    </div>
    <div id="mainArticle">
        <h1>Painting Gallery</h1>
          <p>Welcome !</p>
        <p>
          <?php do{ ?>
       <?php   $id_piktur=$row_rsGallery['id_piktur']; $_SESSION['id_piktur']=$id_piktur;             echo $row_rsKomente['Tekst']."<br/>" ;                      ?>         <?php }  while ($row_rsKomente = mysql_fetch_assoc($rsKomente)); ?>  </p>
          <form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
            <p>
              <label for="comment">Comment : </label>
            </p>
            <p>
              <textarea name="tekst" id="tekst" cols="45" rows="5"></textarea>
            </p>
            <input name="comment" type="submit" value="Comment" />
            <input type="hidden" name="MM_insert" value="form1" />
          </form>
          <p> </p>
          <p>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, 0, $queryString_rsGallery); ?>">First</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, max(0, $pageNum_rsGallery - 1), $queryString_rsGallery); ?>">Previous</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, min($totalPages_rsGallery, $pageNum_rsGallery + 1), $queryString_rsGallery); ?>">Next</a>
            <a href="<?php printf("%s?pageNum_rsGallery=%d%s", $currentPage, $totalPages_rsGallery, $queryString_rsGallery); ?>">Last</a>
    <p class="galleryText"><img src="_images/<?php echo $row_rsGallery['Piktur_url']; ?>" alt="golden gate bridge" class="galleryImage" />    <?php do { ?>     <?php echo $row_rsGallery['Pershkrim']; ?>     <?php } while ($row_rsGallery = mysql_fetch_assoc($rsGallery)); ?> </p>
      </div>
    <p> </p>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($rsGallery);
    mysql_free_result($rsKomente);
    ?>

    >thnx yeah i fixed the problem this time i understood you.
    Glad you got it working.
    >you confused me the first time with the explanation because you mentioned loops
    Yeah. Normally with a repeating region you would need to use nested loops; an outer loop for the picture and an inner loop for the related comments. During each iteration of the outer loop you would execute the sql to retrieve the inner loop recordset. However, since you are using paging with only one recordset per page, the comment recordset SQL does not have to execute inside the picture loop. Hope that makes sense.

  • Currency Translation Type - Problem with Posting Period (0FISCPER3)

    Hi Gurus,
    We are currently working on an Implementation project in Integrated Planning (BI 7.0) and are having issues with Currency Conversion for each Month. The requirement is that Client will maintain Currency Exchange rates on a month on month basis for Exchange rate type P.
    In all the Info providers we have used Posting Period 0FISCPER3 as a Time characteristic and NOT 0FISCPER ( Fiscal Year / Period ). Eventhough 0FISCPER appears as a Standard time characteristic in all Info providers , we have not even considered the same in all the Aggregation levels.
    When we are now defining a Currency Translation Type thru RSCUR transaction , we select Variable Time Reference as "Beginning of Period" and the ONLY Standard Info Object available there is 0FISCPER and not the Posting Period 0FISCPER3.
    Is there anyway that we can include 0FISCPER3 also as a Standard Info Object !!!!! If not , is there any way out ..... Do we have to include 0FISCPER necessarily as a characteristic in the Aggregation Level ? Please advise.
    Regards,
    Venkat.

    Hi,
    In the IP modeler you can also use the FOX formula for conversion.
    CURC(<amount>, <d>, <exchange rate type>, <curr_from>, <curr_to>)
    This reads the RSCUR table, and you can write your own date from fiscal or calander. So it is most flexibel.
    Maybe this helps.
    Regards,
    Juriaan

  • A problem with JTextArea.write()

    hi, I'm writting some code about reading content of a TextArea by use the method JTextArea.write().
    when the content is short, that will be ok, but the content is too long, my thread seems to be dead. and NetBeans's debuger shows nothing, just unresponse.
    can someone to point out my problem in the code below?
    textSource.write(bfw); //textSource is extends from JTextArea, when content in it is too large, dead here
    private void output2textResult() {
            Runnable myThread = new Runnable() {
                public void run() {
                    // component.doSomething();
                    final String source = txtFldSource.getText();
                    final String destination= txtFldDestination.getText();
                    String tmp;
                    try{
                        PipedWriter pipOut = new PipedWriter();                  
                        BufferedWriter bfw = new BufferedWriter(pipOut);   //I wrapped the pipOut with the BufferedWrite
                        PipedReader pipIn = new PipedReader(pipOut);
                        BufferedReader bfr= new BufferedReader(pipIn);
    //problem line below
                        textSource.write(bfw);   //textSource is extends from JTextArea, when content in it is too large, dead here  
                        while(bfr.ready()){
                            tmp = bfr.readLine();
                            tmp.replaceAll(source, destination);
                            textResult.append(tmp+"\n");
                        bfr.close();
                        pipIn.close();
                        pipOut.close();
                    }catch(IOException e){
                        System.out.println(e);
            SwingUtilities.invokeLater(myThread);

    This won't work. Pipes are for use between threads. The implication of what you're doing in a single thread is that the pipe is somehow capable of holding the entire source text (which it isn't). In other words you're just trying to buffer it, so you may as well just get all the source text as a String and do your magic on it directly.

Maybe you are looking for