Application Development 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: 

Regarding Table control of Module pool program

Former Member
0 Kudos

Hi Friends,

I made a module pool program with table control. In my  internal table 60 row is there but when i want to save  it only capture 16 data only which means its capture the Visible length. But I want save all 60 records in the table . So please guide me how can i extend the visible length and save all the 60 records instead of 16 records .

Thanks & regards

Ranjit

14 REPLIES 14

former_member197132
Participant
0 Kudos

use Chain  endchain  .

0 Kudos

Dear Sir,

I hv already used  chain and endchain. statement.

Please hv a look below code and suggest me any changes required.

PROCESS BEFORE OUTPUT.
  MODULE STATUS_1200.
*LOOP AT ITAB1 WITH CONTROL TTL CURSOR TTL-CURRENT_LINE.
LOOP AT itab1 into ydrumspec WITH CONTROL TTL CURSOR TTL-LINES.
    MODULE upd_screen.
ENDLOOP.

MODULE MOVE_YDRUMCLR_header.
MODULE MOVE_itab_header.

MODULE COUNT1_LINES.


*
PROCESS AFTER INPUT.

MODULE COUNT_LINES.

CHAIN.
FIELD YDRUMCLR-ERDAT.
FIELD YDRUMCLR-CHARG.
FIELD YDRUMCLR-EQUNR.
FIELD YDRUMCLR-DRUM.
FIELD YDRUMCLR-SIZ23.
*FIELD YDRUMCLR-ACMNO.
FIELD YDRUMCLR-BOXNU.
FIELD YDRUMCLR-CAPPRINTING.
FIELD YDRUMCLR-BODYPRINTING.
FIELD YDRUMCLR-CAPSULES.
FIELD YDRUMCLR-NETWT.
FIELD YDRUMCLR-GROSSWT.
MODULE EMP_VALIDATE.
ENDCHAIN.


LOOP AT ITAB1.

CHAIN.
field:
      YDRUMSPEC-DEFECT,
      YDRUMSPEC-KURZTEXT,
      YDRUMSPEC-TOLGRENZE,
      YDRUMSPEC-IPQC,
      YDRUMSPEC-POC.
       MODULE EMP_UPDATE_ITAB on chain-request.
       MODULE EMP_UPDATE on chain-request.
     ENDCHAIN.
       MODULE EMP_UPDATE.
   ENDLOOP.


  MODULE USER_COMMAND_1200.


Thanks & regards


Ranjit


0 Kudos

Hi Ranjit,

Have you used code wizard for drawing a Table control? If not please use code wizard. Please check what is there in the MODULE COUNT_LINES in PAI and PBO MODULE COUNT1_LINES and check where you had wrote logic to SAVE the entries.

Thanks & Regards,

Seshadri.

ipravir
Active Contributor
0 Kudos

Hi Ranjit,

Where you have write your Save Logic.

It should be in USER_COMMAND.

in PAI.

     Loop at ITAB1 into wa.

          Data Transfer logic from Internal table to Table Control.

          All Other Table Control Screen Related Logic.

        endloop.

in PBO.

LOOP AT ITAB1.

     CHAIN.

     ENDCHAIN.  this should be use either validate the data or update the table control data.

ENDLOOP.

MODULE USER_COMMAND . this should hold the all logic based on the EVENT (SY-UCOMM).

regards.

Praveer.

Former Member
0 Kudos

Dear All,

It is showing 60 nos of record in ITAB  but when its looping it only captured visible length row only. In visible length 16 row is there . So plz how can i increase the visible length  16 to 60.

Please send a code  or give some idea.

Thanks & regards

Ranjit

Former Member
0 Kudos

hii ranjit

in your program (se38) in pbo module

add this line  zcntrl-lines = 100.


hope this will be helpful

Regards

Gaurav

Former Member
0 Kudos

Hi Ranjit,

In screen attributes , other attributes tab

what you maintained in lines / columns occupied / maintained ?

0 Kudos

Hi ,

Lines.

Thanks & regards

Ranjit

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Ranjit,

Try.

Display all  the fields by grouping and displaying into   Tabstrips.

Hope it helpful.

Regards,

Venkat.

Former Member
0 Kudos

Hi Ranjit,

If you have created table control using wizard check you have selected the option scroll or not..

And also check the modules COUNT_LINES in PBO PAI..

Regards,

Shashikanth

0 Kudos

Hi Shashikanth,

I am not using table control with wizard. I am using Table control only.

Thanks & regards

Ranjit

0 Kudos

Hi Ranjit,

Then pass the below Code in PAI to provide the scroll.

Describe Table Internal_table_name lines Table_control-COUNT_LINE.

The above statement will provide you a vertical scroll bar.

regards.

Praveer.

0 Kudos

Hi Praveer,

Its not working .

Thanks & regards

Ranjit

Former Member
0 Kudos

Hii ranjit

as i said earlier just define control name-lines = '100'.

Regards

Gaurav