Retrieve Sale Order Text

Hi,
  How can i retrieve the sale order text?? Any FM / BAPI available?? OR which table should  i use??  I want to display the fields in the delivery sap script.
Regards,
Kit

Hello Kit,
There is a function Module called READ_TEXT to get the sales order text.
you can see the example program in the folowing thread given by Anji Reddy Vangala.
https://forums.sdn.sap.com/click.jspa?searchID=6591847&messageID=3274740
He wrote like:
You have to fetch it useing the fun module READ_TEXT
double click on that text in SO, it goes to text editor,
from the menu GOTO -> header
displays the OBJECT, ID< OBJECT NAME and the Language
pass them to the fun module and fetch it
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = TEXT_ID
LANGUAGE = SY-LANGU
NAME = Same as TDNAME in Save_text
OBJECT = TEXT_OBJECT
TABLES
LINES = LI_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Genrally text are stored in STXH tables.
Regards
Sasidhar Reddy Matli.
Message was edited by:
        Sasidhar Reddy Matli

Similar Messages

  • How 2 read all the line of a sales order text ID plz

    Dear all
    I have the following to read sales order text of single line of limited char(40)
      TIDNO = '0003'.
        CONCATENATE SSORD
                    LIPS-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
      How do i read mutiple lines plz tell me ?
    Thnx
    Moni
    Message was edited by: md monirujjaman

    Hi Md,
    sorry I don't understand your question, can you explain more ?
    Regards
    Frédéric

  • 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

  • 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

  • Sales Order Text not getting copied after configed with tcode VOTNX

    Hi All ,
    We have configed  one of  sales order texts to be copied from customer master text at sales org level  .
    It works fine for some sales org , But for some it does not and says "Text could not be structured " in log .
    I tried to debug while creating sales order , But unable to reach the point where the texts are copied .
    Any help would be appriciated .
    Thanks
    Vinay

    Wanted to add more thing ,
    The log Says that the error is recogized by the sapscript FM INIT_TEXT.
    Thanks
    Vinay kolla

  • Can we add Delivery texts/Sales order text in VL10 report

    Hi,
    Is it possible to have delivery texts/sales order texts on VL10 report.
    Please let me know if there is a way to do it.I've looked at the note198137.
    Thanks in advance.
    Regards,
    Rekha

    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

  • 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

  • Sales order Text need to copy in to PR or PO

    Hi All
    I am trying to copy Sales orde header text and item text in to Purshase Requisition or Purchase order. I have configured settings in VOTXN. But still i am unable to copy sale order text in to PR or PO. plz help on these.  (this is Third party scenario i am copying text.)

    Hi,
    You can use the functuion READ_TEXT to read the SO Text.
    Then refer to function SAVE_TEXT, you need to fill the structure THEAD with all PO Values and the fill lines directly.
    The text will be updated.

  • 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

  • Sales Order Text to Production Order Text

    Dear Experts,
    When creating a sales order in VA01, I added in some comments in the item level Texts tab.
    How can I configure the system so that when a production order is created from this sales order, the comments entered in the sales order will be automatically populated in the Long Text tab of Production Order header.
    This is because during the creation of sales order, there may be certain comments and/or instructions that need to be passed to the production line. We want the texts to flow through to the production order automatically.
    Any ideas?
    Thanks in advance.

    Hi,
    The problem is solved.
    In SD side, there's a transaction VOTXN. Change the configuration for Sales Order Item.
    Add a Text ID 0006 (Production Memo) in Textprocedure with Access Sequence 21 (Material Sales).
    In Access Sequence 21, map Text Object VBBP (Sales Order Item Text) to ID 0006 (Production Memo).
    Save it.
    When you create your sales order, in the item text level, you'll be able to see an additional text type of Production Memo. Enter your text here and save the sales order. When production order for this Sales Order is created, Production Memo tab will automatically appear (as mentioned by Peter earlier).
    Thanks.

  • Sales Order Text Lines in SAP Query

    I have a requirement to output several text lines into a SAP query based around sales orders.
    I have included some code to read the details into my query and get no syntax errors, however the report gives a blank output for each of the text fields included, despite there definitely being some text with the specified attribute ID and text object in the table STXL.
    Where am I going wrong?
    Please find the coding below for one of the text field I'm trying to extract:
    TABLES:STXL.
    DATA:
        VBELN LIKE VBAP-VBELN,
        POSNR LIKE VBAP-POSNR,
        TDNAME LIKE STXL-TDNAME,
        MYLINE LIKE TLINE-TDLINE,
        ZE18_LINE(1200) TYPE C.
    DATA:BEGIN OF LINES OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA:END OF LINES.
    DATA:BEGIN OF MYHEADER.
            INCLUDE STRUCTURE THEAD.
    DATA:END OF MYHEADER.
    CLEAR TDNAME.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-VBELN
    IMPORTING
      OUTPUT = VBELN.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-POSNR
    IMPORTING
      OUTPUT = POSNR.
      CONCATENATE VBELN POSNR INTO TDNAME.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
            ID = 'ZAT2'
            LANGUAGE = SY-LANGU
            NAME = TDNAME
            OBJECT = 'VBBP'
         IMPORTING
            HEADER = MYHEADER
         TABLES
            LINES  = LINES
    EXCEPTIONS
            ID = 1
            LANGUAGE = 2
            NAME = 3
            NOT FOUND = 4
            OBJECT= 5
            REFERENCE_CHECK = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS = 8.
    IF SY-SUBRC = 0.
      LOOP AT LINES.
        MOVE LINES-TDLINE TO TEXT.
        ENDLOOP.
    ENDIF.

    Hi -
    Please check in debuging.
    check the value of TDNAME correctly populated with sales order no and sales order item.
    You can cross check with the table STXH with TDNAME and see if any entries is available for TDID 'ZAT2' as your case.
    Here are sample code.
    DATA :    lv_tdname TYPE tdobname,
                     lw_line TYPE tline,
                    li_line TYPE STANDARD TABLE OF tline.
    CLEAR : lv_tdname , li_line[],
    cocatenate w_vbak-vbeln w_vbap-posnr into lv_tdname.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'ZAT2'
        language                = 'E'
        name                    = lv_tdname
        object                  = 'VBBP'
      TABLES
        lines                   = li_line
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc = 0.
      CLEAR lw_line.
      loop at li_line INTO lw_line .
    * Put your logic
      endloop.
    ENDIF.

  • 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.

  • Sales Order text for Variant Configuration

    Hello
    I have researched my issue and also have asked other peers for guidance.  I feel that I am really close to getting my issue to work but I am not sure what I am missing, so I am hoping that someone can give me some advice as to what to check please.  See below for the description. 
    My issue is in reference to SD Variant Configuration and is outlined below.
    Overview
    Main Unit is a radio test set
    Test set can have an upgraded software
    Example
    Model 6015 u2013 standard test set
    Model 6015T u2013 Upgraded software test set
    Model 6015V u2013 Upgraded Software + test Set
    Requirement
    Use same Material Number using Variant Configuration for the upgrades
    Price is to default to the Upgraded price
    NOTE:
    Our materials are already established and are set up as material type Finished Goods; ERLA item category; sales order item category is a copy of TAC.   I am using a Configurable Material type KMAT, item category 0002 and linking to the FG material item category ERLA in the material master.
    I have created the Material Variant (KMAT) in MM01
    Created the characteristic in CT04
    Created Classification in MM02 for material FG
    Created Super BOM for Configurable Material in CS01 and added the upgrades as Alt Bom 2 for upgrade  and 3 for Upgrade+.  Also added the Alt BOM text
    Created Profile of configurable material in CU41
    For the Material I added the configurable material to MRP 3 screen in MM02
    Created the BOM link in CS40
    I simulate the material in CU50.  I enter my material; select the icon for configuration, I can see the characteristic Value Assignment nad see my characteristics Description.  I go to the value and use the drop down I then see the pop up of all the different values. 
    I have created Characteristic Reference VCSD_UPDATE_ARKTX with table VCSD_UPDATE and field ARKTX - no values
    I have created a characteristic Test_Choice with the 2 values one is Test Upgrade 1 and the other is Test Upgrade 2.  Both of these have the description as well.
    For Material Text:
    I have set up a reference characteristic using 30 character format (named VCSD_UPDATE_ARKTX),
    with table name VCSD_UPDATE and field name ARKTX.
    Then in the Configuration Profile(CU42) for configurable material,  added a procedure(named PR_PRODUCT_DESCRIPTION) to the dependencies which contains code that sets the description
    $self.VCSD_UPDATE_ARKTX = ''Test Upgrade 1u201D
      If $self.TEST_CHOICE = Test_Upgrade_1,
    $self.VCSD_UPDATE_ARKTX = ''Test Upgrade 2u201D
      If $self.TEST_CHOICE = Test_Upgrade_2,
    When Entering the sales order for Material Number XXXXXX, I receive a pop up that I can select which Alternate BOM (from CS02) I would like.  I select my line item and then select the configuration icon at the bottom of the sales order.  I see again my characterestics values (the same as CU50) but am unable to select the radio button.  Not sure if this part is standard.  Still no change in the sales order line item.  I have validated that I am using a copy of the standard TAC item category.  How does the text change to the correct value?  Am I missing a seeting somewhere.  Please provide any guidance with this as I have been trying to get this to work for over a month.
    Thank you for your time.  It is greatly appreciated.

    I have figured out that this will work if I go to the standard material (it is not KMAT but it is a FERT material type) and set the flag in the Material Master Basic Data 2 tab that this is a configurable material and not use KMAT material type for a super BOM.   The text changes for this scenario so it give me hope.
    This is not ideal, as I want to use the Super BOM because there are different variations (non stock items) that I need to pull through on the picking list in order to tell the end user which option needs to be loaded in the standard material.  At least I know the text can change on the sales order; but I am still struggling with the use of the super BOM and changing the sales text when there is use of a super bom as you tie that to the MRP 3 screen of the FERT material type.  I can set everything up, but the text will not change if I set up the material master this way.  Guidance is appreciated.
    Example
    Material 72433 (FERT)
    on sales order I enter 72433, my alternate BOM comes up with different Options.  Alternate BOM 1 is standard configuration;  My Alternate BOM 2 has Option 3 and 4 while alternate BOM 3 has option 5 and 6.  Alternate BOM 2 is a 6015T and Alternate BOM 3 is a 6015V.
    I want my sales order to pull through the text of 6015T or 6015V, whichever is chosen.  I want my picklist to print out the option that was selected.

  • In the sales order text is not redetermined

    Hello
    while creating the sales order user enters the sold to party and ship to party after executing the text the user changed the ship to party but the text is not redetermined in the order according to the ship to party it is same as previous ship to party text only. how this text will be redetermined in the order.
    Regards,
    Kishore

    Hi
    The sales order might be incomplete.
    Go to Transaction VA02, Edit->Incomplete Log.
    Complete the details and then try to create the delivery.
    Also, check the Delivery block option in the Sales Tab.
    If it has entries, remove the entries.
    Save the Sales order and then try to create the delivery.
    kindly reward points if it helps!
    best regards,
    Thangesh

  • Retrieving sales order info instead of the offer when creating a prod order

    Hi,
    I cannot create a production order refering to a sales order if this sales order has been created in reference to an offer. This is standard SAP and the following message is displayed: "account assignment cannot be carried out because of different origine number".
    Does anyone know how to retrieve the sales order information when creating a production order instead of retrieving the offer information? User-exit?
    Thanks,
    Ronan

    No answer to this post

Maybe you are looking for

  • FCP - Voice Over problem

    I have a FCP system set up which includes an AJA Kona LHe card. Audio inputs are via the AJA. This includes audio from a video deck as well as other audio inputs, such as a studio condenser mic connected for voice overs. I monitor the output from FCP

  • How to activate or deactivate a user-exit based a specific condition

    hi all, i want to activate or deactivate(make it trigger) a particular user-exit based in a condition. can i do that. if yes please tell me how. can we use COMMIT in user-exits or BADI's. Thanks & Regards, Saroja.

  • Using access keys in inactive frames

    We are trying to make an existing website DDA compliant and want to use access keys to assist the keyboard-only user to navigate without a mouse. The site uses frames; we cannot change that as some 6000 pages are involved. We have implmented access k

  • I signed up, but now they won't accept my Vista PC

    I signed up for Photoshop CC, paid, but now it won't accept my Vista computer

  • How to format double to currency format?

    I have this code and I keep trying to convert it to currency, but doesn't work. Please help ... double price = new Double(content.toString()).doubleValue();