<?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: error in get cursor statement.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359600#M1233757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur suggestion. A related question will be, in case the line is read like that how do I then split the data of the character variable into my individual currency amounts for manipulation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 16:03:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T16:03:26Z</dc:date>
    <item>
      <title>error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359596#M1233753</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;I get a syntax error in this statement in ECC 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;GET CURSOR LINE L_LINE VALUE ROW_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row_data cannot be converted to a character-type field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_line is sy-index and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row data is a TYPE defined in my program as follows&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;   BUKRS LIKE GLPCT-RBUKRS,&lt;/P&gt;&lt;P&gt;   PRCTR LIKE GLPCT-RPRCTR,   &lt;/P&gt;&lt;P&gt;   ITEM  LIKE ECMCT-RITEM,&lt;/P&gt;&lt;P&gt;   SUM1  LIKE ECMCT-HSLVT,&lt;/P&gt;&lt;P&gt;   SUM2  LIKE ECMCT-HSLVT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well in 4.6 but fails in ECC 6.0. If I am right this is because SAP expects the line to be fully character based but sum1 and sum2 and currency types. So the incomaptibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I solve this issue. I want to read the line which the user double clicks and want to manipulate those currency values too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 22:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359596#M1233753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359597#M1233754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the declaration part of ROW_DATA data types SUM1 SUM2 does not match with other fields  which is not allowed in Unicode environment.So change the the type of it to NUMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 00:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359597#M1233754</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-07T00:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359598#M1233755</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;The ROW_DATA should be char type  if not it gives you the su\yntax error.. check the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA l_line TYPE i.
DATA row_data(2000) TYPE c.

GET CURSOR LINE l_line VALUE row_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 01:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359598#M1233755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T01:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359599#M1233756</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;Refer the demo:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : LFA1, LFB1.

TYPES : BEGIN OF VENDOR,
        LIFNR LIKE LFA1-LIFNR,
        NAME1 LIKE LFA1-NAME1,
        ORT01 LIKE LFA1-ORT01,
        END OF VENDOR,

        BEGIN OF VENDOR1,
        LIFNR LIKE LFA1-LIFNR,
        LAND1 LIKE LFA1-LAND1,
        BUKRS LIKE LFB1-BUKRS,
        END OF VENDOR1.

DATA : VENDOR_TAB TYPE STANDARD TABLE OF VENDOR INITIAL SIZE 20 WITH HEADER LINE,
       VENDOR1_TAB TYPE STANDARD TABLE OF VENDOR1 INITIAL SIZE 20 WITH HEADER LINE,
       FLDNAME(25),
       FLDVALUE(25).

TOP-OF-PAGE DURING LINE-SELECTION.
  WRITE :/ 'SECONDART LIST FOR VENDOR ID:', VENDOR_TAB-LIFNR COLOR 3.
  ULINE.

START-OF-SELECTION.

  SELECT LIFNR NAME1 ORT01
  FROM LFA1
  INTO CORRESPONDING FIELDS OF TABLE VENDOR_TAB.


AT LINE-SELECTION.

  GET CURSOR FIELD FLDNAME VALUE FLDVALUE.

  CASE FLDNAME.

    WHEN 'VENDOR_TAB-LIFNR' OR 'VENDOR_TAB-NAME1' OR 'VENDOR_TAB-ORT01'.

      IF SY-LSIND EQ 1.
        SELECT A~LIFNR A~LAND1 B~BUKRS
          FROM LFA1 AS A
          INNER JOIN LFB1 AS B
          ON A~LIFNR = B~LIFNR
          INTO CORRESPONDING FIELDS OF TABLE VENDOR1_TAB
          WHERE A~LIFNR = VENDOR_TAB-LIFNR.

        WRITE : /1 TEXT-001, 13 TEXT-004, 46 TEXT-005.
        ULINE.
        LOOP AT VENDOR1_TAB.

          WRITE : /1 VENDOR1_TAB-LIFNR, 13 VENDOR1_TAB-LAND1, 46 VENDOR1_TAB-BUKRS.

        ENDLOOP.
        ULINE.
        IF SY-SUBRC &amp;lt;&amp;gt; 0.
          MESSAGE E005.
        ENDIF.

      ENDIF.

    WHEN OTHERS.

      MESSAGE E006.

  ENDCASE.

END-OF-SELECTION.

  WRITE : /1 TEXT-001, 13 TEXT-002, 46 TEXT-003.
  ULINE.

  FORMAT HOTSPOT.

  LOOP AT VENDOR_TAB.

    WRITE : /1 VENDOR_TAB-LIFNR, 13 VENDOR_TAB-NAME1, 46 VENDOR_TAB-ORT01.

    HIDE : VENDOR_TAB-LIFNR.

  ENDLOOP.
  ULINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 03:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359599#M1233756</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-07T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359600#M1233757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur suggestion. A related question will be, in case the line is read like that how do I then split the data of the character variable into my individual currency amounts for manipulation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359600#M1233757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T16:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359601#M1233758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tarun. This demo is really good if I need to read the field's value which user clicked. What about reading the entire line ? I am actually trying to read the entire line and not just one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also going to try with the NUMC option as the other person suggested. Meanwhile if you have any other info, would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359601#M1233758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359602#M1233759</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;You can do this way to get the value of sum1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : l_char(20) TYPE c,
       l_int TYPE i,
       l_sum1 LIKE ecmct-hslvt.

REPLACE '.' IN l_char WITH space. CONDENSE l_char.
l_int = l_char.
l_sum1 = l_int / 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are reading the whole line than you need to use the position and offset to read the SUM1 value and use the above logic to convert into amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359602#M1233759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T16:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359603#M1233760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to change your code this way and check whether it works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zaRs
       no standard page heading line-size 255.

data : l_line like sy-index.

data : begin of row_data occurs 0,
bukrs like glpct-rbukrs,
prctr like glpct-rprctr,
item like ecmct-ritem,
sum1 like dtaxnl9a-hashc,   " Changed to numc 24
sum2 like dtaxnl9a-hashc.   " Changed to numc 24
data : end of row_data.

at line-selection.
  get cursor line l_line value row_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359603#M1233760</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-07T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: error in get cursor statement..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359604#M1233761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, converting to NUMC 24 helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 16:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-get-cursor-statement/m-p/5359604#M1233761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T16:51:50Z</dc:date>
    </item>
  </channel>
</rss>

