日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何实现标准TCODE的屏幕增强

發(fā)布時間:2024/4/17 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何实现标准TCODE的屏幕增强 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

如何實現(xiàn)標(biāo)準(zhǔn)TCODE的屏幕增強(qiáng)(HOWTO:Implement a screen exit to a standard SAP transaction)

Introduction

SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what isprovided.

To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.


To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:

  • An append structure in the database table with the new fields.
  • A subscreen area into the standard screen – where the programmer can attach his subscreen of his own program with the new fields.
  • A function group under which the new subscreen has to be created with the new fields.
  • Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen – so that data?can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist?in the same function group under which the subscreen will have to be developed.

Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer.

Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of?the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not?a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under?which the subscreen has to be developed.

Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD).

Pre-Requisites

The developer to work on screen exit should have essential knowledge on the following:

  • DDIC concepts, including the knowledge of append structure.
  • Concept of SAP Enhancements and implementing them using Projects.
  • Concept of function exits.
  • Knowledge on Module Pool – including subscreens, Tabstrip controls etc.

Steps

Guidelines

So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:

Find out the Required Enhancements

  • Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘SAP Applications’. A list will appear?that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest – for e.g., Purchasing, Asset Accounting, etc.
  • Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is?required for your development.

Utilize the Enhancement in a Project

After you have found one, do as directed in the documentation. Generally, the steps are as follows:

  • Create a project using CMOD including your enhancement.
  • Create the append structure with new fields.
  • Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required.
  • Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the?SAP transaction.
  • Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be?done in the project (developed by CMOD including the enhancement) or outside as a part of configuration.
  • Activate the project.
  • Test to ensure that required functionality are met.

Case Study 1

Add three new custom fields for Asset master and maintain information for them

Requirement

Three fields in the legacy system have to be maintained in Asset master. These fields are:

  • Original Asset number – 20 characters
  • Location 2 – 15 Characters.
  • Model no – 20 characters

Location 2 should start with ‘L’.

Pre-Analysis

Finding out the Enhancement

As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be?viewed by transaction SMOD):

Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit?Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing?Include Include structure to add new fields

Studying the Function Exits

The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for?their use:

EXIT_SAPLAIST_002

Function module Level Documentation

This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the?data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose?of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important?for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens areprocessed.

Import Parameters

Understanding

This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its?underlying program. Import parameter?: I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.

EXIT_SAPLAIST_003

Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose ofthe function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter?for this function module is:

Understanding

This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be?saved into the database.

Studying the Documentation of the Enhancement

The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a?subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers?to the global data of the function group XAIS, then those values will also be available to these function exits as well.

Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:

Deciding the Final course of Action

After making all the investigations, the final course of action was determined.

SrlNo Step Justification

  • A project has to be created using transaction CMOD where the enhancement AIST0002 will be included.
  • Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended?to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen.
  • A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be ‘CUST’ (or any?name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen.

In the PAI of the subscreen, validation for Location to start with ‘L’ will be added. The subscreen with three new fields has?to be developed so that it can be attached to a subscreen area of the asset master screens.

  • In the custom include of the function exit module ‘EXIT_SAPLAIST_002’, the following code will be written:-

ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three?new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP?main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring?to ANLU of XAIS) get populated.

  • In the custom include of the function exit module ‘EXIT_SAPLAIST_003’, the following code will be written:-

E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will?pass the data back to the SAP main program as E_ANLU.

  • Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This?has to be done – otherwise, the new custom subscreen will not be displayed in the Asset master screens.

Development

Creating a Project to include the enhancement
  • Go to transaction CMOD and create a project.
  • Enter a description for the project. Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
  • Enter the name of the enhancement and Save.
  • Go to ‘Components’.
Creating Custom Include for ANLU

The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure?to create it.

Create the include structure with three new fields, as required. Then, save and activate it.

Develop the subscreen and the program

Go to transaction SE80. For the function group XAIS, create a new subscreen 9000.

Create it as subscreen.

Then, go to the Layout of the screen and create three new fields from Database table ANLU.

Drag the fields in the screen body and place them.

Then, save and activate the screen and come back to screen flow editor.

Create the PAI module to add validation for field “Location 2”, as required .

Activate the whole function group and come out.

Write code in the Function Exits to synchronize the programs

Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between?the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits.

Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction:

Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program.

Then, activate everything – the whole project and come out.

Complete the configuration to link the subscreen

The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of?the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO.

Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab?pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned.

Here, the requirement is to create these three custom fields in the tab page ‘General’ of asset master screen ( AS01/AS02/AS03/AS91).

Determine the Layout

To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class ‘1000’ and click on folder ‘General Assignment of Layout’.

Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout ‘SAP’ cannot be changed, it has?to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here.

Create new tab layout

Go to transaction AOLA. Copy the tab layout ‘SAP’ to create another layout, say, YSUB.

System will copy all the settings and will inform you about that.

Select your newly created layout and double-click on the folder ‘Tab page titles’.

You want to put your custom fields in the tab page “General”. So, select this tab page entry and double-click on the?folder "Position of Groups".

Here, all the field groups currently residing in the tab-page “General” are shown. Add an entry for your newly created fields.

Select the group box from the list. An entry will come with “U” padded with the custom subscreen prepared by you.

Then, save and come out.

Assign the new Layout to Asset Class

Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000.

Save and come out.

Test the Exit

Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You?will see your new fields added to the screen. Add values to them…save. Then, enter into the tcodes again to see whether the?values entered by you are being displayed or not.??

相關(guān)連接: http://blog.cto360.com/CompassButton/archive/2005/02/05/281437.aspx

轉(zhuǎn)載于:https://www.cnblogs.com/goodsmith/p/3596810.html

總結(jié)

以上是生活随笔為你收集整理的如何实现标准TCODE的屏幕增强的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 修女也疯狂3免费观看完整版 | 四虎影视免费永久大全 | 夜久久久 | 奶罩不戴乳罩邻居hd播放 | 91超碰免费 | 99ri视频| 一级做a爱片性色毛片 | 婷婷激情五月 | 寂寞人妻瑜伽被教练日 | 色婷婷视频在线观看 | 国产一级一区 | 熊出没之冬日乐翻天免费高清观看 | 国产av剧情一区二区三区 | 国产一线av | 久久久久久久久久久影院 | 偷自拍 | youjizz.com中国 | 在线你懂 | 99re6在线视频 | av体验区 | 影音先锋婷婷 | chinese xxxx videos andvr| 欧美一级片黄色 | 国产精品va在线观看无码 | 9l视频自拍蝌蚪9l视频成人 | 最近中文在线观看 | 樱桃成人精品视频在线播放 | 日本肉体xxxx裸体137大胆图 | 亚洲黄色a | 天天综合国产 | 日韩激情床戏 | 美女中文字幕 | 性xxxfllreexxx少妇 | www.日韩.com| 99热这里只有精品18 | 国内视频一区二区 | 日韩欧美在线视频免费观看 | 在线视频激情小说 | 奶罩不戴乳罩邻居hd播放 | 都市激情 亚洲 | 日韩成人短视频 | 九七在线视频 | 国产第一精品视频 | 久久98| 少妇极品熟妇人妻无码 | 日韩精品视频观看 | 毛片久久久 | 高跟肉丝丝袜呻吟啪啪网站av | 九九少妇 | 欧美在线高清 | 亚洲综合第一页 | 亚洲黄v | 国产精品日韩专区 | 一级视频毛片 | 干日本少妇首页 | 美女中文字幕 | 爱爱视频一区二区 | 小嫩嫩精品导航 | 久久精品国产99久久不卡 | 欧美性生交xxxxxdddd | 亚洲成人自拍视频 | 在线观看日韩视频 | 伊人亚洲精品 | 日日弄天天弄美女bbbb | 日韩h在线 | 日韩在线电影一区二区 | jzzijzzij亚洲成熟少妇18 欧美www在线观看 | 黄色网免费观看 | 4虎tv| 亚洲免费成人av | 国产污污视频在线观看 | 国产女主播一区 | 另类中文字幕 | 蜜桃综合网 | 色狠狠一区二区 | 亚洲毛片在线看 | 精品久久九九 | 最新免费av网站 | 亚洲图片小说区 | 久久精品亚洲无码 | 美女校花脱精光 | 99国产精品久久 | 欧美动态色图 | 能免费看黄色的网站 | 福利电影一区 | 亚洲天堂手机在线观看 | 男人天堂五月天 | 黄污视频在线观看 | 一级久久久| 久草青青草 | 九九视频在线播放 | 日韩avv | 国产综合久久久久 | 91久久精品夜夜躁日日躁欧美 | 久久av一区二区三区亚洲 | 久久国产精品久久精品国产 | 伊人色影院 | 国产免费一区二区三区免费视频 | 免费九九视频 |