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

Re: Regarding Subcontract challan print from J1IF

$
0
0

Hi Pavan,

 

Please follow like this and this is the better option to implement your solution.

 

ENHANCEMENT 1 ZKIRAN_NH.


You have to call this open form in the enhancement based on the conditions

If check =  'X'"  it mean s if condition satisfied you need to call the open form with the new customized form
  
    CALL FUNCTION 'OPEN_FORM'
        EXPORTING
            APPLICATION        = 'TX'
            DEVICE             = 'PRINTER'
            DIALOG             = 'X'
            FORM               = 'customized form name'
        IMPORTING
             RESULT             = RESULT
        EXCEPTIONS
             CANCELED           = 1
             DEVICE             = 2
             FORM               = 3
             OPTIONS            = 4
             UNCLOSED           = 5
             OTHERS             = 6.

   IF SY-SUBRC NE 0.
     MESSAGE E888.
   ENDIF.
   elsif sy-surc = 0.  " it means new calling form success full please exit the form to avoid to call the subsequent open form or standard form ( it will exit from defined routine)
exit.
endif.
ENHANCEMENT 2 ZKIRAN_NH.

   CALL FUNCTION 'OPEN_FORM'
        EXPORTING
            APPLICATION        = 'TX'
            DEVICE             = 'PRINTER'
            DIALOG             = 'X'
            FORM               = 'J_1I_57F4'
        IMPORTING
             RESULT             = RESULT
        EXCEPTIONS
             CANCELED           = 1
             DEVICE             = 2
             FORM               = 3
             OPTIONS            = 4
             UNCLOSED           = 5
             OTHERS             = 6.

   IF SY-SUBRC NE 0.
     MESSAGE E888.
   ENDIF.



I hope you understand!


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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