<?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: CJ20N - Validation on fields in in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817706#M918213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gimmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM CJDT_PRTE_GET actually did the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although only at WBS level (not project level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it satisfies the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2008 08:49:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-25T08:49:05Z</dc:date>
    <item>
      <title>CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817701#M918208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make the following date fields MANDATORY in cj20n:&lt;/P&gt;&lt;P&gt;Basic Start&lt;/P&gt;&lt;P&gt;Basic Fin&lt;/P&gt;&lt;P&gt;( in dates tab WBS )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know how to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to check these fields in method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF_EX_WORKBREAKDOWN_UPDATE~AT_SAVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't know how to access the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 09:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817701#M918208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817702#M918209</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 think there's quite a number of modification required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type group CJBAI (can be seen via SE11) called by this modification does not contain the basic start and end dates.  I think you need to modify this type group or create a new one to be referenced.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Use SE19 to create a 'z' class type, definition WORKBREAKDOWN_UPDATE.  then at the method AT_SAVE and put in the check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 02:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817702#M918209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T02:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817703#M918210</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;Thanks for the helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually meanwhile we have solved the problem using the code below ( getting the value of the variable from the calling program ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your solution seems more suitable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean I should append a fields to table PRPS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should it be named and populated ?&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;Ofer&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;data: name_pstrt(40) value '(SAPLCJTR)PRTE',&lt;/P&gt;&lt;P&gt;        ps_pstrt type  PRTE.&lt;/P&gt;&lt;P&gt;  field-symbols: &amp;lt;fs_pstrt&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:  catch1 type ref to cx_sy_assign_cast_illegal_cast,&lt;/P&gt;&lt;P&gt;         catch2 type ref to cx_sy_assign_cast_unknown_type,&lt;/P&gt;&lt;P&gt;         catch3 type ref to cx_sy_assign_out_of_range.&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;P&gt;      assign (name_pstrt) to &amp;lt;fs_pstrt&amp;gt;.&lt;/P&gt;&lt;P&gt;    catch cx_sy_assign_cast_illegal_cast into catch1.&lt;/P&gt;&lt;P&gt;    catch cx_sy_assign_cast_unknown_type into catch2.&lt;/P&gt;&lt;P&gt;    catch cx_sy_assign_out_of_range      into catch3.&lt;/P&gt;&lt;P&gt;  endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  ps_pstrt = &amp;lt;fs_pstrt&amp;gt;.&lt;/P&gt;&lt;P&gt;  IF ( ps_pstrt-pstrt is INITIAL&lt;/P&gt;&lt;P&gt;       or ps_pstrt-estrt is INITIAL )&lt;/P&gt;&lt;P&gt;... error message ...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 16:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817703#M918210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T16:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817704#M918211</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;To be frank I was working on about the same thing (mine is checking the settlement rule structure and content that user enters on screen) and just managed to overcome my problem today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not have to modify any tables or class types at all after all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ~AT_SAVE coding, you can call up function CJDT_PRTE_GET and check the content of the date.  If it is initial then call up an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to get all the function modules that's called at that screen, take a look at the function group CJTR (via SE80).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gimmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 06:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817704#M918211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T06:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817705#M918212</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;the method (IF_EX_WORKBREAKDOWN_UPDATE~AT_SAVE) have parameters IT_WBS_ELEMENT, IT_WBS_HIERARCHY, ERROR_WITH_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will get values in IT_WBS_ELEMENT internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as below exp code u can access values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: wa_prps       like LINE  OF it_wbs_element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_prps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_WBS_ELEMENT INTO  wa_prps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF  ( wa_prps-stufe = 1 OR wa_prps-stufe = 2 )&lt;/P&gt;&lt;P&gt;    AND ( wa_prps-plakz = 'X' OR wa_prps-belkz = 'X' ).&lt;/P&gt;&lt;P&gt;      message e001(ZPS_MSG) with wa_prps-POSID wa_prps-stufe.&lt;/P&gt;&lt;P&gt;    ENDIF.&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;U can validate the data as per ur requirments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gupta........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 06:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817705#M918212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T06:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: CJ20N - Validation on fields in</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817706#M918213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gimmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM CJDT_PRTE_GET actually did the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although only at WBS level (not project level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it satisfies the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2008 08:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cj20n-validation-on-fields-in/m-p/3817706#M918213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-25T08:49:05Z</dc:date>
    </item>
  </channel>
</rss>

