Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

add a subscreen on standard screen using BADI

Former Member
0 Likes
3,114

Dear experts,

can i add a subscreen on standard screen using BADI.if yes, tell me i have to develope a new BADI or there is any exitance BADI available.

Please give me example.

Thanks & Regards,

jaten sangal

5 REPLIES 5
Read only

Former Member
0 Likes
1,694

Jatin,

can i add a subscreen on standard screen using BADI.

Yes.

Is this suffcient?

Read only

Former Member
0 Likes
1,694

Each BAdI has a definition and more than one implementation. The definition

means the methods(in class concept) that are used for performing various functions.

The BAdI definition can be viewed in SE18 transaction and user-defined

BAdIs can be created in the same transaction as well.

When you create a BAdI definition, an class interface will be automatically created and

you can define your methods in the interface. The implementation of the methods can be

done in SE19 transaction .

NOW we can add subscreen on standard screen using badi.

go to se18 type your Badi definition example MB_MIGO_BADI.

CREATE IMPLEMENTATION FOR THIS BADI defintion say zmb_migo_badi.goto sample code->copy.

in pbo_header method we have program name get program name goto se38 copy that program to

zprg and it will ask can copy funtion modules click yes and activate all funtion modules in

that funtion group.

goto 0003 screen and modify the layout as per your requirement.

activate it.

run the migo transaction all changes will reflect.

Read only

Former Member
0 Likes
1,694

Yes , You can add ur own subscreen in standard transaction using BADI.

Example: You can use BADI : ME_GUI_PO_CUST. to add

Subscreen in Enjoy Purchase order transaction ME21/22/23n.

Steps: Go to SE19 Write BADI NAME.

Press Create Implementation.

Now Go to SE80 And Create Function Group .

In Function Gr Create Screen which you want.

Create Structure For Reference.

Don't forget to include this standard include into ur Function Gr. LMEVIEWSF01 .

Now come to BADI Imp: Write code in following Methods.

SUBSCRIBE

MAP_DYNPRO_FIELDS

TRANSPORT_FROM_MODEL

TRANSPORT_TO_DYNP

TRANSPORT_FROM_DYNP

TRANSPORT_TO_MODEL

See Sample Code for Method SUBSCRIBE

DATA: ls_subscriber LIKE LINE OF re_subscribers.

  • we want to add a customer subscreen on the Header tab.

CHECK im_application = 'PO'.

CHECK im_element = 'HEADER'.

  • each line in re_subscribers generates a subscreen. We add one subscreen in this example

CLEAR re_subscribers[].

  • the name is a unique identifier for the subscreen and defined in this class definition

ls_subscriber-name = SUBSCREEN1.

  • the dynpro number to use

ls_subscriber-dynpro = '<Screen No Of Fgr>'.

  • the program where the dynpro can be found

ls_subscriber-program = '<Function Gr Name>'.

  • each subscreen needs his own DDIC-Structure

ls_subscriber-struct_name = '<Structure ANme>'.

  • a label can be defined

ls_subscriber-label = '<Subsscreen text>'.

  • the position within the tabstrib can be defined

ls_subscriber-position = 11.

  • the height of the screen can be defined here. Currently we suport two screen sizes:

  • value <= 7 a sevel line subscreen

  • value > 7 a 16 line subscreen

ls_subscriber-height = 10.

APPEND ls_subscriber TO re_subscribers.

Hope This will help you,

Regards,

Shyam

Read only

0 Likes
1,694

Hi...

Somebody knows a way to add a tab in VT01N ? Badi ? Customer Exits ?

I'll appreciate a example.

Thanks, Regards.

Read only

govind_parmar
Participant
0 Likes
1,694

Hi,

you can add tab in standard transaction for eg in XD03 or VD03 transaction we can develop a new tab. When Implementing BADI it would craete a pushbutton on the application toolbar. Upon pressing the pushbutton, it would display the screen. For this you need BADI -> CUSTOMER_ADD_DATA_CS and CUSTOMER_ADD_DATA.

One will act like PBO and other like PAI.

Let me know if you need add info regarding this.

Govind.