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

Adding a pushbutton within a BADI

dany_charbonneau
Product and Topic Expert
Product and Topic Expert
0 Likes
960

Hi,

In the previous releases, I was able to create a special BAdI with a function code attach to this BAdI.

In the PFSTATUS of my screen I was using the same function code (starting with with "+").

The button was only displayed in the toolbar when the BAdI was implemented.

Now with the new version, I create the enhancement spot and the BadI but I cannot find the tab "FCODE" anymore... is there a new way to perform such thing ?

Thanks !

Message was edited by:

Dany Charbonneau

4 REPLIES 4
Read only

dany_charbonneau
Product and Topic Expert
Product and Topic Expert
0 Likes
776

the strange thing is that in the documentation, it is stated that this feature is still available and is now called "Function code Enhancement"

Function Code and Screen Enhancements

Use

The main use of BAdIs is to enhance ABAP programs using object plug-ins. For reasons of compatibility, and to be able to use the classic means for designing a user interface for an ABAP-based SAP system (GUI status and screens,) menu enhancements and screen enhancements were adopted almost unchanged from the classic BAdIs into the BAdIs of the new enhancement concept. These enhancements represent a concept that is independent of enhancements through object plug-ins and they are not supported using special ABAP statements.

Features

Function Code Enhancements

Menu enhancements have been adopted under the new name “Function Code Enhancements“, whereby the classic concept has been kept in its entirety. The use of the ABAP statements GET BADI und CALL BADI is not necessary. The runtime environment inserts the implementation of a function code enhancement automatically during program regeneration.

Screen Enhancements

In the case of screen enhancements, the class concept has been adopted – with the following exceptions:

· The previous call to the method CL_EXITHANDLER=>GET_PROG_AND_DYNP_FOR_SUBSCR, has been replaced by the call CL_ENH_BADI_RUNTIME_FUNCTIONS=>GET_PROG_AND_DYNP_FOR_SUBSCR with the same interface.

· The methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN will no longer be generated. You can create your own BAdI methods for data transport and call them using CALL BADI.

· You no longer need to call the CL_EXITHANDLER=>SET_INSTANCE_FOR_SUBSCREENS and CL_EXITHANDLER=>GET_INSTANCE_FOR_SUBSCREENS methods. These methods are now unnecessary as they only place the BAdI reference in a temporary storage.

SET_INSTANCE_FOR_SUBSCREENS is no longer necessary.

GET_INSTANCE_FOR_SUBSCREENS can, if necessary, be replaced by GET BADI.

Read only

0 Likes
776

Hi

Give me one example for Function Code Enhancements

Thanks & Regards

SEK

Read only

prabhu_s2
Active Contributor
0 Likes
776

hi dany

i'm trying to implement one suhc scenario fo creating a menu item in vd02 using badi. can u let me know on the steps on how to goahead?

Read only

dany_charbonneau
Product and Topic Expert
Product and Topic Expert
0 Likes
776

Hi

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm</a>

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/60/d6ba5aceda11d1953a0000e82de14a/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/60/d6ba5aceda11d1953a0000e82de14a/frameset.htm</a>

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/30/2d0c3877f711d396ac0000e82de14a/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/30/2d0c3877f711d396ac0000e82de14a/frameset.htm</a>

[url=http://help.sap.com/saphelp_47x200/helpdata/en/67/232037ebf1cc09e10000009b38f889/frameset.htm]http://help.sap.com/saphelp_47x200/helpdata/en/67/232037ebf1cc09e10000009b38f889/frameset.htm[/url]