<?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: Regarding the sapscript SD_PACKING_LIST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325021#M166651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not changing the standard print program, without changing the print program i want to call a subroutines for the populating the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me how to call a subroutine and on what basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2006 06:15:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-09T06:15:41Z</dc:date>
    <item>
      <title>Regarding the sapscript SD_PACKING_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325019#M166649</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 am new to sapscripts, I have to add some fields from ADRC table, VBDKR, LIPS tables into the standard sapscript SD_PACKING_LIST. can anybody tell me how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is more helpfull if you can tell me perform statement on what basis we call perform, using which variable from the standard form and what values chaning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible give an example of ADRC table to diplay the name, city, country from the ADRC table using form and perform functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 05:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325019#M166649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the sapscript SD_PACKING_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325020#M166650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to add any code to standard SAPCRIPT, you will have to copy the sapscript to make it a 'z' object and then you can add your code where required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just debug the SAPSCRIPT to understand the code execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 05:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325020#M166650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T05:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the sapscript SD_PACKING_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325021#M166651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not changing the standard print program, without changing the print program i want to call a subroutines for the populating the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me how to call a subroutine and on what basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 06:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325021#M166651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the sapscript SD_PACKING_LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325022#M166652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 ways to your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Copying the Print program and SAP Script and change those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Instead of Copying print program, make changes to the Custom sap script(you may need to copy SAP script to cusomer) and using PERFORM from custom SAP Script.&lt;/P&gt;&lt;P&gt;In you custom script you can wirte as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/: PERFORM my_form IN PROGRAM zmyinclude 
/: USING &amp;amp;pass1&amp;amp; 
/: USING &amp;amp;pass2&amp;amp; 
/: CHANGING &amp;amp;get2&amp;amp; 
/: ENDPERFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and inside include zmyinclude  you can create a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM my_form&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM my_form TABLES IN_PAR STUCTURE ITCSY 
OUT_PAR STRUCTURE ITCSY.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see one example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Definition in the SAPscript form:

/: PERFORM GET_BARCODE IN PROGRAM ZMYINCLUDE 
/: USING &amp;amp;PAGE&amp;amp; 
/: USING &amp;amp;NEXTPAGE&amp;amp; 
/: CHANGING &amp;amp;BARCODE&amp;amp; 
/: ENDPERFORM 
/

/ &amp;amp;BARCODE&amp;amp;

Coding of the calling ABAP program:

REPORT ZMYINCLUDE.

FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY 
OUT_PAR STRUCTURE ITCSY.

DATA: PAGNUM LIKE SY-TABIX, "page number  
NEXTPAGE LIKE SY-TABIX. "number of next page

READ TABLE IN_PAR WITH KEY &amp;#145;PAGE&amp;#146;. 
CHECK SY-SUBRC = 0. 
PAGNUM = IN_PAR-VALUE.

READ TABLE IN_PAR WITH KEY &amp;#145;NEXTPAGE&amp;#146;. 
CHECK SY-SUBRC = 0. 
NEXTPAGE = IN_PAR-VALUE.

READ TABLE IN_PAR WITH KEY &amp;#145;BARCODE&amp;#146;. 
CHECK SY-SUBRC = 0. 
IF PAGNUM = 1. 
OUT_PAR-VALUE = &amp;#145;|&amp;#146;. "First page  
ELSE. 
OUT_PAR-VALUE = &amp;#145;||&amp;#146;. "Next page  
ENDIF.

IF NEXTPAGE = 0. 
OUT_PAR-VALUE+2 = &amp;#145;L&amp;#146;. "Flag: last page

ENDIF.

MODIFY OUT_PAR INDEX SY-TABIX.

ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt; Thomas.&lt;/P&gt;&lt;P&gt; Please mark point if your got solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 08:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-sapscript-sd-packing-list/m-p/1325022#M166652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-09T08:35:25Z</dc:date>
    </item>
  </channel>
</rss>

