<?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 Calling ABAP from SAPScript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934853#M61709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am facing some problem in calling a subroutine from Standard Text element (Txn SO10).&lt;/P&gt;&lt;P&gt;I have done the following in a text element.&lt;/P&gt;&lt;P&gt; /: DEFINE &amp;amp;GD_PREV_NAME&amp;amp; = ''&lt;/P&gt;&lt;P&gt; /: PERFORM GET_PREV_NAME IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt; /: USING &amp;amp;P0001-PERNR&amp;amp; &lt;/P&gt;&lt;P&gt; /: USING &amp;amp;P0002-BEGDA&amp;amp;&lt;/P&gt;&lt;P&gt; /: CHANGING &amp;amp;GD_PREV_NAME&amp;amp;&lt;/P&gt;&lt;P&gt; /: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ABAP ZTEST,&lt;/P&gt;&lt;P&gt;FORM get_prev_name TABLES tabin  STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                          tabout STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;  DATA : ld_pernr LIKE pa0001-pernr.&lt;/P&gt;&lt;P&gt;  READ TABLE tabin WITH KEY name = 'P0001-PERNR'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    ld_pernr = tabin-value.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;I found in debugging that the both tables TABIN &amp;amp; TABOUT are empty in the FORM get_prev_name !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone hint on why the values are not passed to ABAP ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip.&lt;/P&gt;&lt;P&gt;Ph : +44 121 683 2814.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2005 11:40:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-06T11:40:01Z</dc:date>
    <item>
      <title>Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934853#M61709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am facing some problem in calling a subroutine from Standard Text element (Txn SO10).&lt;/P&gt;&lt;P&gt;I have done the following in a text element.&lt;/P&gt;&lt;P&gt; /: DEFINE &amp;amp;GD_PREV_NAME&amp;amp; = ''&lt;/P&gt;&lt;P&gt; /: PERFORM GET_PREV_NAME IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt; /: USING &amp;amp;P0001-PERNR&amp;amp; &lt;/P&gt;&lt;P&gt; /: USING &amp;amp;P0002-BEGDA&amp;amp;&lt;/P&gt;&lt;P&gt; /: CHANGING &amp;amp;GD_PREV_NAME&amp;amp;&lt;/P&gt;&lt;P&gt; /: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ABAP ZTEST,&lt;/P&gt;&lt;P&gt;FORM get_prev_name TABLES tabin  STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                          tabout STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;  DATA : ld_pernr LIKE pa0001-pernr.&lt;/P&gt;&lt;P&gt;  READ TABLE tabin WITH KEY name = 'P0001-PERNR'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    ld_pernr = tabin-value.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;I found in debugging that the both tables TABIN &amp;amp; TABOUT are empty in the FORM get_prev_name !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone hint on why the values are not passed to ABAP ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip.&lt;/P&gt;&lt;P&gt;Ph : +44 121 683 2814.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 11:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934853#M61709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T11:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934854#M61710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Just change tour code in the ABAP program like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_prev_name TABLES tabin STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;tabout STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;DATA : ld_pernr LIKE pa0001-pernr.&lt;/P&gt;&lt;P&gt;READ TABLE tabin index 1.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;ld_pernr = tabin-value.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 11:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934854#M61710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934855#M61711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   How did you check that tables are empty ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 12:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934855#M61711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T12:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934856#M61712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;I would like to inform that the table TABIN has got no values at all.TABIN[] is EMPTY.&lt;/P&gt;&lt;P&gt;So it does not matter whether you read it by INDEX 1 or by WITH KEY......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Sandip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 12:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934856#M61712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T12:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934857#M61713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;I guess the problem here might be that the values aren't getting flown. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try this (hardcoding and testing),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;GD_PREV_NAME&amp;amp; = ''&lt;/P&gt;&lt;P&gt;/: PERFORM GET_PREV_NAME IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING '1000' &lt;/P&gt;&lt;P&gt;/: USING '20050101'&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;GD_PREV_NAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it works fine, then figure out whether the variables P0001-PERNR AND P0002-BEGDA are not null when passed. If not then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;GD_PREV_NAME&amp;amp; = ''&lt;/P&gt;&lt;P&gt;/: PERFORM GET_PREV_NAME IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;P0000-PERNR&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;P0002-BEGDA&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;GD_PREV_NAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ELSE TRY PA0000-PERNR AND PA0002-BEGDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 12:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934857#M61713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T12:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934858#M61714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;In debigging I see tables are empty.&lt;/P&gt;&lt;P&gt;But the same text element is printing the P0001-PERNR and P0002-BEGDA correctly !&lt;/P&gt;&lt;P&gt;So I am just confused as why it is not passed to the ABAP Subroutine I am calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help buddies with your views.I am ready for any hit-n-trial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Sandip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 12:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934858#M61714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling ABAP from SAPScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934859#M61715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI gotit!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without the &amp;amp;s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this.&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;GD_PREV_NAME&amp;amp; = ''&lt;/P&gt;&lt;P&gt;/: PERFORM GET_PREV_NAME IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING P0001-PERNR &lt;/P&gt;&lt;P&gt;/: USING P0002-BEGDA&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;GD_PREV_NAME&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2005 12:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-abap-from-sapscript/m-p/934859#M61715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-06T12:26:37Z</dc:date>
    </item>
  </channel>
</rss>

