Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8802

Re: How to make a fields in gray out mode in VA01 based on company code

$
0
0

Hi Shabareesh,

 

Please do the following in order to gray out fields in VA01 based on company code:

1) In the main program SAPMV45A for Sales Order, you will find several enhancement spots. Choose an enhancement spot appropriate for your requirement.

 

2) You will get the current SALES ORG within the runtime structure VBAK (field VKORG).

3) Select the current company code from table TVKO based on VBAK-VKORG.

3) Compare the company code fetched above with the company code based on whcih you need to gray out the screen fields.

4) Now Use the following logic:

 

IFsy-tcode = c_va01.             "C_VA01 is a constant declared in the main program for value "VA01"

       LOOP AT SCREEN.

         IF screen-name = <Your screen fieldname>.

           screen-input = 0.

           MODIFY SCREEN.

          ENDIF.

       ENDLOOP.

ENDIF.

 

Thanks,

Arnab


Viewing all articles
Browse latest Browse all 8802

Trending Articles



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