Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3668

how to use copies window in smartforms

$
0
0

Hello

 

I have a requirement in which i am fetching data from NAST table based on vbrk-vbeln value.

After that my requirement is i am checking if the output type is ZD29 OR ZD30 and status is 0. i need to print ORIGINAL. IF the output type is other than ZD29 and ZD30 than i need to print DUPLITCO.

 

I have written the below code. i have create a copies window but still it is not working.i need to print only at first page header these texts.

Can anybody help

 

 

IF gs_vbrk-vbeln IS NOT INITIAL.

 

   SELECT SINGLE objky kschl vstat FROM nast INTO gs_nast

      WHERE objky = gs_vbrk-vbeln.

 

  IF sy-subrc EQ 0.

  IF ( ( gs_nast-kschl EQ 'ZD29' OR

       gs_nast-kschl EQ 'ZD30' )

         AND gs_nast-vstat EQ 'ZERO').

           LV_TEXT1  = 'ORIGINAL'.

         ELSEIF  gs_nast-kschl NE 'ZD29' OR

       gs_nast-kschl NE 'ZD30'.

              LV_TEXT1 = 'DUPLICTO'.

   ENDIF.

  ENDIF.

  endif.

 

Thanks

Asha


Viewing all articles
Browse latest Browse all 3668

Trending Articles



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