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

MB90 get processing mode in z program.

Former Member
0 Kudos

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.

2 REPLIES 2

former_member187748
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.