Add Custom Tab in Detail screen for MIGO Transaction

1.Run Tcode se19

2.create enhancement and click on classic badi radio button

3.Enter badi name MB_MIGO_BADI and click on button create

4.
give you Implementation Name

5.
Click method of interface .it will ask you to create the enhancement implementation

6.
create button and enter Enhancement Implementation ,group etc in pop up screen appeared and ok.

7.Now select your Enhancement Implementation just created

8.
Go to
INIT method and Write code:

method IF_EX_MB_MIGO_BADI~INIT.

Data :GF_CLASS_ID type Migo_class_id value ‘MIGO_BADI_EXAMPLE1‘.

APPEND gf_class_id TO ct_init.

endmethod.

9.Go to
PBO_DETAIL method

DATA : GV_CLASS_ID TYPE MIGO_CLASS_ID.

DATA : GV_FLAG TYPE XFELD,

LV_FLAG TYPE XFELD,

GV_LN  TYPE GOITEM-GLOBAL_COUNTER,

GT_EXDATA TYPE TY_T_EXTDATA.

FIELD-SYMBOLS : <FS> TYPE ANY.

DATA : VAL TYPE STRING .

VAL = ‘(SAPLMIGO)GODEFAULT_TV-BWART‘ .

ASSIGN (VAL) TO <FS>.

IF I_CLASS_ID EQ ‘MIGO_BADI_EXAMPLE1‘.

IF <FS> EQ ‘101‘ OR <FS> EQ ‘309‘ OR <FS> EQ ‘301‘.

GV_CLASS_ID = ‘MIGO_BADI_EXAMPLE1‘ ."‘MIGO_BADI_IMPLEMENTATION_CIN‘.

E_CPROG = ‘ZSAPLMIGO_SCREEN‘.

E_DYNNR = ‘0900‘.

E_HEADING = ‘Vendor Retest Date‘(010).

GV_LN = I_LINE_ID.

EXPORT E_LINE_ID FROM I_LINE_ID TO MEMORY ID ‘LNID‘.

ENDIF.

ENDIF.

10.
Go to
PAI DETAIL method

method IF_EX_MB_MIGO_BADI~PAI_DETAIL.

E_FORCE_CHANGE = ‘X‘.

endmethod.

11.
Go to
LINE_MODIFY method

DATA flag(1) TYPE c.

IF cs_goitem-mblnr IS INITIAL.

flag = ‘X‘.

ENDIF.

12.POST_DOCUMENT method

under POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item.

13.
Create a program
ZSAPLMIGO_SCREEN
with the screen
0900 type sub-screen in SE80 and design the layout .

and in flow logic :

PROCESS BEFORE OUTPUT.

MODULE STATUS_0900.

*

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0900.

Now run MIGO Transaction.:

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-10-14 05:19:23

Add Custom Tab in Detail screen for MIGO Transaction的相关文章

[webgrid] &ndash; header - (How to Add custom html to Header in WebGrid)

How to Add custom html to Header in WebGrid MyEvernote Link Posted on March 30, 2013by mtryambake How to make a MVC 3 Webgrid with checkbox column?This article will show you a How to Add custom html to Header in WebGrid e.g. add a check box in webgri

自定义custom Tab Bar

iOS提供的Tab Bar比较简单,我们常常有些别样的需求,此时往往需要自行自定义Tab Bar,如下图所示:                           如图所示,需要在某个页面中添加一个类似于Tab Bar的控件,该页面其他内容都是可以滚动的,但是“Tab Bar”只能在底部显示. 第一个映入脑中的想法是用UITableViewController实现该页面,然后在tableview上再蒙上一层想办法让它永远处于底部位置:理论上是可以实现的,在tableview的滚动监听事件里处理就

Implementing Screen Exit for the transaction CO01

Requirement: Add new Tab to transaction CO01(Creation production order) and store the values in standard Include CI_AUFK which will get appended to Production order header table AUFK. Solution: Create a project in CMOD with enhancement PPCO0012. Go t

动态tab页

1.前台代码 <%-- builed by manage.aspx.cmt  [ver:2015.25.26] at 2015-06-26 15:25:42 --%> <%@ Page Language="C#" AutoEventWireup="True" CodeBehind="CcrCompanyManage.aspx.cs" Inherits="HraWeb.CcrCompanyManage" %&g

自定义tab bar控件 学习资料

http://blog.csdn.net/zoeice/article/details/8068671 import java.util.Vector; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.NinePatch; imp

在VC++中使用Tab Control控件

系统环境:Windows 7 软件环境:Visual Studio 2008 SP1 本次目的:在模态或非模态对话框中使用Tab Control控件,及引申在单/多文档中使用 查阅MSDN文档,对于创建Tab Control控件,MSDN上说明如下: To use CTabCtrl directly in a dialog box 1.     In the dialog editor, add a Tab Control to your dialog template resource. Sp

Writing a Reusable Custom Control in WPF

In my previous post, I have already defined how you can inherit from an existing control and define your own reusable chunk. The reusable XAML code that I have defined there is actually a composition of one of more existing elements in a common desig

iOS 在TabViewController中设置Tab Bar,且实现自定义

开发环境:Xcode 6.1 iOS 7.1.2 & iOS 8.1 实现功能一,在打开APP时即显示第三个Tab对应的View: 实现功能二,给每一个Tab设置图片和选中图片. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after applica

Android UI之Tab(ActionBar+Fragment实现)

Fragment和ActionBar都是Android3.0之后出现的,Fragment,碎片,主要是为了支持更多的UI设计在大屏幕设备上,如平板.因为现在设备的屏幕越来越大,使用Fragment可以更灵活的管理视图层次的变化.像Activity一样,可以创建Fragment来包含View,进行布局,但是Fragment必须嵌入在Activity中,不能单独存在,而且一个Activity可以嵌入多个Fragment,同时一个Fragment可以被多个Activity重用.Action Bar被认