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: 
Read only

MB90 get processing mode in z program.

Former Member
0 Likes
979

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
Read only

former_member187748
Active Contributor
0 Likes
606

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.

Read only

Former Member
0 Likes
606

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.