<?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: USER EXIT for Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443623#M1552016</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;ZZSO_SORT is a custom field appended in VBAK?&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, 10 Dec 2010 20:11:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-10T20:11:49Z</dc:date>
    <item>
      <title>USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443620#M1552013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two user group for creating the Sales Order.They are&lt;/P&gt;&lt;P&gt;1. Sales order creation (Real ) and 2. Sales Order creation (Virtual ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is that a user(s) belonging to Real must be able to create Virtual SALES ORDER   and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have identified the table and the field as mentioned below.&lt;/P&gt;&lt;P&gt;Table is VBAK  ( Transaction Code : VA01 &amp;amp; VA02),  &amp;amp; Field is ZZSO_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we are planning to write a Validation in FI  as per the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validation 1.&lt;/P&gt;&lt;P&gt;IF T.CODE ; VA01 or VA02 and User id isXXXXX ( REAL group),then check  ZZSO_SORT = REAL (hard code value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validation 2.&lt;/P&gt;&lt;P&gt;IF T.CODE ; VA01 or VA02 and User id isXXXXX ( VIRTUAL group),then check  ZZSO_SORT = VIRTUAL (hard code value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we don't have the table VBAK( and also the feild ZZSO_SORT) in FI validation (OB28),so we have to write an user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we have fever knowledge about writing a code for user exit( as per above logic) and assigning the same to the respective Validation,it will great,if some one can assist us to achieve our target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 16:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443620#M1552013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443621#M1552014</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's very strange you want to put a validation for Sales Order into FI validation: I can't understand it, why do you want to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main user-exits for sales order are in include MV45AFZ*, perhaps you can try to use the user-exit USEREXIT_CHECK_VBAK defined in the include MV45AFZB&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, 10 Dec 2010 16:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443621#M1552014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443622#M1552015</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 your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am an FICO consultant and don't have any idea about ABAP. So if any one can suggest me how can i write the a user exit in VALIDATION,  so that i can fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we dont have an ABAPer with us at this point of time and this issue has to fix immediately,so am seeking your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do revert.&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;Edited by: Rob Burbank on Dec 10, 2010 3:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 20:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443622#M1552015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443623#M1552016</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;ZZSO_SORT is a custom field appended in VBAK?&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, 10 Dec 2010 20:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443623#M1552016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443624#M1552017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 20:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443624#M1552017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T20:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT for Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443625#M1552018</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 don't know where the information for that field is from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Validation 1.
IF T.CODE ; VA01 or VA02 and User id isXXXXX ( REAL group),then check ZZSO_SORT = REAL (hard code value)

Validation 2.
IF T.CODE ; VA01 or VA02 and User id isXXXXX ( VIRTUAL group),then check ZZSO_SORT = VIRTUAL (hard code value)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field VBAK-ZZSO_SORT can be filled programatically by the user-exit USEREXIT_MOVE_FIELD_TO_VBAK (include MV45AFZZ):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USEREXIT_MOVE_FIELD_TO_VBAK.

  IF T180-AKTYP = 'H' OR                                    "----&amp;gt;VA01
     T180-AKTYP = 'V'.                                      "----&amp;gt;VA02
    IF SY-UNAME = &amp;lt;......&amp;gt;.
      VBAK-ZZSO_SORT = 'REAL'.
    ENDIF.
    IF SY-UNAME = &amp;lt;......&amp;gt;.
      VBAK-ZZSO_SORT = 'VIRTUAL'.
    ENDIF.    
  ENDIF.
ENDFORM.                    "USEREXIT_MOVE_FIELD_TO_VBAK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise it needs to know who/what inserts the value of  VBAK-ZZSO_SORT in order to decide where the control has to be placed.&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, 10 Dec 2010 21:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-validation/m-p/7443625#M1552018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T21:02:37Z</dc:date>
    </item>
  </channel>
</rss>

