Check number print with two zero starting

I want add to zero before check number, example 4562  to be printed as 004562.
SELECT 'xxxxx' as 'Debit A/c No',
T1.DocDate as 'Date',
T1.DocNum as 'Txn Ref',
T1.CardName as "Benificiary Name",
'CHK' as 'Payment Type',
T1.DocTotal as 'Payable Amount',
' ' as 'Benificiary A/c No',
' ' as 'IFSC Code',
' ' as 'Type of A/c',
'Bangalore' as 'Pay Location',
'Bangalore' as 'Print Location',
'4' as 'Delivery Opt',
' ' as 'DOP',
' ' as 'Bene. Address 1',
T5.CheckNum as 'Cheque Number',
' ' as 'Print Date',
T4.NumAtcard as 'INV Number',
' ' as 'Inv Date',
' ' as 'INV Description',
' ' as 'Gross Amt',
' ' as 'TDS',
T3.SumApplied as 'Net Amt',
' ' as 'email I D 1',
' ' as 'email I D 2',
' ' as 'email I D 3',
' ' as 'email I D 4',
' ' as 'email I D 5'
/* From */
FROM dbo.OCRD T0
INNER JOIN dbo.OVPM T1 ON T0.CardCode = T1.CardCode
INNER JOIN dbo.VPM2 T3 ON T3.DocNum = T1.DocNum
INNER JOIN dbo.OPCH T4 ON T4.DocEntry = T3.DocENtry
INNER JOIN dbo.VPM1 T5 ON T5.DocNum = T1.DocNum
/* Where */
WHERE T1.DocDate >= [%0] AND T1.DocDate <= [%1]
/* Order */
ORDER by T1.DocDate

Hi,
Please try this,
SELECT 'xxxxx' as 'Debit A/c No',
T1.DocDate as 'Date',
T1.DocNum as 'Txn Ref',
T1.CardName as "Benificiary Name",
'CHK' as 'Payment Type',
T1.DocTotal as 'Payable Amount',
' ' as 'Benificiary A/c No',
' ' as 'IFSC Code',
' ' as 'Type of A/c',
'Bangalore' as 'Pay Location',
'Bangalore' as 'Print Location',
'4' as 'Delivery Opt',
' ' as 'DOP',
' ' as 'Bene. Address 1',
'00'+CAST(T5.CheckNum AS NVARCHAR(20)) as 'Cheque Number',
' ' as 'Print Date',
T4.NumAtcard as 'INV Number',
' ' as 'Inv Date',
' ' as 'INV Description',
' ' as 'Gross Amt',
' ' as 'TDS',
T3.SumApplied as 'Net Amt',
' ' as 'email I D 1',
' ' as 'email I D 2',
' ' as 'email I D 3',
' ' as 'email I D 4',
' ' as 'email I D 5'
/* From */
FROM dbo.OCRD T0
INNER JOIN dbo.OVPM T1 ON T0.CardCode = T1.CardCode
INNER JOIN dbo.VPM2 T3 ON T3.DocNum = T1.DocNum
INNER JOIN dbo.OPCH T4 ON T4.DocEntry = T3.DocENtry
INNER JOIN dbo.VPM1 T5 ON T5.DocNum = T1.DocNum
/* Where */
WHERE T1.DocDate >= [%0] AND T1.DocDate <= [%1]
/* Order */
ORDER by T1.DocDate
Thanks

Similar Messages

  • When using a chart in Pages, the first zero is deleted in any number beginning with a zero

    When using a chart in Pages, the first zero is deleted in any number beginning with a zero (for example, 055). How do I stop this?

    The leading zero in the value 55 is unnecessary, so Numbers eliminates it for cells formatted as Number or Automatic. A cell formatted as Text prior to making the entry will take whatever you type into it and keep it as entered. A cell formatted as Numeral System will display as many places as you tell it to, and will add zeros as necessary without your even having to type them in.
    Jerry

  • Auto Check Number printing

    Hi experts,
    We are using SAP Business one 2007 B PL 015. we have used copy express for pushing master data from one database to another. The newley configured system has a challenge. we have not configured the auto check number but when i enter check number manually in out going payments and add the document the check number remains the same,but when i go for checks for payment and priny my check system is automatically changing my check number and printing. The check number mentioned manually is vanished and the new check number  is saved in out going payment.
    Can any one help me out in resolving this issue ASAP.
    thanks in advance.
    Regards,
    Nani

    Hi Gordon,
    Earlier also it was manual and now also they are using manual but system is automatically pulling the next check number. To test that i had created a new database and posted an outgoing payment system is automatically updating the check  number with 1. The issue is S1 so any one please help me to resolve this. Iam thinking to post to service.SAP . shall i bcoz iam unable to find the solution to this issue.
    Regards,
    Nani

  • How do i check number datatype with precision is 6

    Hello,
    If a variable is declared as number datatype with precision 6.
    Foe testing purpose ,i want to check which value is having precision >6
    because iam getting ORA-06502 error PL/SQL numeric or value error
    what can be the reason

    Hi Kamal,
    In my case everyday a nightly job is executed to execute the stored procs
    and stores the errors in error table,
    The complete eror description is
    error in updating grant_vest_estm_amrtzn redistributing the overlapping expense ORA-06502:PL/SQL numeric or value error
    Here is the query-- which is placed ina stored proc
    o_Error_Text := 'Error in updating GRANT_VEST_ESTM_AMRTZN redistributing the overlapping expense ' ;
    EXECUTE IMMEDIATE 'UPDATE GRANT_VEST_ESTM_AMRTZN
    SET GRN_ESTM_TRNCHE_EXPS_Y = :1,
    GRN_AMRTN_ORIGL_TRNCHE_EXPS_Y = :2,
    GRN_VEST_ADJST_OPT_Q = :3
    WHERE ORG_GRP_I = :4
    AND GRN_N = :5
    AND GRN_VEST_D = :6'
    USING V_GRN_ESTM_TRNCHE_EXPS_Y(I), V_GRN_AMRTN_ORIG_TRNC_EXP_Y(I), V_GRN_VEST_NEW_ADJST_OPT_Q(I),
    I_ORG_GRP_I, NEW_GRN(I), V_GRN_VEST_D(I);
    V_GRN_ESTM_TRNCHE_EXPS_Y(I) are calculated based on some conditions
    for example
    V_GRN_ESTM_TRNCHE_EXPS_Y (I) := V_GRN_ESTM_TRNCHE_EXPS_Y(I) +
    ( (V_REM_GRN_VEST_ORIGL_OPT_Q(I) / V_GRN_VEST_OLD_ORIGL_OPT_Q(J)) * V_GRN_ESTM_EXPS_Y(J));
    V_GRN_AMRTN_ORIG_TRNC_EXP_Y(I) := V_GRN_AMRTN_ORIG_TRNC_EXP_Y(I) +
    ( (V_REM_GRN_VEST_ORIGL_OPT_Q(I) / V_GRN_VEST_OLD_ORIGL_OPT_Q(J)) * V_GRN_ESTM_ORIGL_A(J));
    V_GRN_VEST_NEW_ADJST_OPT_Q(I) := V_GRN_VEST_NEW_ADJST_OPT_Q(I) +
    ( (V_REM_GRN_VEST_ORIGL_OPT_Q(I) / V_GRN_VEST_OLD_ORIGL_OPT_Q(J)) * V_GRN_VEST_OLD_ADJST_OPT_Q(J));
    V_REM_GRN_VEST_OLD_ORIGL_OPT_Q(J) := V_GRN_VEST_OLD_ORIGL_OPT_Q(J) - V_REM_GRN_VEST_ORIGL_OPT_Q(I);
    V_REM_GRN_VEST_ORIGL_OPT_Q(I) := 0;
    Looking forward for the response

  • External number Range with leading zeros for Handling Units

    Hi Experts
        My requirement is to use the External number for the Handling Units provided by vendor.That number starts with 2digits"00"+18  for Example:00123456789123456789
      I am Using HU_VEKP Object for no range and maintaining
    External No Range From 00000000000900000000 to 00000000000999999999.
    But When i am giving Number 00000000000900000001 its only taking
    900000001.
    Kindly suggest me the right way to take leading zeros.
    Rewards for answer sure if it works.
    rajesh

    Hi Laksmipathi
                          I am maintaining the number range for External number range coz its vendor supplied HU.
               But the prefix zeros has meaning for identifying the Handling unit Functionality.In realtime IF prefix contains Say "0000" it refers to carton
    If prefix contains say "0010" it refers to pallet.
               So i need to satisfy there requirement.For example If it is for material number we can maintain In OMSL by check box of leading zeros.
                But i am not able to find any setting for this Handling units.U can check this object HU_VEKP in SNRO tcode where i am maintaining Number range.
    Thanks give suggestion
    RajeshS

  • Is It Possible to Have an Axis Scale with two Zeros?

    Greetings All,
    I am currently working on modifying a plot for a program that runs an object through 360 degrees and would like the x axis (degrees) display to reset to zero whenever I scroll past 360 to the right, or reset to 360 whenever I scroll past zero to the left.  The reason I would like to add this feature is because the program will frequently be used to "zoom" in on 30 degree intervals. So let's say I centered my graph at 0 degrees.  Then I would like it's Min to display as 345 degrees, and its Max to display as 15 degrees.  As it is, right now my program displays -15 as the Min and 15 as the Max.   
    Does anyone know of any possible way of doing this without manually editing the values on the axis?

    I've attached two (cropped) screenshots showing the X-axis for when the plot is centered at 0 degrees and for when the plot is centered at 360 degrees.  In both cases, the plot has a width of 38 degrees.  Unfortunately, the plot is too wide to fit on one screen, but you can surmise that for a 0 degree center it goes from [-19,19] and for a 360 degree center, it goes from [341, 379].
    This is what I want the axis to actually display left to right:
    0 Degree Center
    341, 342, 343, 344...359, 360/0, 1, 2... 15, 16, 17, 18, 19
    360 Degree Center
    341, 342, 343, 344...359, 360/0, 1, 2... 15, 16, 17, 18, 19
    So Both centers should display the same, since they are at the same angular position.  Hope this clarifies things a bit.  Thanks. 
    Attachments:
    Center0.PNG ‏36 KB
    Center360.PNG ‏36 KB

  • Scan and check the printer with Icon

    I have a HP Deskjet Ink Advantage 4625 and after upgrade to Win 8.1 it´s imposible to open the Icon "HP Deskjet 4620" on my desktop HP Pavillion Slimline 400-050br. Because of this I cannot check or scan etc from the desktop but have to do it from the printers screen.
    I tried many times to download the program again and tried the CD but it´s only install the basic version even if I download the full version.
    If I rightclick the Icon and try to find out why it´s not working I got the answer "It´not compatible"
    BR
    Björn

    Hello @Jocke40 , and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are experiencing scan issues.  I would like to help.
    I would suggest Uninstalling the Printer Software.
    Once it is uninstalled, I would suggest putting your system into clean boot mode within the Microsoft configuration.  You can do so by following this document: How to perform a clean boot in Windows.
    Once the computer is in clean boot mode, I would suggest reinstalling the HP Printer Install Wizard for Windows.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How to configure and share one HP printer with two imac's?

    Hello...
    Care to explain how can another imac os x leopard 10.6.8 without printer to print wireless with this imac os x mountain lion 10.8.3 that is wired usb directly from hp laserjet p2035n and plus I had it wired ethernet from hp laserjet p2035n to d-link router DES-1105. 
    It is amazing that I could not figure how... 
    PLEASE HELP,  thanks in advance!!!

    OS X Mountain Lion: Share your printer

  • Can Check Number be start with zero?

    Dear all,
                   I knew that check number on SBO is numeric but check number of my country some number can start with zero and it effected to check number printing form. So, I'm not sure whether we can set check number to be charactor or not. Or how to apply for this issue, pls. suggest.
    Thanks you very much.
    Angnam

    Hi,
    It is not possible to set check number as alphanumeric, you can use remarks field to enter check number or any other filed that you think is not required and can be used as check number.
    it is not possible to add UDF in checks for payment . if you are using payment method checks tab, you can use UDF.
    Thanks,
    Neetu

  • Multipages with same check number

    While printing check, I have 100line items for same vendor. going to give single check . while printing with standard program and layout,it is printing 3pages and printing 3checks in each page.it is creating first 2 voided check and 3rd one is original.but issue is, it is creating 3 checks in different numbers.if it is 100001,100002,100003 three check, 100001,100002 is voided and 100003 is original check. but for my requirement all the page should have same check number and 2pages voided and 3rd page is original check.100001(voided),100001(voided),100001(original)like this has to print.can any1 help on this ?

    Hi ,
    See whether this will be useful to u .....
    The print program is RFFOUS_C, see if the checkbox "Do not Void any Checks" is off or on.
    This setting has influence on the check numbers being consumed for multi-page check printing.
    Is it multiple pages due to a long remittance advice (item list)?

  • Why isn't Voided overflow check number visible in the Payments Workbench in AP

    We are in R12.1.3 with AP.B.  We create a payment check and the total line number is 40 lines.  It has reached the maximum line number of 34.  So, the check printed with two check numbers.  One check number is NEGOTIABLE with the actual dollar amount, and other check number has a void overflow attach with 0 dollar.  We can't see the void overflow check in the Payables Payments form.  I also don’t see the void check number in the ap_checks_all table.  Where is the voided overflow check?  Why can I see it in the payment form?   Can anyone help?
    thanks.

    Hi,
    Please see note 944149.1: R12: Why Aren't Voided Overflow Check Numbers Visible in the Payments Window in AP?
    As part of the note, they explain:
    In R12, you can see the voided overflow checks in the Payments tab of the Payments Manager and on the associated Payment Instruction Register, but not in the Payments Window in R12.   When questioned about the change, Development's response is:
        "AP is in charge on invoices, and its users need to know only that invoices were paid, not how they were paid. IBY is in charge of the details of payment processing, and its users need to know exactly how invoices were paid. That dichotomy explains why IBY stores overflow document information but does not pass that information to AP.
        We understand, of course, that the AP user (in charge of invoices and invoice selection) is often the same as the IBY user (in charge of the actual payment process). That's why, instead of forcing the user to go to the IBY responsibility and Dashboard, AP provides the Payment Manager dashboard, which is queried from IBY tables. (As noted in the bug, the overflow documents are visible in the Payment Manager Dashboard.)"
    Enhancement Request Bug 6665668 has been filed with Development to change the code to allow the void information to pass to AP so it can be seen in the Payments Window, and in more AP reports."
    Regards,
    Cheryl

  • Single check (single check number) for mulitple page

    While printing check, I have 100line items for same vendor. going to give single check . while printing with standard program and layout,it is printing 3pages and printing 3checks in each page.it is creating first 2 voided check and 3rd one is original.but issue is, it is creating 3 checks in different numbers.if it is 100001,100002,100003 three check, 100001,100002 is voided and 100003 is original check. but for my requirement all the page should have same check number and 2pages voided and 3rd page is original check.100001(voided),100001(voided),100001(original)like this has to print.can any1 help on this ?

    Hi Lak,
    Option 1: You can do this if you have centralized payment system. That's one company paying for the multiple company codes.
    You can then do following customizing:
    1) In fbzp " All company codes" make sure paying company code is same for different sending company codes
    2) Do cross-company customizing "OBYA"
    Option2: If you don't have a centralized payment system, there could be possibilty to address you need, by adjusting the SAP script form for check. From good accounting practice point of view it might now be advisable. Moreover, if you are running check extract for Bank (Positive pay file) keep in mind SAP extracts check info per company code (Standard), so you will need some development. And you loose some reporting functions for check too. Moreover, I am not sure how will you handle the check reversal. It might involve multiple steps, since you can use the standard FCH8.
    Unfortunately the payment grouping key ZGRUP is defined at the company code level
    Thanks
    Ron

  • Create one project with two images- DUHHH

    Sorry I am struggling with the learning curve.
    I want to simply create a high quality print with two photos arranged using the Book's cool sample templates.
    I have arranged the images within a Book template.
    It only takes one page and Book must be an even number of pages. How can I export the one page- or what other element of Aperture should I be using?

    Hi,
    yes, I think to remember that there is support for a single style only. If you need another one too then you create a new project.
    Frank

  • Download records to EXCEL file with  Leading Zero's for numbers

    Hi All,
    I am able to download the data to EXCEL file on the presentation server.
    There are few fields (Plant,SalesOrder Number ..with Leading Zero's) in the record.
    These values are downloaded with out Leading Zero's to excel( EX: 0000004122 as 4122).
    Please help me to download the data to EXCEL file with leading zero's.
    Thanks and Regards,
    KC

    >
    Krishna Chaitanya  G wrote:
    > The excel file which is to be downloaded..will be used by some other program..to upload the values to the sap.
    > It matters there....
    > KC
    HI KC,
    then no need to download the zeros,
    after uploading, loop at that uploaded internal table and use CONVERSION_EXIT_APLHA_INPUT and pass the vbeln(without zeros) to this FM, it will return the value with added zeros.
    hope this solves your query
    a small example
    Loop at itab into is.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    INPUT = is-vbeln "(  this is without zeros)
    IMPORTING
    OUTPUT = is-vbeln. "( this is with leading zeros)
    modify itab from is.
    endloop.
    Edited by: Soumyaprakash Mishra on Oct 6, 2009 2:16 AM

  • Check Number field in FBL3N

    Guys,
    Do we have any option to include check number in FBL3N. When I take the display of my main cash account in FBL3N, I need to see the check number as well to figure out if there are more than 1 checks with the same amount.i.e: If there are 2,3 checks of 20,000 each are there in the  list.I like to see the check number asociate with those line items.Is it any way or we need to modify the table.Thanks
    Iqtidar

    Hi Iqtidar,
    I don't have a straight forward answer for your query.
    You can think of using Substitution, with an User Exit, that can be used to populate the check number in one of the unused BSEG fields
    But, there is a simple workaround.
    You can create an query (SQ01) with Info set built on PAYR table.
    In the selection screen user
    PAYR-UBHKT ( GL a/c No for our bank a/c / bank sub-a/c)
    along with other selection parameters like
    PAYR-ZBUKR (Paying company code)
    PAYR-HBKID (House Bank)..........
    Let me know if this is helpful.
    Thanks
    Kalyan

Maybe you are looking for