<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Could any one explain me this code pls in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297418#M1024783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is for the spool request to convert into the pdf documents...this is a program using the PCH logical database..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pchplvar       is plan version  always 01 for current plan&lt;/P&gt;&lt;P&gt; pchotype      object type may be O or P or S or C&lt;/P&gt;&lt;P&gt; pchobjid       objid means it is may be like pernr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 14:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T14:14:20Z</dc:date>
    <item>
      <title>Could any one explain me this code pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297415#M1024780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF sy-subty O print.

    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
          mode                   = 'BATCH'
         no_dialog              =  'X'
        IMPORTING
             out_archive_parameters =  arcpar
             out_parameters         =  pripar
        EXCEPTIONS
             archive_info_not_found = 1
             invalid_print_params   = 2
             invalid_archive_params = 3
             OTHERS                 = 4
              .
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

    SUBMIT zhterot1 TO SAP-SPOOL
                         WITHOUT SPOOL DYNPRO
                         SPOOL PARAMETERS pripar
                         ARCHIVE PARAMETERS arcpar
*                   SPOOL PARAMETERS %_print
*                   ARCHIVE PARAMETERS %_archive
                   WITH pchplvar        =   pchplvar
                   WITH pchotype        =   pchotype
                   WITH pchobjid        IN  pchobji3
                   WITH pchseark        =   pchseark

                   WITH pchobeg         =   pchobeg
*                    with PCHZTR_D        =   PCHZTR_D
*                    with PCHZTR_M        =   PCHZTR_M
*                    with PCHZTR_Y        =   PCHZTR_Y
*                    with PCHZTR_A        =   PCHZTR_A
*                    with PCHZTR_P        =   PCHZTR_P
*                    with PCHZTR_F        =   PCHZTR_F
                   WITH pchbegda        =   pchbegda
                   WITH pchendda        =   pchendda

                   WITH pchwegid        =   pchwegid

                   WITH kurs            =   kurs
                   WITH kurst           =   kurst
                   WITH kugrp           =   kugrp
                   WITH pchobji2        IN  pchobji2

                   WITH expand          =   expand

                   WITH  s_shwfld       IN  s_shwfld

                   AND RETURN
                   .
  ELSE.

    SUBMIT zhterot1  WITH pchplvar        =   pchplvar
                      WITH pchotype        =   pchotype
                      WITH pchobjid        IN  pchobji3
                      WITH pchseark        =   pchseark

                      WITH pchobeg         =   pchobeg
*                    with PCHZTR_D        =   PCHZTR_D
*                    with PCHZTR_M        =   PCHZTR_M
*                    with PCHZTR_Y        =   PCHZTR_Y
*                    with PCHZTR_A        =   PCHZTR_A
*                    with PCHZTR_P        =   PCHZTR_P
*                    with PCHZTR_F        =   PCHZTR_F
                      WITH pchbegda        =   pchbegda
                      WITH pchendda        =   pchendda

                      WITH pchwegid        =   pchwegid

                      WITH kurs            =   kurs
                      WITH kurst           =   kurst
                      WITH kugrp           =   kugrp
                      WITH pchobji2        IN  pchobji2

                      WITH expand          =   expand

                      WITH  s_shwfld       IN  s_shwfld

                      AND RETURN
                      .
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code the Pirnt is having the Default '02' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when we place 0 comparision it is going to validate by converting into binary mode ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what is expecting is to &lt;/P&gt;&lt;P&gt;when the condition will come true?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the use of submit program name calling those spool ?&lt;/P&gt;&lt;P&gt;Could any one having any idea pls revert back asap!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 12:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297415#M1024780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Could any one explain me this code pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297416#M1024781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions Pls&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297416#M1024781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Could any one explain me this code pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297417#M1024782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The operator &lt;STRONG&gt;O&lt;/STRONG&gt; is a byte logical opertaor, it checks after converting into bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case if SY-SUBTY field contains value 0 or 2 will be true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that it is taking the current client's printer setting and other parameters, which is used to pass in submit program.The submit program having some output which is generating the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishnendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297417#M1024782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Could any one explain me this code pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297418#M1024783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is for the spool request to convert into the pdf documents...this is a program using the PCH logical database..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  pchplvar       is plan version  always 01 for current plan&lt;/P&gt;&lt;P&gt; pchotype      object type may be O or P or S or C&lt;/P&gt;&lt;P&gt; pchobjid       objid means it is may be like pernr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297418#M1024783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Could any one explain me this code pls</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297419#M1024784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna .&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;But using O it is not converting into bit rather binary mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the condition not only satisfying for only 0 or 2 but also for 16 &lt;/P&gt;&lt;P&gt;some more numbers.&lt;/P&gt;&lt;P&gt;I want to know when it exactlly satisfies any one having the reason pls?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 06:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/could-any-one-explain-me-this-code-pls/m-p/4297419#M1024784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T06:57:36Z</dc:date>
    </item>
  </channel>
</rss>

