<?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: sap script - using form-endform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517405#M1424528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jan 2010 11:36:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-10T11:36:05Z</dc:date>
    <item>
      <title>sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517399#M1424522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used  follwing code in subroutine,but in quality control this is rejected because  of "structure" keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM  GET_TKNUM   TABLES      CT_INTAB  structure   ITCSY&lt;/P&gt;&lt;P&gt;                                                   CT_OUTTAB structure  ITCSY.&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 CT_INTAB[] IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LOOP AT CT_INTAB INTO LV_INTAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE CT_INTAB  INDEX 1.&lt;/P&gt;&lt;P&gt;      CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      MOVE ct_INTAB-VALUE TO LV_REQNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR CT_INTAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i used following code but values are not coming from script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SHIP_INFO USING CT_INTAB TYPE TABLE ITCSY&lt;/P&gt;&lt;P&gt;                     CT_OUTTAB TYPE TABLE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF CT_INTAB[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT CT_INTAB INTO LV_INTAB.&lt;/P&gt;&lt;P&gt;      READ TABLE CT_INTAB INTO LV_INTAB INDEX 1.&lt;/P&gt;&lt;P&gt;      CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE LV_INTAB-VALUE TO LV_SHIPNO.&lt;/P&gt;&lt;P&gt;      CLEAR LV_INTAB.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is another way to define form?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517399#M1424522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517400#M1424523</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;It should work that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM xxxTABLES in_tab STRUCTURE itcsy out_tab
STRUCTURE itcsy.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error are you getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517400#M1424523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517401#M1424524</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;According Quality manager " structure" key word should not be used( it is obselete). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in your code "structure"  key word is there. is there any other way? Please infor me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517401#M1424524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517402#M1424525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using 'LIKE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="Code"&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;LOOP AT CT_INTAB INTO LV_INTAB.&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;ENDLOOP.&lt;/LI&gt;&lt;/UL&gt;
FORM GET_TKNUM TABLES CT_INTAB LIKE ITCSY[]
                      CT_OUTTAB LIKE ITCSY[].

  IF CT_INTAB[] IS NOT INITIAL.

    READ TABLE CT_INTAB INDEX 1.
    CHECK SY-SUBRC = 0.
    MOVE CT_INTAB-VALUE TO LV_REQNO.

    CLEAR CT_INTAB.

  ENDIF.

...
...
...
ENDFORM
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also refer to the below sample code  from ABAP HELP. (I could not find a hyper link to it though)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF FLIGHT_STRUC, 
         FLCARRID LIKE SFLIGHT-CARRID, 
         PRICE    LIKE  SFLIGHT-FLDATE, 
       END   OF FLIGHT_STRUC. 

DATA: MY_FLIGHT TYPE TABLE OF FLIGHT_STRUC, 
      IBOOK1    TYPE TABLE OF SBOOK, 
      IBOOK2    LIKE TABLE OF IBOOK1, 
      STRUC     TYPE SBOOK. 

PERFORM DISPLAY USING MY_FLIGHT IBOOK1 IBOOK2 STRUC. 

FORM DISPLAY USING  P_ITAB  LIKE      MY_FLIGHT[] 
                    P_BOOK1 LIKE      IBOOK1[] 
                    P_BOOK2 LIKE      IBOOK2[] 
                    P_STRU  LIKE      STRUC. 

  DATA: L_FLIGHT  LIKE LINE OF P_ITAB, 
        L_CARRID  LIKE L_FLIGHT-FLCARRID. 
  ... 
  WRITE: / P_STRU-CARRID, P_STRU-CONNID. 
  ... 
  LOOP AT P_ITAB INTO L_FLIGHT WHERE FLCARRID = L_CARRID. 
    ... 
  ENDLOOP. 
ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 18:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517402#M1424525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T18:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517403#M1424526</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;U can't decide how to write the form in according your quality control, but u need to respect the rules of calling tool, here the standard still uses the "obsolete" statament to call the routine, that means the standard expects a routine with &lt;STRONG&gt;STRUCTURE&lt;/STRONG&gt; in the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case u can't respect the rule of your quality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 18:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517403#M1424526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T18:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517404#M1424527</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;observe F1 help on FORM - parameters -&amp;gt; Obsolete Typing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Formal parameters typed with STRUCTURE can usually be replaced by formal parameters typed with TYPE or LIKE.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that this is still used in SAP documentation for SAPScript is that SAPScript it self is considered obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM GET_TKNUM 
  TABLES CT_INTAB  LIKE ITCSY
         CT_OUTTAB LIKE ITCSY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is syntactically correct and equivalent to STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 23:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517404#M1424527</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-08T23:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: sap script - using form-endform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517405#M1424528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2010 11:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-form-endform/m-p/6517405#M1424528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-10T11:36:05Z</dc:date>
    </item>
  </channel>
</rss>

