<?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: exit or badi for validating asset master creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442400#M826720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more thing please. When I display a error message due to a validation I am using the function as you specified: &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not go to the transaction screen and just holds on to the error. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 02:54:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T02:54:02Z</dc:date>
    <item>
      <title>exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442393#M826713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please refer me to the exit for validating asset master data. I need to validate asset number for number range (as it is alphanumeric). Also I need to validate the entries in tab 'Time-dependent'. So an exit at around SAVE event would be required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 04:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442393#M826713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T04:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442394#M826714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use validations or substitutions for this check. I saw some exits in validations of asset master. So how can I use validations through those use exit. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442394#M826714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442395#M826715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;The following are the exits found for AS01&lt;/P&gt;&lt;P&gt;AAPM0001            Integration of asset accounting and plant maintenance&lt;/P&gt;&lt;P&gt;AFAR0003            External changeover method&lt;/P&gt;&lt;P&gt;AFAR0004            Determination of proportional values for retirement&lt;/P&gt;&lt;P&gt;AINT0004            Change amount posted for certain areas&lt;/P&gt;&lt;P&gt;AINT0005            Dummy for extended syntax check. Do not use.&lt;/P&gt;&lt;P&gt;AISA0001            Assign Inventory Number&lt;/P&gt;&lt;P&gt;AIST0001            Exchange number range in master data maintenance&lt;/P&gt;&lt;P&gt;AIST0002            Customer fields in asset master&lt;/P&gt;&lt;P&gt;AMSP0002            Determine relationship type for two company codes&lt;/P&gt;&lt;P&gt;TRAN0001            User exit for asset transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these.. u can find out the userexits using SMOD transaction( Goto smod input exit name eg: AAPM0001&lt;/P&gt;&lt;P&gt;and click on components, u can see the exits available.)&lt;/P&gt;&lt;P&gt;Check whethr it satisfies your requirement..&lt;/P&gt;&lt;P&gt;(U can put break points at these FMs and check whether it is getting activated while creating asset..(running AS01 tcode))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whethr AIST0001 will meet your requiremnt&lt;/P&gt;&lt;P&gt;there is an exit EXIT_SAPLAIST_001 in tis which is used for exchange number range&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 08:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442395#M826715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442396#M826716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Time Dependent Tab, You need to write the code in the below exit:&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely solve your issue as i already worked on this exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Note:Reward Points if you find useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442396#M826716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442397#M826717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swaminathan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have used the exit 'EXIT_SAPLAIST_003' as suggested but the it is not reading any field of table ANLZ so I cannot put a check for ANLZ fields. Please advise how can that be done. Thanks.&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;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 02:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442397#M826717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T02:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442398#M826718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i have done a check for ANLZ table.&lt;/P&gt;&lt;P&gt;&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;  Include           ZXAISU04                                         *&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;*************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;              D A T A   D E C L A R A T I O N                        *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*************************************************************************&lt;/P&gt;&lt;P&gt;*Tables&lt;/P&gt;&lt;P&gt; TABLES: anlz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Types contianing the structure of tables ANLZ TITAB&lt;/P&gt;&lt;P&gt; DATA:  BEGIN OF ly_anlz_cot.&lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE anlz.&lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE titab.&lt;/P&gt;&lt;P&gt; DATA:    kz(1).&lt;/P&gt;&lt;P&gt; DATA:  END OF ly_anlz_cot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Local Internal Tables&lt;/P&gt;&lt;P&gt; DATA: lt_anla        TYPE STANDARD TABLE OF ranla ,&lt;/P&gt;&lt;P&gt;       lt_anlz        LIKE ly_anlz_cot OCCURS 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: lt_anla_aux    LIKE ranla OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       lt_anlz_aux    LIKE ly_anlz_cot OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Local Work Areas&lt;/P&gt;&lt;P&gt; DATA: lw_anla        TYPE ranla.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Variables&lt;/P&gt;&lt;P&gt; DATA:&lt;/P&gt;&lt;P&gt;       lv_anla        TYPE char30 VALUE '(SAPLAIST)ANLA', "ANLA Table&lt;/P&gt;&lt;P&gt;       lv_anlz        TYPE char30 VALUE '(SAPLAIST)ANLZ', "ANLZ Table&lt;/P&gt;&lt;P&gt;       lv_anlz_cot    TYPE char30 VALUE '(SAPLAIST)ANLZ_COT[]', "ANLZ Table&lt;/P&gt;&lt;P&gt;       lv_ok-code     TYPE char30 VALUE '(SAPLAIST)OK-CODE',&lt;/P&gt;&lt;P&gt;       lv_plant       TYPE werks_d,&lt;/P&gt;&lt;P&gt;       lv_location    TYPE stort,&lt;/P&gt;&lt;P&gt;       lv_resp_cost   TYPE kostlv,&lt;/P&gt;&lt;P&gt;       lv_cost        TYPE kostl,&lt;/P&gt;&lt;P&gt;       lv_flag_resp   TYPE aavis,&lt;/P&gt;&lt;P&gt;       lv_flag_cost   TYPE aavis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_invnr type invnr,&lt;/P&gt;&lt;P&gt;     lv_anln1 type anln1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Constants&lt;/P&gt;&lt;P&gt; CONSTANTS:&lt;/P&gt;&lt;P&gt;       lc_update      TYPE aavis    VALUE 'U',&lt;/P&gt;&lt;P&gt;       lc_flag        TYPE aavis    VALUE 'X',&lt;/P&gt;&lt;P&gt;       lc_space       TYPE aavis    VALUE ' ',&lt;/P&gt;&lt;P&gt;       lc_save        TYPE fcode    VALUE 'BUCH',&lt;/P&gt;&lt;P&gt;       lc_save1       TYPE fcode    VALUE 'SAVE',&lt;/P&gt;&lt;P&gt;       lc_general     TYPE fcode    VALUE 'TAB01',&lt;/P&gt;&lt;P&gt;       lc_tab         TYPE fcode    VALUE 'TAB02',&lt;/P&gt;&lt;P&gt;       lc_allocation  TYPE fcode    VALUE 'TAB03',&lt;/P&gt;&lt;P&gt;       lc_origin      TYPE fcode    VALUE 'TAB04',&lt;/P&gt;&lt;P&gt;       lc_depre_area  TYPE fcode    VALUE 'TAB08',&lt;/P&gt;&lt;P&gt;       lc_yes         TYPE fcode    VALUE 'YES',&lt;/P&gt;&lt;P&gt;       lc_msgtyp      TYPE msgty_co VALUE 'E',&lt;/P&gt;&lt;P&gt;       lc_msgid       TYPE arbgb    VALUE 'ZMBRAA_SU',&lt;/P&gt;&lt;P&gt;       lc_msgnr       TYPE msgnr    VALUE '002',&lt;/P&gt;&lt;P&gt;*-----Begin of &amp;lt;ins&amp;gt; 2007.01.10 PR1151 D12K912685&lt;/P&gt;&lt;P&gt;       lc_dist        TYPE fcode    VALUE 'DIST',&lt;/P&gt;&lt;P&gt;       lc_back        TYPE fcode    VALUE 'RW',&lt;/P&gt;&lt;P&gt;       lc_comp_code   TYPE aavis    VALUE '9'.&lt;/P&gt;&lt;P&gt;*-----End of &amp;lt;ins&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Field Symbols&lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;      &amp;lt;fs_anlz&amp;gt;       TYPE STANDARD TABLE,&lt;/P&gt;&lt;P&gt;      &amp;lt;fs_anla&amp;gt;       STRUCTURE anla DEFAULT anla,&lt;/P&gt;&lt;P&gt;      &amp;lt;fs_anlz_cot&amp;gt;   STRUCTURE anlz DEFAULT anlz,&lt;/P&gt;&lt;P&gt;      &amp;lt;fs_okcode&amp;gt; TYPE char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assigning the values of table ANLA to field symbol&lt;/P&gt;&lt;P&gt; ASSIGN (lv_anla) TO &amp;lt;fs_anla&amp;gt;.&lt;/P&gt;&lt;P&gt; MOVE   &amp;lt;fs_anla&amp;gt; TO lw_anla.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Assigning the values of table ANLZ to field symbol&lt;/P&gt;&lt;P&gt; ASSIGN (lv_anlz_cot) TO &amp;lt;fs_anlz&amp;gt;.&lt;/P&gt;&lt;P&gt; ASSIGN (lv_anlz) TO &amp;lt;fs_anlz_cot&amp;gt;.&lt;/P&gt;&lt;P&gt; ASSIGN (lv_ok-code) TO &amp;lt;fs_okcode&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MOVE   &amp;lt;fs_anlz&amp;gt; TO lt_anlz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Begin of &amp;lt;ins&amp;gt; Siva 14/1/2006&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'AS01'.&lt;/P&gt;&lt;P&gt;if &amp;lt;fs_anla&amp;gt;-bukrs = '0650' and sy-dynnr = '1000' .&lt;/P&gt;&lt;P&gt;select single anln1 invnr into (lv_anln1,lv_invnr) from anla where invnr = &amp;lt;fs_anla&amp;gt;-invnr.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial.&lt;/P&gt;&lt;P&gt;IF sy-ucomm = lc_save OR sy-ucomm = lc_yes OR sy-ucomm EQ lc_back OR sy-ucomm EQ lc_dist .&lt;/P&gt;&lt;P&gt;message e503(z001) with lv_invnr lv_anln1.&lt;/P&gt;&lt;P&gt;elseIF sy-ucomm EQ lc_general OR sy-ucomm EQ lc_tab OR sy-ucomm EQ lc_allocation OR sy-ucomm EQ lc_origin or sy-ucomm EQ ''.&lt;/P&gt;&lt;P&gt;message w503(z001) with lv_invnr lv_anln1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'AS02'.&lt;/P&gt;&lt;P&gt;if &amp;lt;fs_anla&amp;gt;-bukrs = '0650' and sy-dynnr = '1000'.&lt;/P&gt;&lt;P&gt;select single anln1 invnr into (lv_anln1,lv_invnr) from anla where invnr = &amp;lt;fs_anla&amp;gt;-invnr.&lt;/P&gt;&lt;P&gt;if sy-subrc is initial and &amp;lt;fs_anla&amp;gt;-anln1 &amp;lt;&amp;gt; lv_anln1.&lt;/P&gt;&lt;P&gt;IF sy-ucomm = lc_save OR sy-ucomm = lc_yes OR sy-ucomm EQ lc_back OR sy-ucomm EQ lc_dist .&lt;/P&gt;&lt;P&gt;message e503(z001) with lv_invnr lv_anln1.&lt;/P&gt;&lt;P&gt;elseIF sy-ucomm EQ lc_general OR sy-ucomm EQ lc_tab OR sy-ucomm EQ lc_allocation OR sy-ucomm EQ lc_origin or sy-ucomm EQ ''.&lt;/P&gt;&lt;P&gt;message w503(z001) with lv_invnr lv_anln1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of &amp;lt;ins&amp;gt; Siva 14/1/2006&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Begin of &amp;lt;ins&amp;gt; 2007.01.10 PR1151 D12K912685&lt;/P&gt;&lt;P&gt;*Check for Brazil Company Code&lt;/P&gt;&lt;P&gt; IF &amp;lt;fs_anlz_cot&amp;gt;-bukrs+0(1) EQ lc_comp_code.&lt;/P&gt;&lt;P&gt;*-----End of &amp;lt;ins&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check whether the Responsible cost center/Cost center have value&lt;/P&gt;&lt;P&gt;   IF NOT &amp;lt;fs_anlz_cot&amp;gt;-kostl  IS INITIAL OR&lt;/P&gt;&lt;P&gt;      NOT &amp;lt;fs_anlz_cot&amp;gt;-kostlv IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     lt_anlz_aux[] = lt_anlz[].&lt;/P&gt;&lt;P&gt;     READ TABLE lt_anlz_aux INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check whether the responsible cost center have value&lt;/P&gt;&lt;P&gt;     IF NOT &amp;lt;fs_anlz_cot&amp;gt;-kostlv IS INITIAL.&lt;/P&gt;&lt;P&gt;       lv_resp_cost = &amp;lt;fs_anlz_cot&amp;gt;-kostlv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Retreive the Plant and Location for the selected Responsible cost center&lt;/P&gt;&lt;P&gt;       SELECT SINGLE stort werks&lt;/P&gt;&lt;P&gt;                INTO  (lv_location, lv_plant)&lt;/P&gt;&lt;P&gt;                FROM  ztbraa_cost&lt;/P&gt;&lt;P&gt;                WHERE kostl EQ lv_resp_cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;         lv_flag_resp = lc_flag.&lt;/P&gt;&lt;P&gt;*Assign the retrieved Plant and Location to the table ANLZ&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz_cot&amp;gt;-werks = lv_plant.&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz_cot&amp;gt;-stort = lv_location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         lt_anlz_aux-werks  = lv_plant.&lt;/P&gt;&lt;P&gt;         lt_anlz_aux-stort  = lv_location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         MODIFY lt_anlz_aux INDEX 1.&lt;/P&gt;&lt;P&gt;         lt_anlz[]   = lt_anlz_aux[].&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz&amp;gt;[] = lt_anlz[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;*Display warning message if the selected Resposible cost center does not have Plant and Location&lt;/P&gt;&lt;P&gt;         IF sy-ucomm NE lc_save AND sy-ucomm EQ space AND &amp;lt;fs_okcode&amp;gt; NE lc_save.&lt;/P&gt;&lt;P&gt;           &amp;lt;fs_okcode&amp;gt; = lc_tab.&lt;/P&gt;&lt;P&gt;           sy-ucomm = &amp;lt;fs_okcode&amp;gt;.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;         IF sy-ucomm EQ lc_general OR sy-ucomm EQ lc_tab OR sy-ucomm EQ lc_allocation OR sy-ucomm EQ lc_origin OR sy-ucomm EQ lc_depre_area.&lt;/P&gt;&lt;P&gt;           MESSAGE w002(zmbraa_su) WITH text-001 text-002 lv_resp_cost .&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check whether the cost center have value&lt;/P&gt;&lt;P&gt;     ELSEIF NOT &amp;lt;fs_anlz_cot&amp;gt;-kostl IS INITIAL.&lt;/P&gt;&lt;P&gt;       lv_cost = &amp;lt;fs_anlz_cot&amp;gt;-kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Retreive the Plant and Location for the selected cost center&lt;/P&gt;&lt;P&gt;       SELECT SINGLE stort werks&lt;/P&gt;&lt;P&gt;                INTO  (lv_location, lv_plant)&lt;/P&gt;&lt;P&gt;                FROM  ztbraa_cost&lt;/P&gt;&lt;P&gt;                WHERE kostl EQ lv_cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;         lv_flag_cost = lc_flag.&lt;/P&gt;&lt;P&gt;*Assign the retrieved Plant and Location to the table ANLZ&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz_cot&amp;gt;-werks = lv_plant.&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz_cot&amp;gt;-stort = lv_location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         lt_anlz_aux-werks = lv_plant.&lt;/P&gt;&lt;P&gt;         lt_anlz_aux-stort = lv_location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         MODIFY lt_anlz_aux INDEX 1.&lt;/P&gt;&lt;P&gt;         lt_anlz[] = lt_anlz_aux[].&lt;/P&gt;&lt;P&gt;         &amp;lt;fs_anlz&amp;gt;[] = lt_anlz[].&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;*Display Warning message if the selected cost center does not have Plant and Location&lt;/P&gt;&lt;P&gt;         IF sy-ucomm NE lc_save AND sy-ucomm EQ space AND &amp;lt;fs_okcode&amp;gt; NE lc_save .&lt;/P&gt;&lt;P&gt;           &amp;lt;fs_okcode&amp;gt; = lc_tab.&lt;/P&gt;&lt;P&gt;           sy-ucomm = &amp;lt;fs_okcode&amp;gt;.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;         IF sy-ucomm EQ lc_general OR sy-ucomm EQ lc_tab OR sy-ucomm EQ lc_allocation OR sy-ucomm EQ lc_origin OR sy-ucomm EQ lc_depre_area.&lt;/P&gt;&lt;P&gt;           MESSAGE w002(zmbraa_su) WITH text-001 text-002 lv_cost.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Clear Plant and Location if Responsible cost center/Cost center is initial&lt;/P&gt;&lt;P&gt;   IF &amp;lt;fs_anlz_cot&amp;gt;-kostl IS INITIAL AND &amp;lt;fs_anlz_cot&amp;gt;-kostlv  IS INITIAL.&lt;/P&gt;&lt;P&gt;     lt_anlz_aux[] = lt_anlz[].&lt;/P&gt;&lt;P&gt;     READ TABLE lt_anlz_aux INDEX 1.&lt;/P&gt;&lt;P&gt;     IF lt_anlz_aux-kz EQ lc_update.&lt;/P&gt;&lt;P&gt;       CLEAR :&amp;lt;fs_anlz_cot&amp;gt;-werks,&amp;lt;fs_anlz_cot&amp;gt;-stort.&lt;/P&gt;&lt;P&gt;       lt_anlz_aux-werks = &amp;lt;fs_anlz_cot&amp;gt;-werks.&lt;/P&gt;&lt;P&gt;       lt_anlz_aux-stort = &amp;lt;fs_anlz_cot&amp;gt;-stort.&lt;/P&gt;&lt;P&gt;       MODIFY lt_anlz_aux INDEX 1.&lt;/P&gt;&lt;P&gt;       lt_anlz[] = lt_anlz_aux[].&lt;/P&gt;&lt;P&gt;       &amp;lt;fs_anlz&amp;gt;[] = lt_anlz[].&lt;/P&gt;&lt;P&gt;     ENDIF.&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;*Display Error message if the selected Responsible cost center/Cost center does not have Plant and Location&lt;/P&gt;&lt;P&gt;   IF sy-ucomm = lc_save OR sy-ucomm = lc_yes OR sy-ucomm EQ lc_back OR sy-ucomm EQ lc_dist OR sy-ucomm = lc_save1 OR &amp;lt;fs_okcode&amp;gt; EQ lc_save .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF lv_flag_resp = lc_space AND lv_cost IS INITIAL.&lt;/P&gt;&lt;P&gt;     IF sy-ucomm = lc_yes.&lt;/P&gt;&lt;P&gt;         LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;       MESSAGE e002(zmbraa_su) WITH text-001 text-002 lv_resp_cost.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF lv_flag_cost = lc_space AND lv_resp_cost IS INITIAL.&lt;/P&gt;&lt;P&gt;       IF sy-ucomm = lc_yes.&lt;/P&gt;&lt;P&gt;         LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;           arbgb                   = lc_msgid&lt;/P&gt;&lt;P&gt;           exception_if_not_active = space&lt;/P&gt;&lt;P&gt;           msgty                   = lc_msgtyp&lt;/P&gt;&lt;P&gt;           msgv1                   = text-001&lt;/P&gt;&lt;P&gt;           msgv2                   = text-002&lt;/P&gt;&lt;P&gt;           msgv3                   = lv_cost&lt;/P&gt;&lt;P&gt;           txtnr                   = lc_msgnr&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;           message_type_not_valid  = 1&lt;/P&gt;&lt;P&gt;           not_active              = 2&lt;/P&gt;&lt;P&gt;           OTHERS                  = 3.&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;     ENDIF.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;*-----End of &amp;lt;ins&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Note:Reward Points if you find useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 09:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442398#M826718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442399#M826719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swaminathan. Great technique. I guess in this way we can capture any table for that a transaction. Thanks for your guidance. Full points rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 23:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442399#M826719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T23:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442400#M826720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more thing please. When I display a error message due to a validation I am using the function as you specified: &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_STORE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not go to the transaction screen and just holds on to the error. Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;FS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 02:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442400#M826720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T02:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442401#M826721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should display the message in transaction, just check your import parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Note:Reward points if you find it useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 13:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442401#M826721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T13:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442402#M826722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved by the code. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 02:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442402#M826722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T02:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442403#M826723</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 am new to the oncept of user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they told me i need to refer master data exit transaction data exit hierarchy  exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls pls help me  and guide me to finish my task...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m just new to the concept of user exit and i have just little bit of theory knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls guide me with the topic as well as coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 02:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442403#M826723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442404#M826724</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 am new to the concept of user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they told me i need to refer master data exit transaction data exit hierarchy  exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls pls help me  and guide me to finish my task...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m just new to the concept of user exit and i have just little bit of theory knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls guide me with the topic as well as coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 02:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442404#M826724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T02:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: exit or badi for validating asset master creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442405#M826725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swaminathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a great code you got here. I just would like to ask for your assistance on how can i move and transfer values from the table &lt;SPAN style="color: #333333; font-size: 12px;"&gt;(SAPLAIST) ANLZ', "ANLZ&amp;nbsp; to new table lw_anlz [ ] . I tried to enhance the code to cater the requirements needed by our clients. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Basically our requirements is to get the 'KZ' on time-dependent data by transferring the whole table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lw_anlz &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;RANLZ&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;. "New table &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/637403" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to transfer by adding this code line however, no values where transfered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have better recommendation for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 16:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-or-badi-for-validating-asset-master-creation/m-p/3442405#M826725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-03T16:18:49Z</dc:date>
    </item>
  </channel>
</rss>

