TEXTS in Sales Order - Text types used or not ?

Hi experts,
We have 8 text types in sales orders line items. Some of them are used to enter text and some are not. Is there a table from where we can find out if for all orders any particular text type is used or not ?
In STXH and STXL, how can we find out if a particular order # has an entry of texts in it or not.
How can we get a text i.d. from the sales order. OR find a link between sales Order and tables STXH/STXL........ how can we search these tables ?
I really need some help on this mysterious Text storage strategy of SAP.
Thanks a LOT
Ron

Yes I am aware of the fact that text is accessed thru read_text FM .....
My question is what parameters/ field values can we plug in STXH/STXL to get info that a particular "text" entry exists in this table. I have a sales order which has few texts, I want to know if they have an entry in STXH and STXL about their text i.d.s....
Let me put it this way - What ever entry exists in STXH for this sales Order I want to see that. What parameters of this sales order do I pass in this Table STXH to see that entry ??
I hope this is clear now

Similar Messages

  • HEADER TEXT OF SALES ORDERS

    WHERE CAN I SEE THE PARAMETERS VALUES IN  "READ_TEXT "   FM
    OBJECT
    ID
    NAME
    LANGU
    SUPPOSE I WANT TO READ THE HEADER TEXT FOR SALES ORDER. IAM USING 4.7 IDES.

    hi  ,
    its easy to find where the the parameters are stored.
    Just right click on the parameter  and click on Technical information to see the table name..
    this is applicable for all.
    Siva

  • How can we remove an unwanted # in sales order texts created using a bapiFM

    Hi,
    i've written the following code which splits the record fetched from apllication server and moves it into a workarea.
    CONSTANTS:c_sep VALUE cl_abap_char_utilities=>horizontal_tab, "for separation
    SPLIT wa_tab1-rec1 AT c_sep INTO wa_inf_itm-inf_vbeln
                                           wa_inf_itm-itm_number
                                           wa_inf_itm-material
                                           wa_inf_itm-req_qty
                                           wa_inf_itm-uom
                                           wa_inf_itm-amount_pr00
                                           wa_inf_itm-amount_pi02
                                           wa_inf_itm-amount_mwst
                                           wa_inf_itm-amount_vprs
                                           wa_inf_itm-currency
                                           wa_inf_itm-text.
    Here c_sep will have a value '#' instead of 'space' in Flatfile from application server.
    The field 'wa_inf_itm-text' though it doesnot contain any value in debugging, when the sales order is created using FM 'BAPI_SALESORDER_CREATE_FROM_DAT2' the item texts are having a # character at the end of the text if it has any text(when checked in va03--sales order item text) or if it doesnot contain any text ,then also # character is seen in texts.
    Thanks & Regards,
    Prasad Reddy.

    hi
    use
    Replace all occurrence of '#' with space from .......
    I think it will solve ur problem.
    Rewards with point if helpful.
    Regards
    Santosh.

  • Creating Sales order texts while using BDC session method is not working

    Hi All,
    I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
    I wanted to modify this BDC sesion  to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
    Please suggest if there is any way to create sales order using BDC.
    Regards
    Sheeba

    Hi Madhu,
    '=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
    Part of BDC program generated for cretaing sales order texts.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBACK'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    Regards,
    Sheeba

  • Texts from sales order to invoice

    Good morning,
    I am a new forum user and I have a question. With SAP I create a sales order inserting in header and in item position some texts; I save the order and when I want to see print preview of yhis order, I see the texts in it. But creating the invoice from the order, SAP doesn't copy the texts into the new invoice; texts aren't copied. WHy? Can you help me in some way? Thanks
    Francesco

    Dear Fra,
    Do these settings to copy the sales order text to the invoice.First you need to copy the sales order text to the delivery document from the delivery document you can copy the text to the billing document.
    To copy the sales order text to the delivery document
    You do the text determination for the deliveries also,define and maintain same TextId in the delivery header text procedure ,maintain the access sequence ,in the delivery text procedure access sequence you put the Text Object as VBBK for that Text ID.
    To copy the delivery text to the invoice.
    You do the text determination for the billing document,define and maintain same TextId in the billing document text procedure  and maintain the access sequence,after that
    Go to VOFA transaction then selct billing document type then go in to the details screen here you do the check in the Delivery Text check Box (Top most bottom of the screen.)
    Now you can able to copy the sales order text to the invoice.
    Use VOTXN transaction for Text determinetion
    I hope this will help you,
    Regards,
    Murali.

  • Restrict Sales order text based on Sales group

    Hi,
       My requirement is currently 12 different text ID's showing in my sales order text.But I want to restrict certain sales order text ID's based on sales group entered in the sales order header. Is there is any user exit or routines available to restrict sales order text ID's.
    Regards,
    Palani

    Hi,
    This is actually a configuration item.  Transaction VOTXN (VOTX in 4.6C) can be used to configure the text types, text procedures, and access sequences for sales order texts as well as other types of texts.  Part of the configuration procedure allows for some ABAP control over the copying requirements. 
    This is from the online help for data element COPNR (on the VOTXN screen SAPMV80T 800, field TTXZI-COPNR) :
    You can create your own routines for text determination. For example, if you want to send different messages to particular groups of customers, you can create routines that automatically assign different messages to different groups (e.g. wholesalers, retailers).
    Note
    The fields available for determining texts are defined in structure TVCOM, which can be found in the routine under FTVCOM. Generally, however, the fields filled in the structure are only those which are used or recognised for text determination by the caller. Other fields can, for example, be filled during sales document processing via user exits USEREXIT_MOVE_FIELD_TO_TVCOM_H and USEREXIT_MOVE_FIELD_TO_TVCOM_I. The user exits are described in the IMG under Sales and Distribution -> System Modification -> User exits.
    I'm not sure if filtering by sales group is possible, but I don't see why not.
    Regards,
    Jamie

  • FM to get Text in Sales Orders - VA02

    Dear all,
    I'am looking for a Function modul, which get all text in HEADER and ITEM for a document number in Sales Orders=> VA02.
    Is there any one who can help?
    Best regards
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

    Dear  handeglo ,
    use the function module READ_TEXT this is helpful in getting the long texts from the database and will work for the VA02
    header and item texts retrival .Eg.
    CALL FUNCTION 'READ_TEXT'
              EXPORTING
    *           CLIENT                        = SY-MANDT                   Field:
                id                                 =          "put here the id of thr text type"     TDID
                language                     = 'D'    "language in which the text exists.    TDSPARS
                name                           =      "put here the name of the text AS in     TDONAME
                           for item texts its sales order number+item number
                object                          = 'VBBP'    "object type for item texts       TDOBJ
    *           ARCHIVE_HANDLE                = 0
    *           LOCAL_CAT                     = ' '
    *         IMPORTING
    *           HEADER                        =
              TABLES
                lines                         = i_lines
             EXCEPTIONS
               id                            = 1
               language                      = 2
               name                          = 3
               not_found                     = 4
               object                        = 5
               reference_check               = 6
               wrong_access_to_archive       = 7
               OTHERS                        = 8
    also refer the tables stxh and stxl these tables contain all the header and item texts data respectively
    Edited by: abhi_014u on Feb 17, 2010 3:44 PM
    Edited by: abhi_014u on Feb 17, 2010 3:46 PM
    Edited by: Rob Burbank on Feb 17, 2010 11:35 AM

  • Sales order texts - only printed correctly on repeat print out

    Hi all,
    We have an issue, where on the first printout through VF31 of a sundry billing document, the material sales text maintained in French is not printed, even though the language in the customer's master data is French, the material sales text in the sales document is maintained in French and in VOTXN the access sequences are maintained for all languages.
    I first checked this post Sales order text determination which unfortunately didn't resolve the issue (although a very interesting discussion).
    The strange part is, when we do a repeat print out through VF31 selecting procession mode 2 (Repeat Processing) the document is printed WITH the material sales texts correctly. For me even stranger is that the repeat printout uses the same output type as the initial printout. I am now officially lost. Would any of you have any idea, where the issue lies here?
    I would try to change some setup in VOTXN, but knowing that the repeat print out does print the texts correctly, let's me think there might be a different issue.
    Any idea are very welcome.
    Thank you in advance!
    Alexis
    Edit: when we copy the text and make it "Dutch", for some reason it's printed out correctly on the first printout. Although I cannot find any restriction, where Dutch is specified specifically, nor do I see where French is excepted specifically.

    Guys --
    Thanks for the help! 
    Suda -- will try out your suggestion.  Gordon - in answer to your question, we actually go from Sales Order to A/R Invoice (Draft) to A/R Invoice. 
    We use the A/R Invoice (Draft) as our packing slip and skip Delivery module altogether.
    I realize this is a bit unconventional but seems to work best for our business practice.
    Thanks!
    Mike

  • How to update TEXT in Sales order header

    Hello ,
    I have requirement in which I am creating SO via IDOC calling BAPI_SALESORDER_CREATEFROMDAT2.
    Question: Can any one help me in finding a solution to update the TEXT in sales order header which is confogured IN TEXT CONTROL in SD.
    I have tried various option using CREATE_TEXT but it is only updating STXH table , the text is not coming in the sales order.
    If someone knows about this , <removed by moderator>.
    Edited by: Thomas Zloch on Nov 15, 2010 4:20 PM - please do assign priorities > normal

    Sounds like a text determination config issue - have you assigned the text in VOTXN?  Have you run the text determination analysis from VA02 in the document?

  • Header Text And Item Text in Sales Order

    Dear ALL
    First one:
    I have two different problems with text in sales order, when i create sales order after giving all the information like customer and material.
    If i navigate through the Go To-- > Header ---> Text then there is a dump is any idea what all i need to check?
    Error  Message
    A RAISE statement in the program "SAPLOLEA " raised the exception 
    condition "CNTL_ERROR".                                           
    Since the exception was not intercepted by a superior program     
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use        
    Transaction SE37 (Function Library). You can take the called      
    function module from the display of active calls.                 
    The termination occurred in the ABAP/4 program "SAPLOLEA " in          
    "AC_SYSTEM_FLUSH".                                                     
    The main program was "SAPMV45A ".     
    The termination occurred in line 27                                    
    of the source code of program "LOLEAU02 " (when calling the editor 270).
    Second one:
    when i am creating the sales order without enter the quantity  , customer and material if i navigate through the Header Text or item  Text i can able to go but there in no dump, the moment i enter the quantity for the material then it over writes all the text in item and header.
    Any suggestions please?
    Thanks & Regards,
    Veer

    Dear Veer,
              Please take the help from the technical people to fix the issue because it may related activation some Z developments which are related to the text.
    Check the text determination procedure configuration settings also whether the text is calling from the Customer master and Material master.
    If the text is calling from the master data maintain the text in the master data then try.
    I hope it will help you
    Regards,
    Murali.

  • Copying Text From Sales order to Billing Document

    Hi all,
    I have searched all posts for my issue but found nothing so that i am posting this issue.
    I want to copy the Some text form sales order to billing document is there any cnfig to do this
    order is there any exit for billing in which i can write code to copy text from sales order to billing document.
    please provide me a solution.
    Thanks in adavnce.
    Vinod.

    Hi,
    Use the same t-code VOTXN to do access sequence assignment.
    When you choose text object Billing Doc (header/item), there is 3 folders in dialog structure:
    - Text procedure
    - Access sequence
    - text procedure assignment
    In the text procedure folder, select related text procedure, then assign the created access sequence to respective text id.
    Hope this help.
    Cheers,

  • How to download material sales text and purchase order text information

    Here is situation:
    goto MM03 transaction,
    Take any material -- and select below views
    1. sales text
    2. purchase order text
    i have to write the download program with the sales text and purchasing text information of all the materials.
    could you pls tell me in which table I will get all the above sales text and purchase order text infrmation.
    I think it will store in standard text. I checked STXH table also for getting information text object, text id, text name, language, etc.
    If anybody knows .. please share.
    Thanks in advance.
    Regards
    Raghu

    Declare internal tables as follows: - An example
    TYPES: BEGIN OF TY_PO_LINES,
         INCLUDE STRUCTURE TLINE.
         END OF TY_PO_LINES,
         TY_PO_LINES_T TYPE STANDARD TABLE OF TY_PO_LINES.
    TYPES: BEGIN OF TY_PO_TEXT,
           TDOBJECT TYPE TDOBJECT
           TDNAME TYPE TDOBNAME,
           TDID TYPE TDID,
           SPRAS TYPE SPRAS,
         TDLINES TYPE TY_PO_LINES OCCURS 0,
         END OF TY_PO_TEXT,
         PO_TEXT_T TYPE STANDARD TABLE OF TY_PO_TEXT.
    DATA: PO_TEXT TYPE TY_PO_TEXT_T
    PO text:
    Looping at your internal table which consists of PO number,
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKKO "PO Header Text
    TDNAME = PO NUMBER
    SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
    TDOBJECT = EKPO "PO line item text
    TDNAME = PO NUMBER
    ENDLOOP
    Looping at PO_TEXT
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
         ID = PO_TEXT-TDID
         LANGUAGE = PO_TEXT-TDSPRAS
         NAME = PO_TEXT-TDNAME
         OBJECT = PO_TEXT-TDOBJECT
      TABLES
         LINES = PO_TEXT-TDLINES
    ENDLOOP
    Follow the same above logic for material with suitable TDID you need to extract
    Hope this helps,
    SKJ

  • Mass Update for Purchase Order & Sales Order Text

    Hi,
    Can be change the Purchase Order & Sales Order Text using MASS.
    Regards,

    Hi,
    I am also surprised by the behaviour of the BDC.
    This is first time when I am facing the problem since I have been using SAP.
    I am able to update the PO Text manually , but BDC is giving the problem for only few Materials.
    It does sound stupid, but this is the fact here with me.
    Regards,
    Edited by: PK on Nov 5, 2009 12:58 PM

  • Please tell me table that stores texts in Sales Orders

    To everyone,
    Does anybody know which table stores text in sales orders(VA01 screen -> item data -> under texts tab)?
    I would like to create a query or ABAP report to check data entered in the text field but I don't think it is in VBAK or VBAP.
    Thank you very much in advance.
    Best regards,
    Miki

    Hi Miki,
    Sales text is stored in encrypted form in the database table. You cannot directly read it from database table. but you can use the function modue READ_TEXT to do so. The related table is STXH and STXL
         try using the  FM READ_TEXT.
    double click on the text>Goto>Header. Here you can find the text id & text object.
    Thank you,
    Pavan.
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 18, 2009 7:26 AM
    Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 18, 2009 7:27 AM

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

Maybe you are looking for