Invoice can not be posted

Hi Guys,
Got this problem from 1 of my user.From wht i understand,it is related to MM and FI..
the case as follows:
I have keyed  in an invoice (through Logistic) but there is a message at the bottom
on the last screen and I cannot save even though the debit and credit is tally.
Please refer the message below:
4500031832 00001 not copied  (moving av. price for material PW822846 would be negative)
Can you suggest how to solve this problem?
Sorry to bug u all,all the time...newbie in SAP,need to learn everything from scratch on my own...
TQ all for helping..u guys rocks!..

Hi ,
I am sure u r doing MIRO w.r.t PO after u have done MIGO of that document...
Check that how many line items u have in MIGO and wether it is coming it MIRO or not...
I would also suggest pl look into the MAP and Standard price in accounting view of material.
Reply.
Dipak

Similar Messages

  • Invoice is not getting posted to accounts it is showing the export error

    invoice is not getting posted to accounts, it is showing an error of foreign trade / export data. where as it is with in the country. it is maintained for the plants abroad stock transport order.

    A stock transport order to a location overseas etails crossing national borders and change of legal regulations. hence you need to maintina FT data. Please check the FT data in the billing header and item and maintian them. They are simple items like customs offices meas of transport...
    This will give you a green status from the red status you will initially have. Then you can post the invoice.
    regds

  • Billing document can not be posted

    Good night all,.
    We have a problema, we need to define a biling type wich can not be posted, it means, this billing type wont need to execute the option to release to posting document, because will not have any accounting document,. so it will not appear in VFX3 transaction if is not posted.
    Where i define this on the configuratio? inside the billing type customizing? some field define this?
    thanks a lot.
    Regars
    GMS LTDA

    Hi Marcos,
    I feel using Proforma Invoice is not a wise decision. In future, if you want that Billing document to posted to Accounting, it is not possible with Proforma Invoice. Instead you can use any Billing document type for your scenario and you can very well block the Account Posting of that Billing document by doing a Configuration Change in that Billing document type.
    Go to T. Code - VOFA:
    There select your Billing Document Type. In details screen, you can see General Control Section. There is a Checkbox "Posting Block". This Checkbox indicates whether the system blocks automatic transfer of the billing document to accounting.
    To block automatic transfer of the billing document to accounting, mark this checkbox.
    In future, if you want to release this blocked documents, you can manually transfer blocked billing documents to accounting by selecting: (VF02) Billing -> Change -> Release accounting.
    Even you can release many Billing documents using Transaction VFX3.
    Hope this will help you out.
    DRK.

  • Cancellation of old invoice can't be post, because the juristiction code

    We change the tax juristiction code structure for Canada, according to some OSS notes. The total length were 4, now changed to be 13.
    However, when we cancel the old invoice created before the structure
    change, the cancellation invoice can't be post to accounting because
    the cancellation invoice copies the same length of the juristiction
    code from the original invoice, does not match with the current length
    of the juristiction code.
    Now the cancellation invoice is hold in the VFX3 block list forever,
    can't be clean up. Is there any way to clean up the cancellation invoice, or skip the juristiction code check in FI posting?

    Hello,
    I cannot contribute on the FI side but it is possible to get rid of the errouneus cancellations via note 388489. But there are some restrections. for instance you won't be able to recreate them again, the original document will remain cancelled. You will need a manual solution after that. for example you can create a debit or credit memo.
    Balazs

  • Excise Invoice can not be capture for RG1 in STO

    Hi All,
    I created a Purchase order for STO with the help of STO I created Replenishment delivery then JEX Invoice then Excise Invoice. At the time of MIGO I put the Excise invoice no. for capturing the excise duty. now when i am saving the MIGO system generating an error " Excise Invoice can not capture the RG1"
    Please throw your valuable suggestion.
    Regards
    Shambhu Sarkar

    Hi ,
    I am sure u r doing MIRO w.r.t PO after u have done MIGO of that document...
    Check that how many line items u have in MIGO and wether it is coming it MIRO or not...
    I would also suggest pl look into the MAP and Standard price in accounting view of material.
    Reply.
    Dipak

  • Payment Order, Payment transaction area can not be posted

    Hi,
    While creating a Payment order for a current account, we are recieving the following error:
    'Payment Order, Payment transaction area can not be posted' and 'Error determining the number range'.
    As a result Payment order is not getting created.
    Number range interval has already been checked and assigned to the relevant Payment Transaction Area.
    Please suggest the possible options to look for the solution.
    Thanks
    Shefali

    Hi Shefali ,
    From the description you gave, it looks like the problem is related to number range only . Can you please double check if the number range you are mentioning is assigned to same Payment Transaction Area which is being used .
    Also if possible post the long text with message ID if available.
    Regards
    Ravi

  • Cash Discount Amount Can not be posted

    Hi Guru,
    While doing MIRO transaction against work order system is giving error 'Cash Discount Amount can not be posted' no cash discount is posted nor payment term given is having any provision for discount.
    Kindly help me in resolving issue
    Regards,
    Shekhar

    Hi shekar,
    May i know the solution for this.
    Thanks
    Sekhar J

  • Miro: Green signal ( posted/ can not be posted)

    Hi expert
    Before putting final amount for miro, system as per system show( RED Signal) balance not sero.
    But in my caseBefore putting final amount for miro, system as per system show( Green Signal) posted/ can not be posted.
    Regard
    Nabil

    Hi,
    Check all setting for MIRO
    1. Maintain Company Code in Table T169P
    2.Maintain the tolerance limits for the Company code in t.code:OMR6 (for tolerance key PP,DQ & DW)
    3.Maintain setting of  messages for ERROR in t.code:OMRM ( M8-81 & M8-87)
    4.Maintain Default Values for Tax Code in t.code:OMR2
    5.Just check document type RE in OBA7 t.code
    Regards,
    Biju K

  • Report for list of POs for with Invoice has not been posted

    Hi All
    Can anybody tell me the report for list of PO' for which GR has already been done but Invoice is not posted
    Thnks
    Ranjith

    Hi
    Try Report ME2M,
    With input selection parameter  "WE101".
    Hope this helps.
    Harish

  • SD Billing - Avoid Cancellation Creation if Invoice has not been posted yet

    Dear all,
    I have noticed this problem in my company system.
    Problem descripion:
    - you creates an invoice and the system doesn't post it for any reason
    - then you create the cancel of the invoice, BEFORE forcing the posting of the invoice
    --> user creates Cancel, Cancel is not posted as well.
    --> from now it is impossible to post both invoices: if you try to post the Invoice after the cancel creation, the VF02 recongnise that a CANCEL exists and do not allow for the posting
    --> standard VFX3 doesn't signal this kind of not posted documents situation.
    Ok, The right procedure for thes user should be: create invoice, if not posted then try to understand why not posted, and not CANCEL it.
    But in this case VFK3 was not able to detect the invoice was not posted: it was not in the list.
    So the 2 ways must be:
    1) one possibility could be undestand in VFX3 could be enhanced: I checked in OSS but I didn't find anything.
    2) other possibility: add a further check in interface between SD and FI in order to check if original invoice is not posted to FI and in this case block the cancel creation, as instead standard SAP does.
    Could you please give me an idea on how it would be better proceed?
    Thank You very much.
    Raffaella

    Dear,
    thank you for your feedback.
    in VOFA the flag is not ticked.
    The problem was that In VFX3 no data were found for the specified document (with all "Inclomplete Due To" check box  flagged), even if invoice and relative cancel were already created, but not posted.
    When we tryied to to post them, via VF02 for example, the system didn't warned anything specific and, doing the posting via debug, we discovered that the posting was stopped because VBRK-RFBSK = E = "Billing Document Cancelled".
    So, forcing via debug that value = ' ', because of the urgency of Finance Office, we could invoice it and then do the same for its cancel.
    So at the moment it is not possible for me to reproduce the error in the system.
    The only workaround I can imagine, is to find a way to avoid cancel creation if invoice is not posted yet.
    Do you think this is feasible way?
    Thank You veyr much for your suggestions.
    KR
    Raffaella
    Edited by: Raffaella Sacchetto on Nov 29, 2010 3:43 PM

  • T code QA11, quantity can not be posted to blocked stock

    For Inspection lot with system status is   INSP RREC SPRQ, when user tries to perform QA 11 to post stock to blocked stock the system does not allow as "to blocked stock field" is greyed out and also can not chnage the storage location on that screen.
    I have checked the material already exists in the WH/storage location also inspection charachterstics are corrct not sure what else to check.please advise.

    Does not seem like authorisation restriction since user is able to process other QA11 for the same plant/WH and storage location. Does not seem like customisation either since all " Quantity to be posted "options and storage location are greyed out under inspection lot stock Tab
    After Accept atleast system should allow posting to "unrestricted stock " but thats not available either.
    For the same material/plant/WH, I am able to sucessfully post stock when system status is -REL  CALC SPRQ but in this case the status is -INSP RREC SPRQ, what does this signify.Please help

  • Approved invoices can not be edited  - Approval process

    Hi Experts -
    I have recently raised an incident with SAP about Approval process - the complete message and support reply is as follows - but i believe we need a change in the approval process - if the approval required is only one but you have defined two people (Either or OR) in the approver list - the system should allow the document to be edited if one of the approvers reject it.
    please let me know and i believe we need  a change in design - unless otherwise a solid reason is given to justify the existing design
    10.07.2009 10:32 Description (English) by SRS Manian
         We have created approval procedure for all the invoices which are entered into the system., The
    'Accts' user enters the invoice into the system - the invoice comes for approval to 'Manager' user.
    When the Manager opens the invoice via Alert window - he/she wants to modify certain information
    (lines as well as Sales person) and approve it.
    The invoice which gets opened from the alert window - does not allow the user 'Manager' to modify at
    all. All the information on the invoice are greyed out.
    The system should allow the user 'Manager' to modify the information. Since the manager has full
    authorization to the system.
    10.07.2009 10:35 Info to Reporter by SAP
         Dear Partner/Customer,
    We have received your inquiry and are currently processing it.
    You will be contacted with a solution or an update as soon as possible.
    For further details regarding the phase your message is in at the
    moment please refer to:
    http://service.sap.com/%7Esapidb/011000358700000575782007E
    Kind regards,
    SAP Business One Product Support
    10.07.2009 10:59 Reply to Reporter by SAP
         Dear Manian,
    Thank you for contacting us.
    When the originator sends the document for manager's approval, note that the at that stage, the document is still in the 'Approval Process'. This is because the system is waiting for the 'Manager' to 'Approve or Reject' the document. Hence, looking at the Document, it is still in 'Draft - Pending' Status.
    When the document is in 'Draft-Pending' Status, the document is not available for editing, because the system considers that it is still in the waiting process. In your case, the manager cannot edit t he document.
    To amend the document, an action is required from the approver either to reject it first. Once rejected, it can be amended and re-sent for approval.
    I have checked our knowledge base and noted that there is an article which describes the approval process. Please refer to the Expert on Phone Wiki Article (March 2009) with title: Why a draft documen t in an approval process cannot be modified by the originator?
    The link will provide the explanation:
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=88735894
    I have also attached Notes 1321234 and 1111431 for your reference.
    Best regards,
    Lorna Real
    Support Consultant
    Product Support for SAP Business One
    SAP Ireland 
    10.07.2009 11:59 Reply to Support Center  by SRS Manian
         Thanks for the reply. The scenario is when the Manager receives the
    document for approval, he wanted to edit and add it. Your reply (and
    documentations) states that it needs to be rejected first before it is
    available for editing. When it is gets rejected - the person who
    orignated the document gets an alert and he can edit it. Here the
    Manager must get an alert so that he can edit the Rejected document.
    When the 'manager' rejects the document, and goes back to the alert
    window to open the document - it is still greyed out !!
    How does the 'manager' reject the document and edits it ?
    regards
    Manian 
    10.07.2009 12:11 Reply to Reporter by SAP
         Dear Manian,
    If after the Manager rejects it and still the document is not editable (greyed out), it means that the document may still be in the 'Approval Process'. When it is greyed out, what is the status of the document in the header? Does it say 'Rejected' or 'Pending'?
    If it is still in 'Pending' mode, please verify the number of 'Approvers' set in the 'Stages' tab of the 'Approval Template - Setup' window. If there is more than one user listed as 'Approver', and o nly 1 approval is required, the system provides an opportunity to other 'Approvers' to approve or reject the document. If in your case, the number of approvers is 2, and manager 'rejected' it, the sys tem still keeps the document in Pending status as it waits for another approver's decision to reject or approve it.
    Also, verify the number of 'Approvals' required. If the number of 'Approvers' who have not rendered their decision is greater than or equal to the 'Approvals' required (e.g. approvers - 2, required ap provals - 2) the system keeps the document within the approval process. This is to allow the other 'Approvers' to decide on the document.
    I hope this clarifies the behaviour. If you can provide us a step by step screenshot of the issue, this may help us to provide a more accurate response.
    Best regards,
    Lorna Real
    Support Consultant
    Product Support for SAP Business One
    SAP Ireland 
    10.07.2009 12:28 Reply to Support Center  by SRS Manian
         Hi:
    The status of the document in the Header says 'Pending' and the status
    below the document number says 'Suspended' - it is not showing as 'Draft'
    Regards
    Manian 
    10.07.2009 12:42 Call to Customer / Partner by SAP
         Performed on: 10.07.2009 10:41:59 (UK)
    Contact person: SRS Manian
    Status of discussion: Customer not reached
    Subject:
    Called the partner but currently engaged on another line.
    Would like to hold a webex. 
    10.07.2009 12:42 Reply to Reporter by SAP
         Dear Manian,
    I'm trying to call you but there was no response on your mobile.
    When the header says 'Pending', then it means the document is still within the approval process. Please check the Approval Template and see the number of approvers and the number of approvals require d.
    The number of approvals and approvers may be greater than 1. In this case, the system waits for other approvers to approve or reject the document. Once all the approvers have rejected the document, th en the document will be released and available for editing.
    Best regards,
    Lorna Real
    Support Consultant
    Product Support for SAP Business One
    SAP Ireland 
    10.07.2009 18:11 Reply to Support Center  by SRS Manian
         Hi:
    Thanks for the reply - i tried this and found out the following:
    1 - In the approval templates - we had mentioned number of approvals
    required as '1'.
    2 - in the number of approvers - we had mentioned two users
    Though the template requires only one approvals (Either or OR) the system
    expects both of them to approve or reject -
    Can u please let me why is this behaving like this - or is this is the
    way it is designed ? - if this is the way it is designed - i beleive it
    is wrong - weneed to give a solution to the customer
    regards
    Manian 
    11.07.2009 05:52 Reply to Reporter by SAP
         Dear Manian,
    Thank you for the information. The behaviour is a current system definition documented as per Note 1321234. I have attached the said Note for your reference. When only 1 approval is required and there are 2 or more persons are allowed to approve the document, the document does not get automatically rejected when 1 person 'rejects' it. The system waits for other approvers to render their decision b ecause a person may still approve or reject the document.
    The design is not an application error. If you would like to change this design, please post your requirement in our SAP Business One Product Development Collaboration
    forum. You can find the forum in this link:
    /community [original link is broken]
    The forum is beingmoderated by members of the Solution Management team specialized in certain areas, according to the folder you are in. Partners can impact the design of specific features by posting suggestions and feedback at this forum. Kindly refer to Note 1028874 which describes more on the above process.
    As the request will be handled through another process, we kindly request that this support message be closed.
    Thank you for your understanding.
    Best regards,
    Lorna Real
    Support Consultant
    SAP Product Support for SAP Business One
    SAP Ireland 
    11.07.2009 09:02 Reply to Support Center  by SRS Manian
         Hi Thanks for the reply - however, the solution given doesnot address the
    problem we are beingfaced with our client
    Is there a Development Request we can raise so that this problem is
    addressed in future
    I am going ahead and confirming this Message though
    regards
    Manian 
    11.07.2009 10:04 Reply to Reporter by SAP
         Dear Manian,
    Thanks for the information. I understand the customer's requirement. As previously mentioned, please log a development request in this link:
    /community [original link is broken] This is from Note 1028874.
    Unfortunately,we at the support centre does not have access to the list of development requests. Hence, kindly follow the process in Note 1028874.
    I'm sending the message back to your side for confirmation.
    Best regards,
    Lorna Real
    Support Consultant
    Product Support for SAP Business One
    SAP Ireland 
    SAP Notes           
    Number     Short text
    0001035200
    Issue can be solved via existing documentation
    0001111431
    Deleting rejected draft documents.
    0001167635
    Maintenance Policy (L)
    0001321234
    Status of a document rejected within the Approval Process.

    Hi Gordon - thanks for the reply - i am sorry i never realized that the message i raised could be messed up like this - the following is a clear message with some paragraphs:
    Hi Experts - I have recently raised an incident with SAP about Approval process - the complete message and support reply is as follows - but i believe we need a change in the approval process - if the approval required is only one but you have defined two people (Either or OR) in the approver list - the system should allow the document to be edited if one of the approvers reject it. please let me know and i believe we need a change in design - unless otherwise a solid reason is given to justify the existing design
    SRS Manian We have created approval procedure for all the invoices which are entered into the system., The 'Accts' user enters the invoice into the system - the invoice comes for approval to 'Manager' user. When the Manager opens the invoice via Alert window - he/she wants to modify certain information (lines as well as Sales person) and approve it. The invoice which gets opened from the alert window - does not allow the user 'Manager' to modify at all. All the information on the invoice are greyed out. The system should allow the user 'Manager' to modify the information. Since the manager has full authorization to the system.
    Reply to Reporter by SAP Dear Manian,
    Thank you for contacting us. When the originator sends the document for manager's approval, note that the at that stage, the document is still in the 'Approval Process'. This is because the system is waiting for the 'Manager' to 'Approve or Reject' the document. Hence, looking at the Document, it is still in 'Draft - Pending' Status. When the document is in 'Draft-Pending' Status, the document is not available for editing, because the system considers that it is still in the waiting process. In your case, the manager cannot edit t he document. To amend the document, an action is required from the approver either to reject it first. Once rejected, it can be amended and re-sent for approval. I have checked our knowledge base and noted that there is an article which describes the approval process. Please refer to the Expert on Phone Wiki Article (March 2009) with title: Why a draft documen t in an approval process cannot be modified by the originator? The link will provide the explanation:
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=88735894
    I have also attached Notes 1321234 and 1111431 for your reference. Best regards, Lorna Real Support Consultant Product Support for SAP Business One SAP Ireland 10.07.2009 11:59
    Reply to Support Center by SRS Manian
    Thanks for the reply.
    The scenario is when the Manager receives the document for approval, he wanted to edit and add it. Your reply (and documentations) states that it needs to be rejected first before it is available for editing. When it is gets rejected - the person who orignated the document gets an alert and he can edit it. Here the Manager must get an alert so that he can edit the Rejected document. When the 'manager' rejects the document, and goes back to the alert window to open the document - it is still greyed out !! How does the 'manager' reject the document and edits it ? regards Manian
    Reply to Reporter by SAP
    Dear Manian, If after the Manager rejects it and still the document is not editable (greyed out), it means that the document may still be in the 'Approval Process'. When it is greyed out, what is the status of the document in the header? Does it say 'Rejected' or 'Pending'? If it is still in 'Pending' mode, please verify the number of 'Approvers' set in the 'Stages' tab of the 'Approval Template - Setup' window. If there is more than one user listed as 'Approver', and o nly 1 approval is required, the system provides an opportunity to other 'Approvers' to approve or reject the document. If in your case, the number of approvers is 2, and manager 'rejected' it, the sys tem still keeps the document in Pending status as it waits for another approver's decision to reject or approve it. Also, verify the number of 'Approvals' required. If the number of 'Approvers' who have not rendered their decision is greater than or equal to the 'Approvals' required (e.g. approvers - 2, required ap provals - 2) the system keeps the document within the approval process. This is to allow the other 'Approvers' to decide on the document. I hope this clarifies the behaviour. If you can provide us a step by step screenshot of the issue, this may help us to provide a more accurate response.
    Best regards,
    Lorna Real Support Consultant Product Support for SAP Business One SAP Ireland
    Reply to Support Center by SRS Manian
    Hi: The status of the document in the Header says 'Pending' and the status below the document number says 'Suspended' - it is not showing as 'Draft'
    Regards
    Manian 10.07.2009 12:42
    Reply to Reporter by SAP
    Dear Manian,
    I'm trying to call you but there was no response on your mobile. When the header says 'Pending', then it means the document is still within the approval process. Please check the Approval Template and see the number of approvers and the number of approvals require d. The number of approvals and approvers may be greater than 1. In this case, the system waits for other approvers to approve or reject the document. Once all the approvers have rejected the document, th en the document will be released and available for editing.
    Best regards,
    Lorna Real Support Consultant Product Support for SAP Business One SAP Ireland
    Reply to Support Center by SRS Manian
    Hi: Thanks for the reply - i tried this and found out the following: 1 - In the approval templates - we had mentioned number of approvals required as '1'. 2 - in the number of approvers - we had mentioned two users Though the template requires only one approvals (Either or OR) the system expects both of them to approve or reject - Can u please let me why is this behaving like this - or is this is the way it is designed ? - if this is the way it is designed - i beleive it is wrong - weneed to give a solution to the customer
    regards
    Manian
    Reply to Reporter by SAP
    Dear Manian,
    Thank you for the information. The behaviour is a current system definition documented as per Note 1321234. I have attached the said Note for your reference. When only 1 approval is required and there are 2 or more persons are allowed to approve the document, the document does not get automatically rejected when 1 person 'rejects' it. The system waits for other approvers to render their decision because a person may still approve or reject the document.
    The design is not an application error. If you would like to change this design, please post your requirement in our SAP Business One Product  Development Collaboration forum.
    You can find the forum in this link:
    /community [original link is broken]
    The forum is being moderated by members of the Solution Management team specialized in certain areas, according to the folder you are in. Partners can impact the design of specific features by posting suggestions and feedback at this forum.
    Kindly refer to Note 1028874 which describes more on the above process.
    As the request will be handled through another process, we kindly request that this support message be closed. Thank you for your understanding.
    Best regards,
    Lorna Real Support Consultant SAP Product Support for SAP Business One SAP Ireland
    Reply to Support Center by SRS Manian
    Hi Thanks for the reply - however, the solution given does not address the problem we are being faced with our client Is there a Development Request we can raise so that this problem is addressed in future I am going ahead and confirming this Message though
    regards
    Manian
    Reply to Reporter by SAP Dear Manian,
    Thanks for the information. I understand the customer's requirement. As previously mentioned, please log a development request in this link:
    /community [original link is broken]
    This is from Note 1028874.
    Unfortunately, we at the support centre does not have access to the list of development requests. Hence, kindly follow the process in Note 1028874. I'm sending the message back to your side for confirmation.
    Best regards,
    Lorna Real Support Consultant Product Support for SAP Business One SAP Ireland

  • Invoice is not getting posted

    Hi,
    User is not able to post an invoice after he parked the invoice.
    I have cheked the entry, where in document shows that it balanced to zero, but we could see only two line items, one is for 100 another one is for 79 which is not actually getting zero. Rest of the amount coudl have been tax for which system is not generating a line item, but it calculated the amount.
    Please let me as why entry is not getting processed.
    Thank you,
    Ramesh.

    Hi,
    Can you please elaborate which transaction code you are using? Is it direct FI posting or from MM?
    Thanks
    Murali.

  • EDI vendor invoices do not get posted before GRN is posted

    Hello All,
    The requirement is our vendor sends EDI invoices and they get parked in SAP as IDOCs. IDOC gets posted if GRN exist for a PO.
    In purchase order it is GR based IV. If vendor parks invoice and there is no GRN for purchase order then IDOC fails and it goes in status 51 (Error).
    Our requirement is, IDOC should get posted even if there is no GRN for a purchase order and client do not want to remove GR based IV tick from PO. After through verification of the parked invoice it gets posted in the system.
    We have done the config change in MM>>LIV>>EDI>Enter program parameters, we have maintained value "1" for field "Processing". Inspite of this change system does not process inbound ICOCs and they go in error (51) status.
    Please provide solution for this.
    Thanks & regards.
    Sanjay

    Hello Jurgen,
    The change in piece of code suggested in SAP note no. 501524 was already implemented in our syste, However still invoice IDOC fails and it goes in error "status 51" as there is no GRN for that purchase order. However if material GRN is made for 1 qty then the invoice gets parked with the full amount even if the GRN  is for 1 no.
    Please suggest a suitable solution.
    Thanks.
    Sanjay

  • Can not get POST to Work (Source code provided)

    I ' m trying to Post to a PHP page. my PHP Page Shows Nothing
    Can Someone Tell me if the is the correct way to use POST?
    Here is the Code I Have Wrote:
    public void postNewMapData(int count)
                   String data = "THIS is`A test";
                   String post_url= "http://localhost/DBconn.php";
                   HttpConnection conn = null;
                   OutputStream outputstream = null;
                   try
    conn = (HttpConnection)Connector.open(post_url);
         conn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
                   conn.setRequestProperty("Content-Language", "en-US");
                   conn.setRequestProperty("Accept","application/octet-stream" );
                   conn.setRequestProperty( "Content-Type", "application/x-www-form-urlencoded");
                        conn.setRequestProperty( "Connection","close" );
                        conn.setRequestProperty( "Content-Length", Integer.toString(data.length()));
                        conn.setRequestMethod(HttpConnection.POST);
                   outputstream = conn.openOutputStream();
                        outputstream.write(data.getBytes());
                        System.out.println("After write statement ["+status+"]");
                        System.out.println("After write statement ["+outputstream+"]");
                        outputstream.flush();
                        outputstream.close();
                        //outputstream = null;
                   catch(IOException error)
                        System.out.println("IOException"+ error);
                   count++;
    }

    Hello sir,
    i have tried your given suggestion and it work very well in WKT-tool
    kit emulator as well as sun one emulator .but my app is not running on
    real device i.e connection is not establish.I have tried all the
    solutions as for as my knowledge but i could not solve the
    problem.Please help me I will be very thankful to you...
    My code is as here....
    class ThreadedConnection extends Thread
    ThreadedConnection()
    start();
    public void run() {
    IMEI=txtenterIMEIno.getString();
    String url ="some url";
    try
    HttpConnection http = (HttpConnection) Connector.open(url);
    OutputStream oStrm = http.openOutputStream();
    http.setRequestMethod(HttpConnection.GET);
    http.setRequestProperty("Content-Type","application/x-www-form-urlencod
    ed");
    http.setRequestProperty("User-Agent","Profile/MIDP-1.0
    Configuration/CLDC-1.0");
    http.setRequestProperty("Content-Type", "text/plain");
    http.setRequestProperty("IF-Modified-Since","20 Jan 2001
    16:19:14 GMT");
    http.setRequestProperty("Connection", "close");
    InputStream iStrm = http.openInputStream();
    int length = (int) http.getLength();
    if (length != -1)
    byte serverData[] = new byte[length];
    iStrm.read(serverData);
    currentInfo = new String(serverData);
    else
    ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
    int ch;
    while ((ch = iStrm.read()) != -1)
    bStrm.write(ch);
    currentInfo = new String(bStrm.toByteArray());
    bStrm.close();
    System.out.println("File Contents: " +currentInfo);
    }catch (Exception e) {}
    }

Maybe you are looking for

  • "This disk is not recognized by this computer"

    I have a FireWire LaCie external disk, that suddenly stopped working. Did some copying of files and then I discovered some folder were missing. Then I restarted and got the message "This disk is not recognized by this computer. I did choose Igonre an

  • Time Interval

    Hello, In my form I have an images say img1.I want to display img1 after 5 seconds of clicking a button present in my form. Is there any way to solve my problem. Thanks , Deb

  • Maintain Subject (LISTCODE) on PCUI

    Hi, In service order maintenance, SAPGUI fast entry screen (transaction crmd_order) has a field called SUBJECT (technical field name LISTCODE) to maintain subject category code. I need to provide users a way to maintain the same in PCUI application C

  • My creative cloud window is blank i have called many times to get ti fixed it works for a week then comes up blank again

    my creative cloud window is blank i have called many times to get ti fixed it works for a week then goes blank i need help

  • Periodically doing "stuff", how do I...

    I am working on a senior design program at NCSU and need some help. I am writing a program that will periodically retrieve data from several different counters attached to motion sensors and then update a database with these counts on an hourly basis