Save Voucher number This Format type/mm/yy/sequense#

Hellow All
I need Auto Generate sequence number with Voucher Type , Voucher Date Month, Voucher Date Year and Sequence Number Just like
When i Save my Record of Cash Book which date is 20-7-2009 The Voucher number i need
CB/P/7/2009/00001
CB= Cash Book
P= Payment Voucher
7= Voucher month
2009 = Year
And 00001 is Sequence
Any idea
Regards
Shahzaib ismail

Hi Shahzaib Ismail Khan,
You will have to prepend the generated sequence with the cash book, date and whatever your other requirements are.
Use can use the code like below:
declare
seq_num number;
begin
    seq_num := :<block.voucher_type>||'/'||:<block.payment / received voucher>||'/'||:<to_char(:<block.voucher_date>,'MM')||'/'||to_char(<block.voucher_date>,'YYYY')||'/'||<your seqname>.nextval;
You can then use seq_num in your application as the sequence.I hope you understand the logic.
Modify the code as per your need replacing with proper data block name and item.
Hope it helps.
Please mark answer as helpful / correct, if it helps you
Navnit
Edited by: Navnit Punj on 20-Jul-2009 00:30
Edited by: Navnit Punj on 20-Jul-2009 00:36
Edited by: Navnit Punj on 20-Jul-2009 00:37

Similar Messages

  • ICloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone

    In iCloud you have the ability to NOT format phone numbers of contacts; this ability is not available on the contacts of iPhone. If I set-up a phone number in iCloud with NO parenthesis, ex. 123- 456-7899, then this format should be available on the iPhone contact.

    That is correct is doesn't. Standardized formatting of phone numbers in the iOS app is more important because it supports contact from a variety of locations (gmail, hotmail, etc.). iCloud doesn't (not directly).

  • Thank you. Save or print this page for your records. We'll also send you an email confirmation. Case ID: 421912520 You have chosen to call Apple later. When you're ready, call the phone number below during business hours and refer to your Case ID for fas

    Thank you.
    Save or print this page for your records. We'll also send you an email confirmation.
    Case ID: 421912520
    You have chosen to call Apple later. When you're ready, call the phone number below during business hours and refer to your Case ID for faster support.
    1-800-MY-IPHONE
    6:00 a.m. to 11:00 p.m. Central
    iPhone
    Restore or update not working as expected
    You can review this case in the Cases &amp; Repairs section.
    Additional Resources
    Return to Apple Support home.
    Visit your Support Profile.
    Create another support request.
    Your contact information
    Onechai John
    <Email Edited by Host>

    They already have your number and/or email address and maybe have sold it several times already to others as well. They also use number generators - software that will automatically create them - some work and some don't, they don't care, they send out millions and a few will fall for it and send them money. The only way to "hide" would be to change both and your password, but then it would happen again at some point.

  • How can i display page number in this format in xml publisher report (1-1)

    in this format
    1-1
    1-2
    1-3
    2-1
    2-2
    2-3
    can i display page nos in this format in xml publisher please help me on this

    Hi,
    Use the SET COUNTRY..
    SET COUNTRY 'US'.
    write: / sy-datum.
    SET COUNTRY 'IN'.
    write: / sy-datum.
    Thanks,
    Naren

  • Firefox will not save my "Always do this with this file type" preference.

    Alright, bear with me because I am extremely new to Firefox. Anyway, when I download a .torrent file for uTorrent, it asks me the obligatory "What to do with this file type" question. Great. But when I checked to be sure it was opening uTorrent (Yes.) and ticked the "Always do this for this file type" box. Then, I clicked "OK". Awesome.
    Then, after that, when I try to download a .torrent file it asks the same question again. Click click. and again. click click. and again......you get the picture. Why wont it remember this preference?

    Sites override the "Always do this" preference by serving files with a special HTTP header known as '''Content-disposition: Attachment'''
    You can look for this happening by installing the [https://addons.mozilla.org/en-US/firefox/addon/3829 Live HTTP Headers] extension then accessing it from the '''Tools''' menu just before clicking a .torrent link to monitor the headers sent.

  • Whole number field formatted as timezone in CRM 2013 SP1UR1 gives error on saving

    Hi,
    I added a whole number field formatted  as time zone to the appointment form and when I save the record I get an error saying
    Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.InvalidCastException: Unable to cast object of type 'Microsoft.Xrm.Sdk.OptionSetValue' to type 'System.IConvertible'.
    This error is coming from the timezone field and only happens when I have data in the field. Has anyone seen this?
    Thanks
    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    More info, the error occurs on pipeline stage 30 of the Book or Reschedule message and the same thing happens in CRM 2015. I've started a thread on connect with URL
    https://connect.microsoft.com/dynamicssuggestions/feedback/details/1128206/crm-2013-sp1ur1-cant-handle-the-timezone-field
    This must be rather new because I've tried it in CRM 2011 UR late and it did not occur there, I haven't tried CRM 2013 RTM though so I can't say if it's a CRM 2013 or a CRM 2013 SP1UR1 issue.
    BTW, the 2015 org was a complete vanilla so I've pretty much ruled out custom code as a culprit :)
    Regards
    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

  • Dynamically built query on execution How to save the data in Object Type

    Hi,
    In pl/sql I am building and executing a query dynamically. How can I stored the output of the query in object type. I have defined the following object type and need to store the
    output of the query in it. Here is the Object Type I have
    CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPE AS OBJECT(
    pkid NUMBER,
    pkname VARCHAR2(100);
    pkcity VARCHAR2(100);
    pkcounty VARCHAR2(100)
    CREATE OR REPLACE TYPE DEMO.FIRST_RECORDTYPETAB AS TABLE OF FIRST_RECORDTYPE;Here is the query generated at runtime and is inside a LOOP
    --I initialize my Object Type*
    data := new FIRST_RECORDTYPETAB();
    FOR some_cursor IN c_get_ids (username)
    LOOP
    x_context_count := x_context_count + 1;
    -- here I build the query dynamically and the same query generated is
    sql_query := 'SELECT pkid as pid ,pkname as pname,pkcity as pcity, pkcounty as pcounty FROM cities WHERE passed = <this value changes on every iteration of the cursor>'
    -- and now I need to execute the above query but need to store the output
    EXECUTE IMMEDIATE sql_query
    INTO *<I need to save the out put in the Type I defined>*
    END LOOP;
    How can I save the output of the dynamically built query in the Object Type. As I am looping so the type can have several records.
    Any help is appreciated.
    Thanks

    hai ,
    solution for Dynamically built query on execution How to save the data in Object Type.
    Step 1:(Object creation)
    SQL> ED
    Wrote file afiedt.buf
    1 Create Or Replace Type contract_details As Object(
    2 contract_number Varchar2(15),
    3 contrcat_branch Varchar2(15)
    4* );
    SQL> /
    Type created.
    Step 2:(table creation with object)
    SQL> Create Table contract_dtls(Id Number,contract contract_details)
    2 /
    Table created.
    Step 3:(execution Of procedure to insert the dynamic ouput into object types):
    Declare
    LV_V_SQL_QUERY Varchar2(4000);
    LV_N_CURSOR Integer;
    LV_N_EXECUTE_CURSOR Integer;
    LV_V_CONTRACT_BR Varchar2(15) := 'TNW'; -- change the branch name by making this as input parameter for a procedure or function
    OV_V_CONTRACT_NUMBER Varchar2(15);
    LV_V_CONTRACT_BRANCH Varchar2(15);
    Begin
    LV_V_SQL_QUERY := 'SELECT CONTRACT_NUMBER,CONTRACT_BRANCH FROM CC_CONTRACT_MASTER WHERE CONTRACT_BRANCH = '''||LV_V_CONTRACT_BR||'''';
    LV_N_CURSOR := Dbms_Sql.open_Cursor;
    Dbms_Sql.parse(LV_N_CURSOR,LV_V_SQL_QUERY,2);
    Dbms_Sql.define_Column(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER,15);
    Dbms_Sql.define_Column(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH,15);
    LV_N_EXECUTE_CURSOR := Dbms_Sql.Execute(LV_N_CURSOR);
    Loop
    Exit When Dbms_Sql.fetch_Rows (LV_N_CURSOR)= 0;
    Dbms_Sql.column_Value(LV_N_CURSOR,1,OV_V_CONTRACT_NUMBER);
    Dbms_Sql.column_Value(LV_N_CURSOR,2,LV_V_CONTRACT_BRANCH);
    Dbms_Output.put_Line('CONTRACT_BRANCH--'||LV_V_CONTRACT_BRANCH);
    Dbms_Output.put_Line('CONTRACT_NUMBER--'||OV_V_CONTRACT_NUMBER);
    INSERT INTO contract_dtls VALUES(1,CONTRACT_DETAILS(OV_V_CONTRACT_NUMBER,LV_V_CONTRACT_BRANCH));
    End Loop;
    Dbms_Sql.close_Cursor (LV_N_CURSOR);
    COMMIT;
    Exception
    When Others Then
    Dbms_Output.put_Line('SQLERRM--'||Sqlerrm);
    Dbms_Output.put_Line('SQLERRM--'||Sqlcode);
    End;
    step 4:check the values are inseted in the object included table
    SELECT * FROM contract_dtls;
    Regards
    C.karukkuvel

  • 'Save As' to JPEG format (or to TIFF)

    The 'Save As' command produces 20 different file format options to choose from. When 'saving as' to the default PSD format, the selection is obviously quick and easy. However I mostly 'save as' to JPEG format or TIFF format and it is awkward to make the JPEG or TIFF format selections each time.
    After doing 'Save As', I have been clicking on 'Format' and then typing 'j' or 'ti' to bring up JPEG or TIFF from the menu of 20 formats to speed up the selection a little bit as compared to scrolling through the Format menu.
    But it would be much easier to have a script that could bring up a modified version of the "Save As" dialogue box so that 'Save As' to JPEG format or 'Save As' to TIFF format could be executed very efficiently and without having to wade through the clutter of the 17 other file formats in the Format menu which I hardly ever use.
    I have done a fair amount of web searching, including on ps-scripts.com, but so far without finding a good solution to this. Any help would be much appreciated.
    Of course I have thought of creating an Action (with assigned keyboard shortcut) which saves to JPEG and another Action which saves to TIFF. However, the saved file then always ends up in one location and with the same file name, therefore often requiring the additional steps of renaming and moving the file.
    Batch processing of Actions (perhaps in conjunction with the Image Processor script) is perfect for batches, especially for large batches but I was hoping for something quick and easy for saving files individually.
    Thanks!
    Geoff
    P.S. I also tried finding a way of disabling all the 'Save As' file formats which I never use so that the 'Save As' format choices would be very few (i.e. 3 or 4 instead of 20) but have had no success there.

    It's been awhile since I played with the saveAs function.
    Pretty sure you have to type the file name in the save dialog
    Here is a function I created for work.
    I removed a lot of code from it that doesn’t pertain to this topic but the code should work
    This might help you with a little more understanding and show how you can hard code where to save without even bringing up a dialog box
    saveAsPNG( filelocation + filename )// usage
    function saveAsPNG( where ){
                   var tmpFile = File(where + '.png' );
                   var pngOpts = new ExportOptionsSaveForWeb;
                        pngOpts.format = SaveDocumentType.PNG
                   //     pngOpts.PNG8 = true;
                        pngOpts.transparency = true;
                   //     pngOpts.interlaced = false;
                        pngOpts.quality = 100;
                   app.activeDocument.exportDocument(tmpFile,ExportType.SAVEFORWEB,pngOpts);
              return true;

  • Cannot find format type named Date/Time

    Running latest Dreamweaver on Vista - I get a nasty pop-up
    window if I try to edit one of the predefined date formats -
    "Cannot find format type named Date/Time."
    I've tried deleting configuration setting to no avail. Anyone
    else experienced this problem or have any suggestions ?

    Hello
    It looks like that you had not installed the ADS(Adobe Document server) for the PDF type reports. Please check with your basis team if you want to configure ADS.
    If you need the output as a sapscript then please do the sollowing steps:
    (1) Execute transaction SM30
    (2) Enter 'Table/View' as V_T5F99OCFT
    (3) Select 'Maintain' option.
    (4) Select 'New Entries' option from the Application Too
    (5) Enter following entries:
         Logical Form Name    = HR_IN_EPF12A_99M
         Form Variant         = (Leave this field blank)
         End Date             = 31.12.9999
         Start Date           = 01.01.1990
         Form Type            = SAP Script (SSC)
         Def. Type            = (This field should be checke
         PDF Form Name        = HR_IN_EPF12A_99M
         SAP Script Form Name = HR_IN_EPF12A_99M
         Smart Form Name      = (Leave this field blank)
    (6) Save the entries
    The above example I have given you is only for the form 12A.
    You have to make entries for all the reports sapscript in this table.
    Please goto SE71 -> F4 -> Payroll -> Payroll India here you will find
    all the sapscripts you require.
    Regards
    Ramana

  • How i add voucher number with invoice approval notification in ap.

    our clients wants that he got the notification with voucher number in ap ............. please helppp.....your immidiate response will be highly appreciatable.
    thanx alot in advance
    rgds
    s.m.umais

    Hi sundeep,
    i try to change the body type so many time but still no outcome comes . what is actually the procedure to get notification with voucher number on approval. ap invoice approval or system mailer which help me to customise this ?????????
    wa8in for you reply :)
    thnx & rgds
    umais

  • Writing in this format "9999999-99" without write the symbol "-".

    I have a text field that i want to writing in this format "9999999-99" without write the symbol "-" (see image 1).
    What i want is to typing the first numbers and by him self skip the next character who is the symbol "-" and type the last two numbers.
    The first look before write anything is like the the image 1. With the symbol "-" stable and read only.
    After that i want the number to shown it as barcode below (see image 2).
    Image 1
    Image 2
    Thanks
    KE.

    Hi Justin,
    Can you be more specified? How to add a calculate event on a barcode field? Where i have to add this (this.rawValue = lanumber.formattedValue;) or this (this.rawValue = firstSeven.rawValue + "-" + lastTwo.rawValue;)?
    When i add the edit pattern "999999999" i get an error which have to add another one "9" to be equal with the comb field (see image below).
    Thanks
    KE.

  • Assigning format/format type to entity or view attribute

    When I edit a entity or view attribute and click on the Control Hints node, the Format and Format Type fields are disabled.
    The online help mentions "mapping of the domain type to it’s available formatters" but in this particular instance I am not using a domain type.
    Does the attribute have to be of a domain type in order to specify a format type and format for that attribute?

    It looks like the attribute formatting only works for numbers and dates. I was trying to apply the formatting to a string (social security number).
    Still not sure if this is a bug or by design.

  • HT3275 I need to use a Western Digital external drive on both my Mac and a PC.  To do this I need to format the drive in FAT 32.  However, Time Machine won't recognize this format.  Is there a work-around?

    I need to use my external drive on my Mac and a PC, so I formatted it in FAT 32.  I found that Time Machine doesn't recognize this format and cannot back up to it.  So, if I want to use Time Machine I need to go back to a Mac format.  Is there any way to get Time Machine to save onto a FAT 32 formatted drive?

    It's usually not a good idea to use a Time Machine drive for anything else. It's too easy to make mistakes, or not do regular backups, or run out of space.  See Time Machine - Frequently Asked Questions #1 and 3.
    But you can create a second partition on the drive, for use with Windoze.
    See #5 in the FAQ for formatting instructions.  You'll need to select 2 partitions.  It's usually best to put the Time Machine partition first, and it should have the Mac OS Extended (Journaled) Format.  Make the second one MS-DOS (FAT), although you might prefer ExFAT.
    Be sure to specify the GUID Partition table.

  • HT2443 loops are in the browser when you the loop message reads this file type is not supported

    loops are in the browser when you the loop message reads this file type is not supported

    gloucester
    In case you did not find it, the following is a copy/paste of the Announcement on Premiere Elements 19/NVIDIA GeForce
    that appears at the top of this forum.
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing
    Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling
    back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow
    glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies
    to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of
    the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere
    Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    ATR

  • Problem with "Save as Adobe PDF format" in Excel and Word

    Hi
    When I use printing zone in Excel and make a «Save as Adobe PDF format» (menu File / Save as Adobe PDF), the first save is well done. But when I make it a second time, what's not in the printing zone is printing in the document.
    I have also problem with the «Save as Adobe PDF format» in Word. The images superposition are not well print.
    I'm using Windows 7 in french, Office 2010 french and Adobe Acrobat XI standard. All is in the latest version.
    Thanks

    The Save As PDF feature in Office2008 Call up a PDF  Creator similar to the AdobePDF Print Driver. whch OX.6 can't use.
    To create Pdf you have to use method used:
    http://indesignsecrets.com/acrobats-adobe-pdf-printer-replaced-in-snow-leopard.php
    Not before you attempt to use this method if  Rossetta is not installed. pop in your Systems DVD and install Rosetta. Then follow directions to install the Adobe Quality PDF Automator Script which will show up in the Print Menu. Click on Print > then click PDF. Then Click on Adobe quality PDF.  AS for setting up Job options and other details Supposedly your suppose to  have access. But I have no idea.
    First thing Rosetta should be installed out of the box. and Second Adobe should install this Script from their installer. So their should be no intervention from the user. it should just work. Early report when OSX.6 first came out almost no one was able to get this to work. and I see periodic reports that people still can't get it tork and they have to to resort to saving as .ps files then droping on distiller.
    Good luck.

Maybe you are looking for

  • How do i install my itunes account on window 8.1

    I am having trouble intalling my iTunes account on to my laptop that is running Windows 8.1.  Every time I try to install it I get an error message that says I don't have apple support and to uninstall and reinstall it.  I don't know what to do.

  • HOW TO CONNECT E51 WIFI TO PC

    HI M SWAPNIL I HV E51 WITH WIFI CONNECTION BUT MY PC DONT HV WIFI HOW 2 ACESSES INTERNET USIG WIFI OF MY E51??? HELP ME. THANKKS

  • Landing Charges

    Hi Gurus In imports po i want the landing charges 1% to be propsed automatically in the PO conditions . How do I do it? Regards

  • Xhost + command not found in solaris

    hi i am installing oracle 10g rel 2 on solaris 5.10. i hv set all environment.. and then i entering xhost + command it gives an error. kindly acknowledge. -Yuvraj

  • Syntax errors in update query with inner joins and sub query.

    Below is the query: UPDATE sp_CFQ_Coord_Corrections  INNER JOIN (CFQ_Coord_Corrections  INNER JOIN CFQ_Referrals ON CFQ_Coord_Corrections.CorrID = CFQ_Referrals.RecID)  ON sp_CFQ_Coord_Corrections.ID = CFQ_Referrals.RecID  SET CFQ_Coord_Corrections.M