Application Development 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: 

FBL5N-Add button

0 Kudos
1,055

Your professional help will help me a lot

Do you have any information for me where to add the button?

I need to add to the FBL5N transaction a button that, when clicked, will take all the selected records and display the output of the invoice on the screen

Where to add the button? And where to write the logic?

Thank you

8 REPLIES 8

raymond_giuseppi
Active Contributor
920

Look at BAdI such as FI_ITEMS_MENUE01, 02, 03

0 Kudos
920

Thank you very much, I will check

Do you know which GUI STATUS/SCREEN AT POROGRAM I should intervene to add the button?‏

0 Kudos
920

None, the BAdI will handle it

  • Look at current FBL5n status, you should find some function keys such as +CUS01, +CUS02, etc. which are placeholders provided by SAP for those custom function keys, BAdI will activate them and change their text
  • Similarly, if a standard menu contains such codes, there must be a BAdI, Customer-Exit or Customizing Option to handle them.
  • Those functions are shared between detail FI ALV reports (FBL1n and FBL3n too) so add non required functions to exclude list in method SHOW_BUTTONS
  • Methods LIST_ITEMS01-04 are executed when function code is executed

0 Kudos
920

SAP already provided 4 function codes, first one is associated to a button in the application toolbar, every button is available in extras menu once activated.

Look at the 'function code' tab of BAdI definition and read BAdI documentation.

0 Kudos
920

Thank you very much for your patience in answering,

Could you explain to me a little more - how and how to add the button? How to create it?

What is the method we will use?

And what is the method in which I will write the logic of the button?

0 Kudos
920

understand that I have to write the logic of the button in the implementation of the BADI

Where to actually add the button?

920

Don't use answer, but comment on previous answer/comment, answer is intended for answer to original question (read the Before answering at lower right part of this screen)

Tieno91
Discoverer
0 Kudos
377

Hello everyone,
I am implementing the addition of a function button in the standard application bar of the alv resulting from the transaction FBL5N.
In se41, program SAPLFI_ITEMS, status GRID_ITEMS_AR, I chose the function code +CUS01. And I modified and activated the descriptive text. I generated the status too but the button +CUS01 still does not appear.

In se19, I created the BADI ZFI_ITEMS_MENUE01 from 'FI_ITEMS_MENUE01'.
Could you please tell me the code to put in the methods LIST_ITEMS01, LIST_ITEMS02, LIST_ITEMS03, LIST_ITEMS04,
SHOW_BUTTONS or what to do?
The goal is to see the button associated with the function code +cus01 appear in the ALV application bar of the tc FBL5N.

Thank you in advance for your help.