Force Accounting Doc when  create  Invoice

HI all,
  I am unable to create an accounting doc when invoice is created.
It error :  'Cost Center BB11 3120 does not exist on 10/28/2011'.
Cost center 3120 does not exist at all.   The invoices has posting status 'Error in Accounting INterface'.   Is there a way i can force the invoice to create the accounting document for this invoice ?
thanks
Joyce

Hi Shiva,
    We go by account assignment.  For this cost element  61530, the Column ' Acct Assgnmnt ' is 3 .
It has profit ctr of 30, 400, 420 and its cost center.  However, acctg doc seems to point to an invalid cost center for profit center 30.
Any suggestions ?
thanks
Joyce

Similar Messages

  • Cannot generate accounting doc when creating billing doc

    When creating billing doc, no accounting document is generated, the posting status is "Error in accounting interface". I have checked and there is no problem in account determination. Does anyone get idea on this problem? Thanks!

    Check the account determination in Transaction Code VKOA.
    If the data is not maitained to determine G/L, in that case it gives error. Once you maintain the relevant data in VKOA, next go to billing document in change mode VF02 & release the same to accounting.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Budget exceeded BP604 (when create Invoice)

    Hi All,
    User got an error message budget exceeded BP604 when create invoice. How can i know what the configuration to check why system check budget( Investment management). I tried to check the configuration in SPRO (Define tolerance limit for availability control) shows that budget profile use ++ which are : (no invoice checking) but in actual it checks budget.
    ++     All activity groups           
    00     Purchase requisition          
    01     Purchase order                
    02     Orders for project            
    03     Goods issue                   
    04     Financial accounting document 
    05     CO document                   
    06     Budgeting                     
    07     Funds reservation             
    08     Fixed prices in project       
    09     Payroll                       
    Many thanks in advance.
    Nies

    Business transaction group 04 (Financial accounting document) contains below transactions:
    G/L account posting
    FI invoice parking
    Invoice verification
    Goods receipt for the order
    Cash budget management
    Payment transfer
    Down payment posting
    Inventory difference
    Regards
    Sreenivas

  • Status of Accounting Doc of Cancelled Invoice

    Dear All,
    Please find following doc flow.
    Invoice 1             
    Accounting Doc 1
    Cance Invoice 2 (Invoice 1 is cancelled)
    Accounting Doc 2
    Please let me know what shold be status of Accounting Doc 1 (Cleared/Not Cleared) with proper clarification.
    Also Accounting Doc 2
    Thanks & Regards,
    Ganesh.

    Hi Guys i have a problem regarding duplication of invoice.
    Lets undestand by following Example:
    Invoive F2 Generated
    Accounting Document (Not Cleared)
    Then
    Cancellation Invoice Genrated ......( But With Future Date)
    Accounting Doc ( Not Cleared)
    New F2
    Invoice Generated with date before the invoice date of cancellation doc(as that was scheduled in future)
    Accounting doc (not Cleared)
    My issue is the system is allowing to created two invoices for the time being which is wrong.
    System should not allow any New F2 doc till the coresponding accouting doc of cancellation is cleared.
    Can we check this..Any suggessions????

  • How to get text when creating invoice

    Hi Experts,
    As standard system behavior, when creating invoice the item description is retrieved from material description in master data.  Now we want to use sales text in material master for invoice item description, can we do this?
    Thank you in advance.
    Richard

    hi richard
    yes this is possible.
    you will have to pass this parameters under function module called READ_TEXT for desired output.
    NAME = MVKE-MATNR & MVKE-VKORG & MVKE-VTWEG - to read for which sales orgn/distribution channel/division you have to pass the value.
    LANGUAGE = 'EN' - in which language you have to pass the same.
    ID = 0001
    OBJECT = MVKE - table
    if both are there
    material description and material sales text then
    you have to write a condition there.
    regards
    balajia

  • Replace VAT registration number when create invoice

    Hi All Expert,
    I want to replace the VAT registration number (VBRK-STCEG) with some useful information when create invoice.
    For e.g. Sales Order number.
    I've check the user exit RV60AFZC Form USEREXIT_FILL_VBRK_VBRP,
    but when I instead the code there, the VAT registration number still is BLANK when create the invoice using VF01...
    Please help.
    Terry

    Hi
    As per my understanding you want to display the sales order number in VAT Registration no. field. Actually this data is coming from Customer master (t-code XD02) in genral Data's Control Tab.
    Now your concern is to display the sales order no. in invoice. instead changing standard you can make it happen through copy control (T-code VTFL) with your invoice document type to Delivery document type. There is option as Reference and assignment at header level of copy control.
    Change the option of displaying sales order no in any of them. as per your config there your sales order no will be display in your billing header in assignment or reference field.
    Regards
    Shambhu Sarkar

  • Error When Create Invoice related to Project

    Dear Friends,
    Good Day,
    I have been faced issue when i create Invoice related to project the following are the steps with the error :
    1. Entered the header.
    2.Entered the lines ( Line type, Amount, Distribute Account, and Fields that related to Projects...... etc).
    3. Save then Action > validate i have one holds, the hold name is Dist Variance then after i Click on the distributions line I have the following error :
    APP-SQLAP-97734: the system cant's generate distributions for 1 line because: Fatal Error:
    Error Stack: &ERROR_STACK
    Erro Stage: &ERROR_STAGE
    Error Message: &ERROR_MESSAGE
    Additional Information1: &ERROR_AGR1
    Additional Information2: &ERROR_AGR2
    Please Advice :)
    Best Regards,
    M.Qolaghassi

    Please see if these docs help.
    Projects Supplier Invoice Account Generation Error: APP-SQLAP-97734: The System Cannot Generate Distributions [ID 823787.1]
    APXINWKB.fmb APP-SQLAP-97734 When Entering a Recurring Invoice With Closed Project/Task [ID 779704.1]
    Grants Accounting: AP Invoice Workbench Drill Down to Distributions for Allocated Freight Gets APP-SQLAP-97734 Error [ID 845378.1]
    APP-SQLAP-97734: When Attempting To Generate A Distribution In A Project Related Invoice [ID 1251796.1]
    Overriding Project Supplier Invoice Account Generation Workflow CCID With User Entered Account [ID 360757.1]
    Project Supplier Invoice Account Generation Workflow - attribute 'fnd_flex_applid' does not exist [ID 1252887.1]
    Thanks,
    Hussein

  • SRM 7.0 - Unconfirmed PO limit items not showing up when creating Invoice

    Hi Guys,
    For PO standard items, when creating an invoice and is unconfirmed, these items still show up in the invoice screen and the invoice gets created with the status 'Waiting for preceding document'. For unconfirmed limit items, these items do not show up at all in the creation of the invoice and displays an error. My question is how will I make the unconfirmed limit items scenario work just like the standard items scenario whereby instead of the unconfirmed limit items not showing up and generating an error, they will show up and have the invoice created with the status 'Waiting for preceding document'?
    Thanks in advance!

    Is this thread still valid? If not, please close the thread.
    If so, as no response has been submitted, please rephrase your question and/or provide further information to describe your requirement.
    Thanks
    Jason
    SDN SRM Moderator Team

  • Error when creating Invoice via DI API

    Can you help me, I have a problem about DI
    When I create invoice with serial number and create transaction with 1 item in many serial number itu2019s no problem but
    If i create transaction with 2 diffrent item with many serial number has error the error code -5002([inv1.docentry][line:0],u2019item serial us not found in whseu2026.u2019)
    I using sap 2005 pl 40, I have debug my coding there is nothing wrong with it, than I suspec this is bug in DI is that rightu2026
    This is my code
      Dim oInvoices As SAPbobsCOM.Documents
            Dim iRetVal As Integer = -1
            Dim sErrMsg As String = ""
            Dim isAddHeader As Boolean = True
            Dim iRow As Integer = 0
            Dim sWhsCode As String = ""
            Dim iAddedQty As Integer
            Dim iCurrLine As Double = 0
            Dim iBasedDoc As Integer = 0
            Dim sNewDocNum As String = ""
            Dim sCardCode As String = ""
            Dim isdocnum As String = ""
            Dim CompleteOrder As DataRow
            Try
                oInvoices = myCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                For iRow = 0 To myOrderDetailsTable.Rows.Count - 1
                    Console.WriteLine(myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD))
                    If myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD) = 1 Then
                        Console.WriteLine(myOrderDetailsTable.Rows(iRow))
                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                        Console.WriteLine(sWhsCode & "   " & CompleteOrder(WHSCODE_FIELD))
                        sWhsCode = CompleteOrder(WHSCODE_FIELD)
                        With oInvoices
                            If isAddHeader Then
                                isdocnum = CompleteOrder(DOCNUM_FIELD)
                                iBasedDoc = CompleteOrder(DOCENTRY_FIELD)
                                sCardCode = CompleteOrder(CARDCODE_FIELD)
                                '.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
                                .Reference2 = CompleteOrder(DOCENTRY_FIELD)
                                .DocDate = Today.Date
                                .DocDueDate = Today.Date
                                .TaxDate = Today.Date
                                Console.WriteLine("cardcode : " & sCardCode)
                                .CardCode = sCardCode
                                Console.WriteLine("ibasedDoc :" & iBasedDoc)
                                .Reference1 = iBasedDoc
                                isAddHeader = False
                            ElseIf isAddHeader = False Then
                                ' .Lines.Delete()
                                .Lines.Add()
                            End If ' isAddHeader
                            iAddedQty = 0
                            iCurrLine = 0
                            Console.WriteLine("CompleteOrder(ITEMCODE_FIELD) : " & CompleteOrder(ITEMCODE_FIELD))
                            .Lines.ItemCode = CompleteOrder(ITEMCODE_FIELD)
                            Console.WriteLine(".Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD) : " & CompleteOrder(WHSCODE_FIELD))
                            .Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD)
                            Console.WriteLine("Lines.UnitPrice = CompleteOrder(PRICE_FIELD) " & CompleteOrder(PRICE_FIELD))
                            .Lines.UnitPrice = CompleteOrder(PRICE_FIELD)
                            Console.WriteLine("CompleteOrder(ISUSEBATCH_FIELD) : " & CompleteOrder(ISUSEBATCH_FIELD))
                            If CompleteOrder(ISUSEBATCH_FIELD) = 1 Then
                                For iCurrLine = 0 To CompleteOrder(QUANTITY_FIELD) - 1
                                    If iCurrLine > 0 Then .Lines.BatchNumbers.Add()
                                    .Lines.BatchNumbers.SetCurrentLine(iCurrLine)
                                    .Lines.BatchNumbers.Quantity = 1
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.BatchNumbers.BatchNumber = CompleteOrder(SCANNED_FIELD)
                                    '.Lines.BaseEntry = iBasedDoc
                                Next
                            ElseIf CompleteOrder(ISUSEBATCH_FIELD) = 0 Then
                                Console.WriteLine("CompleteOrder(WHSCODE_FIELD) :" & CompleteOrder(WHSCODE_FIELD))
                                While sWhsCode = CompleteOrder(WHSCODE_FIELD)
                                    If iCurrLine > 0 Then .Lines.SerialNumbers.Add()
                                    .Lines.SerialNumbers.SetCurrentLine(iCurrLine)
                                    Console.WriteLine("CompleteOrder(SYSSERIAL_FIELD)" & CompleteOrder(SYSSERIAL_FIELD))
                                    CompleteOrder(SYSSERIAL_FIELD) = IIf(IsDBNull(CompleteOrder(SYSSERIAL_FIELD)), 0, CompleteOrder(SYSSERIAL_FIELD))
                                    .Lines.SerialNumbers.SystemSerialNumber = CompleteOrder(SYSSERIAL_FIELD)
                                    Console.WriteLine("CompleteOrder(SCANNED_FIELD) :" & CompleteOrder(SCANNED_FIELD))
                                    .Lines.SerialNumbers.InternalSerialNumber = CompleteOrder(SCANNED_FIELD)
                                    ' .Lines.BaseEntry = iBasedDoc
                                    iCurrLine = iCurrLine + 1
                                    iRow = iRow + 1
                                    If iRow <= myOrderDetailsTable.Rows.Count - 1 Then
                                        CompleteOrder = myOrderDetailsTable.Rows(iRow)
                                    ElseIf iRow > myOrderDetailsTable.Rows.Count - 1 Then
                                        Exit While
                                    End If
                                End While
                                iRow = iRow - 1
                            End If
                            .Lines.Quantity = iCurrLine
                        End With ' oInvoices
                    End If ' CompleteOrder(ISSCANNED_FIELD) = 1
                Next iRow
                iRetVal = oInvoices.Add()
    thnx for your attention

    Hello tony,
    Please check the following:
    1.Make sure the item is managed by serials
    2.The serials number have been auto created in GRPO/AP invoice etc puchase document
    3.You need to set the system serial number for the lines. How do you know the system serial number of the serial number? refer to the Serial Number Details form
    Inventory=>Item management=>Serials Numbers=>Serial Number Details
    SystemSerialNumber Sets or returns the successive numerator starting from1 issued for each item with serial numbers management. This numerator progresses according to the creation of new units of the same sort (for the same item).
    This property is mandatory when using Serial Numbers for outgoing documents. Field name: SysSerial.This is a foreign key to the SerialNumbers object
    Sample code to add invoice with items managed by serials:
    Private Sub btnSerials_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSerials.Click
            ConnectViaDI()
            Dim oInvoice As SAPbobsCOM.Documents = Nothing
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
            oInvoice.CardCode = "C001"
            oInvoice.DocDueDate = Date.Now
            Dim oLines As SAPbobsCOM.Document_Lines = oInvoice.Lines
            oLines.ItemCode = "S00002"
            oLines.UnitPrice = 1500
            oLines.Quantity = 2
            oLines.TaxCode = "CA"
            'Set the system serial no. for the 1st item
            oLines.SerialNumbers.SystemSerialNumber = 3
            'Set the system serial no. for the 2nd item
            oLines.SerialNumbers.Add()
            oLines.SerialNumbers.SystemSerialNumber = 4
            lRetCode = oInvoice.Add
            If 0 <> lRetCode Then
                oCompany.GetLastError(lErrCode, errMsg)
                MsgBox(errMsg)
            Else
                MsgBox("AR Invoice with serials number added.")
            End If
        End Sub
    Kind Regards, yatsea

  • STRANGE PROBLEM with "Create New Mail Account.scpt" when creating POP acct.

    I am using "Create New Mail Account.scpt" to create a POP account. It creates the account successfully. It fetches the mails successfully. Now the problem begins. After fetching all the mails once if u click "Get Mail" in mac mail, it fetches all the emails again and has now 1 original and 1 copy of the email set which is on the server. I just need 1 copy of the mail set not multiple. Please give me a solution or direct me to a help.
    Thanks
    SCRIPT
    global theUsername
    global thePassword
    set success to 1
    set theResult to true
    if theResult is not equal to false
    #set theAccountName to getAccountName()
    #set theUsername to getUsername()
    #set thePassword to getPassword()
    #set theEmailAddresses to getEmailAddress()
    #set theFullName to getFullName()
    -- POP Account
    if accountTypeString is equal to "POP" or accountTypeString is equal to "IMAP" then
    set theHostname to "THE HOST NAME"
    -- POP specific options
    if accountTypeString is equal to "POP" then
    set deletionPolicy to my getDeletionPolicy()
    if deletionPolicy is not equal to false then
    set deletionPolicy to item 1 of deletionPolicy
    set theNewAccount to my createAccount(accountTypeString, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
    if theNewAccount is not equal to false then
    setDeletionPolicy(theNewAccount, deletionPolicy)
    getAndSetAuthenticationScheme(accountTypeString, theNewAccount)
    getAndSetSMTPServer(theNewAccount)
    else
    set success to 0
    end if
    end if
    -- IMAP specific options
    else if accountTypeString is equal to "IMAP" then
    set theNewAccount to my createAccount(accountTypeString, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
    if theNewAccount is not equal to false then
    getAndSetCachingSettings(theNewAccount)
    getAndSetAuthenticationScheme(accountTypeString, theNewAccount)
    getAndSetSMTPServer(theNewAccount)
    else
    set success to 0
    end if
    end if
    end if
    if success is equal to 1 then
    display dialog "Account created!"
    else
    display dialog "Account creation failed!"
    end if
    end if
    -- Convenience handler for creating accounts
    on createAccount(theAccountType, theAccountName, theUsername, theHostname, thePassword, theEmailAddresses, theFullName)
    tell application "Mail"
    try
    if theAccountType is equal to ".Mac" then
    set theNewAccount to make new Mac account with properties {name:theAccountName, user name:theUsername, server name:theHostname, password:thePassword, full name:theFullName, email addresses:{theEmailAddresses}}
    else if theAccountType is equal to "IMAP" then
    set theNewAccount to make new imap account with properties {name:theAccountName, user name:theUsername, server name:theHostname, password:thePassword, uses ssl:true, full name:theFullName, email addresses:{theEmailAddresses}}
    else if theAccountType is equal to "POP" then
    set theNewAccount to make new pop account with properties {name:theAccountName, user name:theUsername, server name:theHostname, include when getting new mail:true, password:thePassword, uses ssl:true, full name:theFullName, email addresses:{theEmailAddresses}}
    end if
    on error
    set theNewAccount to false
    end try
    end tell
    return theNewAccount
    end createAccount
    -- Ask the user what they would like to name the account
    on getAccountName()
    repeat
    set theResult to display dialog "What would you like this account to be named?" default answer "Example: My Home Account"
    set theAccountName to text returned of theResult
    if theAccountName does not start with "Example:" then
    exit repeat
    end if
    end repeat
    return theAccountName
    end getAccountName
    -- Ask the user for the user name for their email account
    on getUsername()
    repeat
    set theResult to display dialog "What is your email user name?" default answer "Example: janedoe"
    set theUsername to text returned of the theResult
    if theUsername does not start with "Example:" then
    exit repeat
    end if
    end repeat
    return theUsername
    end getUsername
    -- Ask the user for the password for their email account
    on getPassword()
    set theResult to display dialog "What is the password for this account?" default answer ""
    set thePassword to text returned of theResult
    return thePassword
    end getPassword
    -- Ask the user for the email addresses for their email account
    on getEmailAddress()
    repeat
    set theResult to display dialog "What email address would you like to use for this account?" default answer "Example: [email protected]"
    set theEmailAddress to text returned of theResult
    if theEmailAddress does not start with "Example:" then
    exit repeat
    end if
    end repeat
    return theEmailAddress
    end getEmailAddress
    -- Ask the user for the full name for their email account
    on getFullName()
    repeat
    set theResult to display dialog "What is the full name for this account?" default answer "Example: Steve Smith"
    set theFullName to text returned of theResult
    if (theFullName does not start with "Example:") then
    exit repeat
    end if
    end repeat
    return theFullName
    end getFullName
    -- Convenience handler for asking the user what settings they would
    -- like to have for their special mailboxes. This handler also sets these
    -- values in Mail.
    on getAndSetSpecialMailboxes(theAccount)
    -- Sent messages default to storing locally
    set theResult to display dialog "Would you like to store Sent Messages on the IMAP server?" buttons {"Yes", "No"} default button 2
    log theAccount
    tell application "Mail"
    tell theAccount
    if button returned of theResult is equal to "Yes" then
    set store sent messages on server to true
    else if button returned of theResult is equal to "No" then
    set store sent messages on server to false
    end if
    end tell
    end tell
    -- Drafts default to storing locally
    set theResult to display dialog "Would you like to store Drafts on the IMAP server?" buttons {"Yes", "No"} default button 2
    tell application "Mail"
    tell theAccount
    if button returned of theResult is equal to "Yes" then
    set store drafts on server to true
    else if button returned of theResult is equal to "No" then
    set store drafts on server to false
    end if
    end tell
    end tell
    -- Trash defaults to storing on the IMAP server
    set theResult to display dialog "Would you like to store Deleted Messages on the IMAP server?" buttons {"Yes", "No"} default button 1
    tell application "Mail"
    tell theAccount
    if button returned of theResult is equal to "Yes" then
    set store deleted messages on server to true
    else if button returned of theResult is equal to "No" then
    set store deleted messages on server to false
    end if
    end tell
    end tell
    end getAndSetSpecialMailboxes
    -- Convenience handler for asking the user what IMAP
    -- caching setting they would like to use and configuring
    -- it in Mail.
    on getAndSetCachingSettings(theAccount)
    set theResult to choose from list {"Cache everything", "Cache everything but attachments", "Cache when read", "Don't cache"} ¬
    with prompt "Choose a message caching setting for this account:" default items {"Cache everything"} without multiple selections allowed
    if theResult is not equal to false then
    tell application "Mail"
    tell theAccount
    if (item 1 of theResult is equal to "Cache everything") then
    set message caching to all messages and their attachments
    else if (item 1 of theResult is equal to "Cache everything but attachments") then
    set message caching to all messages but omit attachments
    else if (item 1 of theResult is equal to "Cache when read") then
    set message caching to only messages I have read
    else if (item 1 of theResult is equal to "Don't cache") then
    set message caching to do not keep copies of any messages
    end if
    end tell
    end tell
    end if
    end getAndSetCachingSettings
    -- Convenience handler for asking the user whether they want to use
    -- an already defined SMTP server (if any) or whether they want to
    -- define a new one.
    on getAndSetSMTPServer(theAccount)
    tell application "Mail" to set everySMTPServer to every smtp server
    if ((count of everySMTPServer) > 0) then
    set listOfSMTPServers to {}
    repeat with eachServer in everySMTPServer
    try
    set listOfSMTPServers to listOfSMTPServers & name of eachServer
    end try
    end repeat
    createNewSMTPServer(theAccount)
    else
    createNewSMTPServer(theAccount)
    end if
    end getAndSetSMTPServer
    -- Handler for creating a new SMTP server, if the user has none set up
    -- already or if they choose not to use one of their existing servers.
    on createNewSMTPServer(theAccount)
    set theServerName to "THE SERVER NAME"
    tell application "Mail"
    set theSMTPServer to make new smtp server with properties {server name:theServerName, port:25, uses ssl:true}
    set smtp server of theAccount to theSMTPServer
    end tell
    getAndSetAuthenticationScheme("SMTP", theSMTPServer)
    end createNewSMTPServer
    -- Handler for asking the user what authentication scheme their server supports.
    -- The options are different for POP, IMAP, and SMTP. Unless you are told otherwise,
    -- it's best to leave these at their default settings.
    on getAndSetAuthenticationScheme(accountType, theAccount)
    if accountType is equal to "POP" then
    set theChoices to {"Password", "Kerberos 4", "Kerberos 5", "KPOP", "MD5"}
    set theDefault to {"Password"}
    else if accountType is equal to "IMAP" then
    set theChoices to {"Password", "Kerberos 4", "Kerberos 5", "MD5"}
    set theDefault to {"Password"}
    else if accountType is equal to "SMTP" then
    set theChoices to {"None", "Password", "Kerberos 4", "Kerberos 5", "MD5"}
    set theDefault to {"Password"}
    end if
    set theResult to choose from list theChoices ¬
    with prompt ¬
    "Choose an authentication scheme for this " & accountType & " server. Most servers support 'Password' authentication." default items theDefault without multiple selections allowed
    if theResult is not equal to false then
    tell application "Mail"
    set theScheme to item 1 of theResult
    tell theAccount
    if theScheme is equal to "Password" then
    set authentication to password
    else if theScheme is equal to "Kerberos 4" then
    set authentication to «constant exutaxk4»
    else if theScheme is equal to "Kerberos 5" then
    set authentication to kerberos 5
    else if theScheme is equal to "MD5" then
    set authentication to md5
    else if theScheme is equal to "None" then
    set authentication to none
    else if theScheme is equal to "KPOP" then
    set authentication to «constant exutakpo»
    end if
    end tell
    end tell
    if accountType is equal to "SMTP" then
    set theSMTPLogin to theUsername
    set theSMTPPassword to thePassword
    tell application "Mail"
    tell theAccount
    set user name to theSMTPLogin
    set password to theSMTPPassword
    set uses ssl to true
    set port to 25
    end tell
    end tell
    end if
    end if
    end getAndSetAuthenticationScheme
    -- Handler for asking the user what POP deletion policy
    -- they would like to use for their account.
    on getDeletionPolicy()
    set theResult to choose from list {"Immediately after being downloaded", "After a specified number of days", ¬
    "When I remove them from the inbox", "Always leave them on the server"} ¬
    with prompt ¬
    "Choose a POP message deletion option:" default items {"Always leave them on the server"} without multiple selections allowed
    return theResult
    end getDeletionPolicy
    -- Handler for setting the deletion policy established in getDeletionPolicy()
    on setDeletionPolicy(theAccount, thePolicy)
    tell application "Mail"
    tell theAccount
    if thePolicy is equal to "Immediately after being downloaded" then
    set delete mail on server to true
    set delayed message deletion interval to 0
    else if thePolicy is equal to "After a specified number of days" then
    set numberOfDays to my getDeletionInterval()
    set delete mail on server to true
    set delayed message deletion interval to numberOfDays
    else if thePolicy is equal to "When I remove them from the inbox" then
    set delete mail on server to true
    set delete messages when moved from inbox to true
    else if thePolicy is equal to "Always leave them on the server" then
    set delete mail on server to false
    end if
    end tell
    end tell
    end setDeletionPolicy
    -- Handler for asking the user what deletion interval they
    -- would like to use, if they are setting up a POP account
    on getDeletionInterval()
    set theResult to display dialog "After how many days would you like POP messages to be deleted from the server?" default answer "30"
    set numberOfDays to text returned of theResult as integer
    return numberOfDays
    end getDeletionInterval

    Hi amiaba, and a warm welcome to the forums!
    I can't quite tell what it's doing, but open Keychain Access in Applications>Utilities, click on your Keychain on the left, put .mac in the search bar, once you find it, double click on it and click show password.
    If you have no mail in there try this with Mail quit.
    Drag this file to the Desktop...
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist
    Start Mail & see if it steps you through it.
    Not sure on the .uk thing, but is Date & Time>Time Zone set to the UK?

  • Accounting Doc is created and it is in RSA3, but not loaded into BW side ?

    Hi all,
        One Accounting Document (of Credit Memo type) has been created with Tcode VF01 and this document exists in Extractor Checker (RSA3) and BSEG & BKPF tables and it has the corresponding Billing Document (VBELN) details in those tables. The Document with VA03 the Status for Sales Doc & Billing Doc is Cleared, but for the Accounting Doc is 'Not Cleared'. We have loaded the delta with 0FI_GL_4 Extractor in to an ODS, but this record is not coming into BW. Why it is missing ? Is it sitting somewhere and waiting for some other process, PLEASE ???
    Thanks in advance.
    Regards,
    Venkat.

    Hi Sam,
       There are no Selections in the InfoPackage.
       As you said, as default this extractor pulls records a day old. This record was created yesterday and it should be available today in RSA7, isn't it? But, it is NOT in RSA7. I thought that if it is in RSA7 then I could load the Delta again to get the records that were created yesterday. Does it require any other process to move them into RSA7, PLEASE?
    Thanks,
    Venkat.

  • Missing Account information when creating Planned Activity in Account

    Hi Expert,
    When creating planned activity in Account inwebUI, I am expecting that the Account information would be populated in the Account field of a planned activity but it is not. Could you please tell me if this is a SAP standard? Thanks

    Check Partner Determination Procedure of Activity Transaction
    regard,
    vijay.

  • Issue with Idoc when creating invoice taking wrong payment term

    Hi All,
    My Requirement is invoices created through B2B interface should hold the payment term of purchasing party instead of invoicing party
    400021 is Invoicing party having payment term 2000 i.e. 20 days
    414478 is the Purchasing party having the payment term 1000 ie 10 days
    So invoice should hold the payment term 10 days instead of 20 days
    I have an IDOC which is creating Invoice, I am trying to reprocess the IDOC to see the issue but could not able to achieve the solution.
    Please help me out which approach should i follow to achieve the solution of this issue.
    Thanks,
    VB

    Hi,
    Try using E1EDK18 segment. Put "Number of days" ,Qualifier and check if this achievs the desired result or not? If yes then you have to use an user exit to put the number of days in the IDOC.
    Cheers,

  • How to change Ship to party no. in delivery doc. after creating Invoice

    Hi,
        Sold to party ( customer code ) 1001473
    But by mistake bill was raised ship to party ( customer code ) 1001082 then I changed the ship to party code ( through VA02 )and saved the documents, but still in the invoice it is showing  ship to party address only instead of sold to party.  If any thing possible in the delivery level ( vl02n ) to change the ship to party so that it will possible to change the invoice it self. Kindly confirm so that I will reverse the entry and change the ship to party code in vl02n and I hope it will not any reflect in the  invoice.
    Regards
    Jibanjyoti

    Hi,
    First reverse the invoice(Cancel)
    Then change partner functions
    go to SE16N and  Change table entries
    if you want to change in SALES ORDER,then put table VBAK,VBAP
    if you want to change in delivery,then put table LIKP, LIPS 
    After chages
    create invoice again
    Note : As I am not tested this due to system unavailability, but as far as my undersatnding it will work
    kapil

  • No Accounting Doc issue - Excise Invoice

    Hi,
    I created Excise invoice by using the J1IIN
    after that i went to Changes system is showing the error "No accounting document exist for this excise invoice, Message no. 8I345"
    guide me
    Regards,
    Anu

    Hi
    IF it is an export invoice then there will not be any excise accounting document generated.
    And also when the domestic excise invoice also doesn't have any value or when the value of excise duties are 0 then there will not be any excise accounting entry created
    regards
    Prashanth

Maybe you are looking for

  • Why is the file size very big when I add captive runtime?

    I have a game that is 2.56 MB. When I package it up for a captive runtime apk it becomes 12.2 MB. This is very reasonable, but my problem is that when I add this apk on my phone through debugging, the size of the game jumps from 12.2 MB to 30.7 MB! I

  • 2 local ejb and one remote session bean in same server - java client

    idea was - to create a new stateless session bean that will talk to the two entity beans. although the session bean will expose its method through a remote interface, the communication betweenn the session bean and the entity beans will be through a

  • Mini help...do not disconnect

    Help...I got a new Dell computer two weeks ago, transferred my iTunes over just fine, and everything was working well until Sunday. Suddenly, my computer won't shut-down or restart while my iPod is connected. Also, iTunes does not always open on the

  • Another packing question.

    Hi, How do I pack EJB:s that I reside on another server? I have read Tyler Jewell's excellent articles on this subject on OnJava, but I still can't get it to work. My ear contains the following files: app.jar non ejb classes used by app-ejb.jar app-u

  • My icons only still displays text for customizing my bookmarks toolbar,why?

    when I try to customise my bookmarks toolbar to show only icons, it still displays icons and text. Can you tell me why?