01-08-2015 4:42 AM
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
01-08-2015 6:10 AM
01-08-2015 6:33 AM
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
01-08-2015 7:07 AM
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.
01-08-2015 7:17 AM
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.
01-08-2015 10:39 AM
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
01-08-2015 9:27 AM
hii ranjit
in your program (se38) in pbo module
add this line zcntrl-lines = 100.
hope this will be helpful
Regards
Gaurav
01-08-2015 10:50 AM
Hi Ranjit,
In screen attributes , other attributes tab
what you maintained in lines / columns occupied / maintained ?
01-08-2015 10:59 AM
01-08-2015 10:53 AM
Hi Ranjit,
Try.
Display all the fields by grouping and displaying into Tabstrips.
Hope it helpful.
Regards,
Venkat.
01-08-2015 11:07 AM
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
01-08-2015 11:17 AM
Hi Shashikanth,
I am not using table control with wizard. I am using Table control only.
Thanks & regards
Ranjit
01-08-2015 11:21 AM
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.
01-08-2015 12:05 PM
01-08-2015 12:10 PM
Hii ranjit
as i said earlier just define control name-lines = '100'.
Regards
Gaurav