SAP ABAP: Adding leading zero to char or string.


Here are the three ways to add leading zeros to a char or string.

1). Using numeric and character field with the same length.
DATA: lv_Belnr(10) TYPE C VALUE '48',
            lv_Num(10)   TYPE N.

lv_Num =  lv_Belnr.
ADD 1 TO  lv_Num.
lv_Belnr  = lv_Num .

WRITE  lv_Belnr.

2). Using FM CONVERSION_EXIT_ALPHA_INPUT.
DATA: lv_Belnr(10) TYPE C VALUE '48'.

 ADD 1 TO lv_Belnr.
 
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                   INPUT  =
lv_Belnr          
           IMPORTING
                   OUTPUT =
lv_Belnr. 

3). Using UNPACK.
 DATA: lv_Belnr(10) TYPE C VALUE '48'.

ADD 1 TO lv_Belnr.
UNPACK lv_Belnr TO lv_Belnr.


That's all.
Mabuhay!

Comments

  1. goog blog,thank you for sharing a information to us. online abap training in hyderabad

    ReplyDelete
  2. Nice blog. Thanks for sharing such kind of information. Here we are offering trainings on sap. Classes are designed by industry experts with live project.
    sap po training at mindmajix

    ReplyDelete
  3. Get dominant solutions for QuickBooks towards you right away! Without the doubts, QuickBooks has revolutionized the entire process of doing accounting that is the core strength for small along with large-sized businesses. QuickBooks Support Phone Number is assisted by our customer support associates who answr fully your call instantly and resolve your entire issues at that moment.

    ReplyDelete
  4. clients. In May 2002 Intuit thrown QuickBooks Enterprise Solutions for medium-sized businesses. QuickBooks Enterprise Technical Support Number here to make tech support team to users. In September 2005, QuickBooks acquired 74% share associated with market in the usa.

    ReplyDelete
  5. For any issues such as these, you've probably commendable the assistance of our learned and experienced customer service executives at QuickBooks Enterprise Technical Support Number They move heaven and earth to provide you with the most effective solution they can.

    ReplyDelete
  6. QuickBooks Online Payroll Contact Number
    So so now you are becoming well tuned directly into advantages of QuickBooks online payroll in your business accounting but because this premium software contains advanced functions that will help you and your accounting task to accomplish, so you could face some technical errors when using the QuickBooks payroll solution. In that case, Quickbooks online payroll support number provides 24/7 make it possible to our customer. Only you must do is make a person call at our toll-free QuickBooks Payroll tech support number . You could get resolve most of the major issues include installations problem, data access issue, printing related issue, software setup, server not responding error etc with this QuickBooks payroll support team.

    ReplyDelete
  7. A business must notice salaries, wages, incentives, commissions, etc., it offers paid to the employees in a period period. Most importantly may be the tax calculations must be correct and according to the federal and state law. Our QuickBooks Help Number will really guide you when controling all this.

    ReplyDelete
  8. QuickBooks Enterprise Support Number enables you to manage your business operations by getting you the most recent versions of QuickBooks Enterprise like QuickBooks Enterprise 2019. Just dial QuickBooks Enterprise number to learn the pros and cons of accounting software with the aid of our QuickBooks tech support members.

    ReplyDelete

  9. QuickBooks Enterprise Support – QuickBooks Enterprise Support Number Comes With A Quantity Of Such Features, Which Can Be Friendly To Business And Finance Users. It Can Be Completely Stated As Asoftwarethat Can Be Specialized In Cater The Financial Needs Of A Business Venture Or A Little Company.

    ReplyDelete

  10. QuickBooks Enterprise Support – QuickBooks Enterprise Tech Support Phone Number Comes With A Quantity Of Such Features, Which Can Be Friendly To Business And Finance Users. It Can Be Completely Stated As Asoftwarethat Can Be Specialized In Cater The Financial Needs Of A Business Venture Or A Little Company.

    ReplyDelete
  11. If you wish gain more knowledge on file corruption or any other accounting issues, then we welcome you at our professional support center. You can easily reach our staff via Support For QuickBooks & get required suggestion most likely time. The group sitting aside understands its responsibility as genuine & offers reasonable help with your demand.

    ReplyDelete
  12. QuickBooks Technical Support Phone Number – Inuit Inc has indeed developed a fine software product to deal with the financial needs of the small and medium-sized businesses. The name associated with application is QuickBooks. QuickBooks, particularly, does not need any introduction for itself.

    ReplyDelete
  13. QuickBooks Tech Support Number has completely transformed the way people used to operate their business earlier. To get familiar with it, you should welcome this positive change. Supervisors at QuickBooks Support contact number have trained all of their executives to combat the issues in this software. Utilizing the introduction of modern tools and approaches to QuickBooks, you can test new techniques to carry out various business activities. Basically, this has automated several tasks that have been being done manually for a long time. There are lots of versions of QuickBooks and each one has a unique features.

    ReplyDelete
  14. If you’re encountering any type of QuickBooks Support Phone Number’ related problem, you will get all of that problems solved just by utilizing the QuickBooks tech support phone number.

    ReplyDelete
  15. Our QuickBooks Support Number is often free and active to give you the best QuickBooks customer care because of its great products. So always get-in-touch with your QuickBooks customer support team for fast and simple help and acquire more knowledge or details about the QuickBooks.

    ReplyDelete
  16. Quickbooks Support number get you one-demand technical help for QuickBooks. QuickBooks allows a number of third-party software integration. QuickBooks software integration is one of the most useful solution provided by the software to handle the accounting tasks in a simpler and precise way. You should not be worried about the costing with this software integration because it offers a wide range of pocket-friendly plans which can be used to control payroll with ease.

    ReplyDelete
  17. QuickBooks Error Code 6000-301 encounters while attempting to use a desktop company file. This could be either resolved by fixing manually with guidance received from QuickBooks experts or availing contact support from the specialist.

    ReplyDelete
  18. If an individual looks forward to accounting and financial software this is certainly designed with handling all the matters with payrolls, invoices, managing the balance payments efficaciously and assists the users to keep organized and focused each and every time, the first thing that comes in your mind is QuicKbooks Customer Tech Support Phone Number 1-800-210-5289.

    ReplyDelete
  19. Here we will update you how you can obtain QuickBooks Enterprise Tech Support Number or simple suggestions for connecting QuickBooks enterprise customer support contact number. QuickBooks is financial software that can help small enterprise, large business along with home users.

    ReplyDelete
  20. You need to decide the QuickBooks Support the terribly second you will get a slip-up on your screen. it is potential that you just may lose information, or get corruption in your record or company file if the error prolongs.

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. Get built with probably the most brilliant accounting features such as creating a company plan, easy remote access, QuickBooks Support Phone Number tracking and more.

    ReplyDelete
  23. Comprises of an attractive lot of accounting versions, viz., QuickBooks Pro, QuickBooks Premier, QuickBooks Support Phone Number Enterprise, QuickBooks POS, QuickBooks Mac, QuickBooks Windows, and QuickBooks Payroll, QuickBooks is becoming a dependable accounting software that one may tailor depending on your industry prerequisite.

    ReplyDelete
  24. Quickbooks Error 9999 as during program installation for business. Also an error occurs while Quickbooks is running, during windows startup or shutdown or even during the installation of the Quickbooks software windows operating system. If you would like to learn how to Troubleshoot Quickbooks Error 9999, you can continue reading this blog.

    ReplyDelete
  25. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    https://aditidigitalsolutions.com/aws-training-hyderabad/

    ReplyDelete
  26. Really nice information thanks for sharing very useful............ For more visit chatfuel custoemers database

    ReplyDelete

Post a Comment

Popular posts from this blog

SAP ABAP: Capturing CHECK BOX event in FM REUSE_ALV_GRID_DISPLAY / Cell Editing

SAP ABAP: Smartforms/SAPscript formatting