I 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’
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.
You ask why?
Let’s take a look at program SAPMM06E mentioned in the first picture and it’s screen 0205 PBO modules.
We are interested in module D0205_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.