<?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: XD02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555795#M1075556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you are updating table KNA1 from within the exit as direct updates to SAP tables are not recommended! But probably your table update is being made before the standard XD02 update which occurs after the exit has processed. So it is being overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd remove the UPDATE KNA1 idea, and try Eric's trick to pass the station name into the standard XD02 update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 13:51:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T13:51:51Z</dc:date>
    <item>
      <title>XD02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555791#M1075552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm trying to feed the fields  kna1-bahns  ,in the transaction XD02,automaticly, i've tried to use the user-exit ZXF04U01, but when i save in the transaction XD02 the value that i gived for this fields is Missing , and so i can not update the table KNA1 .&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 11:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555791#M1075552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T11:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: XD02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555792#M1075553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may help if you post the code of your zxf04u01 include...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is a quick guess - if you are setting BAHNS in the I_KNA1 structure then that won't be passed back into XD02 because it is an importing parameter only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 15:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555792#M1075553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: XD02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555793#M1075554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course i can not change because it's just an import and not a changing parameter the structure i_kna1 , the code is follow &lt;/P&gt;&lt;P&gt;thank u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : kna1.&lt;/P&gt;&lt;P&gt;DATA : gv_bahns(4) TYPE c,&lt;/P&gt;&lt;P&gt;       gv_n TYPE n,"Compteur&lt;/P&gt;&lt;P&gt;       kunnr TYPE KNA1-kunnr.&lt;/P&gt;&lt;P&gt;CONSTANTS :&lt;/P&gt;&lt;P&gt;gc_zhge(4) VALUE 'ZHGE',&lt;/P&gt;&lt;P&gt;gc_zhgf(4) VALUE 'ZHGF',&lt;/P&gt;&lt;P&gt;gc_zhgi(4) VALUE 'ZHGI',&lt;/P&gt;&lt;P&gt;gc_zhgp(4) VALUE 'ZHGP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_kna1-ktokd = gc_zhge&lt;/P&gt;&lt;P&gt;OR i_kna1-ktokd = gc_zhgf&lt;/P&gt;&lt;P&gt;OR i_kna1-ktokd = gc_zhgi&lt;/P&gt;&lt;P&gt;OR i_kna1-ktokd = gc_zhgp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONDENSE i_kna1-sortl NO-GAPS.&lt;/P&gt;&lt;P&gt;  IF STRLEN( i_kna1-sortl ) &amp;lt;= 7.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr&lt;/P&gt;&lt;P&gt;      WHERE sortl = i_kna1-sortl&lt;/P&gt;&lt;P&gt;      AND   kunnr &amp;lt;&amp;gt; i_kna1-kunnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     AND   BAHNS &amp;lt;&amp;gt; i_kna1-BAHNS.    " mus&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*Si la valeur existe déjà alors message d'erreur&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i031(zmap) DISPLAY LIKE 'I'. "La valeur saisie dans la zone critère de recherche 1 existe déjà dans SAP&lt;/P&gt;&lt;P&gt;      SET SCREEN '7000'.&lt;/P&gt;&lt;P&gt;      SKIP .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*Si la valeur de la zone est supérieur à 7 caractères alors message d'erreur&lt;/P&gt;&lt;P&gt;    MESSAGE i032(zmap) DISPLAY LIKE 'I' . "La valeur de la zone "critère de recherche 1" doit être &amp;lt; ou = à 7 chars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SET SCREEN '7000'.&lt;/P&gt;&lt;P&gt;    SKIP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Génération du Critère de recherche 2 sur 4 caractère&lt;/P&gt;&lt;P&gt;  gv_n = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF i_kna1-bahns IS  INITIAL .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR i_kna1-bahns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    gv_bahns = i_kna1-name1+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr&lt;/P&gt;&lt;P&gt;        WHERE kunnr &amp;lt;&amp;gt; i_kna1-kunnr&lt;/P&gt;&lt;P&gt;        AND   bahns = gv_bahns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHILE sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        CLEAR gv_bahns.&lt;/P&gt;&lt;P&gt;         gv_n = gv_n + 1.&lt;/P&gt;&lt;P&gt;        CONCATENATE i_kna1-name1+0(3) gv_n into gv_bahns.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr&lt;/P&gt;&lt;P&gt;        WHERE kunnr &amp;lt;&amp;gt; i_kna1-kunnr&lt;/P&gt;&lt;P&gt;        AND   bahns = gv_bahns.&lt;/P&gt;&lt;P&gt;      endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE gv_bahns to i_kna1-bahns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  UPDATE KNA1&lt;/P&gt;&lt;P&gt;  SET bahns = gv_bahns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHERE kunnr EQ kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 15:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555793#M1075554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: XD02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555794#M1075555</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;there is a trick to make the change inside the exit (even if it is an importing parameter). Add the following lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS : &amp;lt;lv_bahns&amp;gt; TYPE kna1-bakns.

ASSIGN ('(SAPMF02D)KNA1-BAHNS') TO &amp;lt;lv_bahns&amp;gt;.
&amp;lt;lv_bahns&amp;gt; = gv_bahns.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 15:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555794#M1075555</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-30T15:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: XD02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555795#M1075556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you are updating table KNA1 from within the exit as direct updates to SAP tables are not recommended! But probably your table update is being made before the standard XD02 update which occurs after the exit has processed. So it is being overwritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd remove the UPDATE KNA1 idea, and try Eric's trick to pass the station name into the standard XD02 update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 13:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xd02/m-p/4555795#M1075556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T13:51:51Z</dc:date>
    </item>
  </channel>
</rss>

