I am using below FM to call transaction MM02 with relevant material master view.
CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
irmmg1 = lwa_rmmg1
kz_ein_dark = c_x
t_tcode = c_mm02
p_pstat = p_pstat
iauswg = li_auswg
no_authority = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
I am going at required screen such as MRP 1, MRP 2 etc when I call this FM.
But lets say user is in MRP 2 and from there he navigated to BASIC DATA 1 and from there he made some changes and saved data. Then when I next time call the FM for MRP 2 then also it goes to BASIC DATA 1.
I am clearing all the variables properly before calling this FM.
Can anybody tell me what may be the problem and how can I handle it.
Thanks in advance.