Creating an Invoice generator

Hello, I'm new to apple and just started learning on how to use numbers.
But i'm having trouble with one very important formula for my business.
I'm trying to make a cell generate invoice numbers automatically when you save a spread sheet.
For example: if i would to open my invoice template, i would like it to number it 1, so that when i save it and give it a name. The next time i open it, it will number it 2.
Is this possible?
Because i know the date formula can do this automatically, but is there one for numbering too?

I just edited an old script.
--[SCRIPT numérote_Numbers ‘09]
Enregistrer le script en tant que Script, Application ou Progiciel : numérote_Numbers ‘09.xxx
déplacer l'e fichier créé dans le dossier
<VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Quand vous voudrez créer une facture, allez en
menu Scripts > numérote_Numbers ‘09
Le script créera une nouvelle facture à partir du modèle "ma_facture.nmbtemplate"
stocké dans le dossier "Modèles:Mes Modèles".
Il collera un numéro de facture qu'il stockera
dans le fichier "le_numéro.txt" rangé dans le "paquet" du modèle.
--=====
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: numérote_Numbers ‘09.xxx
Move the newly created application into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
When you want to create a new invoice
Go to
menu Scripts > numérote_Numbers ‘09
The script will create a new invoice document from the template "ma_facture.nmbtemplate"
stored in "Templates:My templates"
It will paste an invoice number
and store it in the file "le_numéro.txt" in the template's package.
--=====
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)
4 mars 2008
5 juin 2009, revised for Numbers ‘09
property theApp : "Numbers"
--=====
on run
tell application "System Events" to if not (UI elements enabled) then set (UI elements enabled) to true (*
Active le GUI scripting
• Enable GUI scripting *)
my controleVersion()
set {chemin, numero} to my prepare()
set theNum to "invoice #" & text -5 thru -1 of ("0000" & numero) (* 5 digits number
• I put a leading string because Numbers drops the leading zeros *)
tell application "Numbers"
open chemin
activate
tell document 1 to tell sheet 1 to tell table 1 to set value of cell "A1" to theNum
end tell -- to theApp
end run
--=====
on getLocale(a, x)
tell application a to return localized string x
end getLocale
--=====
on prepare()
local factName, fichierNum, Templates_loc, myTemplates_loc, p2d, f, p2n, n
set factName to "ma_facture.nmbtemplate" (*
Adapter à vos besoins
• Put your preferred title *)
set fichierNum to "le_numéro.txt" (*
Adapter à vos besoins
• Put your preferred title *)
tell application theApp
set Templates_loc to localized string "Templates" (* nom local du dossier "Modèles" *)
set myTemplates_loc 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 f to p2d & "iWork:" & theApp & ":" & Templates_loc & ":" & myTemplates_loc & ":" & factName & ":"
set p2n to f & fichierNum
set f to f as alias
tell application "System Events"
if not (exists file p2n) then
make new file at end of f with properties {name:fichierNum}
write "100" to file p2n (*
mettez le numéro de départ de votre choix
• put the starting num fitting your needs*)
end if
end tell
set n to read file p2n
set n to ((n as integer) + 1) as text
write n to file p2n starting at 1
return {f, n}
end prepare
--=====
on controleVersion()
local v
try
set v to version of application theApp
on error
error "Doesn’t apply to Numbers ’08 !"
end try
end controleVersion
--=====
--[/SCRIPT]
Yvan KOENIG (from FRANCE vendredi 5 juin 2009 22:00:52)

Similar Messages

  • Deemed exports not getting created when excise invoice generated in backgro

    Hi guys,
    when i create an excise invoice in background .and try to create ARE-3 in J1IA301.I am getting a error (081091004/2009 excise invoice is meant for normal invoice).
    when i create excise invoice manually and click on goto - utilization . The excise invoice type will be local .If i click on the pencil tab it will change to EXPORT and we can see DEEMED in blue color after this i will save and create ARE-3. ARE-3 gets generated.
    while creating excise invoice in background the EXCISE INVOICE TYPE in J1IIN will be LOCAL and we will not be able to change after this when i try to create ARE - 3 IAM GETTINGTHE ERROR..
    Please help me out of this..
    As my client wants to create the excise invoice in background while billing document is created..
    Regards,
    Shivdeep B

    Hi,
    If you want to create excsie invoice in back ground while creating billing document for  Deemed exports.
    Please follow the navigation as mentioned below.
    SPRO - Logistic General - Tax on goods movement - India - Business transaction - Out going Excise invoice - Maintain default Excise group and series group.
    Here please maintain you Plant, Excise group & Series group for deemed exports sales area combination and export type as Deemed exports in *details screen*. Now system will  create excise invoice for deemed exports in background while creating the billing document go to display excise invoice and see the utilization you get Deemed exports.
    This will do for you.

  • Creating an Invoice and generating and IDoc

    Hi All
    Can anyone let me know what are the prerequisites for creating an invoice, the transaction for creating an invoice and steps to create an Invoice using the transaction. I also want to know how to generate an Idoc from the Invoice related transaction screen.
    thanks in advance

    I mentioned very briefly about how to create outbound INVOIC. "Reward point if useful".
    Complete configuration information.
    1) In the Command field, enter transaction V/54 and choose Enter (or in
    the IMG, choose Sales and Distribution>Basic Functions>Output
    Control>Output Determination>Output Determination Using the
    Condition Technique-->Maintain Output Determination for Billing
    Documents-->Maintain access sequences).
    2) On the Change View “Access Sequence (Output Billing)”.
    3) Choose the desired access sequence (for example, YPCC, Sales
    organization).
    --> Choose Accesses.
    4) On the Change View “Accesses (Output Billing)”.
      a)Add the Sales Organization/Customer Number access above the
        existing Sales Org. access.
      b)In the Requirement column, enter a requirement.
      c) Select the Exclusive checkbox for the first access.
      d) Choose Save.
    5) EDI Specific configuration.
    Configuring for EDI involves the following two steps:
    -->Condition record (output determination)
    -->Outbound partner profile
    Condition record(Output determination)
    This section outlines the configuration steps required for each
    customer you wish to send an invoice via EDI.
    Creating a condition record for the specific customer sets up output
    determination to generate an EDI message whenever an invoice is
    created for that customer.
    1)-->To access the Create Output – Condition Records screen, in the Command
    field, enter transaction VV31 and choose Enter (or choose Logistics -->
    Sales and distribution --> Master data --> Output --> Billing document -->
    Create).
    2)--> On the Create Output – Condition Records: Billing screen:
         a) Enter RD00 in Output type.
         b)Choose Key combination.
    3) On the Key Combination popup window:
         a) Select Sales Organization/Customer Number.
         b) Choose Enter.
    4) On the Create Condition Records (Invoice): Fast Entry screen:
         a)Enter the customer number in Customer.
         b)Enter RE in PartF.
         c)Enter 6 in Medium.
         d)Enter 4 in Time.
         e)Enter EN in Language.
         f)Choose Save.
    5)Maintain partner profile.
    The setup of a partner profile for each specific EDI customer allows
    you to define the EDI-specific information the system needs when
    generating the outbound IDocs.
    Go to transaction WE20.
    a)Select the customer (partner) from the list.
    b)Choose outbound parameter.
    c) MG On the New Entries: Details of Added Entries screen:
    6)Enter RE in Partn.funct.
         a) Enter INVOIC in Message type.
         b)Enter the port name in Receiver port.
         c) Under Output mode, select Transfer IDoc immed.
         d) Enter INVOIC02 in Basic type.
         e)Enter US in Typ.
         f) Enter EN in Lang.
         h) Enter the user ID in ID.
    On the Change View “Partner profiles: message Control”: Overview
    screen, choose New entries.
    -->On the New Entries: Details of Added Entries screen:
         a)Enter V3 in Application.
         b) Enter RD00 in Message type.
         c) Enter SD09 in Process code.
         d)Choose Save.
    -->Choose the EDI standard tab.
    Thanks,
    Narayan

  • Problem while creating excise invoice by J1IJ

    Hi Friends
    I am creating excise invoice from delivery for a depot using T-c0de J1IJ . Problem is every time when I select RG23 in drop down menu after entering delivery no, excise gp and series gp and and save it, system gives error that item is incomplete so excise invoice cannot be generated.
    Can anyone pls let me know what is the problem. I though found one things that there was no excise value in the J1IJ screen. i.e bed and other excise duties were 0, so could this be the problem?
    Thanks
    Amit

    Hi Friends
    Let em explain you the process so as to analyse the problem clearly.
    this is a trading process. My client is creating PO in advance and not on teh basis of PR generated after sales order.
    SO process they follow is create sales order, delivery, gate entry, weightment entry, PGI and then J1IJ and invoice.
    Here plant is a depot, so it is some kind of a depot sales process.
    Dear G. Lakshmipathi
    As suggested by you, will J1IG process be relevant in this case?. If yes then on what basis PO will be genrated here as my client is not generateing any PR w.r.t to sales order. Please advice.
    Waiting for your reviews.
    Thanks

  • DEEMED INVOICE : Not able to create deemed invoice when the excise invoice

    Hi guys,
         when i create an excise invoice in background .and try to create ARE-3 in J1IA301.I am getting a error (081091004/2009 excise invoice is meant for normal invoice).
       when i create excise invoice manually  and click on goto - utilization . The excise invoice type will be local .If i click on the pencil tab it will change to EXPORT  and we can see DEEMED in blue color after this i will save and create ARE-3. ARE-3 gets generated.
      while creating excise invoice in background the EXCISE INVOICE TYPE in J1IIN will be LOCAL and we will not be able to change after this when i try to create ARE - 3 IAM GETTINGTHE ERROR..
        Please help me out of this..
        As my client wants to create the excise invoice in background while billing document is created..
    Regards,
    Shivdeep B

    Hi
    Maintain the default excise group and series groups and here select the deemed export and try
    maintain as D in export type as DEEMED
    regards

  • Cancellation & JV of Excise invoice generated through J1IS

    Dear Friends,
    We have a requirement to cancel the outgoing excise invoice created through the transaction J1IS towards purchase return.
    I believe through J1IS, cancellation of the excise invoice is made possible but no accounting document get posted.  Only the status is being changed from 'Posted' to 'Cancelled'.
    While doing the JV through the Transaction J1IH => Cancell Exc Inv, system is giving error message as follows:
    "Excise modvat accounts not defined for CEIV transaction and  excise group".
    In the customisation, all the relevant GL accounts are found maintained against transaction type CEIV.
    For example at the time of outgoing excise invoice posting through J1IS following accounts hit.
    13113920     CENVAT clearing     8
    13113920     CENVAT clearing     771
    13113920     CENVAT clearing     15
    13113900     CENVAT Payable     - 8
    13113900     CENVAT Payable     - 771
    13113900     CENVAT Payable     - 15
    We would like to have an opposite entry through the transaction code J1IH => Cancellation of Exc Inv.
    Kindly give a suitable solution to make the cancellation.
    Thanks.
    Harikrishnan.

    Hi Hari,
    Do the blw option
    whenever you are trying to cancel the Excise Invoice generated by J1IS/J1IV , Use J1IH-> Cancel Excise Invoice> you have to give the Official Excise invoice no. which is generated by J1IV for cancellation
    and ref the sdn thread with same issue
    How to cancel excise invoice which is created through t.code J1is
    Cancel J1IS Excise Invoice

  • One order with multiple lines in OM is creating multiple invoices

    Application: Oracle 11i (11.5.3)
    Modules implemented: GL, OM, AR, AP, PO and CM
    Business Requirement:
    Our client would like to create Order consisting of multiple lines in Order Management.
    The Orders created in OM with multiple lines could be booked, picked, released and transferred
    over to Accounts Receivable. On transferring over the Orders from Order Management to Accounts
    Receivables using Auto Invoice process the Order should create ONE invoice with multiple lines.
    Moreover, for the multiple lines created on an invoice deferred revenue could be applied.
    ( eg. An order is placed for software and support. The support is to be invoiced all at once but revenue deferred to 1/12
    recognized each month as revenue is earned.)
    Right now we are getting two invoices. It is putting the deferred revenue item on a seperate invoice. Is this normal
    functionality? How can I get both on one invoice.
    thanks

    Hello Monique,
    Well you can have one invoice generated for an order with multiple lines. This is possible by changing some rules in Account Receivables. Use the grouping rules under setups->autoinvoice in AR. You can club your invoices based on any of the columns of ra_interface_lines_all. Hope this works for you.
    Arvind

  • Unable to create excise invoice against the Material document

    Hi experts,
    Unable to create excise invoice against the Material document in J1IEX transaction.
    Material document is generated through quality management which movement type is 105.
    error message :
    Material document cannot be processed
    Message no. M7130
    Thanks
    SAP MM

    Steps to do GR along with excise,
    1.Capture excise invoice using J1IEX.
    2. Refer excise invoice no. in MIGO(SAP not recommends to post excise invoice against 105 mvmt against blocked stock)
    3. Post excise invoice using J1IEX

  • Complete sales order after creating proforma invoice

    Hi gurus,
    I am having the following issue:
    I need to generate a proforma invoice. So, I create a new sales order, and then create the invoice based on that same order. The problem is that this sales order keeps its status open, as I understand, because it is pending a delivery. However, I do not wish to create any delivery, only the proforma invoice.
    I have created a new billing document type (based on standard F5), as well as a new sales order type and item category.
    Can anyone give some pointers on what i need to configure in order to not need to create a delivery?
    Thanks in advance!
    Regards,
    Joã

    Your doc config seems to be okay for pro forma invoice..
    Kindly check ur header copying control for Sales Doc to Billing Doc (proforma Invoice).
    In general for this senario it is
    0007-Header/ord.pro forma (E.g. Order related pro-forma invoices can be created to supply customs declarations for non-deliverable items such as services. If a customer has ordered a service, this requirement can be assigned to the header to permit the creation of the proforma invoice.)
    And have look on Billing quantity indicator for copy control item. This specifies which quantity the system copies from the source document (a sales order, for example) into the target billing document (an invoice, for example). When you create an invoice for a standard sales order item, for example, the quantity that the system copies into the invoice is the delivery quantity less the quantity already invoiced. If you create a pro forma invoice, the system copies in the order quantity.
    C and D for pro forma invoices
    Make sure that control of the amount to be billed is directly related to the item category billing relevance.
    As we know,  "relevant for Billing", indicates what the basis for billing should be.
    "D:" Relevant for proforma - The billing relevance indicator must contain a value (not be blank) in order to be able to create pro forma invoices. Indicator "D" can also be used as follows for cross-company-code business processing. In the case of a free-of-charge outbound delivery, the company code that is responsible for the delivery should be granted an internal settlement. You can use indicator "D" to record free-of-charge outbound deliveries and grant internal settlements to the relevant company code.
    One thing I like to point out, the sales order will be in open status, even though it has a pro forma invoice.
    Till you have not create a confirmed invoice (in case of non deliverable item) or delivery for that sales order.
    As you might be aware of, proforma invoice is abridged or estimated invoice sent by a seller to a buyer in advance of a shipment or delivery of goods. It notes the kind and quantity of goods, their value, and other important information such as weight and transportation charges.
    Still, I have one doubt, is your sales order an indicative doc and is not going to have any relevant accounting entry?
    If No, then just give a rethought on your business process & confirm with user?
    Thanks & Regards
    J Prakash.
    Edited by: J Prakash on May 13, 2010 3:44 PM

  • How to create excise invoice with refer to Delivery Note

    Hi SAP Expert,
    I am doing STOCK Transport process from factory to depot and hitting error while creating excise invoice in Factory.
    From SAP help on Creating Excise Invoice, it said :
    From the SAP Easy Access screen, choose Indirect Taxes ® Sales/Outbound Movements ® Excise Invoice ® For Sales Order ® Outgoing Excise Invoice Create/Change/Display ® …
    If you want to create the excise invoice with reference to a pro forma excise invoice or commercial invoice, choose Excise Invoice ® Create.
    If you want to create the excise invoice with reference to a delivery note, choose Exc. inv. for delivery ® Create.
    Enter the number of the reference document.
    - When i created the excise invoice with reference to a STO Delivery Note, i am getting error : " For delivery 800050092 no document of type JEX exist "
    - I already setup the config to assign Delivery Type NL to billing type JEXP.
    I was doing the steps as below :
    1. ME21N u2013 Create Stock Transport Order
    2. VL10B u2013 Create Outbound Delivery w.r.t. STO
    3. J1IIN u2013 Create Outgoing Excise Invoice w.r.t. Delivery Note
    - Anything that i am missing ?

    Hi Guru,
    Thanks for your reply. It is my typo error. I have maintained the delivery type NL to billing type JEX, instead of JEXP
    I am getting error :
    For delivery 800050092 no document of type JEX exist
    Message no. 8I320
    Diagnosis
    The excise reference document defined does not exist for the delivery.
    Procedure
    Create the excise reference document before running the excise posting transaction.
    - What is it means by create the excise reference document before running the excise posting transaction ? Do I need to create Pro-forma invoice prior to execute transaction J1IIN ?
    I did not check the selection for ": Excise Inv during Billing " in my Excise Group maintainance.

  • Syntax error while creating a invoice

    Hi I am new to this forum hope u guys can help me out,
    I am ruuning following syntax for creating an invoice and for this error message is coming which is given below.
    Select aadrnr astdc1 b~name1 into table inv_head1
    From kna1 as a inner join adrc as b on aadrnr = baddrnumber.
    Unknown column name "A~STDC1" . field list. . field list. field list.

    Hi Rupesh,
    u have to mention as " select ... into corresponding fields of
    table ... ".
    regards
    Chaitanya.

  • Require a BAPI which will do VL02N posting,PGI and create an Invoice

    Hi Gurus,
    My Requirement:
    I will be getting an excel file from the legacy system which will provide me with the Delivery numbers whose Shipment has been confirmed.
    I need a BAPI which will post the picking in VL02N for those Deliveries and do the PGI. And post the PGI will create an Invoice through VF01.
    I know its a bit too much to ask for
    Is there any single BAPI which can do these activities (considering that this is a very standard SAP requirement for almost all organizations). Or do we need to use 2 or more BAPI's for the same. Please let me know !
    Many thanks in advance!

    You can use the following Bapi's for PGI:
    WS_DELIVERY_UPDATE
    BAPI_GOODSMVT_CREATE
    MB_CREATE_GOODS_MOVEMENT
    Thanks,
    Anuradha.

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • PROBLEM DURING CREATING AP INVOICE

    DEAR SAP EXPERT,
    I AM HAVING A PROBLEM WHEN I AM GOING TO CREATE AN INVOICE FROM THE DELIVERY. ITS IS GIVING ME THE MESSAGE (2) SALES PERSON IS MISSING. BUT THE THING IS THAT I HAVE ALREADY MENTIONED THE SALES PERSON IN SALES PERSON FIELD. PLEASE GIVE ME THE SOLUTION REGARDING THIS. I AM USING SAP B1 2007 PL10. PLEASE REVERT ASAP

    Hi,
    find this one as what Gordon suggested.
    you can check the SP code from your SQL Management Studio with this path Databases -->> NameOfDatabase -->> Programability -->> Stored Procedure -->> SBO_SP_TransactionNotification
    from this Stored Procedure you need to find this "(@object_type = '18')" 18 is the Object type for A/P invoices.
    hope it helps.
    regards,
    Fidel

  • BAPI to create Excise Invoice and Commercial Invoice

    Hi All,
    Can u tell me the BAPI for creating Excise and Commercial Invoice.
    Moderator message: please do some research before asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Mar 2, 2011 5:56 PM

    Hi,
    You can make the appropriate setting in Customizing for Excise Duty, by choosing Basic Settings -> Maintain Excise Groups, and selecting Create EI (Create Excise Invoice Automatically)
    Also maintain the default excise and series group in the configuration.
    Logistics general>Tax on Goods Movement>India>Basic Settings>Maintain Excise groups. For your Excise group maintain the check Excise invoice during Billing.
    After maintaining the same also maintain the default values in Logistics general>Tax on Goods Movement>India>Business transactions>Outgoing Excise invoices-->Maintain Default Excise groups and Series groups.
    Regards,

Maybe you are looking for