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

Regarding Table control of Module pool program

Former Member
0 Likes
1,802

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
Read only

former_member197132
Participant
0 Likes
1,742

use Chain  endchain  .

Read only

0 Likes
1,742

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


Read only

0 Likes
1,742

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.

Read only

ipravir
Active Contributor
0 Likes
1,742

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.

Read only

Former Member
0 Likes
1,742

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

Read only

Former Member
0 Likes
1,742

hii ranjit

in your program (se38) in pbo module

add this line  zcntrl-lines = 100.


hope this will be helpful

Regards

Gaurav

Read only

Former Member
0 Likes
1,742

Hi Ranjit,

In screen attributes , other attributes tab

what you maintained in lines / columns occupied / maintained ?

Read only

0 Likes
1,741

Hi ,

Lines.

Thanks & regards

Ranjit

Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,741

Hi Ranjit,

Try.

Display all  the fields by grouping and displaying into   Tabstrips.

Hope it helpful.

Regards,

Venkat.

Read only

Former Member
0 Likes
1,741

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

Read only

0 Likes
1,741

Hi Shashikanth,

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

Thanks & regards

Ranjit

Read only

0 Likes
1,741

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.

Read only

0 Likes
1,741

Hi Praveer,

Its not working .

Thanks & regards

Ranjit

Read only

Former Member
0 Likes
1,741

Hii ranjit

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

Regards

Gaurav