Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Step-Loops

former_member226419
Contributor
0 Likes
629

Hi,

I want to display dynamic material numbers on a custom screem based on input but i am getting the following Dump:

Runtime Errors         DYNPRO_ITAB_ERROR
Date and Time          12/23/2012 08:40:33

Short text
     Error in internal table in screen

What happened?
     The current screen processing action was terminated since a situation
     occurred where the application could not continue.
     This is probably due to an error in the ABAP program or in the current
     screen.

Error analysis
     The program "YTESTFORM" has terminated.

     The following error occurred (short text of cause of error):
     "FX099: Wrong fieldtype for CURSOR. Has to be binary/hex type."

     The following elements are affected:
     Screen name.............. "YTESTFORM"
     Screen number............ 0200

     This error is connected to the processing of an internal table with the
     field or variable "C", and was triggered within in the program.

Trigger Location of Runtime Error
     Program                                 YTESTFORM
     Module Name                             SYSTEM-EXIT

Code below:

PROCESS BEFORE OUTPUT.
   loop at i_ytest2 into w_ytest2 cursor c from n1 to
    n2.    (Getting dump on this loop)
    chain.
      field: ytest11-matnr.
      module dynpro_modifiz_loop_0200.
    endchain.
  endloop.
*
PROCESS AFTER INPUT.

  loop.
    chain.
      field: ytest11-matnr.
*      module dynpro_0901_input.
    endchain.
  endloop.

2 REPLIES 2
Read only

former_member269509
Discoverer
0 Likes
491

Hi,

cursor c from n1 to

    n2.


also c, n1 and n2 should be integer type.


DATA: c type i,

           n2 type i,

           n2 type i,

Read only

Clemenss
Active Contributor
0 Likes
491

Hi sumeet durgia,

Use table control wizard to create the step loop.

You may study the difference in  generated code and you will not have the dump.

Thanky You,

Clemens