<?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: about script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097587#M102537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use item_line_a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2005 17:02:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-13T17:02:51Z</dc:date>
    <item>
      <title>about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097580#M102530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am print the item details in main window. for this i can write the external subroutine using itcsy structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   but my problem is in which position i can call this subroutine in main window text editor.&lt;/P&gt;&lt;P&gt;(this script for rfq create , i was modify the Medruck layout set)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097580#M102530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097581#M102531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do want to call an external subroutine? I guess you want to perform some logic on a particular field and then print it out at the line item level. For this find the element which prints the line item details. Write the perform within this element and then print out your varible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver program would loop through all the line items calling this elemnt in the Main window each time printing out the line item variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shounak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097581#M102531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097582#M102532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure about MEDRUCK ( I am a HR person).  But you can call this subroutine anywhere (any window) before you access the variable from the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the sample coding which I used in HR to get the benefit area passing Personnel number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling the subroutine from the main window:&lt;/P&gt;&lt;P&gt;/: PERFORM GET_BENEFIT_AREA IN PROGRAM ZHBNF_BEN_ENROLL   &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;P0001-PERNR&amp;amp;                                    &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;P_BAREA&amp;amp;&amp;amp;                                    &lt;/P&gt;&lt;P&gt;/: ENDPERFORM                                             &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                                        &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: IF &amp;amp;P_BAREA&amp;amp; EQ 'H1'                                   &lt;/P&gt;&lt;P&gt;/: INCLUDE ZHEX-MACRO-H1LOGO OBJECT TEXT ID ST            &lt;/P&gt;&lt;P&gt;/: ELSEIF &amp;amp;P_BAREA&amp;amp; EQ 'H2'                               &lt;/P&gt;&lt;P&gt;/: INCLUDE ZHEX-MACRO-H2LOGO OBJECT TEXT ID ST            &lt;/P&gt;&lt;P&gt;/: ELSEIF &amp;amp;P_BAREA&amp;amp; EQ 'H3'                               &lt;/P&gt;&lt;P&gt;/: INCLUDE ZHEX-MACRO-H3LOGO OBJECT TEXT ID ST            &lt;/P&gt;&lt;P&gt;/: ELSEIF &amp;amp;P_BAREA&amp;amp; EQ 'U1'                               &lt;/P&gt;&lt;P&gt;/: INCLUDE ZHEX-MACRO-U1LOGO OBJECT TEXT ID ST            &lt;/P&gt;&lt;P&gt;/: ENDIF                                                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coding inthe external program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_benefit_area&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&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;      This subroutine is used to determine benefit area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_benefit_area TABLES intab STRUCTURE  itcsy&lt;/P&gt;&lt;P&gt;                             outtab STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_pernr TYPE p0001-pernr,&lt;/P&gt;&lt;P&gt;        l_barea TYPE p0171-barea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE intab WITH KEY 'P0001-PERNR'.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  l_pernr = intab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE barea INTO l_barea&lt;/P&gt;&lt;P&gt;                         FROM pa0171&lt;/P&gt;&lt;P&gt;                         WHERE pernr = l_pernr&lt;/P&gt;&lt;P&gt;                           AND begda &amp;lt;= sy-datum&lt;/P&gt;&lt;P&gt;                           AND endda &amp;gt;= sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE outtab WITH KEY 'P_BAREA'.&lt;/P&gt;&lt;P&gt;  CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    outtab-value+0(2) = l_barea.&lt;/P&gt;&lt;P&gt;    MODIFY outtab INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "get_benefit_area&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097582#M102532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097583#M102533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonali,&lt;/P&gt;&lt;P&gt; You write the perform in the Element of the Window of the layout where you want the data &amp;amp; call that perform while creating a report program.&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;Write this as command in the Layout&lt;/P&gt;&lt;P&gt;PERFORM GET_SHIPTO IN PROGRAM Z_PERFORMS_PO &lt;/P&gt;&lt;P&gt;USING &amp;amp;EKPO-ADRNR&amp;amp; ---&amp;gt;We will pass this value &lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_NAME1&amp;amp;---&amp;gt;We will get this value &lt;/P&gt;&lt;P&gt;CHANGING &amp;amp;V_NAME2&amp;amp;---&amp;gt;We will get this value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a report Z_PERFORMS_PO.&lt;/P&gt;&lt;P&gt;In that write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SHIPTO TABLES IN_TAB3 STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_TAB3 STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_ADRNR LIKE ADRC-ADDRNUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_TAB3 INDEX 1.&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 = IN_TAB3-VALUE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = V_ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ADRC&lt;/P&gt;&lt;P&gt;WHERE ADDRNUMBER = V_ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB3 INDEX 1.&lt;/P&gt;&lt;P&gt;WRITE ADRC-NAME1 TO OUT_TAB3-VALUE.&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB3 INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB3 INDEX 2.&lt;/P&gt;&lt;P&gt;WRITE ADRC-NAME2 TO OUT_TAB3-VALUE.&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB3 INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "get_shipto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097583#M102533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097584#M102534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MEDRUCK the line item data are printed within the MAIN window in the elements starting with ITEM_*. Put your perform in one of these appropriate elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shounak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097584#M102534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097585#M102535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it depends on what you are trying to print (Purchase Order or RFQ or Outline Agreement or Scheduling Agreement)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purhase Order - &amp;lt;b&amp;gt;ITEM_HEADER_F&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Request For Quotation - &amp;lt;b&amp;gt;ITEM_HEADER_A&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Outline Agreement - &amp;lt;b&amp;gt;ITEM_HEADER_R&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Scheduling agreement delivery schedule - &amp;lt;b&amp;gt;ITEM_INFO_1&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 17:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097585#M102535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097586#M102536</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; my script for RFQ. &lt;/P&gt;&lt;P&gt;Request For Quotation - ITEM_HEADER_A ( u r give this text element). but in main window this text element was not available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         ITEM_LINE_A&lt;/P&gt;&lt;P&gt;         ITEM_HEADER_R &lt;/P&gt;&lt;P&gt;       these r available.  which one is right one to display the item details in main window for Request For Quotation Output Create.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 08:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097586#M102536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T08:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: about script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097587#M102537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use item_line_a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 17:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-script/m-p/1097587#M102537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T17:02:51Z</dc:date>
    </item>
  </channel>
</rss>

