<?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 Sap Script INCLUDE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532680#M574445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to check if Sap Script INCLUDE is not empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE &amp;amp;VBDPA-TDNAME&amp;amp; OBJECT VBBP ID Z003 LANGUAGE &amp;amp;NAST-SPRAS&amp;amp; PARAGRAPH LL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If include is empty then LANGUAGE has to be E (English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adibo..:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 08:37:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T08:37:32Z</dc:date>
    <item>
      <title>Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532680#M574445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to check if Sap Script INCLUDE is not empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE &amp;amp;VBDPA-TDNAME&amp;amp; OBJECT VBBP ID Z003 LANGUAGE &amp;amp;NAST-SPRAS&amp;amp; PARAGRAPH LL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If include is empty then LANGUAGE has to be E (English).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adibo..:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 08:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532680#M574445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532681#M574446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can first check the Text in the Related Order Item Level for that ID Z003in the VA03 Sales order.&lt;/P&gt;&lt;P&gt;Programatically to check means, we have to modify the Driver program&lt;/P&gt;&lt;P&gt;or Call a subroutine from the Script using PERFORM  statement  and passing the Order no, ITEM No and ID z003&lt;/P&gt;&lt;P&gt;use the fun module READ_TEXT to get the text into an internal table.&lt;/P&gt;&lt;P&gt;If that itab is initial, you pass some parameter to script, else pass another paramter back to script, so based on that parameter(variable) you can kkep a condition&lt;/P&gt;&lt;P&gt;You have to pass OBJECTNAME (concatenation of VBELN+POSNR) OBJECT as VBBK and the ID as Z003 and Lang etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 08:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532681#M574446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T08:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532682#M574447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adibo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Write a Perform to aceive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In this perform check whether the value is empty or not.&lt;/P&gt;&lt;P&gt;3. If the value is empty then select the value for the same in language English and move that into this .&lt;/P&gt;&lt;P&gt;4. Now pass this to the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this for writing Performs in scripts :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com//abap/how-to-call-a-subroutine-form-sapscripts.htm" target="test_blank"&gt;http://www.sap-basis-abap.com//abap/how-to-call-a-subroutine-form-sapscripts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this ud help u.&lt;/P&gt;&lt;P&gt;Reward if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 08:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532682#M574447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532683#M574448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Form :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;CDECENT&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zkrpmm_perform_z1medruck .&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_input_table OCCURS 10.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_input_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;déclaration de la table output_table contenant les&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;variables exportées&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_output_table OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : END OF it_output_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_ebeln LIKE ekko-ebeln,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_zcdffa LIKE vbak-zcdffa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM CDE_CENT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM cde_cent TABLES input output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_input_table[] = input[].&lt;/P&gt;&lt;P&gt;it_output_table[] = output[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_input_table INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE it_input_table-value TO w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = w_ebeln&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE zcdffa FROM ekko&lt;/P&gt;&lt;P&gt;INTO w_zcdffa&lt;/P&gt;&lt;P&gt;WHERE ebeln = w_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output_table-name = 'CDECENT'.&lt;/P&gt;&lt;P&gt;MOVE w_zcdffa TO it_output_table-value.&lt;/P&gt;&lt;P&gt;MODIFY it_output_table INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output[] = it_output_table[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532683#M574448</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-07-11T09:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532684#M574449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm..I wantend to read SY-SUBRC after calling INCLUDE, but that don't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to modify the Driver program, ZRVADOR01. Before calling /E (element) check with READ_TEXT if exist and pass VAR_LANGUAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INCLUDE &amp;amp;VBDPA-TDNAME&amp;amp; OBJECT VBBP ID Z003 LANGUAGE &amp;amp;VAR_LANGUAGE&amp;amp; PARAGRAPH LL 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adibo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532684#M574449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532685#M574450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found SAPSCRIPT-SUBRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF &amp;amp;SAPSCRIPT-SUBRC&amp;amp; = 4 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPSCRIPT-SUBRC = 4, But It never enter into de IF statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 11:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532685#M574450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sap Script INCLUDE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532686#M574451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IF &amp;amp;SAPSCRIPT-SUBRC&amp;amp; = ' 4'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be SPACE between ' and 4:    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;  ' 4'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-include/m-p/2532686#M574451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:13:07Z</dc:date>
    </item>
  </channel>
</rss>

