<?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: VA01 User Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574758#M1271512</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;Try This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="Code"&gt;
DATA: w_h_vsbed LIKE knvv-vsbed.

 IF sy-tcode = 'VA01' OR
     sy-cprog = 'ZVPCONV_OPEN_SO' OR                        
     sy-cprog = 'ZVVSALESORDER_CONV'.                       
    LOOP AT xvbpa WHERE parvw = 'WE'
                    AND posnr = 0.
      w_h_cust = xvbpa-kunnr.
      EXIT.
    ENDLOOP.
    SELECT SINGLE vsbed INTO w_h_vsbed
                FROM knvv  "KNVV
                WHERE kunnr = w_h_cust AND
                      vkorg = vbak-vkorg AND
                      vtweg = vbak-vtweg AND
                      spart = vbak-spart.
    vbak-vsbed = w_h_vsbed.
  ENDIF.

&lt;/SPAN&gt;&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;Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna Gowrneni on May 5, 2009 8:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 14:57:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-05T14:57:56Z</dc:date>
    <item>
      <title>VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574756#M1271510</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;The background is that based on &lt;STRONG&gt;Sold to party&lt;/STRONG&gt; the Shipping condition is set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is that based on &lt;STRONG&gt;Ship to party&lt;/STRONG&gt; the shipping condition should be set.&lt;/P&gt;&lt;P&gt;I used the exit &lt;STRONG&gt;USEREXIT_MOVE_FIELD_TO_VBAK&lt;/STRONG&gt; in include &lt;STRONG&gt;MV45AFZZ&lt;/STRONG&gt;. The code is working fine, but the problem is its is overwriting if the user is changing Shipping condition Manually in VA01/VA02. This should not happen. I have tried many possible scenarios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen field of shipping condition is VBAK-VSBED but it does not help as I cannot determine which is the last value and what is the changed value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arnab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 12:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574756#M1271510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T12:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574757#M1271511</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;may be you can check as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
VBAK-VSBED " for existed value 
XVBAK-VSBED " for newly entered value  in the user exit - FORM USEREXIT_MOVE_FIELD_TO_VBAK.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 14:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574757#M1271511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T14:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574758#M1271512</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;Try This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="Code"&gt;
DATA: w_h_vsbed LIKE knvv-vsbed.

 IF sy-tcode = 'VA01' OR
     sy-cprog = 'ZVPCONV_OPEN_SO' OR                        
     sy-cprog = 'ZVVSALESORDER_CONV'.                       
    LOOP AT xvbpa WHERE parvw = 'WE'
                    AND posnr = 0.
      w_h_cust = xvbpa-kunnr.
      EXIT.
    ENDLOOP.
    SELECT SINGLE vsbed INTO w_h_vsbed
                FROM knvv  "KNVV
                WHERE kunnr = w_h_cust AND
                      vkorg = vbak-vkorg AND
                      vtweg = vbak-vtweg AND
                      spart = vbak-spart.
    vbak-vsbed = w_h_vsbed.
  ENDIF.

&lt;/SPAN&gt;&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;Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna Gowrneni on May 5, 2009 8:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 14:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574758#M1271512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574759#M1271513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already checked this out, VBAK, XVBAK and *VBAK. This does not help. I already checked that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is why I mentioned about the screenfield with that name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arnab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 15:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574759#M1271513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574760#M1271514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response but there is no way this code is going to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-CPROG contains the Calling Program name. The names you have provided within the check are 'Z' programs which do not exist in another system(the 1 I am working in). We need to find proper enhancement spots / exits or field structures that can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from that we dont need the complex logic : KUWEV-KUNNR will have Shipto party and KUAGV-KUNNR will have sold to party details. these are standard structures which get automatically filled on entry in VA01 screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arnab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 15:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574760#M1271514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: VA01 User Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574761#M1271515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you use the userexit_save_document ? Irrespective of what the user has entered you fetch the shipping condition in this exit as per your logic depending upon Ship to party. I guess the user can't change the values after this exit is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 17:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01-user-exit/m-p/5574761#M1271515</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-05-07T17:41:05Z</dc:date>
    </item>
  </channel>
</rss>

