<?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 Sap oss note in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656077#M291209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Please see the following requirement and let me give the sujjestion for it,It will be very helpfull to me.Thanks in advance. &lt;/P&gt;&lt;P&gt;SAP Note No. 851943                          04.07.2005           Page 1&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Number              851943&lt;/P&gt;&lt;P&gt;     Version             3 from 27.06.2005&lt;/P&gt;&lt;P&gt;     Status              Released for Customer &lt;/P&gt;&lt;P&gt;     Set on              27.06.2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Language            EN Caution: Translation Not Current!&lt;/P&gt;&lt;P&gt;     Master language     DE&lt;/P&gt;&lt;P&gt;     Short text          Separate country codes for Serbia, Montenegro and&lt;/P&gt;&lt;P&gt;     Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Responsible         SAP AG&lt;/P&gt;&lt;P&gt;     Component           SD-FT-GOV&lt;/P&gt;&lt;P&gt;                         Declarations to Authorities Export&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Long text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Symptom&lt;/P&gt;&lt;P&gt;     As a result of EU regulation 750/2005 of May 18, 2005, the 'CS' country&lt;/P&gt;&lt;P&gt;     code (094) for Serbia and Montenegro in the area of foreign trade&lt;/P&gt;&lt;P&gt;     statistics is to be replaced with the following new country codes as of&lt;/P&gt;&lt;P&gt;     June 01, 2005:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XK (095)  Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XM (097)  Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XS (098)  Serbia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Other terms&lt;/P&gt;&lt;P&gt;     Intrastat, Extrastat, country of origin, Serbia, Montenegro, Kosovo,&lt;/P&gt;&lt;P&gt;     country code, ENPA, VE01, MEIS, country of departure, URSPRSLND,&lt;/P&gt;&lt;P&gt;     URSPRSLND, HERKL, URZLA, BESTILAND, country of destination, country of&lt;/P&gt;&lt;P&gt;     dispatch&lt;/P&gt;&lt;P&gt;     Reason and Prerequisites&lt;/P&gt;&lt;P&gt;     This is a legal change.&lt;/P&gt;&lt;P&gt;     Solution&lt;/P&gt;&lt;P&gt;     As the country key is checked against the country table (T005) in&lt;/P&gt;&lt;P&gt;     several parts of the program, it is necessary to add three new country&lt;/P&gt;&lt;P&gt;     codes ( XK, XM and XS) to this table even though these country codes do&lt;/P&gt;&lt;P&gt;     not form part of the ISO 3166 nomenclature (link:&lt;/P&gt;&lt;P&gt;     &lt;A href="http://www.iso.org/iso/en/prod" target="test_blank"&gt;http://www.iso.org/iso/en/prod&lt;/A&gt;&lt;/P&gt;&lt;P&gt;     s-services/iso3166ma/02iso-3166-code-lists/index.html).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     To enter the new country codes, proceed as follows:&lt;/P&gt;&lt;P&gt;     Customizing --&amp;gt; General Settings --&amp;gt; Set Countries --&amp;gt; Define Countries&lt;/P&gt;&lt;P&gt;     in R/3 Systems --&amp;gt; New Entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     At present, the three new country codes are only relevant for the area&lt;/P&gt;&lt;P&gt;     of foreign trade statistics. Therefore, a basic definition is&lt;/P&gt;&lt;P&gt;     sufficient.&lt;/P&gt;&lt;P&gt;     Specify the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 094&lt;/P&gt;&lt;P&gt;                                                                       Page 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 097&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 098&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Serbia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Caution&lt;/P&gt;&lt;P&gt;     The unfavorable effect of adding these new country codes to the country&lt;/P&gt;&lt;P&gt;     table is that they are available throughout the SAP system and can be&lt;/P&gt;&lt;P&gt;     selected for all country specifications. For example, you can now set&lt;/P&gt;&lt;P&gt;     the country of a customer or vendor to one of these new values, but this&lt;/P&gt;&lt;P&gt;     is certainly never desired.&lt;/P&gt;&lt;P&gt;     For this reason and because these new country codes are only required by&lt;/P&gt;&lt;P&gt;     a relatively small number of SAP customers, the new country codes XK, XM&lt;/P&gt;&lt;P&gt;     and XS are not delivered as SAP standard Customizing, but rather, each&lt;/P&gt;&lt;P&gt;     customer must add these to the table if they require them.&lt;/P&gt;&lt;P&gt;     Each customer must take the necessary steps to ensure that these country&lt;/P&gt;&lt;P&gt;     codes are not "misused" (as described in the above example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     As a standard country code is no longer available for Serbia and&lt;/P&gt;&lt;P&gt;     Montenegro (the country codes are XK/XM/XS for foreign trade statistics&lt;/P&gt;&lt;P&gt;     and CS for other applications), this new requirement must be met using&lt;/P&gt;&lt;P&gt;     the user exits that are available. To avoid conflicts between the&lt;/P&gt;&lt;P&gt;     applications, we advise against changing the country code in the master&lt;/P&gt;&lt;P&gt;     data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Approaches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            -  Intrastat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Since Serbia and Montenegro does not form part of the European&lt;/P&gt;&lt;P&gt;               Union, the changes to the country code only affect the&lt;/P&gt;&lt;P&gt;               specification of the country of origin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               If the volume of data is low, you can change the country code&lt;/P&gt;&lt;P&gt;               for the country of origin from 'CS' to 'XK', 'XM' or 'XS'&lt;/P&gt;&lt;P&gt;               either directly in the documents (billing documents and&lt;/P&gt;&lt;P&gt;               purchase orders) before selecting the Intrastat data, or using&lt;/P&gt;&lt;P&gt;               Transaction VEFU after selecting the data.&lt;/P&gt;&lt;P&gt;                                                                       Page 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               In theory, the EXIT_SAPLV50E_003 and EXIT_SAPLV50E_004 user&lt;/P&gt;&lt;P&gt;               exits (change foreign trade item data in the SD and MM&lt;/P&gt;&lt;P&gt;               documents), the EXIT_SAPLV50G_001 user exit (change the&lt;/P&gt;&lt;P&gt;               document data before processing in the selection program) and&lt;/P&gt;&lt;P&gt;               the EXIT_SAPLV50G_002 user exit (change the Intrastat data&lt;/P&gt;&lt;P&gt;               after processing in the selection program) are suitable for&lt;/P&gt;&lt;P&gt;               automatic implementation of these data changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The correction instructions contain example code for a&lt;/P&gt;&lt;P&gt;               possible solution using the EXIT_SAPLV50G_002 user exit&lt;/P&gt;&lt;P&gt;               (section entitled "INTRASTAT"). This user exit is processed at&lt;/P&gt;&lt;P&gt;               the end of the data selection program, shortly before the&lt;/P&gt;&lt;P&gt;               Intrastat data is written to the VEIAV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            -  Extrastat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               This affects the specification of the country of destination&lt;/P&gt;&lt;P&gt;               (export declaration), the country of dispatch (import&lt;/P&gt;&lt;P&gt;               declaration) and the country of origin (import declaration and&lt;/P&gt;&lt;P&gt;               export declaration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               If the volume of data is low, you can change the country code&lt;/P&gt;&lt;P&gt;               either directly in the documents before selecting the&lt;/P&gt;&lt;P&gt;               Extrastat data (country of dispatch and country of origin in&lt;/P&gt;&lt;P&gt;               the foreign trade data for billing documents and purchase&lt;/P&gt;&lt;P&gt;               orders), or using Transaction VEXU after selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               In theory, the EXIT_SAPLV50E_003 and EXIT_SAPLV50E_004 user&lt;/P&gt;&lt;P&gt;               exits (change foreign trade item data in the SD and MM&lt;/P&gt;&lt;P&gt;               documents), the EXIT_SAPLV50G_001 user exit (change the&lt;/P&gt;&lt;P&gt;               document data before processing in the selection program) and&lt;/P&gt;&lt;P&gt;               the EXIT_SAPLV50G_002 user exit (change the Extrastat data&lt;/P&gt;&lt;P&gt;               after processing in the selection program) are suitable for&lt;/P&gt;&lt;P&gt;               automatic implementation of these data changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The correction instructions contain example code for a&lt;/P&gt;&lt;P&gt;               possible solution using the EXIT_SAPLV50G_002 user exit&lt;/P&gt;&lt;P&gt;               (section entitled "EXTRASTAT"). This user exit is processed at&lt;/P&gt;&lt;P&gt;               the end of the data selection program, shortly before the&lt;/P&gt;&lt;P&gt;               Extrastat data is written to the VEXAV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Of course, the source code contained in the correction instructions is&lt;/P&gt;&lt;P&gt;     merely example source code. Insert your values in those places marked&lt;/P&gt;&lt;P&gt;     with arrow ( &amp;lt;-- ).&lt;/P&gt;&lt;P&gt;     Of course, other conditions may also require you to set the new country&lt;/P&gt;&lt;P&gt;     codes; the EXIT_SAPLV50G_002 user exit has header data and item data for&lt;/P&gt;&lt;P&gt;     the billing documents and purchase orders as well as their foreign trade&lt;/P&gt;&lt;P&gt;     data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Background:&lt;/P&gt;&lt;P&gt;     By default, the country of origin for both the Intrastat declaration and&lt;/P&gt;&lt;P&gt;                                                                       Page 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     the Extrastat declaration are determined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Receipt/import&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            The information for the country of origin is copied from the&lt;/P&gt;&lt;P&gt;            purchasing info record of the vendor (EINA-URZLA field); if the&lt;/P&gt;&lt;P&gt;            field is not set, the country of origin is set from the material&lt;/P&gt;&lt;P&gt;            master record (MARC-HERKL field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Dispatch/export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            The information for the country of origin (and the region of&lt;/P&gt;&lt;P&gt;            origin) is copied from the material master record or the batch&lt;/P&gt;&lt;P&gt;            master record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     By default, the country of destination is set in the Extrastat&lt;/P&gt;&lt;P&gt;     declaration for exports from the "Destination Country" field in the&lt;/P&gt;&lt;P&gt;     billing header (VBRK-LAND1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     By default, the country of dispatch is set in the Extrastat declaration&lt;/P&gt;&lt;P&gt;     for imports from the "Country of dispatch" field for the export data of&lt;/P&gt;&lt;P&gt;     the billing item (EIPO-VERLD). If this is not filled, the country of the&lt;/P&gt;&lt;P&gt;     supplying vendor or the country of the vendor is set.&lt;/P&gt;&lt;P&gt;     It is therefore quite possible that the country of dispatch is not set&lt;/P&gt;&lt;P&gt;     in the foreign trade data for the document item (EIPO-VERLD). In this&lt;/P&gt;&lt;P&gt;     case, you would have to change the command line from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld EQ 'CS'.     "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld IS INITIAL.  "initial&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     After this change, only the vendor number (and other fields, if&lt;/P&gt;&lt;P&gt;     required) determines whether you have to set the country code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Releases 4.0B and 3.1I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In these releases, the use of user exits when selecting data is&lt;/P&gt;&lt;P&gt;     extremely limited. We recommend that you use the user exits that are&lt;/P&gt;&lt;P&gt;     processed to determine the foreign trade data for billing items&lt;/P&gt;&lt;P&gt;     (EXIT_SAPLV50E_003) and purchase order items (EXIT_SAPLV50E_004), in&lt;/P&gt;&lt;P&gt;     order to already set the required country code in the documents.&lt;/P&gt;&lt;P&gt;     Otherwise, in these releases you can also use Transactions VEFU and VEXU&lt;/P&gt;&lt;P&gt;     to manually maintain Intrastat data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;                                                                       Page 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Valid releases&lt;/P&gt;&lt;P&gt;     Software Component                        Release&lt;/P&gt;&lt;P&gt;                                               from            to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SAP_APPL   SAP Application&lt;/P&gt;&lt;P&gt;                                               500          - 500&lt;/P&gt;&lt;P&gt;                                               470          - 470&lt;/P&gt;&lt;P&gt;                                               46C          - 46C&lt;/P&gt;&lt;P&gt;                                               46B          - 46B&lt;/P&gt;&lt;P&gt;                                               45B          - 45B&lt;/P&gt;&lt;P&gt;                                               40B          - 40B&lt;/P&gt;&lt;P&gt;                                               31I          - 31I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Further components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MM-FT-GOV&lt;/P&gt;&lt;P&gt;      Declarations to Authorities Import&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Reference to related Notes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Number    Short text&lt;/P&gt;&lt;P&gt;     ____________________________________________________________&lt;/P&gt;&lt;P&gt;     603152    Country Code for "Serbia and Montenegro"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;                                                                       Page 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Assigned Correction Instructions&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;STRONG&gt;$&lt;/STRONG&gt;$----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Correction Inst.         0120061532 0000735967                     $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;$&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Valid for       :                                                  $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Software Component   SAP_APPL   SAP Application                    $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 45B          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 46B          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 46C          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 470          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 500          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;$&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Changes/Objects Not Contained in Standard SAP System               $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$&lt;/STRONG&gt;$----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&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; Object          REPS ZX50GU02&lt;/P&gt;&lt;P&gt;     *&amp;amp; Object Header   PROG ZX50GU02&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;gt;&amp;gt;&amp;gt;&amp;gt; START OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTRASTAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     IF i_reporting_type EQ 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF ORIGIN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;       IF c_record_intrastat-ursprslnd EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;arrival&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_direction EQ '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           DATA: z_lifnr LIKE ekko-lifnr.&lt;/P&gt;&lt;P&gt;           IF i_mm_purch_order_header-llief IS INITIAL.&lt;/P&gt;&lt;P&gt;             z_lifnr = i_mm_purch_order_header-lifnr.&lt;/P&gt;&lt;P&gt;           ELSE.&lt;/P&gt;&lt;P&gt;             z_lifnr = i_mm_purch_order_header-llief.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF z_lifnr EQ 'XS4711'.                 "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XS'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           IF z_lifnr EQ 'XK4712'.                 "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XK'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;     *...&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor and material&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF z_lifnr EQ 'CS4713'.                     "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             IF i_mm_purch_order_line_item-matnr EQ 'mat55'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               c_record_intrastat-ursprslnd = 'XM'. "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;             IF i_mm_purch_order_line_item-matnr EQ 'mat71'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               c_record_intrastat-ursprslnd = 'XS'. "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;                                                                       Page 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             ENDIF.&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;....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;dispatch&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         ELSEIF i_direction EQ '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on material and plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_serbia' "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               AND i_sd_invoice_line_item-werks EQ 'CS01' ).       "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XS'.       "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_kosovo' "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               AND i_sd_invoice_line_item-werks EQ 'CS12' ).       "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XK'.       "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_montenegro' "&amp;lt;-- mat.&lt;/P&gt;&lt;P&gt;             AND i_sd_invoice_line_item-werks EQ 'CS99' ).         "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XM'.       "&amp;lt;-- new country code&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;...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXTRASTAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     IF i_reporting_type EQ 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF ORIGIN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;       IF c_record_extrastat-ursprslnd EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;     *...&lt;/P&gt;&lt;P&gt;     *... see INTRASTAT !&lt;/P&gt;&lt;P&gt;     *... !!! just replace 'c_record_intrastat-ursprslnd' by&lt;/P&gt;&lt;P&gt;     *... 'c_record_extrastat-ursprslnd' !!!&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;     *----&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF DISPATCH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         DATA: zz_lifnr LIKE ekko-lifnr.&lt;/P&gt;&lt;P&gt;         IF i_mm_purch_order_header-llief IS INITIAL.&lt;/P&gt;&lt;P&gt;           zz_lifnr = i_mm_purch_order_header-lifnr.&lt;/P&gt;&lt;P&gt;         ELSE.&lt;/P&gt;&lt;P&gt;           zz_lifnr = i_mm_purch_order_header-llief.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                                                       Page 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF zz_lifnr EQ 'XS4711'.                   "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;           c_record_extrastat-versendld = 'XS'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF zz_lifnr EQ 'XK4712'.                   "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;           c_record_extrastat-versendld = 'XK'.  "&amp;lt;-- new country code&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;     *----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF DESTINATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;       IF i_direction EQ '2'      AND               "export&lt;/P&gt;&lt;P&gt;          c_record_extrastat-bestiland EQ 'CS'.     "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on sold-to-party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_header-kunag EQ 'monte01'.  "&amp;lt;-- sold-to-party&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XM'.      "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on payer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_header-kunrg EQ 'Kos05'.    "&amp;lt;-- payer&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XK'.      "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on material&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_line_item-matnr EQ 'mat_to_serbia'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XS'.       "&amp;lt;-- new country code&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;...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;     *&amp;gt;&amp;gt;&amp;gt;&amp;gt; END OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;     *&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2006 10:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-20T10:00:32Z</dc:date>
    <item>
      <title>Sap oss note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656077#M291209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Please see the following requirement and let me give the sujjestion for it,It will be very helpfull to me.Thanks in advance. &lt;/P&gt;&lt;P&gt;SAP Note No. 851943                          04.07.2005           Page 1&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Number              851943&lt;/P&gt;&lt;P&gt;     Version             3 from 27.06.2005&lt;/P&gt;&lt;P&gt;     Status              Released for Customer &lt;/P&gt;&lt;P&gt;     Set on              27.06.2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Language            EN Caution: Translation Not Current!&lt;/P&gt;&lt;P&gt;     Master language     DE&lt;/P&gt;&lt;P&gt;     Short text          Separate country codes for Serbia, Montenegro and&lt;/P&gt;&lt;P&gt;     Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Responsible         SAP AG&lt;/P&gt;&lt;P&gt;     Component           SD-FT-GOV&lt;/P&gt;&lt;P&gt;                         Declarations to Authorities Export&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Long text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Symptom&lt;/P&gt;&lt;P&gt;     As a result of EU regulation 750/2005 of May 18, 2005, the 'CS' country&lt;/P&gt;&lt;P&gt;     code (094) for Serbia and Montenegro in the area of foreign trade&lt;/P&gt;&lt;P&gt;     statistics is to be replaced with the following new country codes as of&lt;/P&gt;&lt;P&gt;     June 01, 2005:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XK (095)  Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XM (097)  Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  XS (098)  Serbia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Other terms&lt;/P&gt;&lt;P&gt;     Intrastat, Extrastat, country of origin, Serbia, Montenegro, Kosovo,&lt;/P&gt;&lt;P&gt;     country code, ENPA, VE01, MEIS, country of departure, URSPRSLND,&lt;/P&gt;&lt;P&gt;     URSPRSLND, HERKL, URZLA, BESTILAND, country of destination, country of&lt;/P&gt;&lt;P&gt;     dispatch&lt;/P&gt;&lt;P&gt;     Reason and Prerequisites&lt;/P&gt;&lt;P&gt;     This is a legal change.&lt;/P&gt;&lt;P&gt;     Solution&lt;/P&gt;&lt;P&gt;     As the country key is checked against the country table (T005) in&lt;/P&gt;&lt;P&gt;     several parts of the program, it is necessary to add three new country&lt;/P&gt;&lt;P&gt;     codes ( XK, XM and XS) to this table even though these country codes do&lt;/P&gt;&lt;P&gt;     not form part of the ISO 3166 nomenclature (link:&lt;/P&gt;&lt;P&gt;     &lt;A href="http://www.iso.org/iso/en/prod" target="test_blank"&gt;http://www.iso.org/iso/en/prod&lt;/A&gt;&lt;/P&gt;&lt;P&gt;     s-services/iso3166ma/02iso-3166-code-lists/index.html).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     To enter the new country codes, proceed as follows:&lt;/P&gt;&lt;P&gt;     Customizing --&amp;gt; General Settings --&amp;gt; Set Countries --&amp;gt; Define Countries&lt;/P&gt;&lt;P&gt;     in R/3 Systems --&amp;gt; New Entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     At present, the three new country codes are only relevant for the area&lt;/P&gt;&lt;P&gt;     of foreign trade statistics. Therefore, a basic definition is&lt;/P&gt;&lt;P&gt;     sufficient.&lt;/P&gt;&lt;P&gt;     Specify the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 094&lt;/P&gt;&lt;P&gt;                                                                       Page 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Kosovo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 097&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Country XS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Alternative key: 098&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            Name: Serbia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ISO code: XS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Caution&lt;/P&gt;&lt;P&gt;     The unfavorable effect of adding these new country codes to the country&lt;/P&gt;&lt;P&gt;     table is that they are available throughout the SAP system and can be&lt;/P&gt;&lt;P&gt;     selected for all country specifications. For example, you can now set&lt;/P&gt;&lt;P&gt;     the country of a customer or vendor to one of these new values, but this&lt;/P&gt;&lt;P&gt;     is certainly never desired.&lt;/P&gt;&lt;P&gt;     For this reason and because these new country codes are only required by&lt;/P&gt;&lt;P&gt;     a relatively small number of SAP customers, the new country codes XK, XM&lt;/P&gt;&lt;P&gt;     and XS are not delivered as SAP standard Customizing, but rather, each&lt;/P&gt;&lt;P&gt;     customer must add these to the table if they require them.&lt;/P&gt;&lt;P&gt;     Each customer must take the necessary steps to ensure that these country&lt;/P&gt;&lt;P&gt;     codes are not "misused" (as described in the above example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     As a standard country code is no longer available for Serbia and&lt;/P&gt;&lt;P&gt;     Montenegro (the country codes are XK/XM/XS for foreign trade statistics&lt;/P&gt;&lt;P&gt;     and CS for other applications), this new requirement must be met using&lt;/P&gt;&lt;P&gt;     the user exits that are available. To avoid conflicts between the&lt;/P&gt;&lt;P&gt;     applications, we advise against changing the country code in the master&lt;/P&gt;&lt;P&gt;     data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Approaches:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            -  Intrastat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Since Serbia and Montenegro does not form part of the European&lt;/P&gt;&lt;P&gt;               Union, the changes to the country code only affect the&lt;/P&gt;&lt;P&gt;               specification of the country of origin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               If the volume of data is low, you can change the country code&lt;/P&gt;&lt;P&gt;               for the country of origin from 'CS' to 'XK', 'XM' or 'XS'&lt;/P&gt;&lt;P&gt;               either directly in the documents (billing documents and&lt;/P&gt;&lt;P&gt;               purchase orders) before selecting the Intrastat data, or using&lt;/P&gt;&lt;P&gt;               Transaction VEFU after selecting the data.&lt;/P&gt;&lt;P&gt;                                                                       Page 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               In theory, the EXIT_SAPLV50E_003 and EXIT_SAPLV50E_004 user&lt;/P&gt;&lt;P&gt;               exits (change foreign trade item data in the SD and MM&lt;/P&gt;&lt;P&gt;               documents), the EXIT_SAPLV50G_001 user exit (change the&lt;/P&gt;&lt;P&gt;               document data before processing in the selection program) and&lt;/P&gt;&lt;P&gt;               the EXIT_SAPLV50G_002 user exit (change the Intrastat data&lt;/P&gt;&lt;P&gt;               after processing in the selection program) are suitable for&lt;/P&gt;&lt;P&gt;               automatic implementation of these data changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The correction instructions contain example code for a&lt;/P&gt;&lt;P&gt;               possible solution using the EXIT_SAPLV50G_002 user exit&lt;/P&gt;&lt;P&gt;               (section entitled "INTRASTAT"). This user exit is processed at&lt;/P&gt;&lt;P&gt;               the end of the data selection program, shortly before the&lt;/P&gt;&lt;P&gt;               Intrastat data is written to the VEIAV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            -  Extrastat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               This affects the specification of the country of destination&lt;/P&gt;&lt;P&gt;               (export declaration), the country of dispatch (import&lt;/P&gt;&lt;P&gt;               declaration) and the country of origin (import declaration and&lt;/P&gt;&lt;P&gt;               export declaration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               If the volume of data is low, you can change the country code&lt;/P&gt;&lt;P&gt;               either directly in the documents before selecting the&lt;/P&gt;&lt;P&gt;               Extrastat data (country of dispatch and country of origin in&lt;/P&gt;&lt;P&gt;               the foreign trade data for billing documents and purchase&lt;/P&gt;&lt;P&gt;               orders), or using Transaction VEXU after selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               In theory, the EXIT_SAPLV50E_003 and EXIT_SAPLV50E_004 user&lt;/P&gt;&lt;P&gt;               exits (change foreign trade item data in the SD and MM&lt;/P&gt;&lt;P&gt;               documents), the EXIT_SAPLV50G_001 user exit (change the&lt;/P&gt;&lt;P&gt;               document data before processing in the selection program) and&lt;/P&gt;&lt;P&gt;               the EXIT_SAPLV50G_002 user exit (change the Extrastat data&lt;/P&gt;&lt;P&gt;               after processing in the selection program) are suitable for&lt;/P&gt;&lt;P&gt;               automatic implementation of these data changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The correction instructions contain example code for a&lt;/P&gt;&lt;P&gt;               possible solution using the EXIT_SAPLV50G_002 user exit&lt;/P&gt;&lt;P&gt;               (section entitled "EXTRASTAT"). This user exit is processed at&lt;/P&gt;&lt;P&gt;               the end of the data selection program, shortly before the&lt;/P&gt;&lt;P&gt;               Extrastat data is written to the VEXAV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Of course, the source code contained in the correction instructions is&lt;/P&gt;&lt;P&gt;     merely example source code. Insert your values in those places marked&lt;/P&gt;&lt;P&gt;     with arrow ( &amp;lt;-- ).&lt;/P&gt;&lt;P&gt;     Of course, other conditions may also require you to set the new country&lt;/P&gt;&lt;P&gt;     codes; the EXIT_SAPLV50G_002 user exit has header data and item data for&lt;/P&gt;&lt;P&gt;     the billing documents and purchase orders as well as their foreign trade&lt;/P&gt;&lt;P&gt;     data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Background:&lt;/P&gt;&lt;P&gt;     By default, the country of origin for both the Intrastat declaration and&lt;/P&gt;&lt;P&gt;                                                                       Page 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     the Extrastat declaration are determined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Receipt/import&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            The information for the country of origin is copied from the&lt;/P&gt;&lt;P&gt;            purchasing info record of the vendor (EINA-URZLA field); if the&lt;/P&gt;&lt;P&gt;            field is not set, the country of origin is set from the material&lt;/P&gt;&lt;P&gt;            master record (MARC-HERKL field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         o  Dispatch/export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            The information for the country of origin (and the region of&lt;/P&gt;&lt;P&gt;            origin) is copied from the material master record or the batch&lt;/P&gt;&lt;P&gt;            master record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     By default, the country of destination is set in the Extrastat&lt;/P&gt;&lt;P&gt;     declaration for exports from the "Destination Country" field in the&lt;/P&gt;&lt;P&gt;     billing header (VBRK-LAND1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     By default, the country of dispatch is set in the Extrastat declaration&lt;/P&gt;&lt;P&gt;     for imports from the "Country of dispatch" field for the export data of&lt;/P&gt;&lt;P&gt;     the billing item (EIPO-VERLD). If this is not filled, the country of the&lt;/P&gt;&lt;P&gt;     supplying vendor or the country of the vendor is set.&lt;/P&gt;&lt;P&gt;     It is therefore quite possible that the country of dispatch is not set&lt;/P&gt;&lt;P&gt;     in the foreign trade data for the document item (EIPO-VERLD). In this&lt;/P&gt;&lt;P&gt;     case, you would have to change the command line from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld EQ 'CS'.     "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld IS INITIAL.  "initial&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     After this change, only the vendor number (and other fields, if&lt;/P&gt;&lt;P&gt;     required) determines whether you have to set the country code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Releases 4.0B and 3.1I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In these releases, the use of user exits when selecting data is&lt;/P&gt;&lt;P&gt;     extremely limited. We recommend that you use the user exits that are&lt;/P&gt;&lt;P&gt;     processed to determine the foreign trade data for billing items&lt;/P&gt;&lt;P&gt;     (EXIT_SAPLV50E_003) and purchase order items (EXIT_SAPLV50E_004), in&lt;/P&gt;&lt;P&gt;     order to already set the required country code in the documents.&lt;/P&gt;&lt;P&gt;     Otherwise, in these releases you can also use Transactions VEFU and VEXU&lt;/P&gt;&lt;P&gt;     to manually maintain Intrastat data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;                                                                       Page 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Valid releases&lt;/P&gt;&lt;P&gt;     Software Component                        Release&lt;/P&gt;&lt;P&gt;                                               from            to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SAP_APPL   SAP Application&lt;/P&gt;&lt;P&gt;                                               500          - 500&lt;/P&gt;&lt;P&gt;                                               470          - 470&lt;/P&gt;&lt;P&gt;                                               46C          - 46C&lt;/P&gt;&lt;P&gt;                                               46B          - 46B&lt;/P&gt;&lt;P&gt;                                               45B          - 45B&lt;/P&gt;&lt;P&gt;                                               40B          - 40B&lt;/P&gt;&lt;P&gt;                                               31I          - 31I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Further components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MM-FT-GOV&lt;/P&gt;&lt;P&gt;      Declarations to Authorities Import&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Reference to related Notes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Number    Short text&lt;/P&gt;&lt;P&gt;     ____________________________________________________________&lt;/P&gt;&lt;P&gt;     603152    Country Code for "Serbia and Montenegro"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ________________________________________________________________________&lt;/P&gt;&lt;P&gt;                                                                       Page 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Assigned Correction Instructions&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;STRONG&gt;$&lt;/STRONG&gt;$----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Correction Inst.         0120061532 0000735967                     $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;$&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Valid for       :                                                  $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Software Component   SAP_APPL   SAP Application                    $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 45B          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 46B          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 46C          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 470          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$  Release 500          All Support Package Levels                   $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;$&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$ Changes/Objects Not Contained in Standard SAP System               $&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;$&lt;/STRONG&gt;$----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&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; Object          REPS ZX50GU02&lt;/P&gt;&lt;P&gt;     *&amp;amp; Object Header   PROG ZX50GU02&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;gt;&amp;gt;&amp;gt;&amp;gt; START OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTRASTAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     IF i_reporting_type EQ 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF ORIGIN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;       IF c_record_intrastat-ursprslnd EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;arrival&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_direction EQ '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           DATA: z_lifnr LIKE ekko-lifnr.&lt;/P&gt;&lt;P&gt;           IF i_mm_purch_order_header-llief IS INITIAL.&lt;/P&gt;&lt;P&gt;             z_lifnr = i_mm_purch_order_header-lifnr.&lt;/P&gt;&lt;P&gt;           ELSE.&lt;/P&gt;&lt;P&gt;             z_lifnr = i_mm_purch_order_header-llief.&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF z_lifnr EQ 'XS4711'.                 "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XS'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           IF z_lifnr EQ 'XK4712'.                 "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XK'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;     *...&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor and material&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF z_lifnr EQ 'CS4713'.                     "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;             IF i_mm_purch_order_line_item-matnr EQ 'mat55'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               c_record_intrastat-ursprslnd = 'XM'. "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;             IF i_mm_purch_order_line_item-matnr EQ 'mat71'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               c_record_intrastat-ursprslnd = 'XS'. "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;                                                                       Page 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             ENDIF.&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;....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;dispatch&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         ELSEIF i_direction EQ '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on material and plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_serbia' "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               AND i_sd_invoice_line_item-werks EQ 'CS01' ).       "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XS'.       "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_kosovo' "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;               AND i_sd_invoice_line_item-werks EQ 'CS12' ).       "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XK'.       "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF ( i_sd_invoice_line_item-matnr EQ 'mat_from_montenegro' "&amp;lt;-- mat.&lt;/P&gt;&lt;P&gt;             AND i_sd_invoice_line_item-werks EQ 'CS99' ).         "&amp;lt;-- plant&lt;/P&gt;&lt;P&gt;             c_record_intrastat-ursprslnd = 'XM'.       "&amp;lt;-- new country code&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;...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXTRASTAT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ***********&lt;/P&gt;&lt;P&gt;     IF i_reporting_type EQ 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF ORIGIN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;       IF c_record_extrastat-ursprslnd EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;     *...&lt;/P&gt;&lt;P&gt;     *... see INTRASTAT !&lt;/P&gt;&lt;P&gt;     *... !!! just replace 'c_record_intrastat-ursprslnd' by&lt;/P&gt;&lt;P&gt;     *... 'c_record_extrastat-ursprslnd' !!!&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;     *----&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF DISPATCH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;       IF i_direction EQ '1'      AND               "import&lt;/P&gt;&lt;P&gt;          c_record_extrastat-versendld EQ 'CS'.  "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         DATA: zz_lifnr LIKE ekko-lifnr.&lt;/P&gt;&lt;P&gt;         IF i_mm_purch_order_header-llief IS INITIAL.&lt;/P&gt;&lt;P&gt;           zz_lifnr = i_mm_purch_order_header-lifnr.&lt;/P&gt;&lt;P&gt;         ELSE.&lt;/P&gt;&lt;P&gt;           zz_lifnr = i_mm_purch_order_header-llief.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on vendor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                                                       Page 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF zz_lifnr EQ 'XS4711'.                   "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;           c_record_extrastat-versendld = 'XS'.  "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IF zz_lifnr EQ 'XK4712'.                   "&amp;lt;-- vendor&lt;/P&gt;&lt;P&gt;           c_record_extrastat-versendld = 'XK'.  "&amp;lt;-- new country code&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;     *----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;change COUNTRY OF DESTINATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     *----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;       IF i_direction EQ '2'      AND               "export&lt;/P&gt;&lt;P&gt;          c_record_extrastat-bestiland EQ 'CS'.     "Serbia/Montenegro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on sold-to-party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_header-kunag EQ 'monte01'.  "&amp;lt;-- sold-to-party&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XM'.      "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on payer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_header-kunrg EQ 'Kos05'.    "&amp;lt;-- payer&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XK'.      "&amp;lt;-- new country code&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set country depending on material&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IF i_sd_invoice_line_item-matnr EQ 'mat_to_serbia'. "&amp;lt;-- mat.no.&lt;/P&gt;&lt;P&gt;           c_record_extrastat-bestiland = 'XS'.       "&amp;lt;-- new country code&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;...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;     *&amp;gt;&amp;gt;&amp;gt;&amp;gt; END OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;     *&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 10:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656077#M291209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T10:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sap oss note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656078#M291210</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;Which your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the std code has to be changed because the sign of some countries are changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to insert/delete the new code as the note explains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Insert the code between *&amp;gt;&amp;gt;&amp;gt;&amp;gt; START OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;and *&amp;gt;&amp;gt;&amp;gt;&amp;gt; END OF INSERTION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Delete the code between *&amp;gt;&amp;gt;&amp;gt;&amp;gt; START OF DELETION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;and *&amp;gt;&amp;gt;&amp;gt;&amp;gt; END OF DELETION &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should implement the user-exit indicate in the note.&lt;/P&gt;&lt;P&gt;&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, 20 Oct 2006 10:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656078#M291210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T10:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sap oss note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656079#M291211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Transaction SNOTE to implement OSS Notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 10:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656079#M291211</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-10-20T10:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sap oss note</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656080#M291212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this can be implemented through SNOTE. There is customization to be done and the code they provide is just "sample" code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should check with your functional consultant to make sure all steps are done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 13:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-oss-note/m-p/1656080#M291212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T13:36:40Z</dc:date>
    </item>
  </channel>
</rss>

