Quantcast
Viewing all articles
Browse latest Browse all 9052

Re: Print translated SAP SCRIPT depending on WERKS

Do you mean this?

 

DATA: f_langu TYPE SY-LANGU.

 

[...]

 

IF f_werks = '2000'.

     f_langu = 'SR'.

ELSEIF f_werks = '1100'. " or simplest "ELSE"

     f_langu = 'IT'.

ENDIF.

 

call function 'OPEN_FORM'

     exporting

       device   = 'PRINTER'

       dialog   = space

       form     = print_co-forml

       language = f_langu

       options  = print_opts

     exceptions

       canceled = 01

       device   = 02

       form     = 03

       options  = 04

       unclosed = 05.

   call function 'START_FORM'

     exporting

  startpage = startpage.

 

Message was edited by: Massimiliano Beghini I did a mistake with the "else" option.


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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