Printing Tax Values in Purchase order

Hello MM Gurus,
        What is the configuration required to print the Tax values of BED,Cess etc.
in the Purchase order. I have selected "X" in the print column of Tax pricing
procedure. But, Tax values are not coming in the print out.
         Kindly respond quickly as this requirement is very urgent.
Regards
Yoga

Hi Yoga,
These values will not come in PO print out since they are stored as NAVS or JEXS. You will have to break them up using the conditions types defined by you.
You can refer to these tables
KONP, T685T,J_1IEXCTAX,J_1IMTCHID,KONV,J_1IMATEXP
to calculate the same
prasanna

Similar Messages

  • Reg. Calculated tax values in Purchase order

    Dear All
    I have to print tax percentage and value applicable in Purchase order. In po, at item level by clicking <i>invoice view</i> tax code appear as 3C besides button named <i>TAXE</i>S. on clicking <i>TAXES</i> different value of tax and excise with percentage appears. all these appears thru komv structure. i want to print these vales.
    by click <i>Where used Structure KOMV</i> there appears many object /classes. but i dont know how to use these. kindly provide me solution to fetch these values.
    thanks/regards
    Manjit

    Create Tax code in FTXP
    Let us SAy A1 --Note : for purchasing it should be input tax only
    Then in FV11 Create condition record with plant material and vendor combination with cond type as JVRD
    Maintain the TAx rate as 4 % or whatever is applicable
    also enter the Tax code as A1 which u have created for ur tax procedure TAXINN
    SAve it
    Create a PO for the same material,vendor and plant combination
    and enter the Tax code as A1
    I think with the above details ur tax should get calculated
    regards
    shailesh

  • How to print Excise values in Purchase Order Smartform

    Hi, Experts,
    I am developing the Purchase Order Smartform as per the my client requirment. For this i took the copy of standard Smartform for PO. The name of the standard smartform is 'YBIN_MMPO'. My requirment is to print all the excise values {BED,CESS,ECESS and VAT/CST} of every item. How to get these conditions to print in PO. I serched the table KONV, but the conditions which are under the taxes button are not stored in this table.
    For this I found one FM "CALCULATE_TAX_FROM_AMOUNT'. This is also not helpful if client goes to manual excise to create PO.
    Is there any other table to get these conditions? or is there any function modules to get these conditions?
    Please give me the solution.
    Thanks & regards,
    Jagadeesh.

    Hi,
    I used this piece of code to get the excise values in PO.
    SELECT SINGLE * FROM EKPO INTO
                    W_EKPO
             WHERE EBELN EQ IS_EKKO-EBELN AND
                   EBELP EQ <FS>-EBELP.
    CALL FUNCTION 'J_1I4_COPY_PO_DATA'
        EXPORTING
          Y_EKPO        = W_EKPO
        EXCCOM        =
    CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
    EXPORTING
    i_bukrs                 =  <FS>-BUKRS
    i_mwskz                 =  <FS>-MWSKZ
      I_TXJCD                 =
    i_waers                 = IS_EKKO-WAERS
    i_wrbtr                 =  <FS>-NETWR
      I_ZBD1P                 = 0
      I_PRSDT                 =
      I_PROTOKOLL             =
      I_TAXPS                 =
      I_ACCNT_EXT             =
    IMPORTING
      E_FWNAV                 =
      E_FWNVV                 =
      E_FWSTE                 =
      E_FWAST                 =
    tables
    t_mwdat                 = ITAB_TAXDATA
    EXCEPTIONS
       BUKRS_NOT_FOUND         = 1
       COUNTRY_NOT_FOUND       = 2
       MWSKZ_NOT_DEFINED       = 3
       MWSKZ_NOT_VALID         = 4
       KTOSL_NOT_FOUND         = 5
       KALSM_NOT_FOUND         = 6
       PARAMETER_ERROR         = 7
       KNUMH_NOT_FOUND         = 8
       KSCHL_NOT_FOUND         = 9
       UNKNOWN_ERROR           = 10
       ACCOUNT_NOT_FOUND       = 11
       TXJCD_NOT_VALID         = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    regards,
    Jagadeesh T.

  • How Create new Tax code in Purchase order

    Dear Sir,
    I have creat new tax code in Purchase order
    Basic value          3976876.53
    Ex Duty          10%     397687.6525
    edu.cess          2%     7953.75305
    s&h Edu.cess     1%     3976.876525
    Toatal               4386494.81
    CST          1%     43864.94807
    Addition                12550.00
    i have all ready tax code 1021+5vat

    Hi Sneha Patel
    Case1:
    If tax is applicable on the freight charges then create a Z condition in (Tocde M/06) and assign it in ur pricing  procedure (Tocde M/08) before the net value is calculated in ur pricing procedure so that it is taken for tax calculation.
    Case2:
    If tax is  not applicable on the freight charges then create a Z condition in (Tocde M/06) and assign it in ur pricing  procedure (Tocde M/08) after the net value is calculated in ur pricing procedure so that it is not taken for tax calculation.
    For both the conditions select
    Cond. class   A Discount or surcharge
    Calculat.type B Fixed amount
    Cond.category B Delivery costs
    Also mark as a header or item condition with accruals checked.
    If u are not sure then copy FRA1 condition in STD and change Calculat.type  as B Fixed amount instead of % in FRA1 so that u can enter the amount directly in PO.
    Also mark these conditions as manual in ur pricing procedure so that these can be entered manuall in PO if reqd.
    While creating PO u can select the reqd condition (with or without tax) under conditions tab and enter the amount.
    hope it clears ur issue
    Chk and revert
    Reg
    Raja

  • Rounding value for purchase order quantity

    Hi Guru ,
    i need help for logic LOT SIZE MRP.
    In particolar i need of use the parameters of rounding for create the planned order multiple of the value.
    Example for a requirement of 3800 pz whit a value rounding of 500 i  vould want that the system create a planned order of the 4000pz.
    I have  tried insert this value 500 in the field "Rounding value for purchase order quantity" in the view MRP1 but after run MRP the system create a planned order of the same quantity of the requirement.
    Thanks a lot for help
    Daniele
    PP TEAM

    Dear,
    OMI4, for lot size select Lot for lot order qty with rounding.
    Either you can use the Rounding Value or you can use a Rounding profile in MRP2 view to round of your order qty and rouding value in MRP1 view.
    Further you can check
    Check FM MD_ROUNDING_VALUE
    Regards,
    R.Brahmankar

  • How can we print the Stock Transfer Purchase Order

    Hi,
    How can we print the Stock Transfer Purchase Order??
    Because from Transaction ME9L & ME9F, we can print simple PO's like NB, MPR etc..but Stock Transfer PO could not print.
    Plz guide, from where we can do it...

    Messages for PO are set in MN04. For details on how to follow this link:
    Re: Problem with PO output determination MN04
    Once the record is set here you will see the records in ME23n under messages button in header.
    Edited by: Afshad Irani on Apr 30, 2010 10:09 AM

  • Tables for VAT or CST and RATE OF TAX for a PURCHASE ORDER

    i am developing a report(abap ALV)
    i need to display the VAT or CST and RATE OF TAX for a PURCHASE ORDER that has been posted .
    which tables to refer?

    hi kumar gaurav
    Check KONV table..
    based on Condition TYpe you can get...
    Regards
    Deva

  • How to print the modified old Purchase Order

    Dear Friends,
    What is the process of printing the modified old Purchase Order.
              With Regards,
                Siva kumar

    Dear,
    Please check the link with screenshots.
    http://www.finance.utoronto.ca/fast/qrg/purch/po/print.htm
    Regards,
    Syed Hussain.

  • Output Tax Code In Purchase Order

    Hi all,
    It's possible to assign an output tax code to a purchase order?
    The system gives me the error message 6164 'Please enter an input tax code, not an output tax code' when I use an output tax . Is there any customization to allow output taxes in purchase orders?
    Thank you,
    RS

    Dear friend...
    You cannot use output tax code in purchase order, since output tax codes are used only for sales. If you use output tax code in the PO it will obviously throw the error you said. If you want to have the taxes as shown in the output taxes, if not present in  your input tax codes, you can create new tax code which you desire. Output codes are only for the Sales Order.
    Hope it helps re-ward if so
    Suraj

  • Printing Tax values in the Purchase order

    Hi MM Gurus,
        In the print out of Purchase order, I am getting the Total net value excluding tax
    while the requirement is PO should have the value including the tax. Tax setting is
    maintained and I am getting all the tax values properly in the P.O. but in print out
    tax amount is not coming. How to resolve this? Any configuration required in the
    IMG or is it an ABAP work? Kindly let me know as early as possible.
    Regards
    Yoga

    Hi Yoga,
    It is not clear whether you are using the standard SAP layout for PO printing or you have prepared your own layout. It is also not clear whether you want the %age of tax is to be printed or the value of tax.
    I assume you have prepared your own layout using smartforms.
    You have to get in touch with your ABAPer to modify the smartform for tax %age/amount.
    You can get the table tables using FV13.
    I hope you know how to get those details.
    -Nandu More

  • Excise duty, tax, ECS values in Purchase order - Reg

    Hello friends,
    Please let me know  from which table having  Excise duty ,Ecs and  Tax value of a purchase order can be retrieved.
    Thanks & Regards,
    Hari Prasath.S

    At the Time of Po KONV is the Tabel
    After GRN       J_1IEXCHDR (Header Data) Excise Invice
                          J_1IEXCDTL (Line Item) of Excise invoice
    Regards
    Biswajit

  • Automatic Calculation of Input Tax in a Purchase Order

    Hi  SAP Gurus!
    Good day! Please help with my problem. During my creation of a Purchase Order, I will have to indicate what Tax Code to use. In this case, I use "Input Tax 12%". On the Item Condition TAB, the calculation of the input tax is not reflected. How can I customize this, in order for us to see the breakdown of Taxes automatically?
    Thank you.
    Mik

    Hi Mik,
                If you maintain the tax codes in the system for your company code then the tax codes will be picked automatically in PO through FTXP and the same is reflected in PO.In Invoice tab you have to give tax code, then in Condition tab, the values will be calculated as per the condition values maintained for the tax code.No need to maintain any thing in pricing procedure.
                If your tax procedure in TAXINN, you have to maintain the condition records for the condition types ( JMOP, JEC1, JSEP etc..), then only the values can be shown in PO in Condition tab.In TAXINN, the tax code has to be assigned to the company code.
    Regards,
    Gangadhar Y

  • Reg:Tax Table In Purchase Order

    Hi All,
         In the Purchase Order Line Item Level We will Give Tax I.e In the Invoice tab We have our required tax codes the the taxes button will enable when we click taxes all the taxes will come my question is coils anybody say in which table all the tax details for a Purchase Order is Stored? i have checked the table KONV
    only the Header Conditions is Stored in that table.could you please help me?

    Hi Vijetasap,
       i have tried that function module it doesn't return the values thats y i asked the table name, i have attached the code for my reference just correct me where am wrong?
    LOOP AT I_EKPO.
        clear taxcom.
        CLEAR : I_KOMV.
        REFRESH : I_KOMV.
        SELECT SINGLE *
           INTO t001
           FROM t001
          WHERE bukrs = ekko-bukrs .
        taxcom-bukrs = i_ekpo-bukrs.
        taxcom-budat = ekko-bedat.
        taxcom-waers = ekko-waers.
        taxcom-kposn = i_ekpo-ebelp.
        taxcom-mwskz = i_ekpo-mwskz.
        taxcom-txjcd = i_ekpo-txjcd.
        taxcom-shkzg = 'H'.
        taxcom-xmwst = 'X'.
          IF I_EKPO-MTART = 'HAWA'.
            taxcom-wrbtr = i_ekpo-kzwi6.
          ELSEIF I_EKPO-MTART = 'ROH'.
            taxcom-wrbtr = i_ekpo-kzwi4.
          ENDIF.
        ELSE.
          taxcom-wrbtr = i_ekpo-zwert.
        ENDIF.
        taxcom-lifnr = ekko-lifnr.
        taxcom-land1 = ekko-lands.
        taxcom-ekorg = ekko-ekorg.
        taxcom-hwaer = t001-waers.
        taxcom-llief = ekko-llief.
        taxcom-bldat = ekko-bedat.
        taxcom-matnr = i_ekpo-ematn.
        taxcom-werks = i_ekpo-werks.
        taxcom-bwtar = i_ekpo-bwtar.
        taxcom-matkl = i_ekpo-matkl.
        taxcom-meins = i_ekpo-meins.
        taxcom-ebeln = i_ekpo-ebeln.
        taxcom-ebelp = i_ekpo-ebelp.
        IF ekko-bstyp EQ bstyp-best.
          taxcom-mglme = i_ekpo-menge.
        ELSE.
          IF ekko-bstyp EQ bstyp-kont AND i_ekpo-abmng GT 0.
            taxcom-mglme = i_ekpo-abmng.
          ELSE.
            taxcom-mglme = i_ekpo-ktmng.
          ENDIF.
        ENDIF.
        IF taxcom-mglme EQ 0.
          taxcom-mglme = 1000.
        ENDIF.
        taxcom-mtart = i_ekpo-mtart.
        IF NOT TAXCOM-mwskz IS INITIAL.
          CALL FUNCTION 'CALCULATE_TAX_ITEM'
          EXPORTING
      ANZAHLUNG                 = ' '
       DIALOG                    = ' '
       DISPLAY_ONLY              = ' '
       INKLUSIVE                 = ' '
       I_ANWTYP                  = ' '
       I_DMBTR                   = '0'
       I_MWSTS                   = '0'
              I_TAXCOM                  = taxcom
       PRUEFEN                   = ' '
       RESET                     = ' '
          IMPORTING
       E_NAVFW                   =
              E_TAXCOM                   = taxcom
       E_XSTVR                   =
       NAV_ANTEIL                =
          TABLES
              T_XKOMV                    =  i_komv
          EXCEPTIONS
                 MWSKZ_NOT_DEFINED          = 1
                MWSKZ_NOT_FOUND             = 2
                MWSKZ_NOT_VALID             = 3
                  STEUERBETRAG_FALSCH       = 4
                  COUNTRY_NOT_FOUND         = 5
                 OTHERS                     = 6
    .Note: Am not given Full Code but this is the part where am getting the tax values.

  • BAPI for updating tax code for purchase order..

    Hi friends,
      I have one requirement to change tax code for multiple Purchase order but the
    thing is they should not go for release.So what should I prefer BDC or BAPI.
      I am thinking to implement it through BAPI, but I don't know what procedure to follow.
    If somebody can provide me a small guiding steps or code then it will be very helpful for me..
    Thnaks in advance..
    Useful answers will be rewarded with points....
    Regards,
    Rajesh Akarte

    Hi Friend,
    BAPI_ACC_PURCHASE_ORDER_CHECK  Accounting: Check Purchase Order                                         
    BAPI_ACC_PURCHASE_ORDER_POST   Accounting: Post Purchase Order  
    MEWP                           BAPIs Purchase order                                                     
    BAPI_PO_CREATE                 Create Purchase Order                                                    
    BAPI_PO_GETDETAIL              Display Purchase Order Details                                           
    BAPI_PO_GETITEMS               List Purchase Order Items                                                
    BAPI_PO_GETITEMSREL            List Purchase Orders for Release (Approval): New as of 4.0A              
    BAPI_PO_GETRELINFO             Display Detailed Release (Approval) Information on Purchase Order        
    BAPI_PO_GET_LIST               List Purchase Orders - Only up to 4.0A                                   
    BAPI_PROCOPERATION_GETCATALOGS Determine Valid Catalogs as Value Help                                   
    BAPI_PROCOPERATION_GETINFO     Analysis of Objects to be Generated in Purchasing                        
    <b>AND</b>
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions. Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level. Search for the transaction ME21.Double click on ME21. Then search for TaxCode
    Use condition type NAVS with access sequence 0003 to default the taxcode in the purchase order item using conditions.
    A2: Go to IMG.
    Materials Management -> Purchasing -> Purchasing order processing ->define screen layout at document level.
    Search for the transaction ME21.Double click on ME21. Then search for TaxCode. It is advisable to configure also the info record. The tax code should be a required entry, and whatever you specify here will be the default value in the Purchase order.
    Materials Management -> Purchasing -> Purchasing info record -> define screen layout.
    When you get here you search for the transaction ME12 ,double click here; search for Input VAT indicator.
    Regards ,
    Kumar.

  • How to print Sequential  Numbers like purchase order?

    I ma new to mac and Numbers 09 and have a quick question. How do I print sequential numbers? I have my own MS Excel purchase order number with macro and I want to use Iwork Numbers to print the numbers. For example, Purchase Order: 70085-1 is in my form. When I ask to print 20 copies, it will print 70085-1, 70085-1, 70085-3, etc.
    Thanks in advance

    Here is a modified version of my original script which was posted in :
    http://discussions.apple.com/thread.jspa?messageID=12679002
    This time, with a single run, we may define the number of consecutive invoices to create.
    --[SCRIPT openAndNameInvoiceWithAnumber]
    Enregistrer le script en tant que Script : openAndNameInvoiceWithAnumber.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Pages puis choisir openAndNameInvoiceWithAnumber
    crée un nouveau document à partir du modèle personnel prédéfini
    et renomme le document avec un nouveau numéro.
    Il insère également le numéro de facture au début du document.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script, Application or Application Bundle: openAndNameInvoiceWithAnumber.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    go to the Scripts Menu, choose Pages, then choose openAndNameInvoiceWithAnumber
    will create a new document from the defined user template
    and name it with a new number.
    It also insert the invoice number at the very beginning of the document.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    2010/11/30
    2010/12/20 edited to apply if the template is a flatfile one.
    2011/01/11 added ability to build several invoices in a single call
    property theApp : "Pages"
    property theExt : ""
    property myTemplate : "ma_facture.template" (*
    Adapter à vos besoins
    Put your preferred template name *)
    property fichierNum : "le_numéro.txt" (*
    Adapter à vos gouts
    Put your preferred text file name *)
    --=====
    on run
    if theApp is "Pages" then
    set theExt to "pages"
    else
    if my parleAnglais() then
    error "The application “" & theApp & "” is not supported !"
    else
    error "L’application « " & theApp & " » n’est pas gérée"
    end if
    end if
    if my parleAnglais() then
    set nombredefactures to my askAnumber("Enter the number of consecutive invoices needed", 1, "i")
    else
    set nombredefactures to my askAnumber("Saisir le nombre de factures consécutives demandé", 1, "i")
    end if
    repeat nombredefactures times
    my buildaninvoice()
    end repeat
    end run
    --=====
    on buildaninvoice()
    set {p2myTemplate, numero} to my prepare()
    set numero to text -5 thru -1 of ("0000" & numero) (* pour numéro de 5 chiffres *)
    set UNTITLED_loc to my getLocalizedFrameWorksName(theApp, "Untitled")
    tell application "Pages"
    activate
    try
    close document UNTITLED_loc
    end try
    end tell -- to Pages
    tell application "Pages"
    activate
    open p2myTemplate
    set theDoc to numero & "." & theExt
    set name of document 1 to theDoc
    tell document 1
    tell body text
    if my parleAnglais() then
    set paragraph 1 to "invoice #" & numero & return & paragraph 1
    else
    set paragraph 1 to "facture n°" & numero & return & paragraph 1
    end if
    end tell
    end tell
    end tell
    end buildaninvoice
    --=====
    on getLocalizedFrameWorksName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFApplication.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFrameWorksName
    --=====
    on getLocalizedFunctionName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFunctionName
    --=====
    on getLocalizedName(aa, tt, ff)
    tell application aa to return localized string tt from table "Localizable" in bundle file ff
    end getLocalizedName
    --=====
    on prepare()
    local d1, d2, p2d, containerOfTemplates, pathToTheTemplate, p2n, nn
    tell application theApp
    set d1 to localized string "Templates" (* nom local du dossier "Modèles" *)
    set d2 to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set p2d to (path to application support from user domain) as Unicode text
    set containerOfTemplates to p2d & "iWork:" & theApp & ":" & d1 & ":" & d2 & ":"
    set pathToTheTemplate to containerOfTemplates & myTemplate & ":"
    try
    set pathToTheTemplate to pathToTheTemplate as alias
    on error
    if my parleAnglais() then
    error "The template “" & pathToTheTemplate & "” is unavailable! Please make sure the template file “" & myTemplate & "” is installed in Numbers “Templates:My Templates” folder, then rerun this script."
    else
    error "Le modèle « " & pathToTheTemplate & " » est introuvable! Veuillez installer le fichier modèle « " & myTemplate & " » dans le dossier « Modèles:Mes modèles » de Numbers avant de relancer ce script."
    end if
    end try
    tell application "System Events"
    if class of disk item (pathToTheTemplate as text) is file then
    (* flat file *)
    set p2n to containerOfTemplates & fichierNum
    if not (exists file p2n) then
    make new file at end of folder containerOfTemplates with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    else
    (* package *)
    set p2n to "" & pathToTheTemplate & fichierNum
    if not (exists file p2n) then
    make new file at end of pathToTheTemplate with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    end if
    end tell -- System Events
    set nn to read file p2n
    set nn to ((nn as integer) + 1) as text
    write nn to file p2n starting at 1
    return {pathToTheTemplate, nn}
    end prepare
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    Asks for an entry and checks that it is an floating number
    set myInteger to my askAnumber(Prompt, DefaultValue, "i")
    set myFloating to my askAnumber(Prompt, DefaultValue, "f")
    on askAnumber(lPrompt, lDefault, IorF)
    local lPrompt, lDefault, n
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be a floating number." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
    end if
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be an integer." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
    end if
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    Here if the first entry was not of the wanted class
    second attempt *)
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    if my parleAnglais() then
    error "The value you entered was not numerical !" & return & "Goodbye !"
    else
    error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
    end if
    end askAnumber
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 09:30:37

Maybe you are looking for

  • Problem in navigating from one report to another in OBIEE 10g

    Hi, I am facing an issue with OBIEE 10g while applying navigation on my reports. Lets suppose I made a report showing list of all items(in broad categories) sold on a particular day, say Dairy, Frozen Foods, Chocolates etc.In this report there is a d

  • Strange characters in pdf

    Hello, i have a strange problem with "strange characters" (such as "à", "ö" etc). I have to edit pdf files produced with Adobe Acrobat by other people. In some cases, when i try to "copy and paste" text from this file into a "note" (within the same f

  • USB port burn-out?

    I added a card a long time ago that has 4 more USB ports. All of the ports have been working fine, but then I tried plugging in a cheapo keyboard light into one of the ports. The light worked fine the first time, but then it wouldn't work again. I tr

  • Can't open more than 9 pages in Safari

    Safari on the iPad doesn't allow more than 9 pages (windows/tabs) to be opened simultaneously. When the 10th window is opened Safari automatically closes an already open window. I hope version 4.0 fixes this.

  • Can't sync my ipod

    Whenever I try to sync my ipod, a msg saying 'An unknown error has occurred [.50]. Anyone know what's up?