01-06-2014 11:48 AM
I am executing MB90 transaction code and want VERMO ( Processing Mode ) field value to capture or get in my Z Program (ZSAPM07DR) i tried debugging my code but unable to find VERMO field value there help required ?
What i want to get this processing mode in my ZProgram and if VERMO field value = 2 change my existing smartform to other smartform thats my ultimate target.
01-06-2014 11:57 AM
Hi Saad,
please see this code, from the report program REPORT MM70AMEA,
i think you should get it.
INITIALIZATION.
NASE-KAPPL = APPL.
*A1. Nachrichten
SELECTION-SCREEN BEGIN OF BLOCK MESSAGE WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
RG_KSCHL FOR NASE-KSCHL,
RG_NACHA FOR NASE-NACHA.
PARAMETERS:
PM_NSORT LIKE NASE-SORME DEFAULT '01' OBLIGATORY,
PM_VERMO LIKE NASE-VERMO DEFAULT '1' OBLIGATORY,
PM_VERDI LIKE NASE-VERDI NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK MESSAGE.
01-06-2014 5:57 PM
Hi,
try to use variable PM_VERMO in your program like this:
l_var_name = '(MM70AMEA)PM_VERMO'.
assign (l_var_name) to <f1>.
l_vermo = <f1>.
Adi.