Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

modify statement is not working with internal table

$
0
0

in table control i want to modify table control internal table after user PRESS ENTER  .

but internal table is not getting modified it is giving sy-subrc = 4.

please help me how to modify internal table and display the data in table control in module pool program

 

 

my logic:

FLOW LOGIC:

 

PROCESS BEFORE OUTPUT.

MODULE status_0483."""for pf status

  LOOP AT gt_fdint INTO gs_fdint WITH CONTROL tab_con CURSOR

                                        tab_con-current_line.

  ENDLOOP.

 

 

PROCESS AFTER INPUT.

 

 

  LOOP AT gt_fdint .

    CHAIN.

      FIELD gs_fdint-zselno.

      FIELD gs_fdint-zcustm.

      FIELD gs_fdint-zfddes.

      FIELD gs_fdint-zstart.

      FIELD gs_fdint-zenddt.

      FIELD gs_fdint-zaccrl.

      FIELD gs_fdint-zintrs.

      FIELD gs_fdint-zintdes.

      FIELD gs_fdint-zpstdt.

      FIELD gs_fdint-channel.

      MODULE tc_acunt_modify ON CHAIN-REQUEST.

    ENDCHAIN.

  ENDLOOP.

  MODULE user_command_0483."""USER COMMAND SUBROUTINE

  MODULE exit_command_483."""EXIT COMMAND SUBROUTINE

 

 

MODULE tc_acunt_modify INPUT.

  MODIFY gt_fdint

         FROM gs_fdint

         INDEX tab_con-current_line.

ENDMODULE.

 

hear internal table is initially contains no record, if  i give sone input in table control and press enter then

MODULE tc_acunt_modify ON CHAIN-REQUEST. is triggering and but it is not modifying the internal table 

after MODIFY statement it is giving SY-SUBRC = 4.


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>