<?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: code in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796696#M652902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i am populating the values to the text element...............i.e fields from wa_proj and wa_prps..................but it's not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 06:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T06:24:45Z</dc:date>
    <item>
      <title>code in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796694#M652900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi.........&lt;/P&gt;&lt;P&gt; I am developing a smartform........using Zprogram.My zprogram coding is as follows...............here from my Zprogram I am exporting the structures wa_proj and wa_prps........when I am executing my Zprogram the values are being populated into the smartform............but when I am trying to execute my smartform no values are being populated into wa_proj and wa_prps.........I had defined in Form Interface in smartform also.....................What might be the problem....&lt;/P&gt;&lt;P&gt;Can anyone help me out........&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;tables:gmgr,proj,prps.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_gnbr like gmgr-grant_nbr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt; l_wbs_element like gmgr-wbs_element,&lt;/P&gt;&lt;P&gt; wa_prps       like prps,&lt;/P&gt;&lt;P&gt; wa_proj       like proj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fm_name type RS38L_FNAM.&lt;/P&gt;&lt;P&gt;*Read WBS element&lt;/P&gt;&lt;P&gt;SELECT single wbs_element into l_wbs_element&lt;/P&gt;&lt;P&gt;  FROM gmgr&lt;/P&gt;&lt;P&gt; WHERE grant_nbr = p_gnbr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT single * into wa_prps&lt;/P&gt;&lt;P&gt;      FROM prps&lt;/P&gt;&lt;P&gt;     WHERE pspnr = l_wbs_element.&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;    SELECT single * into wa_proj&lt;/P&gt;&lt;P&gt;      FROM proj&lt;/P&gt;&lt;P&gt;     WHERE pspnr = wa_prps-psphi.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;       exporting  formname           = 'ZSAMPLE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                variant            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                direct_call        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       importing  fm_name            = FM_NAME&lt;/P&gt;&lt;P&gt;       exceptions no_form            = 1&lt;/P&gt;&lt;P&gt;                  no_function_module = 2&lt;/P&gt;&lt;P&gt;                  others             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  error handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME&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;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_OPTIONS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    WA_PRPS                    = wa_prps&lt;/P&gt;&lt;P&gt;    WA_PROJ                    = wa_proj&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;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FORMATTING_ERROR           = 1&lt;/P&gt;&lt;P&gt;    INTERNAL_ERROR             = 2&lt;/P&gt;&lt;P&gt;    SEND_ERROR                 = 3&lt;/P&gt;&lt;P&gt;    USER_CANCELED              = 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796694#M652900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T06:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: code in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796695#M652901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wat do u mean by :"but when I am trying to execute my smartform no values are being populated into wa_proj and wa_prps"...r u using text elements to display da data in smartform???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796695#M652901</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-09-12T06:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: code in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796696#M652902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i am populating the values to the text element...............i.e fields from wa_proj and wa_prps..................but it's not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796696#M652902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T06:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: code in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796697#M652903</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;put a break point in the smartforms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean before displaying the vlaues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write program lines&lt;/P&gt;&lt;P&gt;and write some code&lt;/P&gt;&lt;P&gt;in order to see the values are coming in to &lt;/P&gt;&lt;P&gt;WA_PRPS &lt;/P&gt;&lt;P&gt;WA_PROJ  or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 06:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796697#M652903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T06:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: code in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796698#M652904</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;try IN CAPITAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_PRPS = WA_PRPS&lt;/P&gt;&lt;P&gt;WA_PROJ = WA_PROJ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-in-smartforms/m-p/2796698#M652904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:06:38Z</dc:date>
    </item>
  </channel>
</rss>

