06-26-2008 8:40 AM
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
06-26-2008 8:41 AM
06-26-2008 8:41 AM
06-26-2008 8:45 AM
Thanks for the answer.I checked this FM.It is useful, how do i exactly select the MRP3 view. Not finding that.
Thanks
Nayan
06-26-2008 8:46 AM
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.