<?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: Code not working......... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107822#M982315</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;check your p_num declaration in perform....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change p_num of type TDLINE and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 12:41:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T12:41:08Z</dc:date>
    <item>
      <title>Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107817#M982310</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 have following code.........&lt;/P&gt;&lt;P&gt;In script........&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;P_NUM&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/:PERFORM ZFORM IN PROGRAM ZSD&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;J_1IEXCDTL-NUM_OF_PKGS&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;P_NUM&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside subroutine pool......&lt;/P&gt;&lt;P&gt;FORM ZFORM TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES:LIKP,J_1IEXCDTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF TBL_LINES OCCURS 0.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;  DATA: END OF TBL_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:P_NUM LIKE J_1IEXCDTL-NUM_OF_PKGS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: L_NAME LIKE THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA P_VBELN LIKE  LIKP-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE IN_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE IN_TAB-VALUE TO P_NUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE VBELN FROM LIKP INTO P_VBELN. "WHERE VBELN = J_1IEXCDTL-RDOC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE P_VBELN TO L_NAME.&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                      = 'Z015'&lt;/P&gt;&lt;P&gt;      LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;P&gt;      NAME                    = L_NAME&lt;/P&gt;&lt;P&gt;      OBJECT                  = 'VBBK'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      LINES                   = TBL_LINES&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ID                      = 1&lt;/P&gt;&lt;P&gt;      LANGUAGE                = 2&lt;/P&gt;&lt;P&gt;      NAME                    = 3&lt;/P&gt;&lt;P&gt;      NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;      OBJECT                  = 5&lt;/P&gt;&lt;P&gt;      REFERENCE_CHECK         = 6&lt;/P&gt;&lt;P&gt;      WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;      OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT TBL_LINES.&lt;/P&gt;&lt;P&gt;      WRITE TBL_LINES-TDLINE.&lt;/P&gt;&lt;P&gt;      IF TBL_LINES-TDLINE NE SPACE.&lt;/P&gt;&lt;P&gt;        P_NUM = TBL_LINES-TDLINE.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE P_NUM TO OUT_TAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "ZFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not working..not getting the long text mainatined in tcode........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hosmath on Jul 9, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107817#M982310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107818#M982311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hosman,&lt;/P&gt;&lt;P&gt;i think u need ro make change in code like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELN FROM LIKP INTO P_VBELN WHERE VBELN = P_NUM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107818#M982311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107819#M982312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the problem is here SELECT SINGLE VBELN FROM LIKP INTO P_VBELN. "WHERE VBELN = J_1IEXCDTL-RDOC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change that to SELECT SINGLE VBELN FROM LIKP INTO workarea WHERE VBELN = P_VBELN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107819#M982312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107820#M982313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; u r telling that u have p_num but it holds only 1 char. so try to convert that p_num to no. of chars u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX : define &amp;amp;p_num(100)&amp;amp;= ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also put a breakpoint in subroutine pool and then execute see whether TBL_LINES-TDLINE has value and when u r assigning that value to p_num whether that is holding value or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think in this u will get some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107820#M982313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107821#M982314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your sy-subrc after your Call Function READ_TEXT?   From your Select Statement it appears you are grabbing the first record only from LIKP, as your WHERE statement is commented out.   Are you sure this first record has Text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELN FROM LIKP INTO P_VBELN. &lt;STRONG&gt;"WHERE VBELN = J_1IEXCDTL-RDOC1.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107821#M982314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107822#M982315</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;check your p_num declaration in perform....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change p_num of type TDLINE and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107822#M982315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107823#M982316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually,I'm running a tcode J1IA103 in which Reference Document No(RDOC1) is same as the delivery no   (LIKP-VBELN).Based on this delivery no,I have to display the long text maintained in the VL02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I'm running the tcode(J1IA103),long text is not seen on print preview.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,I tried to debug the subroutine pool,cursor is not entering the FM READ_TEXT......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 12:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107823#M982316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T12:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code not working.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107824#M982317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt; r  u able to debug the subroutine pool, if so is it not entering into read_text FM . if so, see the sy-subrc value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for read_text FM u have to pass tdname, tdobject , tdlangu and tdid. u can find these paramters in VL02 transaction there under longtext  u can find them. pass those parameters correctly. and also p_num with some length so that it can store value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these things..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 13:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-not-working/m-p/4107824#M982317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T13:02:33Z</dc:date>
    </item>
  </channel>
</rss>

