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: 

Select view

Former Member
0 Kudos

Hi,

I am facing a problem while selecting views in MM02. The recording is not taking place as desired. How do i know which view is selected.

Thanks

Nayan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use FM MATERIAL_BTCI_SELECTION_NEW

3 REPLIES 3

Former Member
0 Kudos

Use FM MATERIAL_BTCI_SELECTION_NEW

0 Kudos

Thanks for the answer.I checked this FM.It is useful, how do i exactly select the MRP3 view. Not finding that.

Thanks

Nayan

0 Kudos

Refer this:

*Function to get the views for the material and
*pick MRP3 view

              CALL FUNCTION 'MATERIAL_BTCI_SELECTION_NEW'
                EXPORTING
                  material                  = wa_mara-matnr                 "Material to which char.values are attached
                  materialart               = wa_mara-mtart                 "Material type
                  selection                 = 'D'                           "Indicator for MRP3 view
                  tcode                     = 'MM02'                        "Transaction code
                TABLES
                  btci_d0070                = it_bdcdata1                   "Internal table from which position of MRP3 view can be found out
                EXCEPTIONS
                  material_not_found        = 1
                  material_number_missing   = 2
                  material_type_missing     = 3
                  material_type_not_found   = 4
                  no_active_dynpro_selected = 5
                  no_authority              = 6
                  OTHERS                    = 7.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.