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: 

Using a global parameter

noy_ash
Participant
0 Kudos
419

Dear experts,

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

FM_OPEN_PERIODS

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

3 REPLIES 3

Sandra_Rossi
Active Contributor
361

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
361

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).

RaymondGiuseppi
Active Contributor
361

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