<?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: Badis in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834021#M921978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give a real time example for userexit in SD module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 13:17:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T13:17:40Z</dc:date>
    <item>
      <title>Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834015#M921972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference b/t userexits and Badis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 13:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834015#M921972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834016#M921973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;user exits is the 'old' way of enhancing standard SAP. BAdI's is the object oriented approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 13:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834016#M921973</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-14T13:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834017#M921974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USER EXITS are FORMS and are called by SAP standard programs using PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the form (user exit) you can read and change almost any global data from host program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User exits are more flexible because you have more information to use in your code but on the other hand , it is very easy to manipulate erroneously global data and lead the standard program to a dump or even to make database inconsistent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-exit doesn&amp;#146;t have any classification.&lt;/P&gt;&lt;P&gt;Basically designed For SD module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-exits can be written only using access-key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With user-exits the code , the developer has written will not be there for next version unless modification assistance tool is used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BADI's&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Badi&amp;#146;s allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Business Add-Ins can be created at each level within such a system infrastructure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some BADI can have multiple independent implementations which is much better for software deployment as several developers can implement the same BADI independently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewar points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834017#M921974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834018#M921975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi tanuj joshi ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;STRONG&gt;User Exits:&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User exits are actually empty subroutines that SAP developers provide for you. You can fill them with your own source code.They will be in the following form.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Program &lt;STRONG&gt;SAPM45A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Include &lt;STRONG&gt;M45AFZB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These was one of the enhancement technique used earlier and implemented for the sd module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP developer creates a special include in a module pool. These includes contain one or more subroutines routines that satisfy the naming convention userexit_&amp;lt;name&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This technique has one major disadvantage i.e you can modify the global parameters.&lt;/P&gt;&lt;P&gt;i.e you can access the global values and you can change the values in them.This will create errors in the global values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So inorder to restrict the global variables access SAP has developed the &lt;STRONG&gt;customer exits&lt;/STRONG&gt; concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He used function modules concept in this there by restricting the global variables access .&lt;/P&gt;&lt;P&gt;i.e when you are using a function modules you can access the variables that are only defined in the import , export ,tables or changing parameters therby restricting the access to global variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can view the customer exits in SMOD tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;STRONG&gt;BADIs&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADIs are the first object-oriented way of implementing  the enhancements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer exits have a disadvantage that they can be implemented only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was overcomed in BADIs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to enhance a program, you must first define a Business Add-In. The application developer creates an interface for the add-in. From this, enhancement management creates an adapter class that implements the interface and thus provides the interface for implementation by the customer, partner, and so on. The developer then creates an instance of the adapter class in the application program and calls the corresponding method at the appropriate time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each Business Add-In you have one interface and an adapter class that implements this. The interface is implemented by the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The generated class (Add-In adapter) has the following tasks:&lt;/P&gt;&lt;P&gt;Control&lt;/P&gt;&lt;P&gt;The adapter class calls the active implementations.&lt;/P&gt;&lt;P&gt; Filtering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a Business Add-In is to be executed only under certain conditions, the adapter class ensures that only certain implementations will be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This concept ensures mutlple use. Any Business Add-In that has been implemented once already can be implemented again by those groups listed to the right of the software chain shown in the above graphic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers can find the enhancements in their system in the Implementation Guide (IMG) and in the component hierarchy. If a customer wishes to use a Business Add-In, he or she first creates an implementation. The customer must implement the methods and the enhancements, and afterwards activate the implementation of the enhancement. The enhancement's active components are then called at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, a Business Add-In contains an interface and other additional components such as function codes for menu enhancements. In some cases, Business Add-Ins also include enhancements for screens. The enhancement, interface, and generated classes are all located in the appropriate application development namespace. Business Add-In implementations are created in the respective implementation namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope its useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Surya Pydikondala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834018#M921975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834019#M921976</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;http//www.sap-img.com/abap/difference-between-badi-and-user-exits.htm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834019#M921976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834020#M921977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  BADIs stand for Business Add-Ins, they are just like user exits,but they are implemented using objected oriented methods instead of the traditional function module.&lt;/P&gt;&lt;P&gt; You can implement a BADI using SE18 and SE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1177808"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 15:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834020#M921977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T15:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834021#M921978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u give a real time example for userexit in SD module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834021#M921978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834022#M921979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5014775"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Introduction&lt;/P&gt;&lt;P&gt;2. How to find user exits&lt;/P&gt;&lt;P&gt;3. Using Project management of SAP Enhancements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Introduction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to &lt;/P&gt;&lt;P&gt;a functionmodule. The code for the function module is writeen by the developer. You are not writing &lt;/P&gt;&lt;P&gt;the code directly in the function module, but in the include that is implemented in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The naming standard of function modules for functionmodule exits is:  EXIT_&amp;lt;program name&amp;gt;&amp;lt;3 &lt;/P&gt;&lt;P&gt;digit suffix&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call to a functionmodule exit is implemented as: CALL CUSTOMER.-FUNCTION &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; digit suffix&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program for transaction VA01 Create salesorder is SAPMV45A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search for CALL CUSTOMER-FUNCTION i program SAPMV45A you will find ( Among other user exits):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION '003'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;xvbak   = vbak&lt;/P&gt;&lt;P&gt;xvbuk   = vbuk&lt;/P&gt;&lt;P&gt;xkomk   = tkomk&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;lvf_subrc = lvf_subrc&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;xvbfa = xvbfa&lt;/P&gt;&lt;P&gt;xvbap = xvbap&lt;/P&gt;&lt;P&gt;xvbup = xvbup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exit calls function module EXIT_SAPMV45A_003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How to find user exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you know the Exit name, go to transaction CMOD. Choose menu Utillities-&amp;gt;SAP Enhancements. &lt;/P&gt;&lt;P&gt;Enter the exit name and press enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will now come to a screen that shows the function module exits for the exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Using Project management of SAP Enhancements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to create a project to enahance trasnaction VA01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction CMOD&lt;/P&gt;&lt;P&gt;Create a project called ZVA01&lt;/P&gt;&lt;P&gt;Choose the Enhancement assign radio button and press the Change button&lt;/P&gt;&lt;P&gt;In the first column enter V45A0002 Predefine sold-to party in sales document . Note that an &lt;/P&gt;&lt;P&gt;enhancement can only be used in 1 project. If the enhancement is allready in use, and error message &lt;/P&gt;&lt;P&gt;will be displayed&lt;/P&gt;&lt;P&gt;Press Save&lt;/P&gt;&lt;P&gt;Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. &lt;/P&gt;&lt;P&gt;Double click on the exit.&lt;/P&gt;&lt;P&gt;Now the function module is displayed. Double click on include ZXVVAU04 in the function module&lt;/P&gt;&lt;P&gt;Insert the following code into the include: E_KUNNR = '2155'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate the include program. Go back to CMOD and activate the project.&lt;/P&gt;&lt;P&gt;Goto transaction VA01 and craete a salesorder. Note that Sold-to-party now automatically is "2155"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swamy Kunche on May 15, 2008 3:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834022#M921979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834023#M921980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi tanuj joshi ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the following scenario regarding &lt;STRONG&gt;User Exit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               In &lt;STRONG&gt;VL01 - Create Delivery Order&lt;/STRONG&gt;, standard program  &lt;STRONG&gt;SAPMV50A&lt;/STRONG&gt;, the standard program did not check for &lt;STRONG&gt;storage location equal to space&lt;/STRONG&gt;, and &lt;STRONG&gt;delivery quantity less than one&lt;/STRONG&gt; when the user click the &lt;STRONG&gt;save&lt;/STRONG&gt; button.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I have to insert the additional checking into the userexit routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Goto transaction &lt;STRONG&gt;VL01&lt;/STRONG&gt; to pick a Sales Order for delivery (you don't have to save the data) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.In the initial screen, click &lt;STRONG&gt;System -&amp;gt; Status -&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.In this you will get the status screen. Double click on the program name for the particular transaction(VL01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Program &lt;STRONG&gt;SAPMV50A&lt;/STRONG&gt; will be displayed.&lt;/P&gt;&lt;P&gt;In the dialog program SAPMV50A, click Edit -Search/replace &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type the string &lt;STRONG&gt;userexit&lt;/STRONG&gt; in the Find field, then click the In program radio button  and hit Enter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.A number of userexit routine will be display.  You'll have to roughly decide which is the correct userexit routine to used based on the short description provided..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;userexit_save_document_prepare&lt;/STRONG&gt; is the subroutine suiting our requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the user exit.&lt;/P&gt;&lt;P&gt;change the status from display mode to change mode and write the pseudo code there. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For changing the status from display mode to change mode u need an access key.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write the code in the exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; form userexit_save_document_prepare. 
case xlips-pstyv. 
  when 'TAX' or 'REX'. 
*    Accept this two Delivery item category 
  when 'REN'. 
     if xlips-lgort = space. 
*    Reject this Delivery item category 
        message e001. 
     endif. 
  when others. 
     if xlips-matnr &amp;lt;&amp;gt; space. 
*    Check storage location not space 
       if xlips-lgort = space. 
          message e002. 
       endif. 
*     Check delivery quantity not zero 
       if xlips-pikmg &amp;lt; 1. 
          message e003. 
       endif. 
    endif. 
endcase. 
endform. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and Activate the program and check whether the conditions are satisfied or not by creating a sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope its useful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if usefull.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Surya Pydikondala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/3834023#M921980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:55:50Z</dc:date>
    </item>
  </channel>
</rss>

