<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: alv grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203291#M1521565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I have already used the function module, I have laso provided the code. &lt;/P&gt;&lt;P&gt;But unable to find out where I am missing, so that unable to pick up the text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 13:18:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-26T13:18:58Z</dc:date>
    <item>
      <title>alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203289#M1521563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am tryimng to pick up the text from VA)2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code can any body let me know where I have done the mistake, actually when ever ,my user entering some text  in va02 in trasit insurance, at that time all the input text should display inmy alv grid report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;inv is the invoice number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on the basis of invoice number the transitory insurance should come to my alv grid report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NAME1 = WA_ORD-INV.
        SELECT SINGLE * FROM STXH
            INTO CORRESPONDING FIELDS OF STXH
            WHERE TDOBJECT = 'VBBK'
            AND   TDNAME   =  NAME1
            AND   TDID     = 'Z036'
            AND   TDSPRAS  = SY-LANGU.
        IF SY-SUBRC EQ 0.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
              CLIENT   = SY-MANDT
              ID       = 'Z036'
              LANGUAGE = SY-LANGU
              NAME     = NAME1
              OBJECT   = 'VBBK'
            TABLES
              LINES    = XTLINE.
          READ TABLE XTLINE INDEX 1.
          CONDENSE XTLINE-TDLINE.
          WA_ORD-TRANSIT = XTLINE-TDLINE.
          CLEAR: XTLINE[], XTLINE, STXH.
        ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines and code tags from now on.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Aug 26, 2010 3:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 12:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203289#M1521563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203290#M1521564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module read_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ragards,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 12:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203290#M1521564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203291#M1521565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I have already used the function module, I have laso provided the code. &lt;/P&gt;&lt;P&gt;But unable to find out where I am missing, so that unable to pick up the text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 13:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203291#M1521565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T13:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203292#M1521566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read_text fm is used to get text from sap and place that text into the our internal table. we get the data in internal table and place this data in sap script..etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;If u want get text written sales order item level. Use the follwing&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;The Object field what we given in Read_text FM varied from header level and item level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : name TYPE thead-tdname,
g_tline TYPE TABLE OF tline WITH HEADER LINE,
it_vbap TYPE TABLE OF vbap WITH HEADER LINE.

vbeln = vbak-vbeln.
select * from vbap into
table it_vbap where vbeln = vbeln.


CONCATENATE vbeln it_vbap-posnr INTO name.
CONDENSE name.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'Z001'
language = sy-langu
name = name
object = 'VBBP'
TABLES
lines = g_tline
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.

CALL FUNCTION 'FORMAT_TEXTLINES'
EXPORTING
cursor_column = 0
cursor_line = 0
endline = 99999
formatwidth = 45
linewidth = 45
startline = 1
language = sy-langu

IMPORTING 
NEW_CURSOR_COLUMN = 
NEW_CURSOR_LINE = 
TABLES
lines = g_tline

EXCEPTIONS 
BOUND_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.

g_tline : having text data in salesorder item level.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Whatever data we got is not properly formated. U can format the data using the FM:Format_Textlines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Object field in Read_text FM Stores in table:TTXOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U see the function module documentation for the Read_text fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finding parameters to pass in read_text fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can go to va02,&lt;/P&gt;&lt;P&gt;give sales order number,&lt;/P&gt;&lt;P&gt;click on item number,&lt;/P&gt;&lt;P&gt;goto the Texts tab.&lt;/P&gt;&lt;P&gt;One big box is there. Place the cursor and double click&lt;/P&gt;&lt;P&gt;select the Goto menu/ Header .&lt;/P&gt;&lt;P&gt;If select the item Header.&lt;/P&gt;&lt;P&gt;It will shows thew Text name , Language,Text id and Text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May it helps you.&lt;/P&gt;&lt;P&gt;Furthermore variety of question has been asked on this topic.&lt;/P&gt;&lt;P&gt;Please search for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 13:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203292#M1521566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T13:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203293#M1521567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  What you have told here is for item data, I am fetching the text from header data. &lt;/P&gt;&lt;P&gt;I went to VA02 and then there i have done all the thing s you have told me ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the problem is with me is I ma not getting the text in my ALV Grid out put in my transi insurance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you identify where I ahave done wrong.&lt;/P&gt;&lt;P&gt;ok this is include decalration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:   TRANSIT   TYPE CHAR20,                 " Transit Insurrance&lt;/P&gt;&lt;P&gt;  INV     TYPE VBRK-VBELN,            " INVOICE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_itab is the internal table and wa_ord is my work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NAME1   TYPE THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this is my main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NAME1 = WA_ORD-INV.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE * FROM STXH&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF STXH&lt;/P&gt;&lt;P&gt;            WHERE TDOBJECT = 'VBBK'&lt;/P&gt;&lt;P&gt;            AND TDNAME     = NAME1&lt;/P&gt;&lt;P&gt;            AND   TDID     = 'Z036'&lt;/P&gt;&lt;P&gt;            AND   TDSPRAS  = SY-LANGU.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          CLIENT      = SY-MANDT&lt;/P&gt;&lt;P&gt;          ID          = 'Z036'&lt;/P&gt;&lt;P&gt;          LANGUAGE    = SY-LANGU&lt;/P&gt;&lt;P&gt;          NAME        = NAME1&lt;/P&gt;&lt;P&gt;          OBJECT      = 'VBBK'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          LINES       = XTLINE.&lt;/P&gt;&lt;P&gt;      READ TABLE XTLINE INDEX 1.&lt;/P&gt;&lt;P&gt;        CONDENSE XTLINE-TDLINE.&lt;/P&gt;&lt;P&gt;        WA_ORD-TRANSIT = XTLINE-TDLINE.&lt;/P&gt;&lt;P&gt;        CLEAR: XTLINE[], XTLINE, STXH.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 14:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203293#M1521567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T14:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203294#M1521568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I went to the debugging mod ewhen I debugged I found that my data is in the work areas but when I checked in the internal table in debug  mode, on those field s there are no data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can will you be let me know what went wrong. So that I could able to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 06:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/7203294#M1521568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-27T06:02:54Z</dc:date>
    </item>
  </channel>
</rss>

