Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Force PAI with parameters

$
0
0

I solved it.

 

Marco Cristobal

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.           

           


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>