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: 

SUBMIT ME2N With Dynamic Filters

javier_alonso
Participant
0 Kudos

Hi experts.

I need to call ME2N from an external report to display the purchase orders created per user. However, the ERNAM filter is dynamic and I don't know how to pass it (submit, call transaction...).



Help appreciatted.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

ME2N program is RM06EN00.

You may use SUBMIT ... WITH FREE SELECTIONS ... (tested on S/4HANA 2022) .

REPORT ztest.
DATA(params) = VALUE rsds_texpr(
    ( tablename = 'EKKO'
      expr_tab  = VALUE #(
        ( fieldname = 'EBELN'
          option    = 'EQ'
          low       = '0000010545' ) ) ) ).
SUBMIT rm06en00
    WITH listu = 'ALLES'
    WITH FREE SELECTIONS params
    VIA SELECTION-SCREEN
    AND RETURN.
1 REPLY 1

Sandra_Rossi
Active Contributor

ME2N program is RM06EN00.

You may use SUBMIT ... WITH FREE SELECTIONS ... (tested on S/4HANA 2022) .

REPORT ztest.
DATA(params) = VALUE rsds_texpr(
    ( tablename = 'EKKO'
      expr_tab  = VALUE #(
        ( fieldname = 'EBELN'
          option    = 'EQ'
          low       = '0000010545' ) ) ) ).
SUBMIT rm06en00
    WITH listu = 'ALLES'
    WITH FREE SELECTIONS params
    VIA SELECTION-SCREEN
    AND RETURN.