2007 Mar 30 12:10 PM
Hi All,
I have requirement that I have to place some default text into texts tab after pressing 'Planning' Button in shipment when creating shipment using VT01N .
I tried to save the text using SAVE_TEXT in exit but at the time of creation the shipment no is populated as '$0001'.
Actually I have to place delivery header text into shipment text and can be seen in texts tab while creating shipment.
your quick responses will be appreciated and reward points are awarded.
2007 Mar 30 4:34 PM
Hi,
Are you creating "shipment" with reference to "delivery"? If you are doing so, you can use "data transfer" routines.
Check transaction <b>VOFM</b>. Here, go to <b>menu "Data transfer --> Texts".</b> There will be two routine ( 1 & 2 ) here. This are just the sample routine without any code. You can copy one of then in customer name space ( 600 -999 ) and code as per your requirement.
Work with your functional owner to configuring this routine. This solution requires both configuration and some development so work with your functional owner.
This is waht SAP says about "text" routines.
*******************************************************************
Text data transfer routines are used to fine tune text transferred during the copying process from a selected reference document into the target. This is done via data transfer routines that can transfer and manipulate texts in the copy procedure. These data transfer routines are assigned, in customizing, to the access sequence field for data transfer for the text type.
When creating a new document with reference to an existing document, the system first checks the copy requirement assigned to the access sequence of the text type to determine if the corresponding texts should be automatically transferred. If the requirement is met, then the transfer of data begins from the reference document into the target. It is in this second step that the text data transfer routines defined here are called.
When looking at the code for the standard delivered text data transfer routines, or when writing your own, four standard work areas are used. These include:
FTVCOM - Communications block
FXTHEAD - Text header
FXVBPA - Partner
REFERENZ - Work area for text module
Note that SAP does not deliver any standard manipulations for data transfer of text, but rather delivers two viable user exit template routines for the user. Moreover, neither of the generic routines are assigned to the delivered text types. As a result, standard delivered texts are automatically transferred from document to document, without changes, if the assigned copy requirement is met.
*******************************************************************
Let me know if you need any other information.
Regards,
RS
2007 Mar 30 4:47 PM
use VOFM to create a sub routinue and use this sub routinue for creating the texts..