<?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 sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078828#M431123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sales order there are number of brokers(lifnr) are involved in items selling&lt;/P&gt;&lt;P&gt;i want send acknowledgement each broker(lifnr) with respective items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have all the items corresponding to sales order(vbeln) in one internal table.&lt;/P&gt;&lt;P&gt;only items are different in broker  acknowledgement form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;how can i trigger form for each broker(lifnr)&amp;lt;/b&amp;gt; and all other details same in each form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. reward point sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2007 05:17:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-09T05:17:47Z</dc:date>
    <item>
      <title>sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078828#M431123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sales order there are number of brokers(lifnr) are involved in items selling&lt;/P&gt;&lt;P&gt;i want send acknowledgement each broker(lifnr) with respective items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have all the items corresponding to sales order(vbeln) in one internal table.&lt;/P&gt;&lt;P&gt;only items are different in broker  acknowledgement form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;how can i trigger form for each broker(lifnr)&amp;lt;/b&amp;gt; and all other details same in each form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. reward point sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 05:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078828#M431123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T05:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078829#M431124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first desing your own script and custom driver program for this.&lt;/P&gt;&lt;P&gt;Create the form in SE71 with the data and fetch the data in the driver program from the related SO tables like VBAK,VBAP etc.&lt;/P&gt;&lt;P&gt;Call the form in the driver program OPEN_FORM.&lt;/P&gt;&lt;P&gt;put the all related data in one internal table ITAB , sort it by Broker(LIFNR) field&lt;/P&gt;&lt;P&gt;Loop at ITAB.&lt;/P&gt;&lt;P&gt; at new lifnr.&lt;/P&gt;&lt;P&gt;    call function Start_form using window element.&lt;/P&gt;&lt;P&gt; endat.&lt;/P&gt;&lt;P&gt;call function write_form using window element.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;when you use Start_form and Write_form for each lifnr, data will be printed using the same form for different brokers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anji Reddy Vangala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 05:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078829#M431124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T05:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078830#M431125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;This is a sample program which triggers a new form for each new value of EBELN...&lt;/P&gt;&lt;P&gt;Check the way in which the START_FORM and END_FORM are used in this program , then u can easily solve your problem....&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  ekpo.&lt;/P&gt;&lt;P&gt;*"Selection screen elements............................................&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;  s_ebeln for ekpo-ebeln.              " Puchasing document numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&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;Type declaration of the structure to hold adress numbers            *&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;types:&lt;/P&gt;&lt;P&gt;  begin of type_s_ekpo,&lt;/P&gt;&lt;P&gt;    ebeln type ekpo-ebeln,             " Purchase order number&lt;/P&gt;&lt;P&gt;    ebelp type ekpo-ebelp,             " Item number&lt;/P&gt;&lt;P&gt;    txz01 type ekpo-txz01,             " Material description&lt;/P&gt;&lt;P&gt;    matnr type ekpo-matnr,             " Material number&lt;/P&gt;&lt;P&gt;    werks type ekpo-werks,             " Plant&lt;/P&gt;&lt;P&gt;    lgort type ekpo-lgort,             " Storage location&lt;/P&gt;&lt;P&gt;    netpr type ekpo-netpr,             " Net price&lt;/P&gt;&lt;P&gt;    waers type ekko-waers,             " Price unit&lt;/P&gt;&lt;P&gt;    lifnr type ekko-lifnr,             " Vendor number&lt;/P&gt;&lt;P&gt;    aedat type ekpo-aedat,             " Entry Date&lt;/P&gt;&lt;P&gt;  end of type_s_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;  begin of type_s_address,&lt;/P&gt;&lt;P&gt;    werks type ekpo-werks,&lt;/P&gt;&lt;P&gt;    lgort type ekpo-lgort,&lt;/P&gt;&lt;P&gt;  end of type_s_address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&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;Declaration of internal table and work area to store address numbers*&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;data :&lt;/P&gt;&lt;P&gt;  t_ekpo type standard table&lt;/P&gt;&lt;P&gt;           of type_s_ekpo&lt;/P&gt;&lt;P&gt;      initial size 0,&lt;/P&gt;&lt;P&gt;  t_address type standard table&lt;/P&gt;&lt;P&gt;              of type_s_address&lt;/P&gt;&lt;P&gt;         initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wa_ekpo type type_s_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Declarations....................................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_lines   type i,&lt;/P&gt;&lt;P&gt;  w_address type c,&lt;/P&gt;&lt;P&gt;  w_adrnr   type adrc-addrnumber,&lt;/P&gt;&lt;P&gt;  w_flag    type c,&lt;/P&gt;&lt;P&gt;  w_ebeln   type ekpo-ebeln,&lt;/P&gt;&lt;P&gt;  w_waers   type ekko-waers,&lt;/P&gt;&lt;P&gt;  w_aedat   type ekpo-aedat,&lt;/P&gt;&lt;P&gt;  w_lifnr   type ekko-lifnr,&lt;/P&gt;&lt;P&gt;  w_werks   type ekpo-werks,&lt;/P&gt;&lt;P&gt;  w_lgort   type ekpo-lgort,&lt;/P&gt;&lt;P&gt;  w_page    type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&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;                      AT SELECTION-SCREEN EVENT                     *&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;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"----&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;                      START OF SELECTION EVENT                      *&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;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform operation.&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  operation&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 opens a form and sends data to that and closes it*&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There are no interface parameters for this subroutine                *&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 operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'OPEN_FORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FORM                              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     CANCELED                          = 1&lt;/P&gt;&lt;P&gt;     DEVICE                            = 2&lt;/P&gt;&lt;P&gt;     FORM                              = 3&lt;/P&gt;&lt;P&gt;     OPTIONS                           = 4&lt;/P&gt;&lt;P&gt;     UNCLOSED                          = 5&lt;/P&gt;&lt;P&gt;     MAIL_OPTIONS                      = 6&lt;/P&gt;&lt;P&gt;     ARCHIVE_ERROR                     = 7&lt;/P&gt;&lt;P&gt;     INVALID_FAX_NUMBER                = 8&lt;/P&gt;&lt;P&gt;     MORE_PARAMS_NEEDED_IN_BATCH       = 9&lt;/P&gt;&lt;P&gt;     SPOOL_ERROR                       = 10&lt;/P&gt;&lt;P&gt;     CODEPAGE                          = 11&lt;/P&gt;&lt;P&gt;     OTHERS                            = 12.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at t_ekpo into wa_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_ebeln = wa_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;    w_aedat = wa_ekpo-aedat.&lt;/P&gt;&lt;P&gt;    w_waers = wa_ekpo-waers.&lt;/P&gt;&lt;P&gt;    w_lifnr = wa_ekpo-lifnr.&lt;/P&gt;&lt;P&gt;    w_werks = wa_ekpo-werks.&lt;/P&gt;&lt;P&gt;    w_lgort = wa_ekpo-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at new ebeln.&lt;/P&gt;&lt;P&gt;      select werks&lt;/P&gt;&lt;P&gt;             lgort&lt;/P&gt;&lt;P&gt;        from ekpo&lt;/P&gt;&lt;P&gt;        into table t_address&lt;/P&gt;&lt;P&gt;         for all entries in t_ekpo&lt;/P&gt;&lt;P&gt;       where ebeln eq wa_ekpo-ebeln&lt;/P&gt;&lt;P&gt;         and werks eq t_ekpo-werks&lt;/P&gt;&lt;P&gt;         and lgort eq t_ekpo-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      describe table t_address lines w_lines.&lt;/P&gt;&lt;P&gt;      if w_lines eq 1.&lt;/P&gt;&lt;P&gt;        w_address = '1'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'START_FORM'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ARCHIVE_INDEX          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         FORM                   = 'YH640_060205'&lt;/P&gt;&lt;P&gt;         LANGUAGE               = SY-LANGU&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         FORM                   = 1&lt;/P&gt;&lt;P&gt;         FORMAT                 = 2&lt;/P&gt;&lt;P&gt;         UNENDED                = 3&lt;/P&gt;&lt;P&gt;         UNOPENED               = 4&lt;/P&gt;&lt;P&gt;         UNUSED                 = 5&lt;/P&gt;&lt;P&gt;         SPOOL_ERROR            = 6&lt;/P&gt;&lt;P&gt;         CODEPAGE               = 7&lt;/P&gt;&lt;P&gt;         OTHERS                 = 8.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       ELEMENT                        = 'DATA'&lt;/P&gt;&lt;P&gt;       FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;       TYPE                           = 'BODY'&lt;/P&gt;&lt;P&gt;       WINDOW                         = 'MAIN'&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       ELEMENT                        = 1&lt;/P&gt;&lt;P&gt;       FUNCTION                       = 2&lt;/P&gt;&lt;P&gt;       TYPE                           = 3&lt;/P&gt;&lt;P&gt;       UNOPENED                       = 4&lt;/P&gt;&lt;P&gt;       UNSTARTED                      = 5&lt;/P&gt;&lt;P&gt;       WINDOW                         = 6&lt;/P&gt;&lt;P&gt;       BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;P&gt;       SPOOL_ERROR                    = 8&lt;/P&gt;&lt;P&gt;       CODEPAGE                       = 9&lt;/P&gt;&lt;P&gt;       OTHERS                         = 10.&lt;/P&gt;&lt;P&gt;    if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'END_FORM'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          RESULT                         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;           UNOPENED                       = 1&lt;/P&gt;&lt;P&gt;           BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;P&gt;           SPOOL_ERROR                    = 3&lt;/P&gt;&lt;P&gt;           CODEPAGE                       = 4&lt;/P&gt;&lt;P&gt;           OTHERS                         = 5&lt;/P&gt;&lt;P&gt;                  .&lt;/P&gt;&lt;P&gt;        if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        clear : t_address,w_address, w_flag.&lt;/P&gt;&lt;P&gt;      endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     UNOPENED                       = 1&lt;/P&gt;&lt;P&gt;     BAD_PAGEFORMAT_FOR_PRINT       = 2&lt;/P&gt;&lt;P&gt;     SEND_ERROR                     = 3&lt;/P&gt;&lt;P&gt;     SPOOL_ERROR                    = 4&lt;/P&gt;&lt;P&gt;     CODEPAGE                       = 5&lt;/P&gt;&lt;P&gt;     OTHERS                         = 6.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;endform.                               " Form operation.&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  validation&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 validates the user input                        *&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There are no interface parameters for this subroutine                *&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 validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ekpo~ebeln&lt;/P&gt;&lt;P&gt;         ebelp&lt;/P&gt;&lt;P&gt;         txz01&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         werks&lt;/P&gt;&lt;P&gt;         lgort&lt;/P&gt;&lt;P&gt;         netpr&lt;/P&gt;&lt;P&gt;         waers&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         ekko~aedat&lt;/P&gt;&lt;P&gt;    into table t_ekpo&lt;/P&gt;&lt;P&gt;    from ekpo as ekpo inner join ekko as ekko&lt;/P&gt;&lt;P&gt;      on ekpo&lt;SUB&gt;ebeln eq ekko&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;   where ekpo~ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e020(yh640).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " Form validation&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  address                                                  *&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;form address tables in_storage  structure itcsy&lt;/P&gt;&lt;P&gt;                   out_storage  structure itcsy.&lt;/P&gt;&lt;P&gt;  data :&lt;/P&gt;&lt;P&gt;    lw_werks type ekpo-werks,&lt;/P&gt;&lt;P&gt;    lw_lgort type ekpo-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table in_storage with key name = 'W_WERKS'.&lt;/P&gt;&lt;P&gt;  check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  lw_werks = in_storage-value.&lt;/P&gt;&lt;P&gt;  read table in_storage with key name = 'W_LGORT'.&lt;/P&gt;&lt;P&gt;  check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  lw_lgort = in_storage-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select adrnr&lt;/P&gt;&lt;P&gt;    from twlad&lt;/P&gt;&lt;P&gt;    into w_adrnr&lt;/P&gt;&lt;P&gt;   where werks eq lw_werks&lt;/P&gt;&lt;P&gt;     and lgort eq lw_lgort.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    w_flag = '1'.&lt;/P&gt;&lt;P&gt;    read table out_storage with key name = 'W_ADRNR'.&lt;/P&gt;&lt;P&gt;    out_storage-value = w_adrnr.&lt;/P&gt;&lt;P&gt;    modify out_storage index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 05:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript/m-p/2078830#M431125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T05:27:30Z</dc:date>
    </item>
  </channel>
</rss>

