set language

在做中东的项目的时候,需要将1,2,3...这样的数字,转换为对应的阿拉伯文字:١   ٢٣。

转换的程序如下:

set language 'A'.
  if    text-001isnot initialandtext-002isnot initialandtext-003isnot initial
    and text-004isnot initialandtext-005isnot initialandtext-006isnot initial
    and text-007isnot initialandtext-008isnot initialandtext-009isnot initial
    and text-010isnot initial.
    replace all occurrencesof'1' incv_input with text-001.
    replace all occurrencesof'2' incv_input with text-002.
    replace all occurrencesof'3' incv_input with text-003.
    replace all occurrencesof'4' incv_input with text-004.
    replace all occurrencesof'5' incv_input with text-005.
    replace all occurrencesof'6' incv_input with text-006.
    replace all occurrencesof'7' incv_input with text-007.
    replace all occurrencesof'8' incv_input with text-008.
    replace all occurrencesof'9' incv_input with text-009.
    replace all occurrencesof'0' incv_input with text-010.
  endif.

其中,text-001、text-002 、text-003 的设置如下图所示,即是1,2,3,4,而不是阿拉伯语的数字。

1-1.png

为什么可以这样做呢?因为set language 'A' 的作用。set language 'A'可以实现语言的转换。

但是,这个转换还需要下面的设置。

在这个代码所在的程序中,点击 菜单 goto ->translation ,在弹出的对话框中选择目标语言 AR

1-1.png

然后,进行如下的设置:其中蓝色部分是我们在text symbols中书写的内容,是源内容。

红色部分是我们要转换成的内容。

1-1.png

参考资料:

http://help.sap.com/saphelp_bw/helpdata/en/e3/960a1aeb0711d194d100a0c94260a5/content.htm

 

当然,并不是每个人都有访问菜单 goto ->translation 的权利。

这个时候,可以直接用下面一条语句直接代替上面的种种。

TRANSLATE cv_input USING '1١2٢3٣4٤5٥6٦7٧8٨9٩0٠'.

 

Exploit IntelliJ IDEA’s unique features to rapidly develop web and Java Enterprise applications Overview Exhibit techniques that improve development performance Present framework support Create an application that explores the features of the integrated development environment (IDE) In Detail IntelliJ IDEA is a commercial Java development tool which competes with the free Eclipse and NetBeans projects. It is an integrated development environment (IDE) designed to automate parts of the coding process; to support a large number of different frameworks, tools, and targets; to work with multiple languages; and not to get in the way of the developer’s work. IntelliJ IDEA also does a good job of keeping up-to-date with the Java platform, subject to the expense of keeping current with the latest product version. A practical guide that will provide you with concepts and clear step-by-step exercises to help you understand and improve your performance. Through this guide, you will be able to extract more from IntelliJ IDEA 12. This book will navigate through the features of IntelliJ IDEA 12 and present the reader with concepts and tips that will give them a greater understanding of this IDE. Using a practical real-world example, readers will learn to develop one application and use some of the features presented. Through clear instructions, you will learn how to integrate the IDE with your favorite bug tracker, take a look at the refactoring approaches that IntelliJ offers, and will quickly understand and use different ways to navigate through the code. This book teaches you how to develop a web application and a simple Swing application. The development of this application will help you to understand how to work with IntelliJ's Swing GUI constructor. The book will also provide a simple code as starting point and will show you how to develop some code. What you will learn from this book Manage your tasks using (or not using) your favorite bug tracker Work with Spring framework with IntelliJ Understand and use the intentions and smart code completion features Create web services using the IntelliJ tools Install and use third party plugins Approach A practical, fast-paced guide with clear, step-by-step exercisesto help you understand the basics of IntelliJ Idea and develop a web application. Who this book is written for This book will be ideal if you are a Java developer who has a little knowledge about IntelliJ and wants to get more information on using it to improve your development performance. Product Details Paperback: 114 pages Publisher: Packt Publishing (October 17, 2013) Language: English ISBN-10: 1849699615 ISBN-13: 978-1849699617 Product Dimensions: 9.2 x 7.5 x 0.2 inches
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值