<?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 ( SE71) - Change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051163#M1174074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On each line where the Material Authorization Group (MARC-QMATA)  of the material is equal to Z0001 or Z0002   Add free line into the form to allow the storekeeper to fill in batch number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean I have to change the form (Script - Se71) - where I have to read the database table( Select statement for MARC table ) and then getting data i have to use if statement for the above to add the free line,Can you all please help me. I realy appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP Developer on Jan 15, 2009 6:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 16:58:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-15T16:58:00Z</dc:date>
    <item>
      <title>SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051163#M1174074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On each line where the Material Authorization Group (MARC-QMATA)  of the material is equal to Z0001 or Z0002   Add free line into the form to allow the storekeeper to fill in batch number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mean I have to change the form (Script - Se71) - where I have to read the database table( Select statement for MARC table ) and then getting data i have to use if statement for the above to add the free line,Can you all please help me. I realy appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP Developer on Jan 15, 2009 6:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 16:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051163#M1174074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051164#M1174075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use select statement in the driver program to fill in data for the field MARC-QMATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the script editor, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;   if marc-qmata eq 'Z0001' or  marc-qmata eq  'Z0002'.&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E is any paragraph format .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 17:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051164#M1174075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051165#M1174076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi u can write ur select statement inside a subroutine and call it in ur script,&lt;/P&gt;&lt;P&gt;See this wiki on how to use subroutines for scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/external%2bsubroutines%2bin%2bsap%2bscript" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/external%2bsubroutines%2bin%2bsap%2bscript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 17:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051165#M1174076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051166#M1174077</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;Simply go to Change Editor of ur zform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform.......&lt;/P&gt;&lt;P&gt;End Perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create a separate Print Progrm there you have to create a FORM body of the routine u have created in change editor. Then, Write your code in that Form.. End Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember, You have to maintain the structure ITCSY in Ur Subroutine. above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 17:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051166#M1174077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T17:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051167#M1174078</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;Plz do this way. It will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if you have your material no. &amp;amp; plant in variable v_matnr &amp;amp; v_werks.&lt;/P&gt;&lt;P&gt;If your routine program is available for the script already &amp;amp; its ZABC001. Plz create a routine program if you don't have one already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the script in watever window you have to display the auth grps,&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plz write the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE v_qmata&lt;/P&gt;&lt;P&gt;/: PERFORM get_auth_grp IN PROGRAM ZABC001 &lt;/P&gt;&lt;P&gt;/: USING v_matnr&lt;/P&gt;&lt;P&gt;/: USING v_werks&lt;/P&gt;&lt;P&gt;/: CHANGING v_qmata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: IF v_qmata EQ 'Z0001' OR v_qmata EQ 'Z0002'&lt;/P&gt;&lt;P&gt;S &lt;/P&gt;&lt;P&gt;/: ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'S' can be any paragraph format. not necessarily S. Plz use anything that exists in ur script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the routine program ZABC001, Code should be written as below:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************&lt;/P&gt;&lt;P&gt;FORM get_auth_grp TABLES in_taba STRUCTURE itcsy &lt;/P&gt;&lt;P&gt;                                            in_tabb STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                                            out_tab STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: p_qmata LIKE marc-qmata,&lt;/P&gt;&lt;P&gt;           p_matnr LIKE marc-matnr,&lt;/P&gt;&lt;P&gt;           p_werks LIKE marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE in_taba INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   MOVE in_taba-value TO p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE in_tabb INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   MOVE in_tabb-value TO p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE qmata FROM marc INTO p_qmata WHERE matnr = p_matnr &lt;/P&gt;&lt;P&gt;                                                                      AND werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE out_tab INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;   MOVE p_qmata TO out_tab-value.&lt;/P&gt;&lt;P&gt;   MODIFY out_tab INDEX sy-tabix TRANSPORTING value. &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;Plz let me know if you need further info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 19:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051167#M1174078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T19:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script ( SE71) - Change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051168#M1174079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tried the way you suggested but when I check the form it is giving me below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   DEFINE V_QMATA.                                                  &lt;/P&gt;&lt;P&gt;/:   PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &amp;amp;VBLKP-MATNR&amp;amp;       &lt;/P&gt;&lt;P&gt;/:                                          USING &amp;amp;VBLKP-WERKS&amp;amp;       &lt;/P&gt;&lt;P&gt;/:                                       CHANGING &amp;amp;V_QMATA&amp;amp;.          &lt;/P&gt;&lt;P&gt;/:   ENDPERFORM.                                                      &lt;/P&gt;&lt;P&gt;/:   IF &amp;amp;V_QMATA&amp;amp; EQ 'Z0001'.                                         &lt;/P&gt;&lt;P&gt;/E                                                                    &lt;/P&gt;&lt;P&gt;/:   ENDIF.                                                           &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Check by Go to text -&amp;gt; check)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE V_QMATA.                                               &lt;/P&gt;&lt;P&gt;   Symbol expected                                               &lt;/P&gt;&lt;P&gt;/: PERFORM GET_QMATA IN PROGRAM ZRVADEK01 USING &amp;amp;VBLKP-MATNR&amp;amp;    &lt;/P&gt;&lt;P&gt;   Too many parameters                                           &lt;/P&gt;&lt;P&gt;/:                                        USING &amp;amp;VBLKP-WERKS&amp;amp;    &lt;/P&gt;&lt;P&gt;/:                                     CHANGING &amp;amp;V_QMATA&amp;amp;.       &lt;/P&gt;&lt;P&gt;/: ENDPERFORM.                                                   &lt;/P&gt;&lt;P&gt;/: IF &amp;amp;V_QMATA&amp;amp; EQ 'Z0001'.                                      &lt;/P&gt;&lt;P&gt;/: ENDIF.                                                        &lt;/P&gt;&lt;P&gt;/E CHARGE                                                        &lt;/P&gt;&lt;P&gt;IL ,,,,&amp;amp;VBLKP-CHARG&amp;amp;                                             &lt;/P&gt;&lt;P&gt;/E ITEM_LINE_SERIAL_NO_HEADER                                    &lt;/P&gt;&lt;P&gt;IS Serial nr.:,,&amp;amp;KOMSER-SNRLN(50)&amp;amp;                               &lt;/P&gt;&lt;P&gt;/E ITEM_LINE_SERIAL_NO                                           &lt;/P&gt;&lt;P&gt;IS ,,&amp;amp;KOMSER-SNRLN(50)&amp;amp;                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in Calling program ( This program is my printing program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_qmata TABLES fp_it_intab STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                      fp_it_intabb structure itcsy&lt;/P&gt;&lt;P&gt;                      fp_it_outtab STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;       v_werks like marc-werks,&lt;/P&gt;&lt;P&gt;       v_qmata like marc-qmata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE fp_it_intab INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE fp_it_intab-value TO v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE fp_it_intabb INDEX 1.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE fp_it_intabb-value TO v_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single qmata from marc into v_qmata where matnr = v_matnr&lt;/P&gt;&lt;P&gt;                                               and werks = v_werks.   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE fp_it_outtab INDEX 1.&lt;/P&gt;&lt;P&gt;    CHECK sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   READ TABLE fp_it_outtab INTO wa_outtab WITH KEY name = 'I_QMATA'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                               BINARY SEARCH.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    wa_outtab-value = v_qmata.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     move v_qmata to fp_it_outtab-value.&lt;/P&gt;&lt;P&gt;    MODIFY fp_it_outtab INDEX sy-tabix transporting value.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 20:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-se71-change/m-p/5051168#M1174079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T20:29:42Z</dc:date>
    </item>
  </channel>
</rss>

