FileInputStream's read() outputs differently when not stored in a variable

Here's my original code:
import java.io.*;
class ShowFile {
     public static void main(String[] args)
     throws IOException{
          FileInputStream fin = new FileInputStream(args[0]);
          int i;
          do {
               i = fin.read();
               if (i != -1) System.out.print((char) fin.read());
          }while (i != -1);
}When i do a "java ShowFile test.txt", it outputs characters that's not the same as the ones in test.txt.
But when I changed the code
if (i != -1) System.out.print((char) fin.read()); to if (i != -1) System.out.print((char) i); everything outputs fine. Why is that?

ajushi wrote:
Thanks laginimaineb.You're welcome.
ajushi wrote:
So when I assign the resulting value from read(), is read() called? Is that the reason why I'm reading 2 chars per loop?Exactly, when you "assign the resulting value from read()" you actually call read, it performs what it needs to, and it returns some value, which you then use.
laginimaineb.

Similar Messages

  • Report output different when sent directly to printer

    I have a report that if formated for 8.5 x 11 paper and has an address at the bottom of the page. When the report is generated as a pdf the address is in the corrent postion. When the report is sent directly to a printer from the report server the bottom 2 inches of the report are not printed. If i send the pdf version to the same printer it prints correctly.
    Any help with this issue would be greatly appreciated.

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • Battery life different when not plugged in

    My iPod touch displayed 100% when plugged up to my laptop, but when I unplugged it, it displayed 95%.

    007mike007mike wrote:
    2) i had the motherboard replaced 2 months ago because the video stopped working (covered by Apple, thanks)
    Must be an Early 2008, sounds like you had the nvidia gfx issue.
    300 cycle count battery, what you're describing sounds normal considering the age of the battery. It's unlikely there's any amount of calibration you could do to revive it, the chemicals are just simply depleted.
    New batteries are $129 retail. You can always take it to a service center if you're under Apple Care, typically batteries are only covered for the first year even with Apple Care, but if it's under 300 cycles, it's sort of a gray area.

  • PO output different when viewed thru ME22N & ME9F

    Hi all,
    if a particular PO is print previewed or printed from ME22N and ME9F, should they be showing the same or different?
    In my case it is showing diffenrnt outputs. could you please tell me the difference between the 2 transactions.
    Thanks,
    Kiran

    Hello,
    You can see the  PRINT PERVIEW through the transaction code ME22N which is the change of teh Purchase order
    And the Transaction code ME9F is used to  to manually output the Message to the document
    If you maintain the condition records , then automatically the Output will be triggered to the Purchase order,
    But from ME9F you can print the document manually
    There are some document like RFQ, Scheduling agreements, contracts for which you cant see the PRINT PERVIEW directly, so you wil luse ME9F.
    Hope it is clear,
    santosh

  • Generating plsql webservices, output different namespaces not consistent

    We've defined some database-packages which we want to publish as webservice. We use the option in jdeveloper to generate the plsql webservice.
    If we look in the generated wsdl generated by user A, the wsdl gives namespaces like :
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://someurl/AlgemeenWS.wsdl/types/"
         elementFormDefault="qualified" xmlns:tns="http://nl/fundeon/fundit/someurl/AlgemeenWS.wsdl/types/"if user B generates the same webservice it gives namespaces lile :
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://someurl/AlgemeenWS.wsdl"
         elementFormDefault="qualified" xmlns:tns="http://nl/fundeon/fundit/someurl/AlgemeenWS.wsdl"Any idea how we can control this generated result?
    update :
    when we generate the classes, etc for the first time after selecting the program units to publish...it generates the correct wsdl.
    when we repeat this step (second time of generation), we get the wrong namespace in the wsdl and the log gives us this warning :
    WARNING: Ignoring target namespace for schema: "http://someurl/relatieWS/RelatieWS.wsdl", WSDL target namespace is used for the value types in the same package as Service Endpoint: "nl.packagename.relatieWS.RelatieWSUser_getadviseur_Out"

    Hi Eric,
    I experience exactly the same problem.
    The first time the namespace contains 'types', regenerating the webservice afterwards omits the 'types' part.
    This has some very awkward effects as the webservice envelop and any proxies are affected by this bug.
    I have tried with both 10.1.3.1 & 10.1.3.2, both have the same problems.
    I am looking into regenerations of the webservice using ant tasks, there might be a bug in JDeveloper itself.. who knows...
    perhaps someone from oracle can comment / test this and open up a ticket for resolving....
    Fred Dullemond

  • Outlook.mailitem - diferent replace result when not displayed

    Hello everybody!
    I am developing an app to generate personalized emails from Excel file and .msg template.
    In the template, I insert "variables" like this: ^name^,
    which means that is is a placeholder for values from "name" column in source
    Excel file.
    this template is saved as .msg file on local disc and used as an argument in.CreateItemFromTemplate()
    after loading the template , it cycles from all the columns and rows of the Excel file and replaces the inserted
    variables:
    loading excel:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim fpath As String
    OpenFileDialog1.ShowDialog()
    fpath = OpenFileDialog1.FileName
    workbook = APP.Workbooks.Open(fpath)
    worksheet = APP.ActiveSheet
    Dim CellData As String
    Dim LastCol As Long
    Dim LastRow As Long
    Dim bunka As String
    LastCol = workbook.ActiveSheet.UsedRange.Columns.Count
    LastRow = workbook.ActiveSheet.UsedRange.Rows.Count
    objData = worksheet
    DataGridView1.ColumnCount = 1
    DataGridView1.Columns(0).Name = "Column"
    DataGridView1.Columns(0).Width = 130
    For i = 1 To LastCol
    bunka = worksheet.Cells(1, i).Value
    Combo_To.Items.Add(bunka)
    Combo_SaveName.Items.Add(bunka)
    Dim row As String() = New String() {bunka}
    DataGridView1.Rows.Add(row)
    Next
    Dim btn As New DataGridViewButtonColumn()
    DataGridView1.Columns.Add(btn)
    btn.HeaderText = "Use"
    btn.Text = "+"
    btn.Name = "btn"
    btn.Width = 50
    btn.UseColumnTextForButtonValue = True
    btn.CellTemplate.Style.BackColor = System.Drawing.Color.Green
    Combo_To.SelectedIndex = 1
    End Sub
    after that the DataGridView1 loosk like this:
    the "+" buttons are used to insert text variables into the mail body.
    code for inserting is, this works fine:
    Private Sub grdData_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
    Dim colName As String = DataGridView1.Columns(e.ColumnIndex).Name
    If e.RowIndex < 0 Then Exit Sub
    If colName = "btn" Then
    Dim variable As String
    variable = "^" & DataGridView1.Item(0, e.RowIndex).Value & "^"
    My.Computer.Clipboard.SetText(variable)
    objOutlookMsgY.GetInspector().Activate()
    SendKeys.Send("^v") 'Paste
    End If
    End Sub
    code for generating email from template:
    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    Dim sessionName As String
    Dim docas As Object
    Dim variable As String
    Dim dosazeno As String
    Dim SavePath As String
    Dim objOutlookMsgTEMP As Outlook.MailItem
    worksheet = APP.ActiveSheet
    objOutlookMsgY.SaveAs("C:\temp_msg2.msg")
    clip = objOutlookMsgY.HTMLBody
    MsgBox("clip saved")
    sessionName = InputBox("Name this session:", "New Session", Today & "_")
    SavePath = RootFolder & "\" & sessionName & "\_Initial session"
    My.Computer.FileSystem.CreateDirectory(SavePath)
    For radek = 2 To workbook.ActiveSheet.UsedRange.Rows.Count
    ToolStripProgressBar1.Maximum = workbook.ActiveSheet.UsedRange.Rows.Count - 1
    objOutlookMsgTEMP = objOutlook.CreateItemFromTemplate("C:\temp_msg2.msg")
    ' objOutlookMsgTEMP.Display()
    For i = 1 To DataGridView1.RowCount
    variable = Convert.ToString("^" & worksheet.Cells(1, i).value & "^")
    dosazeno = Convert.ToString(worksheet.Cells(radek, i).value)
    'wait(50)
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, dosazeno)
    objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, dosazeno)
    'wait(50)
    objOutlookMsgTEMP.To = worksheet.Cells(radek, ToCol + 1).value
    Next
    objOutlookMsgTEMP.SendUsingAccount = accounts(Combo_From.SelectedIndex + 1)
    Dim objDoc As Microsoft.Office.Interop.Word.Document
    Dim objBkm As Microsoft.Office.Interop.Word.Bookmark
    'On Error Resume Next
    objDoc = objOutlookMsgTEMP.GetInspector.WordEditor
    objBkm = objDoc.Bookmarks("_MailAutoSig")
    If Not objBkm Is Nothing Then
    objBkm.Select()
    objDoc.Windows(1).Selection.Delete()
    End If
    objDoc = Nothing
    objBkm = Nothing
    objOutlookMsgTEMP.SaveAs(SavePath & "\" & worksheet.Cells(radek, Combo_SaveName.SelectedIndex + 1).value & ".msg")
    ' objOutlookMsgTEMP.Send()
    ToolStripProgressBar1.Value = radek - 1
    objOutlookMsgTEMP.Close(SaveMode:=Outlook.OlInspectorClose.olDiscard)
    Next
    End Sub
    for replacing is used this:
    .....objOutlookMsgTEMP.Display()
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, valueFromExcel).....
    or
    .....objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, valueFromExcel).....
    after replacing, the new message is saved as .msg or send
    the problem:
    everything works fine when the message is displayed while replacing. But when not displayed, only SOME variables
    are replaced. I don't really understand why there is such difference in the result and why only SOME are
    not replaced. I have tried changing the columns's names but found no connection between it and the result. when the message is displayed it takes like 10 times longer and makes the PC unusable.
    real example:
    the tamplate:
    ^jmeno^
    ^email^
    ^prij^
    ^jmeno3^
    ^sec code^
    result, message displayed:
    Jakub
    [email protected]
    Dxxx
    16
    266548
    result, message not displayed:
    ^jmeno^
    [email protected]
    ^prij^
    4
    449447
    I have also tried adding some Wait functions, didn't help. I would really appreciate if you could help me
    figure this out and explain why this happens. Thank you

    Please also copy the below two vars from the debugger window and paste here as it is.
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    Also send us you message template, you can send only the section where the two non working vars exist.
    Fouad Roumieh

  • Smartforms - problems with output preview when vedor has different languag

    Hi all,
    The output preview does not work when vendor has different communication language then english?
    Exact description of the problem described by the functional people:
    "For the Latin America countries that use the SMARTFORM today, we have noticed that if the vendor has ‘communication language’ English, the PO is displayed fine in the ‘Output preview’ in iShop. However, if the vendor has communication language e.g. ES maintained in the vendor the output preview fails. We would like to have it so that even if the the vendor has a different communication language than EN maintained on the vendor the PO should be able to be displayed in the ‘output preview’ of the SRM system."
    So has enyone encountered this problem before? All help is appriciated!
    Thanks in advance!
    /Armin

    Well the problem was that the language pack with Sapnish language was not installed.
    Thanks for the answer 2p 2u!

  • Aperture & iPhoto metadata when images NOT stored in iPhoto

    Thinking of "upgrading" to Aperture from iPhoto '11 - still want to use iPhoto for organization but Aperture for hopefully better editing capabilities, etc.
    Have 30,000+ images with keywords, etc. in iPhoto; the image files are NOT stored IN iPhoto, i.e., they are organized in folders external to iPhoto's library. The iPhoto library file best I can tell stores thumbnails and keyword metadata, etc.
    I'd like to use Aperture and have access to all of iPhoto's keywords, etc. but to use the original photo files.
    Can Aperture be setup to work this way? i.e., to pull in the 30,000+ photos' keywords yet reference the same originals that iPhoto is referencing?
    I don't want to duplicate the 30,000+ originals... In all likelihood I'd only ever want to manipulate a small percentage of the total image library in Aperture.
    Any suggestions appreciated!
    Alex

    Alexander Mcleod wrote:
    Thank you for taking the time to reply...
    re: "Basically to edit an image, stored in iPhoto, in Aperture you would have to export the image from iPhoto import into Aperture modify it export it out of Aperture and import it back into iPhoto."
    My point is that in my case the images are NOT *stored* IN iPhoto...
    Yes I understand, your iPhoto library is setup using referenced masters, the termed used when the master file is stored outside of the programs database. And you could setup Aperture in the same way and they would both be pointing to the same master file, external to both programs databases.
    But here's here's the kicker: The master file *is never modified* by either program. I believe iPhoto makes a copy of the master when you apply adjustments (someone with a greater understanding of iPhoto can correct me here) how it does it isn't important what is important is that he master isn't modified; Aperture also leaves the master alone. It records the adjustments you make as a stream on instructions and applies those to the master when you want to create an adjusted image. What you see (normally) in Aperture's views are previews of the adjusted image. So changes you make in Aperture won't be seen in iPhoto because iPhoto is looking at the original master file, not Aperture's adjusted version.
    Now you can share the preview from Aperture with iPhoto, but at this point you basically have the adjusted image in two places.
    And in reference to the other response that suggests that iPhoto and Aperture use different databases, I'd completely expect that to be the case. What I'm wondering about is can Aperture initialize its database from iPhoto's database; i.e., create its equivalent to iPhoto's "library" file (where all the iPhoto metadata is stored) from iPhoto's AND like iPhoto reference the original files in their original location.
    Yes Aperture can initialize a database of its own based on the iPhoto library and that library can be setup to use referenced masters, see above.
    I don't see why I'd need to 'export' any image from iPhoto (unless of course I'd "edited" it in iPhoto - in which case the *modified* file IS I think stored IN iPhoto's library) but that's my point... I don't WANT to edit the files with iPhoto... I want to edit the files with Aperture.
    You're right you won't need to export from iPhoto if you setup both with referenced masters. But like I said above to get back to iPhoto you will have to export from Aperture unless you can live with using the previews in iPhoto. But again you will basically have two identical library structures, at least at start, as time goes on they will diverge.
    I hope this better clarifies what I'm trying to explain.
    It does, I hope my reply also helps explain the difficulties with this setup and why it's not as cut and dry as it first appears.
    I have read *many* other posts that point out what you're pointing out but they all seem to make assumptions about wanting to modify files in Aperture which were previously *modified* in iPhoto. The unmodified "original" photos (assuming both iPhoto and Aperture have the ability that iPhoto has to reference the original files from a location *external* to iPhoto) are then by definition are already shared between iPhoto and Aperture so there's no need to 'export' from one to the other, no?
    As I've said whats shared is the original unmodified master image. Once either program modifies it it is no longer shared.

  • In FTP server file not storing in proper order when 'FTP_R3_TO_SERVER'

    Dear ,
    when i used FTP_R3_TO_SERVER to download data in FTP server 
    i checked in FTP server  file is not storing in proper order in FTP server . plz help how to get the file in proper order .it urgent . full points must be given. i given code below .
    DATA : BEGIN OF iresult OCCURS 5,
    rec(450),
    END OF iresult ,
    DATA :
    dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
    compress TYPE c VALUE 'N',
    host(64) TYPE c.
    DATA: hdl TYPE i.
    DATA: BEGIN OF result OCCURS 0,
    line(100) TYPE c,
    END OF result.
    DATA : key TYPE i VALUE 26101957 ,
    dstlen TYPE i,
    blob_length TYPE i.
    host = p_host  .
    DESCRIBE FIELD p_password LENGTH dstlen IN CHARACTER MODE.
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE' FIELD p_password ID 'KEY' FIELD key
    ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD p_password
    ID 'DSTLEN' FIELD dstlen.
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    user = p_user
    password = p_password
    host = host
    rfc_destination = dest
    IMPORTING
    handle = hdl
    EXCEPTIONS
    not_connected = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    CONCATENATE 'cd' ftppath INTO ftppath SEPARATED BY space .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = ftppath
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    CLEAR result .
    REFRESH result .
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = 'ascii'
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    IF sy-subrc = 0 .
    DESCRIBE TABLE iresult LINES lines.
    blob_length = lines * width .
    clear : lines.
    Delete the existing file
    CONCATENATE 'del' ftpfile INTO delfile SEPARATED BY SPACE.
    CALL FUNCTION 'FTP_COMMAND'
    EXPORTING
    handle = hdl
    command = delfile
    TABLES
    data = result
    EXCEPTIONS
    command_error = 1
    tcpip_error = 2.
    *End of deleting the existing file
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = hdl
    fname = ftpfile
    blob_length = blob_length
    TABLES
    blob = iresult
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4.
    IF sy-subrc 0 .
    WRITE 'Error in writing file to ftp' .
    ELSE.
    WRITE 'File downloaded on the ftp server successfully'.
    ENDIF.
    ENDIF.
    ELSE.
    WRITE : 'Path on ftp not found : ' , ftppath .
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
    handle = hdl.
    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
    EXPORTING
    destination = 'SAPFTP'
    EXCEPTIONS
    OTHERS = 1.
    ELSE.
    WRITE 'Could not connect to ftp' .
    ENDIF.
    ENDFORM. " FTPFINANCEACCESS_DOWNLOAD
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'PASSWORD'.
    screen-invisible = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Edited by: manoj kv on Feb 27, 2008 12:55 PM
    Edited by: manoj kv on Feb 28, 2008 5:37 AM
    Edited by: manoj kv on Feb 28, 2008 5:39 AM
    Edited by: manoj kv on Mar 5, 2008 2:15 PM
    Edited by: manoj kv on Mar 7, 2008 12:51 PM

    Hello,
    Did you try to put 'X' to the parameter CHARACTER_MODE.
    Hope it will help you
    Olivier

  • Why are my sent items not stored when sending from Apple Mail?

    Hello Apple Support Communities,
    I am Using an iMac at my place of employment. It is running OSX Yosemite v10.10.2 . I am also using Apple Mail to connect to our Exchange 2010 Server. I do the same with my iPhone, iPad, and Windows Laptop using Outlook 2013. For a while now, several months in fact, It turns out that any emails sent from my iMac using Apple mail will not store a copy of it in my sent items on the server. They are not stored in the iMac account, the iPhone, the iPad, or Outlook on my Windows Laptop. However, any email sent from the other devices will have a copy stored in the sent items folder and it will propagate to all of my devices.
    Upon investigating, I found myself looking through the tracking logs of my Exchange Server and found that Apple Mail and the iPhone send messages completely differently. I think this might be the source of my problem, but I have no clue whether I can fix it, or even where to start. Here is an image depicting the logs. Any input would be appreciated. Thank you for your time!

    Sometimes this issue is caused by a misconfiguration or incompatibility of the Exchange server, or perhaps by a bug in Mail. If so, you won't be able to resolve it yourself. The fact that your iOS devices may be working well with the same account isn't relevant, because iOS uses a completely different protocol (ActiveSync) to communicate with Exchange servers. By default, OS X Mail uses the EWS protocol.
    Each of the following steps has been reported to help with Exchange issues, at least temporarily, in some cases:
    1. Back up all data. Open the Internet Accounts pane in System Preferences and check to make sure you don't have duplicate Exchange accounts. If you do, delete all but one of the duplicates. If there are no duplicates, delete the account and recreate it with the same settings. The messages will still be on the server.
    2. Rebuild the affected mailbox.
    3. Reindex messages.
    4. In the Keychain Access application, delete the password item for the account. The next time Mail tries to access the account, you'll be prompted for the password. Check the box to save it in the Keychain.
    5. If you've created subfolders of any Exchange mailbox, log in to the server through its web interface, move the messages out, and remove the subfolders. For best results, a mailbox should have no subfolders.
    6. Synchronize with the server using IMAP rather than EWS. This is only possible if IMAP is enabled on the server.
    7. Consider using Outlook instead of Mail to access your Exchange mail.
    See also this discussion.

  • HT5637 How can I keep separate playlists on linked devices so we can both listen to different playlists when not on wifi

    How can i keep separate playlists on linked devices so we can both listen to different music when not on a network or wifi?

    Hi Nancy,
    If you keep the entire iTunes folder as it was and you're still using the same platform, you'll be able to keep all your playlist and metadata.
    Nancy2000 wrote:
    Just curious why when you have songs and playlilsts on the IPod it doesn't just sync with the computer? It only syncs from the computer to the IPod not visa versus.
    Well, iTunes will only transfer content from the computer to your iPod. However, there's some ways to get around this. Read this carefully:
    If you have purchased songs from the iTunes Music Store, then those are pretty easy to transfer to your computer. You'll just need to follow [this instructions|http://docs.info.apple.com/article.html?artnum=305465].
    All your other songs (for example, those ripped from your CD's), you'll need to use any 3rd party program to transfer them to your iTunes library!
    Some can also transfer your playlists, videos, ratings, podcast...
    *To use with iPod Touch/iPhone and other iPods:*
    [iGadget|http://www.ipodsoft.com/site/pmwiki.php?n=igadget.Homepage] (Mac and Windows)
    [iRepo|http://www.purpleghost.com/index.php?q=irepo] (Mac and Windows)
    [iPod Access|http://www.findleydesigns.com/ipodaccess/index.html] (Mac and Windows)
    *To use only with other iPods:*
    [Media Widget|http://www.bootstrapdevelopment.com/showproduct.aspx?t=b#features] (Windows only)
    [iDump|http://www.download.com/iDump/3000-2169_4-10407429.html] (Windows only)
    [Senuti|http://www.fadingred.org/senuti> (Mac Only)
    Hope this helps! If you still have doubts, please reply.
    Best Regards,
    !http://signatures.mylivesignature.com/54486/122/A57996D55BE7ABB4A67DE686D381A27 4.png!

  • Output type should not be triggered when error in invoice

    Dear Experts,
    I have this issue.
    Whenever there is an error in the document, the output type should NOT be triggered.
    But in my case, in spite of the error "Pricing error in item 0001"the output is getting triggered.
    This is a Billing Document.VF03.
    In NACE, it is linked to RSNASTED-->EDI_PROCESSING form routine.
    i need your help in identifying, where should be looking for this check.
    check: when error in document->do not post idoc via the output type.
    where will i be able to find this check.
    Please guide.
    Regs,
    SuryaD.

    FORM KOBEV_907.
    *{   INSERT         D94K915917                                        1
    * Declaration for Constants
    constants : lc_kschl type char4 value 'ZNTP', " Message type
                lc_h type char1 value 'H',        " CREATE TRANS. TYPE
                lc_v type char1 value 'V'.        " CHANGE TRANS. TYPE
    IF komkbv3-trtyp EQ lc_h.        " CREATE
      IF komt1-kschl <> lc_kschl.
    *   Check o/p type ZNTP in the newly proposed o/ps in table NNAST
        READ TABLE nnast WITH KEY kschl = lc_kschl.
        IF sy-subrc EQ 0.
          sy-subrc = 4.
          EXIT.
        ENDIF.
      ENDIF.
      sy-subrc = 4.
      CHECK : KOMKBV3-UVALL CA ' C'.
      CHECK : KOMKBV3-UVPRS CA ' C'.
      CHECK : KOMKBV3-UVALS CA ' C'.
      CHECK : KOMKBV3-RELIK EQ SPACE.
      CHECK : KOMKBV3-RFBSK EQ 'C'.
      sy-subrc = 0.
    ELSEIF komkbv3-trtyp EQ lc_v.    " CHANGE
      IF komt1-kschl <> lc_kschl.
    * Check o/p type ZNTP in existing o/ps in table xnast and NNAST
        READ TABLE xnast WITH KEY kschl = lc_kschl.
        IF sy-subrc EQ 0.
          sy-subrc = 4.
          EXIT.
        ENDIF.
        READ TABLE nnast WITH KEY kschl = lc_kschl.
        IF sy-subrc EQ 0.
          sy-subrc = 4.
          EXIT.
        ENDIF.
      ENDIF.
        sy-subrc = 4.
        CHECK : KOMKBV3-UVALL CA ' C'.
        CHECK : KOMKBV3-UVPRS CA ' C'.
        CHECK : KOMKBV3-UVALS CA ' C'.
        CHECK : KOMKBV3-RELIK EQ SPACE.
        CHECK : KOMKBV3-RFBSK EQ 'C'.
        sy-subrc = 0.
    ENDIF.
    *}   INSERT
    ENDFORM.
    the above code is what i see in RV61B907

  • I just dowloaded an il divo album.  when it was placed on my ipod classic it came in as 8 different songs; not listed as 1 album with 8 songs.  this has happened before with other purchases.  Why?  How can I insure an entire album is saved as an entire al

    i just dowloaded an il divo album.  when it was placed on my ipod classic it came in as 8 different songs; not listed as 1 album with 8 songs.  this has happened before with other purchases.  Why?  How can I insure an entire album is saved as an entire album and not individual songs. And now how can I move individual songs to the album they belong in?

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • Why does 1 speaker crack when i click on different items (not all) after hp/windows updates?

    After installing several updates for Windows 7 & HP g72010nr at the same time, 2 problems have occured. 1 speaker cracks real loud when I click on different items (not everything) AND when running DVDs there are ripples all throught the movies. It's been about a month or more & I don't remember which updates they were since this is a new computer, I've had so many of them. Any quick fixes? Thanks in advance.

    Cool! If you dont have it already you can download Microsoft Security Essentials, which I use on my personal computer. There are TONS of virus scanners out there but I find this one to work well for me. Here is where you can get it if your interested: http://goo.gl/XF4L1
    Merry Christmas & Happy Holidays!
    Sean
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Ipad2 shut off after down the battery but when connect the charger my ipad2 is not storing the power in the battery and i also not finding the error code ???

    ipad2 shut off after down the battery but when i connect the charger with my ipad2,  its not storing the power in the battery and i also not finding the error code ???

    If you drained the battery, it may take a bit for it to come back. I'd plug it in and leave it for a few hours and see if it's charging.
    If not, you can try to do a reset. Hold down the sleep and home keys for about 20 seconds. When you see the white apple, let go and let it reset and see if it charges.
    It's also possible that your battery has reached the end of its life. THey can only handle a finite amount of recharge cycles. If you can't get it to hold a charge, then make an appointment at your local apple store and explore your other options.

Maybe you are looking for