Requied code in abap to display sales order header text

hi all,
can anybody help me to send the code in abap to display sales order header text.

Use FM, Read_text. Pass the necessary parameters like object name, id, language. You can see some of the infos in by clicking the scroll-like button.
Reward points if useful

Similar Messages

  • Which table stores the Sales Order--Header--Texts--EDI Text?

    Hi Experts,
    I hv a requirenment regarding the Sales Order -> HEADER -> TEXTs -> EDI Text-Int, so, I need to hv some Orders(#). which does hv this text on them, for as test data.
    So, I am looking which table stores, this text for my_sales_oders_12345678.
    [ actually, i got some info from sdn, like,
    Table TTXOB -> stores Texts: application object for Sales order header it is always VBBK i.e. field TDOBJECT = VBBK.
    Now all the text types i.e. text ids are stored in table TTXID
    So fetch all text ids(TDID) from this table based on TDOBJECT = VBBK. And its descriptions are stored in TTXIT table.
    but, no use this ]
    thanq
    Edited by: Srinivas on Jul 10, 2008 11:06 PM

    Hi Srinivas,
    Generally to access the text we use READ_TEXT function Module.
    we need to pass the four parameters
    ID
    LANGUAGE
    NAME
    OBJECT
    You can find these parameters in the sales order it self.
    Goto ---> Header ---> Texts
    Now double click on the text it takes you to the Text Editor. You can find the screen Display Form Header . In this goto Menu Path Goto ---> Header. You get a screen Text header. Here you can find the these parameters.
    Text Name
    Language
    Text ID
    Text Object
    You need to pass these parameters to the function Module to text the text.
    You can also fins the text in Table STXH
    Best regards,
    raam

  • Bdc for sales order header text

    we need to write a bdc program for va01. In that we need to
    upload header text also .
    So please kindly tell me how to upload flat file to va01 along with
    header text.And how we need to declare the flat file.
    if it is not possible through bdc then tell me how to do with bapi.
    thank you so much for all the replies

    Hi,
      Using BDC, You can not uplaod sales order header text. You can upload the header text using FM
    CREATE_TEXT.
    Here giving sample code. This code is written for Material master text. You change this code according to your requirement
    REPORT ZMM_INSERT_LONGTEXT.
    *Internal table to hold long text...
    DATA:
      BEGIN OF T_UPLOAD OCCURS 0,
        MATNR LIKE MARA-MATNR,             " Material number
        ID(2) TYPE C,                      " Identification
        LTEXT LIKE TLINE-TDLINE,           " Long text
      END OF T_UPLOAD,*Internal table to hold long text....
      T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
       W_GRUN LIKE THEAD-TDID ,            " To hold id
       W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
                                           " To hold object id
       LV_VALUE(70).                       " Value to hold material number
    START-OF-SELECTION.* This perform is used to upload the file
      PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
      PERFORM PLACE_LONGTEXT.
    *&      Form  create_text
    *  This routine used to create text in MM02 transaction
    *  Passed the parameter w_grun to P_C_GRUN
    *                 and lv_value to P_LV_VALUE
    FORM CREATE_TEXT  USING    P_C_GRUN
                               P_LV_VALUE.  DATA:
        L_ID LIKE THEAD-TDID,
        L_NAME(70).  MOVE : P_C_GRUN TO L_ID,
             P_LV_VALUE TO L_NAME.  CALL FUNCTION 'CREATE_TEXT'
           EXPORTING
             FID               = L_ID
             FLANGUAGE         = SY-LANGU
             FNAME             = L_NAME
             FOBJECT           = W_OBJECT
    *      SAVE_DIRECT       = 'X'
    *      FFORMAT           = '*'
           TABLES
             FLINES            = T_LINE
          EXCEPTIONS
            NO_INIT           = 1
            NO_SAVE           = 2
            OTHERS            = 3
      IF SY-SUBRC <> 0.
        CLEAR LV_VALUE.
      ELSE.
        DELETE T_LINE INDEX 1.
      ENDIF.ENDFORM.                    " create_text*&---------------------------------------------------------------------*
    *&      Form  upload_file
    *  This routine is used to upload file
    *  No interface parameters are passed
    FORM UPLOAD_FILE .  CALL FUNCTION 'UPLOAD'
       EXPORTING
    *     CODEPAGE                      = ' '
    *     FILENAME                      = ' '
          FILETYPE                      = 'DAT'
    *     ITEM                          = ' '
    *     FILEMASK_MASK                 = ' '
    *     FILEMASK_TEXT                 = ' '
    *     FILETYPE_NO_CHANGE            = ' '
    *     FILEMASK_ALL                  = ' '
    *     FILETYPE_NO_SHOW              = ' '
    *     LINE_EXIT                     = ' '
    *     USER_FORM                     = ' '
    *     USER_PROG                     = ' '
    *     SILENT                        = 'S'
    *   IMPORTING
    *     FILESIZE                      =
    *     CANCEL                        =
    *     ACT_FILENAME                  =
    *     ACT_FILETYPE                  =
        TABLES
          DATA_TAB                      = T_UPLOAD
         EXCEPTIONS
           CONVERSION_ERROR              = 1
           INVALID_TABLE_WIDTH           = 2
           INVALID_TYPE                  = 3
           NO_BATCH                      = 4
           UNKNOWN_ERROR                 = 5
           GUI_REFUSE_FILETRANSFER       = 6
           OTHERS                        = 7
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.  SORT T_UPLOAD BY MATNR ID.
    ENDFORM.                    " upload_file
    *&      Form  place_longtext
    *  This routine places the text in MM02 transaction
    *  No interface parameters are passed
    FORM PLACE_LONGTEXT .  LOOP AT T_UPLOAD.    T_LINE-TDFORMAT = 'ST'.
        T_LINE-TDLINE = T_UPLOAD-LTEXT.
        APPEND T_LINE.    IF T_UPLOAD-ID EQ 'BT'.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'GRUN' TO W_GRUN.                   "Test ID for Basic data text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IT'.
          CLEAR W_GRUN.
          MOVE T_UPLOAD-MATNR TO LV_VALUE.
          MOVE 'PRUE' TO W_GRUN.                      "Test ID for Inspection text
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.    IF T_UPLOAD-ID EQ 'IC'.
          CLEAR W_GRUN.
          MOVE : T_UPLOAD-MATNR TO LV_VALUE,
                 'IVER' TO W_GRUN.                    
                                                      "Test ID for Internal comment
          PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
        ENDIF.
      ENDLOOP.ENDFORM.                    " place_longtext

  • To send sales order header text in mail description

    Hi all,
    my requirement is to send the sales order header texts(which have text ids as 0001,002,003 and text object :VBBK) as the description in the mail step.
    Please help me.
    Regards,
    Sravanthi Chilal

    thank u swami,it is working.
    but in the sales order i have maintained 3 texts(0001,0002,0003). while i execute the method individually,i am able to see all 3 texts.
    i created a background activity before calling the decision step for determining the texts.iam displaying that container element in the description of the decision step.
    my problem is that iam able to see only one text,i should be able to see all three.
    i hope iam clear.
    Regards,
    Sravanthi Chilal

  • Sales Order Header texts

    Hi All,
    I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I moved them to Test system.
    In Test system I checked the header texts, only the following text id's are comming. They do not have any data and remaining textid's are not comming.
    DEV
    Form Header
    Header note 1
    Header note 2
    Shipping instructions EN
    SAC code C000
    SAC code I410
    SAC code E740
    Carrier requested by customer
    PST EN
    PED EN
    ZTR EN
    TEST
    PST
    PED
    ZTR
    I went to VOTXN and checked sales order header texts ->  Textprocedure -> Z1-Order Text Procedure, Text Id's in this procedure, I see 11 ID's there in Dev and in test system I see only PST, PED and ZTR. I created these three in text object VBBK sales docu header. It is working fine in Dev and when I move these to Test system only these 3 id's are showing up. I wrote the code for this in ZXVEDU06. How come the remaining Id's are not showing here and values are not comming for these 3 Text Id's.
    Can Someone please help me with this.
    Thanks,
    Veni.

    Hi Bhasker and Bill,
    Thankyou for your valuable information.
    Bhasker, I added all texts again and trasported. Now in test system I can see all of them.
    I commented out all the code in ZXVEDU06 and created a sales order, as you said it picked up all the texts automaticaaly. This is the first time I am doing this work, so by someone's suggestion in SDN I created the include and wrote the code in ZXVEDU06.
    It is working fine for this customer but if I try to create sales orders for other customers then I am getting the following error.
    I/O error for text VBBK 0023 EN
    I/O error for text &1 &2 &3 &4
    Message no. TD607
    Diagnosis
    You want to read a text from the database, delete it, or save it to the database.
    System Response
    An error occurred when the database was accessed.
    Procedure
    Try repeating the procedure. If the error recurs, contact your system administrator.
    Can someone please help me with this problem.
    Thanks,
    Veni.

  • Update Sale Order Header Text through Enhancement

    Hi Experts,
             I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
    Here in I tried using edit_text, it updates sale order header text  directly in DB during run time even before the save action is completed.
    But I need to just fill the header text and that has to be saved during the save action only.
    I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
    Is there any  user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
    Thanks in advance
    Sathish

    Hi Brad Bohn,
        My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
    IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
    Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
    It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
    So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
    Kindly Let me Know any thing could be done for this scenario.
    Thanks in advance
    Sathish

  • Third Party : Sales order Header text should copy to PO Header text

    Hi,
    I need to copy sales order header text to PO Header text
    in the third Party sales order scenario.
    Can anybody suggest how to do it.
    Thanx in advance.
    Regards,
    RRS.

    I doupt that this is possible without using a user exit.
    The 3rd sales order will create a PR, the PR has no header text (just a header note = internal use), the PO is created in reference to the PR. And it is not possible to copy PR header text to PO header text.

  • Table Name for Sales Order Header Text.

    Hi.
    Whats the Table name for Sales Order Header Text???
    Reg,
    Amol

    Hi Amol,
    please Try to check the below link
    http://scn.sap.com/thread/1361272
    http://scn.sap.com/thread/416757
    https://scn.sap.com/thread/1909247
    https://scn.sap.com/thread/811915
    Regards,
    Gurunath

  • Error with sales order header text

    Hi All,
    I am getting 3 texts from 850 IDOC on to Sales order header texts. I created 3 new textid's for them. This is working properly in Dev system and I just moved them to Test system. I created a sales order by using the IDOC. I tried to go to order header texts and it is giving me the error saying 'Error in opening text file'.
    "The SD_WORD_PROCESSING function module is for creating the "Maintain Text" dialog box. You have called up the function module with the wrong values so it is not possible to edit text properly.
    Check the parameters for the SD_WORD_PROCESSING_PUT function module."
    Please help me to solve this issue.
    Thanks,
    Veni.

    Hi Naren,
    I was just checking my Transport organizer and found that there is one customizing request which is still in modifiable mode, not released yet. It is related to Access Sequence for text id's. I forgot to move this, is this the one causing the error.
    Thanks,
    Veni.
        5  View Cluster Maintenance: Data          
            5  VC_SHPH                                                                               
    5  TTXERN                                                                               
    400VBBK      BZ20021009     
                       400VBBK      BZ20022010     
                       400VBBK      BZ20023011     
        5  IMG Activity  Define Text Types         
            5  View Cluster Maintenance: Data      
                5  VC_ORDH                                                                               
    5  TTXERN                                                                               
    400VBBK      AZ10021009 
                           400VBBK      AZ10022010 
                           400VBBK      AZ10023011 
                    4  TTXZ                        
                    4  TTXZT

  • Archived Data - Sales Order Header Text

    We have archived the object SD_VBAK and I notice that some of the sales order header text also been archived. Now, the question is from where I retrieve back those header text. I am building the info structure but I need to know the object name for the header text.
    Please help.

    The texts are archived using the class TEXT, and as such cannot be added as a object into the infostructure.
    I would suggest you try building a new fieldcatalog, in which you could try introducing the field TDLINE from table TLINE. I dont know if this would work, but you could try.
    Otherwise, I think the only way to read the text would be by writing a program to do so.
    Hope this helps.
    Sudha

  • Updating Sales Order Header Text

    Hello Experts,
    Could you please help me in knowing how to update or maintain the Sales Order Header Texts programatically while creation of sales Orders.
    Here the scenario is ---Sales orders are getting created inCRM and there they are maintaining some text from webshop. Immediately a sales order will also gets created in ECC.
    Now i would like to know how to do that from ECC side?? Please help...
    Br,
    Anil

    Hi,
    I guess you'd have to find a BADI or user exit to update the texts in ECC. Check which IDOC brings the data from CRM to ECC. And the segment that carries the TEXTs. Then in the BADI you may either pass the date to appropriate fields or call the SAVE_TEXT function module in update task.
    Regards
    Prasenjit

  • System should Not copy sales order header text

    Hi all,
    My requirement is system should not copy sales order header text while copying sales order to sales order with same order type.
    for example i have order type OR - standard type with 500 line items with reference to that same sales order we are creating another order with same line 500 line items,but requirement is system should not copy source document header text in to target document header text,
    Do you have any standard functionality to avoid this or we need to go exit
    Regards
    Nishad

    Hi,
    You can do it via standard SAP configuration.
    Transaction VOTXN.
    In the access sequence you have the corresponding Text ID added with "Text Object" VBBK. That's the reason why you are copying text.
    Change the entry.
    Check below link on how exactly to do that. This doc says about how to copy customer text to the sales order. But procedure is same for you as well. Just the object is different.
    [Text type config|http://learnsaptips.blogspot.com/2010/09/text-type-configuration-in-sap.html]
    Hope it helps!
    Best regards,
    Rahal

  • Table for Sales Order Header Text

    Hi,
    I want Table Name for Sales Data -> Header Text.
    Path--
    When we open the Sales order, Click on Display Document Header Details --> Here select the Text tab. Here, see the written text in Form Header (1st option).
    I want that table Name which contain the Header Text. Because If header text is more than 1 line, where it stores??
    Plz. help

    Hi,
    Text data are stored in tables STXH (Header) and STXL(Item).
    But you can't find the exact text in these tables as the text are stored in binary form.
    You need to use function module READ_TEXT to read any document texts.
    Check the link [Use FM READ_TEXT to Read the Various Text|http://www.sap-img.com/abap/use-fm--read-text-to-read-the-various-text.htm] which explains how to use this module to read the text.
    Regards,

  • Sales Order Header Text....

    Hi All,
    I have given some text in sales order header. I want a field and table name of text entered in sales order header.
    Yusuf.

    Hi,
    Try this table STXH ( SAP script text file header)
    For more details on tables in sd go to link given below
    http://www.erpgenie.com/abap/tables_sd.htm
    Award points if helpful
    Regards,
    Amrish Purohit

  • How to determine a change to a Sales Order Header Text?

    Hi All,
    Is it possible to compare text entered on a Sales Order Header with what was stored previously?
    I know I can use READ_TEXT to retrieve previously stored text but how do I compare with what was entered at VA02?
    I'm at VA02, I'm selectin 1 line item. then I'll go to menu Goto->Header->Additional Data B -> Text tab.
    when i click save..how do I compare the text entered with what was stored previously?
    Any ideas? thanks alot....its kinda urgent.
    Message was edited by:
            Slow ABAPer

    Hi
    Try this in a exit:
    TABLES: STXH.
    DATA: T_LINES     LIKE STANDARD TABLE OF  TLINE,
          T_OLD_LINES LIKE STANDARD TABLE OF  TLINE.
    * Read current text
    STXH-TDOBJECT = <OBJECT>
    STXH-TDNAME   = VBAK-VBELN.
    STXH-TDID     = <ID>.
    STXH-TDSPRAS  = <LANGUAGE>.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = STXH-TDID
        LANGUAGE                      = STXH-TDSPRAS
        NAME                          = STXH-TDNAME
        OBJECT                        = STXH-TDOBJECT
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      TABLES
        LINES                         = T_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.
    * Read the old text (before saving)
      DATA:  BEGIN OF STXL_ID,
               TDOBJECT LIKE STXL-TDOBJECT,
               TDNAME   LIKE STXL-TDNAME,
               TDID     LIKE STXL-TDID,
               TDSPRAS  LIKE STXL-TDSPRAS,
             END OF STXL_ID.
      STXL_ID-TDOBJECT = STXH-TDOBJECT.
      STXL_ID-TDNAME   = STXH-TDNAME.
      STXL_ID-TDID     = STXH-TDID.
      STXL_ID-TDSPRAS  = STXH-TDSPRAS.
      IMPORT TLINE TO T_OLD_LINES
        FROM DATABASE STXL(TX)
             CLIENT   SY-MANDT
             ID       STXL_ID.
      IF T_OLD_LINES[] <> T_LINES[].
    * A change was made  
      ENDIF.
    ENDIF.
    Max

Maybe you are looking for

  • Help with hooking up printer

    I have an old HP Desktop HP Compaq dc7900 computer.  I just purchased a HP 1010 deskjet printer.  The printer cord I have is not compatablile with this printer.  Can this printer be connected to this computer?  I am not very good with these issues an

  • Can I upgrade my internal hard drive?

    I have a MacBook Pro 13-inch late 2011 and I would like to upgrade my hard drive on it. I think this hard drive works becuase it is 2.5 inches, but I just wanted to make sure that it would work. So, could you verify that this hard drive works, that'd

  • Share outlook calendar to ical

    I would like to share my Outlook 2003 enterprise calendar to my iCal calendar. Has anyone been able to do this and how?

  • Anyone know anything about drop down listings?

    I would like to know if anyone here can give me any advise as to how I might go about getting my drop down menus to have to ability to compile a personalized list. I'm sure you are familiar with what I am referring to. I build custom computers and I

  • Error when trying to make an infoobject "Authorization Relevant"

    We are getting the following message in German when we try to make an infoobject - 0PERS_AREA "Authorization Relevant" (using RSD1), Can anybody help us in translation of this nmessage and possile remedy. In fact, I tried other infoobjects as well lk