How to retrieve the header texts for a contract

HI,
  i think we need to use the FM read_text to get the header texts for a contract but dont know how to use the FM like what all the parameters are passed to that to get the header texts of a contract(va43).
any help is appreciated with points.
thanks
prasad

Hi,
  Pls refer this code,    
    CALL FUNCTION 'READ_TEXT'
              EXPORTING
                client                  = sy-mandt
                id                      = '0001'
                language                = sy-langu
                name                    = v_textid
                object                  = 'KNMT'
              IMPORTING
                header                  = t_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 EQ 0.
              LOOP AT t_lines.
                CONCATENATE w_arktx t_lines-tdline INTO w_arktx
                                   SEPARATED BY space.
              ENDLOOP.
            ENDIF.
            IF w_arktx NE space.
              MOVE w_arktx+1(1583) TO t_lips-arktx.
            ELSEIF w_arktx EQ space.
              CLEAR w_text_name.
              CLEAR v_textid.
              wa_lips-matnr = t_lips-matnr.
              wa_lips-vkorg = t_likp-vkorg.
              wa_lips-vtweg = t_lips-vtweg.
              w_text_name = wa_lips.
              CLEAR w_arktx.
Retrieval of Sales Text
              CALL FUNCTION 'READ_TEXT'
                EXPORTING
                  client                  = sy-mandt
                  id                      = '0001'
                  language                = sy-langu
                  name                    = w_text_name
                  object                  = 'MVKE'
                IMPORTING
                  header                  = t_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 EQ 0.
                LOOP AT t_lines.
                  CONCATENATE w_arktx t_lines-tdline INTO w_arktx
                                     SEPARATED BY space.
                ENDLOOP.
              ENDIF.
              IF w_arktx NE space.
                MOVE w_arktx+1(1583) TO t_lips-arktx.
              ELSE.
REgards
srinivas

Similar Messages

  • How to wrap the heading text in alv.

    HI all,
          I need help, how to wrap the heading text in alv.
    can any help ... plz..
    Advanced Thanks
    Regards
    GUhapriyan

    Hello GuhaPriyan,
    I assume that you're referring to the ALV Grid's title. The maximum length for this title is 70 characters and this would generally fit in the one line.
    Are you intending to wrap it because you purposefully want the text to come in two lines? In that case, I'm not sure that it's possible.
    But otherwise, there's an option in the Layout called SMALLTITLE. You can set this attribute so that the title would be displayed in a amaller font and hopefully, all of your text shows up on the screen.
    Regards,
    Anand Mandalika.

  • How to change the menu text for menu exit in Version 3.1i

    Hi,
    I am working on an enhancment in CJ02 transaction in 3.1i version. I have implimented menu exit for it , but I am unable to change the menu text for it.Please let me know how to change the menu text for that menu.
    Thanks
    Suman

    Hi Shree,
    Thanks for the response. Please find the Enhancement name here "CNEX0006".
    Thanks
    Suman

  • I want to find out how to retrieve the serial number for my product. i can't find it in my email

    i want to find out how to retrieve the serial number for my product. i can't find it in my email

    Find your serial number quickly

  • How to retrieve the item text from VL03 transaction .

    How to retrieve the item text from VL03 transaction .
    The requirement is like this, the item text thus retrieved should be printed in the script under the item.

    Jagadieshwar,
    Use <b>READ_TEXT</b> function module to get the proper item text of Delivery.
    <b>ID</b>: Probably you want 0002 (Item Note), but it depends which text you want Item Note, Material Sales Text ,etc..
    <b>NAME</b>: CONCATENATE Delivery Doc. Number + Delivery Item Number (e.g. 0080001729000010)
    <b>OBJECT</b>: VBBP
    <b>
    LANGUAGE</b>: sy-langu or whatever you want.

  • How to retrieve the long texts from  purchase Info record (ME13)

    Hi,
    How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13).  I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
    So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
    Thanks.

    Hello,
    Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
    Cheers !

  • How to get the header text of a PO

    Hi,
    Do you guys know which table stores the header text of a PO? i'm only getting RM06E which is a structure.
    Thanks!

    Hi,
    You need to use the Function Module 'READ_TEXT' for retrieving any text in the header texts.
    For this FM, the mandatory export parameters will be
    a) client b) ID c) language d) name e) object
    here the parameter name will be your P.O.No and the object will be your P.O. table - 'EKKO'.
    So on executing this FM, all the required texts are retrieved in the tables parameters. From this tables paramater, you can read the table and pass on the values to your required internal table for display purpose.
    lakshminarayanan
    Please mark all helpful answers for points.

  • How to remove the note text for column (portal)

    Hi to All,
    Just i wanted to know how to remove the note (text) which is coming infrond the column in the appraisal template in portal view.
    My client doest want the text "note" (which i highlighted in the yellow) comming infrond the coulum. Pls can anyone tell me how can i remove only the  "note" text from the template?
    Kind regards,
    Saritha

    Hi Saritha,
    In SE80, Choose Web Dynpro Component HAP_DOCUMENT_BODY and you will find the component controller node, double click it and goto methods tab. Here you can find the method CONVERT_CONTEXT_TO_UI, this method will be triggered twice. Search for the code "CALL METHOD lo_nd_t_cells->get_static_attributes_table", this is the method which defaults the "Note" based on the row and column iid. You can overwrite the code by writing the implicit enhancement.
    Hope it will help you and revert back in case of queries.
    With Regards,
    Giriesh M

  • How to change the header text on output type in sapscript

    Dear All,
    In the sapscript, I would like to changes the header text from invoice number to sales number on the output type z001.
    Could someone can guide me?
    Thanks.

    Hi,
    Please go through following link :
    http://forums.adobe.com/thread/870081#870081
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to show the message text for constraint violations

    Hi all,
    In a batch procedure a primary key is violated (ORA-00001). For the primary key, a message is recorded in the TAPI and the message table.
    How to show the enduser a proper message text instead of the ORA-00001.
    We are using Designer 6 with Headstart 2.1.2.
    Thanks in advance,
    Joep

    Joep,
    If you try to insert the record by calling the ins procedure of the Table API, you will see that it will result in an ORA-20998 message, which means that the error message details reside in the CG$ERRORS plsql message table. These messages can be extracted e.g. with the messages.sql script, shipped with headstart.
    If you do not want to rewrite your direct DML (insert into [table name] ...) in the complexer calls to the TAPI services, you might want to user VAPI's for it. In fact, this is one of the major advantages of using VAPI's.
    The CDM guidelines volume, chapter 6 states that:
    <I>The front end no longer needs to trap declarative constraint
    errors (Primary Key, Unique Key, Not Null and Check
    Constraint violations) and replace them with a user-friendly
    error. The View API issues DML statements through the TAPI
    and the TAPI traps all declarative constraint errors, and puts
    user-friendly message on the stack, in the preferred language of
    the user! Fore more information, see the section, Completeness
    of Rule Violations Reported in Front End, in this chapter.</I>
    So the only thing you need to do is generate VAPI's, and trap the ORA-20998 message (qms$errors.qms$exception) in an exception handler, where you retrieve the user friendly messages from the message stack!!
    Regards, Marc

  • How i retrieve the default setting for my browser ?

    when i download any file from firefox browser there a small box that ask you if you want to from your browser to do the same action for files like the file you are downloaded automatically,
    i did that and i wont to retrieve the old sitting i tried to reinstall the browser but it doesn't worked! so any suggestion?

    The instructions in [[Resetting preferences]] explain how to reset all your preferences back to the defaults.

  • How to change the header text fontFamily of spark DataGrid?

    I use an embed font (Nunito-Light.ttf),  and i can set the font of GridColumn to Nunito-Light in DataGrid , but it seems that it has no effect to the header of DataGrid.
    and then I create a  headerRenderer for spark DataGrid, and try to set the fontFamily of "labelDisplay" to Nunito-Light  , but It seems still no effect .
    If I set the fontFamily of "labelDisplay" to "Verdana" or "Arial" , it has effect , so strange! Is that a bug?
    Anybody  has the same problem? Please tell me how to solve it ,thank you very much!

    Hi,
    Please go through following link :
    http://forums.adobe.com/thread/870081#870081
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • How to mofidy the selection text for a report

    Dears,
    Do you know how to modify a selection text in the selection screen of a standard report, such as changing "Storage Location" in the selection screen of report MB5B to "storage Loc"?
    one of a way to realize it is to modify the text of relevant data element.
    except modifying the data element directly, It seems that use SE63 could do it, but I forgot how to use it.
    Thanks all for your reply.
    Zhongkai

    Hi Liu,
    Check this link for translations thru SE63:
    http://help.sap.com/saphelp_sm310/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/content.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Pulling the Header text  for all the purchase orders

    Hello,
    Please help in resolving the below:
    Is there any code in SAp to pull theHeader text for all the purchase orders in the data base,
    Any tcode to pull the specific text automatically to pull the text from the requsition ( Plant wise in sourcing).
    Thanks

    STXH Text header 
    STXL Text detail
    Chk the below message thread
    Table to read PO Header text and item text
    BR,
    Krishna

  • How to retrieve the list price for u0093Free of Chargeu0094 items?

    Hi Gurus,
    I need an urgent help:  For the commercial invoice, I need to provide the “List Price” (PR00) value even for the “Free of charge” items.  But for TANN, PR00 is not retrieved.
    How can I still retrieve the list price(PR00) for “Free of Charge” items?
    Thanks.

    Hi,
    By giving item category as TANN in VBAP, you will be able to get all material numbers, and the document numbers.
    Using document numbers, get the doc condition no, in VBAK (VBAK-KNUMV)
    Now
    VBAK-KNUMV = KONV-KNUMV and
    VBAP-POSNR = KONV-KPOSN for VBAK-VBELN=VBAK-VBELN
    you should be able to extract the value of PR00 from KONV table.
    Hope this helps you
    Pls reward if this helps you

Maybe you are looking for