Sales text And PO text

Hi friends,
Please somebody tell me what is sales text and Purchase order text???and why these are used???

Hi Reema ,
                 The usage of texts in SAP is very generic and it is used for all entities and documents . For example the texts exist for Vendor master / CUstomer master and in Sales as well as Purchase orders at item and header level .The long texts are used to maintain certain informative texts which the user wants to have and major benefit is that the additional long texts can be provided to the user through functional customising in IMG - SPRO you do not need any ABAP exit or enhancement for this.
Now you can maintain these texts programatically using the FM :
CREATE_TEXT
SAVE_TEXT
while you can read the existing texts using the FM ' READ_TEXT' .
For this purpose you can also go thru this blog /people/deepak.bhalla/blog/2005/01/24/storing-and-retreiving-of-texts .
I am giving extract from same below :
Please let me know if you need anything further on this .
There are following ways of storing text in SAP.
1. Using Text Object and Text ID
2. Using Standard text with placeholders
<U>1. Using Text Object and Text ID:</U>
I am assuming that we already have a data in structure required by function module save_text for tables paramenter lines.
1. Use Transaction SE75 to create Text Object and Text ID.
2. Choose first radio button Text Object and ID's
3. Click at create. It will create Text Object.
4. Create Text ID for Text Object.
Now this created Text ID and Text Object can be used to Save and Retreive texts using following function module.
CALL FUNCTION 'ZSAVE_READ_TEXT'
EXPORTING
Save_read_indicator = 'X'
header = p_header
TABLES
lines = p_line.
Exporting parameter Save_read_inidcator type char1. default 'X' for Save.
Header should be of type thead
Tables parameter lines should be of type tline.
Header values should be populated as follows.
p_header-tdobject = name of the text object created.
p_header-tdname = It can be any Unique name.
p_header-tdid = name of text id created.
p_header-tdspras = sy-langu.
p_header-tdtitle = title of text.
Table P_lines will contain all data that is to be saved.It may be through Text control.
call function module save_text as follows to Save text.
If save_read_indicator = 'X'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = p_header
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
lines = p_line
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
ELSE.
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.
Endif.
<U>2. Using Standard text with placeholders</U>
Here I am assuming that for all placeholders we will have value availble.
1. Maintain standard text with place holder using transaction SO10.
     for example :
          Dear &1,
          Your purchase requisition &2 was approved on &3 .
2. Use following following function module to read Standard text.
CALL FUNCTION 'READ_STDTEXT'
EXPORTING
id = 'ST'
language = sy-langu
name = name of standard text
USE_AUX_LANGUAGE = ' '
USE_THRUCLIENT = ' '
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = p_std_text
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
REFERENCE_CHECK = 5
OTHERS = 6.
3. Use following code to replace Placeholders returned in table p_std_text.
Loop at p_std_text.
  SEARCH p_std_text-tdline FOR '&1'.
  IF sy-subrc = 0.
    REPLACE '&1' WITH p_name INTO p_std_text-tdline.
  ENDIF.
  SEARCH p_std_text-tdline FOR '&2'.
  IF sy-subrc = 0.
    REPLACE '&2' WITH p_name INTO p_std_text-tdline.
  ENDIF.
  SEARCH p_std_text-tdline FOR '&3'.
  IF sy-subrc = 0.
    REPLACE '&3' WITH p_name INTO p_std_text-tdline.
  ENDIF.
  MODIFY p_std_text.
Endloop.

Similar Messages

  • Header Text and Item Text for Sales Order

    Hi,
    Can any one help me on Header Text and Item Text............ ASAP.
    <b>STXH & STXL</b> 
    TDOBJECT :
    TDID:
    TDNAME :
    Regards,
    Raghunath.S

    Hi Raghunath,
    Go to the text <b>in plain page mode</b>, and then you do via the menu '<b>GoTo</b>' -> '<b>Header</b>' and you get the parameters you need ( object, name, id, ...).
    Repeat this operation for each text.
    <u>Tips :</u> If you want to handle those text, use FM : READ_TEXT, EDIT_TEXT, and SAVE_TEXT...
    Hope this helps,
    Erwan

  • SAP SCRIPT Header text and Item text not printing in customized PO

    Hello Experts,
                          I have copied the standard MEDRUCK to ZMEDRUCK and customized the form according to the requirement.
    I want to print the header text and Item text in my form.
    For Header text I have used :
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID F01
    Problem 1: The text what I enter in header text is flowing only when I hit on print preview without saving the form. Once I save the SAP SCRIPT  and click on print preview the field is appearing blank. I also tried to print the form, but the field is appearing blank even on the print out.
    Problem 2: For item text the field is concatenation of  EBELN & EBELP. Can anyone suggest me how to concatenate and fetch the text in item text.

    Hi,
        Im getting an error in my subroutine pool for i_xtline which is to fetch ITEM TEXT., It says its not a in any internal table nor defined as data. How can I proceed further. I have pasted my code below. Please check and revert ASAP
    PROGRAM  ZMEDRUCK_SUBP1.
    TABLES: EKPO, EKKO.
    FORM fetch_table_data TABLES in_tab STRUCTURE itcsy
                                 out_tab STRUCTURE itcsy.
    data xname like THEAD-TDNAME.
    data i_xtline like xtline.
    clear i_xtline.
    refresh i_xtline.
    CONCATENATE EKPO-ebeln EKPO-ebelp INTO v_item_text.
    MOVE v_item_text to ITEMTXT.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = F01
        language                      = EN
        name                          = ITEMTXT
        object                        = EKPO
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      tables
        lines                         = i_xtline
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.

  • PO Header Texts and item texts

    Dear Experts
                        PO header texts and item texts are stored in which table. please tell me the table name.
    Here i have configured PO version management. in that i want to control some sensitive fields change only version management will get triggered. it is done through  for this i have configured the sensitive fields in PO Print relevant changes. in that config the PO header texts and item texts table and field name is not exist.
    Now i have change the PO through me22n in header texts version management is triggered for this. i want to control this if some body change the po header texts and item texts version management should not triggered.
    is it possible.
    Regards
    Anand.

    Hai,
    Try this  table STXH.
    Get the required information(input) for the function module 'READ_TEXT'.
    CALL FUNCTION 'READ_TEXT'
          EXPORTING
            ID                            = 'ST'
            LANGUAGE                      = sy-langu
            NAME                          = thead-tdname
            OBJECT                        = 'TEXT'     
        ARCHIVE_HANDLE                = 0
        LOCAL_CAT                     = ' '
      IMPORTING
        HEADER                        =
          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 eq 0.
          loop at lines.
            wa_HEADER_TEXTS-TEXT_FORM = lines-TDFORMAT.
            wa_HEADER_TEXTS-TEXT_LINE = lines-TDLINE.
            append wa_HEADER_TEXTS to lt_tmp_HEADER_TEXTS.
          endloop.
    Better take the help of abaper.
    With Regards,
    Jaheer

  • Purchase requisition - Header Texts and Item Texts

    Hi,
    In Creating Purchase requisition if we enter the Header note text and Item text, in which table these texts will be stored.
    Regards,
    Ram

    Hi,
    To see any text go to the detail of that text you will have a magnify button below that text click there you will get the stand text editor open.
    Click on GOT->Header it will give the information you need to get this text via function module 'READ_TEXT' they are sored in STXH.
    Points if find this helpful
    Regards,
    Yakub Shah

  • Purchased Acrobat XI Pro - was able to edit text and add text and now does not allow me to do anything -

    was able to edit text and add text and now does not allow me to do anything - Except purchase the software again.Can't find an answer to this anywhere.

    Use Adobe Acrobat, not Adobe Reader.

  • Regarding subtotal text and total text

    Hi All,
    can any body provide example program for ALV total text and subtotal text both using REUSE_ALV_GRID_DISPALY.  and
    using OOPS.
    @@@MODERATOR::    Please dont lock my threads.I have been searching since 2 days for this example and i tried with the provided examples .but they are not worked out ::
    FOr your information :
    Some of the links i searched in SDN: 
    http://wiki.sdn.sap.com/wiki/display/ABAP/ALVDisplayTotalTextOrSubtotalText
    Re: SubTotal Text in ALV?
    http://wiki.sdn.sap.com/wiki/display/ABAP/ALVStandardSumTotalOr+Subtotal

    Hi Naveen,
    If you are looking for specific Subtotal text in ALV Grid, then i think it is not possible.
    You can use SORT table to get sub-totals based on the columns that you display.
    Generally the record existing on the column based on which you sort the table, appears as the sub-total text automatically.....
    You can try giving Subtotal text in the LAYOUT as well and pass the layout to the ALV function module.
    Best Regards,
    Ram.

  • Item texts and header texts

    hi,
    In which table item texts and header texts avialable.
    Edited by: Ramesh villa on Apr 11, 2009 4:49 PM

    Dear,
    For any queries (simple) recommended to search on group by entering simple search words of your quenry. You will find maximum solved questions.
    Re: PO header and item texts
    Regards,
    Syed Hussain.

  • Creation of short text and long text?

    Hi,
    We create short text by using oe_fnd_attachments_pub.create_short_text_document and oe_fnd_attachments_pub.add_attachment API and to create long text we use fnd_documents_pkg.insert_row .
    Why is it that we have different approaches for creation of short text and long text?
    I know that oe_fnd_attachments_pub.add_attachment is used to attach a short text to some entity,but then why we dont do the same for long text?
    Please lemme knw urgently ...
    Thanks and Regards
    Amar

    Thanks for the help,
    I looked into the document and i got to know few things as to how short and long text are created, but can u tell when the records are inserted into fnd_attached_documents, because i can see that records are inserted into fnd_attached_short_text and fnd_attached_long_text, fnd_documents but i dont see any insertion into fnd_attached_documents, can u lemme knw how and when it is done?

  • Display header text and item text in smartform

    Hi all,
    I have to display header text and item text of PO in smartform BBP_SUSPO.
    So how to do that.. I have to use 'read_text' Fm or directly i can get values from any table ???
    Thanks in  advance.
    Regards,
    Anagha Deshmukh

    Hi Amit,
    I have used inculde text that is avalable in smartforms to display header & Item text in this way
    For header :
    Text Name         Header guid
    Text Object       BBP_PD
    Text ID           HTXT
    Language          EN
    For Item:
    Text Name         Item Guid
    Text Object       BBP_PD
    Text ID              ITXT
    Language          SY-LANGU
    U can used this attributes in read_text function mdule also.
    Thanks & Regards,
    Anagha Deshmukh

  • Create mirror text and stroke text in AI Scripting

    Hello All,
    Please help me with the Script of creating mirror text and stroke text in Adobe illustrator scripting.
    Thanking you.
    With Regards
    Sawlay Singh.

    second: mark your answers as correct if you're helped, or at least come back and say "thanks"
    remember 'dinner for one'?
    http://forums.adobe.com/thread/1146984

  • What's the functional difference between placeholder text and regular text?

    When inserting text into a project template that I'm creating, what's the difference between inserting regular text (using the Caption tool) and inserting placeholder text?
    There's an obvious difference between inserting an image and an image placeholder, but when I use a project template that I've created, placeholder text and caption text behave the same way: I see the text on the stage, and double-click it to edit. So why go through the extra step of inserting placeholder text?

    Textbooks are educational books for use in schools and universities and the like. They are currently avaiable for purchase only in the USA. Textbooks have different contract clauses applied to them. Among them is an obligation on the publisher to offer textbooks that are sold in electronic form via other distributors in the iBookstore as well. Textbooks also have different (much lower) pricing tiers, and they must be made available via the bulk purchasing program. Textbooks must be authored with IBA (they cannot be ePub). I believe that textbooks also undergo a more stringent review process.
    Normal eBooks (not in the textbook category) can currently be sold in 32 territories (US, Canada, Australia, and most of Europe), and their pricing tiers provide for much higher prices.
    There is no difference in the widgets you can use in normal books and textbooks. The same widget set that is provided by IBA applies to both. In addition, a normal eBook can be published in ePub format and, therefore, authored with software other than IBA.
    Books can contain audio and video and, yes, iBooks Author allows you to create such books.
    Michi.

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

  • ALV Grid  Subtotal text and Total text display

    Hello ABAPGuru's
    I want to display the subtotal and Total texts. alv grid program runing on background.
    Regards
    Sweety(Sri)

    Hello Neil,
    Here I have attached my routines.anyway my confusion. I have wrote the routine subtotal_text .but i am not passing ALV GRID FM.
    *&      Form  eventtab_build
    &----       This is used to get the list of events
    ----      <--RI_EVENTS  Internal table
    FORM eventtab_build  CHANGING ri_events TYPE slis_t_event.
    Structure for event handling.
      DATA: rs_event TYPE slis_alv_event.
    Returns table of possible events for a list type.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = ri_events.  " Table of events to perform
    Read the internal table with the TOP_OF_PAGE and move the
    form name to the internal table
      READ TABLE ri_events
        WITH KEY name = slis_ev_top_of_page INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_formname TO rs_event-form.              " Form name
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
      READ TABLE ri_events
         WITH KEY name = slis_ev_end_of_page INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_form_eop_name TO rs_event-form.              " Form name
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
      READ TABLE ri_events
          WITH KEY name = slis_ev_subtotal_text INTO rs_event.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO rs_event-form.     " Formname
        MODIFY ri_events FROM rs_event
           INDEX sy-tabix.                  " Top of page event
      ENDIF.
    *&-- Delete all unneeded events:
    DELETE ri_events  WHERE form IS INITIAL.
    ENDFORM.                    " eventtab_build
    *&      Form  SUBTOTAL_TEXT
          text
    -->  p1        text
    <--  p2        text
    FORM SUBTOTAL_TEXT USING  ep_subtot_line     TYPE  type_data
                              e_event_data       TYPE  slis_subtot_text.
      IF NOT e_event_data-criteria IS INITIAL.
      E_EVENT_DATA-DISPLAY_TEXT_FOR_SUBTOTAL = 'Account Total'.
       ENDIF.
    ENDFORM.                    "SUBTOTAL_TEXT
    *&      Form  initialise_layout
          Initialise Layout
    FORM initialise_layout .
      i_layout-colwidth_optimize = c_x.
      i_layout-group_change_edit = c_x.
    *i_layout-subtotals_text = ' a'.
      i_layout-detail_popup   = c_x.
    i_layout-zebra          = c_x.
      i_layout-no_vline       = 'X'.
      i_layout-no_hline       = 'X'.
      i_layout-totals_text = 'Account Total'.
    ENDFORM.                    " initialise_layout
    Call the function module to display the report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = v_program
          i_callback_top_of_page = 'TOP_OF_PAGE'       "Top Of Page
          is_layout              = i_layout
          it_fieldcat            = i_fieldtab
          it_sort                = i_sort
          it_events              = i_events         " Events
          is_print               = i_print
          i_default              = c_x
          i_save                 = c_save
          is_variant             = v_variant
        TABLES
          t_outtab               = i_data
        EXCEPTIONS
          program_error          = 1
          OTHERS                 = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards
    Sweety (Sri)

  • Change Item Text and Header Text in Posting Document

    Hi Experts,
    When Travel Document is posted in FInance -
    i) Document Header is blank.
    ii) and Item Text is *Trip from 01.09.08 To  01.09.08 to   Mumbai
    I want to change the Header Text with Expense Schema and Item text with Schema and additional Text.
    Regards,
    Kamal Rawal

    hi,
    There is a BADI available for the same.
    BADI definition name: TRIP_POST_FI
    Thanks,
    Rajkumar.S

Maybe you are looking for

  • Connecting Thunderbolt display to 2009 MacPro

    I have a 2009 Macpro with the GT 120 graphics card which has a dvi and mini display port. Can the thunderbolt be connected to the mini display por? I'm not interested in the extra thunderbolt facilities.

  • Non-HP printer cartridges installed

    I keep getting the message that "Non-HP cartridges are installed" I am fully aware of this and do not need to keep getting notified evertime I print something. I know that this is just HP trying to get us to use their cartridges because they are so m

  • When will 3d films and T.V. programmes be available to purchase through iTunes?

    Surely it's on the cards? I am debating buying a 3d Bluray player, but I don't buy or rent discs in general - it's all Apple TV these days because it's easy and instant. Surely it's a relatively simple thing for Apple to offer 3d content as well as 2

  • 2 PCs, 1 is authorized twice, deauthorizing not working.

    I have 2 PCs, one is authorized 2 times because of a hard drive change. I tried to deauthorize it. It lets me deauthorize it 2 times, then tells me it is not authorized at all. Good? Accept when I go back and authorize it, it shows 3 authorizations a

  • Renaming songs and videos

    I recently lost the drive that contains all of my songs and my video files for my collection. Thankfully I have everything on my 5th Generation iPod. I know how to transfer all of the songs and videos off of the iPod and onto a new computer. My quest