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.
Showing results for 
Search instead for 
Did you mean: 

Using a global parameter

0 Kudos

Dear experts,

When someone posts an invoice, by FB01 tcode, I want to know the invoice type (bkpf-blart) when I stop at BADI:


However the field isn't there.

How may I see the BLART field at FM_OPEN_PERIODS? By defining a global parameter? If so, how?

Other solution?

Thanks in advance


Active Contributor

There used to be the concept of global interface for function modules, but it's now obsolete and impossible to switch it on (although for those already switched on in the past, it's still on and this feature is still effective).

Nowadays, you can use the Enhancement Framework (implicit enhancement at the start of function modules to store "globally" the parameter value anywhere + optionally create a global field symbol to keep the link to the parameter + any other solution you want).

0 Kudos

If the BAdI it's called from the FB01, and the execution is not in batch (and I assume it will be that way cuz you have a t-code), if you can add that code (via enhancement frameweork or whatever) you can check for memory variables (assigning (program)variable) to a fs).

Active Contributor

As global parameters are nowadays obsolete, could you try a GET PARAMETER ID 'BAR' VALUE blart.