ABAP Tips and Tricks-阿里云开发者社区

开发者社区> 长征1号> 正文

ABAP Tips and Tricks

简介:
+关注继续查看

Retrieving the deleted program

I recently deleted a custom program (which is already transported to production) accidentally and was wondering if there is any method of retrieving the program back. After some research, I found a way of getting back the program. Following are the steps in getting back the program:

1) Create a program with the same name as earlier (which is deleted)  
2) Click on "Utilities" --> "Versions" --> "Version Management"  
3) Select the version of your earlier program and click on display.  
4) Your earlier program is displayed here.     *-- Soumya Ray

Find out in what all Tables a specified field is available.

You can find out through transaction code SE15.

1) Give SE15 on command prompt. 
2) Select ABAP Dictionary 
3) Select "fields" folder 
4) Click on table fields 
5) Then you can enter the desired field name (In your case EKGRP) 
6) Run OR press F8.

The system will list out all the tables which contain your desired field name.

or

1) using  transactin Code  SE11( ABAP Dictionary) 
2) enter the Data table name where-in the respective field (EKGRP) is used eg; EKKO 
3) Click the where -used list button 
4) Check out the box(DB tables) Only .

There you can see entire list of tables containing the desired field.

Here  the difficulty is that one should know at least  the name of the one of the data tables which contain the desired field.

With Compliment by: Manohar TS & Kotha

**********

Find the Table Name For a Field.

I know couple of ways to find the table name for a field. 
like. 
1. Part the cursor at the field and press F1 & F9. 
2. se84 or se15 
3. st05 (sql trace). 
4. Setting Break point in ABAP.

If you will tell other methods it will be apreciate.

**********


How to print Apostrophe using the write statement 
* For e.g. You'll be there. 

report zapostrophe message-id z1.

DATA: LINE(20).

CONCATENATE 'You''' 'll be there.' INTO LINE.

WRITE:/ LINE.

**********

Given a transaction code, how can I find the menu path?

In 4.6c, you can used tcode search_sap_menu to find the SAP MENU tcode.

Please note that there are no tcode available to find the path of the IMG transaction.

**********

How to un-encrypt SAP user password?

It is not possible to un-encrypt the SAP password, because a one-way encoding (with strong 1024 bit key) is used for this. The result is stored and each time one has entered the password the encoding result is checked.

**********

When you delete an entry from an internal table in ABAP, the system has to re-generate the index for all entries after your delete, slowing the report if you have many records to eliminate.

It is much quicker to do an insert of the correct records into a second table than to delete entries from the first. The reason for this is because the index is only generated for the newest element.

**********

If you want to protect a program against debugging, you just have to set the STATUS = S in the attributes view of the main program.

**********

BDC. 
When You use a call transaction ,and populate the BDCDATA table. 
Make sure you pass the "DATE FIELDS" of any transaction by formatting it as  "XX/XX/YYYY"  cos if you pick this data from database it will be of the format 20030505 or something like that. Make sure You pass this value as character field. 
Same is true for the "Rate Fields". Make sure you pass them as "Character Fields" by formatting them.

**********

If you need to find out the Okcodes for BDC sessions, look for program RSBDCCUA and run it for any platform say 'WN' for windows or MC for Mac and it will generate list of function codes

**********

To save the contents of an internal table as a Microsoft Excel Worksheet when debugging code in SAP R/3 Enterprise: 
1. Click on the "Table" button 
2. Type in the name of your internal table in the "Internal table" field and hit Enter. 
3. Hit CTRL + F11 or click on the "Save as Excel Worksheet" button. 
4. Type in the record numbers that you want to save. (Ex. From Line: 1 To Line: 10) Hit Enter. 
5. Save your file.

**********

Starts with a Z is homegrown program 
You cannot be sure that anything which starts with a Z is a homegrown program. 
SAP provide a number of correction programs, especially within the archiving area, which start with a Z. 
For e.g. ZZSTOCKL from note 202345.

**********

Can line-size of abap report large than 255?

You can have line-size upto 1023. 
Along with Report statement pass the line-size as 1023.   Ex. Report xyz line-size 1023.

**********

How to find out the number of days between a given date, excluding Saturdays and Sundays and public holidays?

Try functions, 
=> DATE_CONVERT_TO_FACTORYDATE 
=> HR_HK_DIFF_BT_2_DATES

专注于企业信息化,最近对股票数据分析较为感兴趣,可免费分享股票个股主力资金实时变化趋势分析工具,股票交流QQ群:457394862

本文转自沧海-重庆博客园博客,原文链接:http://www.cnblogs.com/omygod/archive/2007/12/16/997002.html,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
使用NAT网关轻松为单台云服务器设置多个公网IP
在应用中,有时会遇到用户询问如何使单台云服务器具备多个公网IP的问题。 具体如何操作呢,有了NAT网关这个也不是难题。
26789 0
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
10074 0
阿里云服务器ECS远程登录用户名密码查询方法
阿里云服务器ECS远程连接登录输入用户名和密码,阿里云没有默认密码,如果购买时没设置需要先重置实例密码,Windows用户名是administrator,Linux账号是root,阿小云来详细说下阿里云服务器远程登录连接用户名和密码查询方法
11612 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
13882 0
windows server 2008阿里云ECS服务器安全设置
最近我们Sinesafe安全公司在为客户使用阿里云ecs服务器做安全的过程中,发现服务器基础安全性都没有做。为了为站长们提供更加有效的安全基础解决方案,我们Sinesafe将对阿里云服务器win2008 系统进行基础安全部署实战过程! 比较重要的几部分 1.
9158 0
阿里云ECS云服务器初始化设置教程方法
阿里云ECS云服务器初始化是指将云服务器系统恢复到最初状态的过程,阿里云的服务器初始化是通过更换系统盘来实现的,是免费的,阿里云百科网分享服务器初始化教程: 服务器初始化教程方法 本文的服务器初始化是指将ECS云服务器系统恢复到最初状态,服务器中的数据也会被清空,所以初始化之前一定要先备份好。
7365 0
阿里云服务器ECS登录用户名是什么?系统不同默认账号也不同
阿里云服务器Windows系统默认用户名administrator,Linux镜像服务器用户名root
4502 0
+关注
345
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载