ABAP – SET PARAMETER ID and ME33L

SAPI need to display a scheduling agreement after click on hotspot (containing SAG document number) in ALV.

If you take a look at ME33L (display scheduling agreement)  and examine details of the only selection screen parameter (Agreement), you’ll find out its PARAMETER ID = ‘VRT’

Agreement - Parameter ID

But if you try to display the scheduling agreement by using the following code, you’ll fail:

SET PARAMETER ID 'VRT' FIELD lv_ebeln.
CALL TRANSACTION 'ME33L' AND SKIP FIRST SCREEN.

ME33L - Parameter VRT

You ask why?

Let’s take a look at program SAPMM06E mentioned in the first picture and it’s screen 0205 PBO modules.

SAPMM06E - Screen 205 - PBO modules

We are interested in module D0205_GET_PARAMETER

ME33L - GET PARAMETER

Here you can see that if you want to display Scheduling agreement (where Purchasing Document Category = Scheduling agreement … BSTYP = ‘L’) you can’t use PARAMETER ID ‘VRT’, but you must SET PARAMETER ‘SAG’

SET PARAMETER ID 'SAG' FIELD lv_ebeln.
CALL TRANSACTION 'ME33L' AND SKIP FIRST SCREEN.

ME33L - Correctly displayed scheduling agreement

Leave a Reply