I solved it.
I checked the SAPMSVMA (SM30) and it was working a little bit different or I just didn't understand you well. There was a check if it's called by a parameter transaction or dialog transaction. If it was call by param tcode the fields was not hide and else if dialog tcode the fields was hide.
Here is the source code:
CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD PARTCODE. "HWR
IF PARTCODE NE SY-TCODE. "HWR
MENU = 'X'. "HWR
ELSE. "HWR
MENU = SPACE. "HWR
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 EQ 'FKT'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.