<?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: I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784182#M649086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I_VTTK is the header table, LOOP AT it, then READ for dependant tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 11:35:48 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-09-10T11:35:48Z</dc:date>
    <item>
      <title>I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784179#M649083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I'm unable to start my coding in the include ZXV56U11.Whether to fetch data with select statements or with read statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follows I hav created my table with the specification given Yloxxx..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function exit performs three actions:&lt;/P&gt;&lt;P&gt;1.	Removes deliveries that are completely unloaded from shipment&lt;/P&gt;&lt;P&gt;2.	Prevents entering a shipment completion for partially loaded deliveries&lt;/P&gt;&lt;P&gt;3.	Removes fully loaded deliveries from phantom shipment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit is called when entering the shipment completion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-	Shipment completion is entered via transaction VT02N, VT06, VT12&amp;#133;.&lt;/P&gt;&lt;P&gt;-	Call is performed when the program updates the field VTTK-STABF (completion status / flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In include ZXV56U11 following tasks must be performed,&lt;/P&gt;&lt;P&gt;Initial check&lt;/P&gt;&lt;P&gt;All treatments must be conditioned to the existence of an authorized combination record shipment type / plant stored in a specific table YLOxxx &lt;/P&gt;&lt;P&gt;&amp;amp;#61662;	if no entry exist in this table -&amp;gt; end treatment: exit transaction without saving shipment completion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check is performed as follows:&lt;/P&gt;&lt;P&gt;-	Select shipment number (field TKNUM) from table VTTK &lt;/P&gt;&lt;P&gt;o	get shipment type (field SHTYP) and store it in a buffer table&lt;/P&gt;&lt;P&gt;-	 Select shipment number (field TKNUM) from table VTTP&lt;/P&gt;&lt;P&gt;o	get first delivery number  (VBELN)  in case several deliveries are linked to the shipment&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	 select delivery number as per previous step from LIPS&lt;/P&gt;&lt;P&gt;&amp;#149;	get plant (WERKS ) related to first delivery item and store it in buffer table&lt;/P&gt;&lt;P&gt;-	Check existence of combined record (plant /shipment type),stored as buffer, in custom table YLOxxx (see specification of table below)&lt;/P&gt;&lt;P&gt;o	If combined record exits,  continue execution of user exit&lt;/P&gt;&lt;P&gt;o	If combined record does not exist, end treatment: exit transaction without saving shipment completion&lt;/P&gt;&lt;P&gt;&amp;amp;#61607;	Display error message: &amp;#147;shipment not managed with profile #2, no shipment completion required&amp;#148; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784179#M649083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784180#M649084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to read the internal tables provided to the exit : look at the Function  Module documentation and parameters. (Of course you must select from database the tables not provided)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+Désign.                                                                                &lt;/P&gt;&lt;P&gt;Shipment Processing: Prepare New Objects for Saving                                                                                &lt;/P&gt;&lt;P&gt;Functionality                                                                                &lt;/P&gt;&lt;P&gt;This function is called up when shipments are saved and the shipment &lt;/P&gt;&lt;P&gt;    table has been prepared for the update in the database (for example, &lt;/P&gt;&lt;P&gt;    number assignment, person who last made changes, the time changes wer&lt;/P&gt;&lt;P&gt;    made).                                                                                &lt;/P&gt;&lt;P&gt;In this function, you can make changes to the shipment tables.       &lt;/P&gt;&lt;P&gt;    If you want to update your own objects together with the shipment    &lt;/P&gt;&lt;P&gt;    tables, you have to prepare them here for the update.                                                                                &lt;/P&gt;&lt;P&gt;Example                                                                                &lt;/P&gt;&lt;P&gt;If you want to update objects that are to contain the shipment number&lt;/P&gt;&lt;P&gt;    the objects must have the assigned shipment number when a shipment is&lt;/P&gt;&lt;P&gt;    created.                                                             &lt;/P&gt;&lt;P&gt;    Newly created shipments are indicated by:                            &lt;/P&gt;&lt;P&gt;    XVTTK-UPDKZ = UPDKZ_NEW.                                             &lt;/P&gt;&lt;P&gt;    They contain the old provisional '$nnn' in field                     &lt;/P&gt;&lt;P&gt;    XVTTK-TKNUM_OLD.                                                     &lt;/P&gt;&lt;P&gt;    The new number is in field                                           &lt;/P&gt;&lt;P&gt;    XVTTK-TKNUM.                                                         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Notes                                                                                &lt;/P&gt;&lt;P&gt;Sorting the shipment table                                                                                &lt;/P&gt;&lt;P&gt;The shipment processing tables are always sorted according to the              &lt;/P&gt;&lt;P&gt;     database keys so that 'READ TABLE ... BINARY SEARCH' can be used to            &lt;/P&gt;&lt;P&gt;     access them quickly.                                                           &lt;/P&gt;&lt;P&gt;     These tables contain entries for several shipments so that the entries         &lt;/P&gt;&lt;P&gt;     of a shipment are grouped together.                                                                                &lt;/P&gt;&lt;P&gt;The tables are as follows:                                                                                &lt;/P&gt;&lt;P&gt;o   XVTTK, YVTTK  Shipment headers         Sort: MANDT,TKNUM                                                                                &lt;/P&gt;&lt;P&gt;o   XVTTP, YVTTP  Shipment items           Sort: MANDT,TKNUM,TPNUM,VBELN                                                                                &lt;/P&gt;&lt;P&gt;o   XVTTS, YVTTS  Shipment stages          Sort: MANDT,TKNUM,TSNUM                                                                                &lt;/P&gt;&lt;P&gt;o   XVTSP, YVTSP  Assignment stages/items  Sort: MANDT,TKNUM,TSNUM,TPNUM                                                                                &lt;/P&gt;&lt;P&gt;o   XVBPA, YVBPA  Partner                  Sort: MANDT,VBELN,POSNR,PARVW                                                                                &lt;/P&gt;&lt;P&gt;o   XVTFA, YVTFA  Document flow            Sort: Database                                                                                &lt;/P&gt;&lt;P&gt;o   XVBADR,YVBADR Addresses                Not sorted                                                                                &lt;/P&gt;&lt;P&gt;Contents of the shipment tables                                                                                &lt;/P&gt;&lt;P&gt;Table Xtttt is most current after the change. Table Ytttt stays the same       &lt;/P&gt;&lt;P&gt;     as it was on the database before the changes were made.                                                                                &lt;/P&gt;&lt;P&gt;The content of the indicator UPDKZ show the change status. In INCLUDE        &lt;/P&gt;&lt;P&gt;     RVDIREKT the constants are defined for the indicator:                                                                                &lt;/P&gt;&lt;P&gt;o   updkz_old(1)      value ' '   -   No change                                                                                &lt;/P&gt;&lt;P&gt;o   updkz_new(1)      value 'I'   -   New entry                                                                                &lt;/P&gt;&lt;P&gt;o   updkz_update(1)   value 'U'   -   Changed entry                                                                                &lt;/P&gt;&lt;P&gt;o   updkz_delete(1)   value 'D'   -   Delete entry                                                                                &lt;/P&gt;&lt;P&gt;Table XVTTP contains both entries of deliveries belonging to a shipment      &lt;/P&gt;&lt;P&gt;     (TKNUM, TPNUM have entries), as well as entries for deliveries that do       &lt;/P&gt;&lt;P&gt;     not belong to a shipment (TKNUM, TPNUM are blank).                                                                                &lt;/P&gt;&lt;P&gt;Changes                                                                                &lt;/P&gt;&lt;P&gt;If you make changes or create new entries, you must take the sorting         &lt;/P&gt;&lt;P&gt;     into account.                                                                                &lt;/P&gt;&lt;P&gt;If you want to access entries of a shipment in one of the tables, select     &lt;/P&gt;&lt;P&gt;     the first entry and read the corresponding segment for this shipment per     &lt;/P&gt;&lt;P&gt;     'LOOP':                                                                      &lt;/P&gt;&lt;P&gt;       read table xvttp with key mandt = sy-mandt                                 &lt;/P&gt;&lt;P&gt;                                 tknum = i_tknum                                  &lt;/P&gt;&lt;P&gt;                        binary search.                                            &lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.                                                           &lt;/P&gt;&lt;P&gt;         loop at xvttp from sy-tabix.                                             &lt;/P&gt;&lt;P&gt;           if xvttp-tknum ne i_tknum. exit. endif.                                &lt;/P&gt;&lt;P&gt;           ...                                                                    &lt;/P&gt;&lt;P&gt;         endloop.                                                                 &lt;/P&gt;&lt;P&gt;       endif. +                                                                                &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784180#M649084</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-10T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784181#M649085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  The answer you have given is usefull but my probelm over here is &lt;/P&gt;&lt;P&gt; when comparing with key in READ statement &lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;Read table i_xvttk with key tknum = ?    with what value shall i compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784181#M649085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using the EXIT_SAPLV56U_004 for my user exit of transaction VT02N</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784182#M649086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I_VTTK is the header table, LOOP AT it, then READ for dependant tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-m-using-the-exit-saplv56u-004-for-my-user-exit-of-transaction-vt02n/m-p/2784182#M649086</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-10T11:35:48Z</dc:date>
    </item>
  </channel>
</rss>

