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: 

Problem with increasing input field length in module pool programming.

former_member308418
Participant
0 Kudos

Hi All,

I have created a screen in which i have used table control wizard. In my table control I have an input field. The problem is, this input filed only takes 23 inputs at a time. I need to make this field unfixed. This is an quantity field. I am not understanding why this is happening. Can anybody plz help me in this regard ?

Thanks in advance.

Tripod.

18 REPLIES 18

deepak_dhamat
Active Contributor
0 Kudos

HI tripod ,

DO you know what does 23 inputs means for Quantity . 99999999999999999999999 , i don't think there will be quantity order more than this .

regards

Deepak.

0 Kudos

Hi Deepark,

Thanks for your reply. It does not mean what you told. I am telling about 23 records at a time. Like

Quantity

676

6

67

67

67

67

6

.

.

.

With regards,

tripod.

karun_prabhu
Active Contributor
0 Kudos

Hi tripod.

In PBO of that screen, just assign the value of tc-lines.

module TC_1001_change_tc_attr output.

describe table ITAB lines TC_1001-lines.

TC_1001-LINES = 100. "(maximum number of input records).

endmodule.

0 Kudos

Hi Kapmsd,

Thanks for your reply. I tried this but still the problem exists the same.

Plz help.

0 Kudos

HI Tripod ,

YOu can add Lines to Table control .

Add one button by name ADD LINES : give func code 'ADD'

IN PBO ...

if it_mat[] is not initial .

describe table it_mat lines ln .

tab_ctrl-lines = ln .

endif.

case sy-ucomm .

when 'ADD' .

perform add_lines .

endcase .

form add_lines .

ln = ln + 1 .

clear it_mat .

append initial line to it_mat .

endform .

regards

deepak.

0 Kudos

Hi Deepak,

Thanks again. Actually lines are showing but empty lines. Because other fields of table control have values more than 23 records. So, empty lines are adding for this field only. But the other fields are showing values more than 23 records and those are not input field.

With regards,

Tripod.

0 Kudos

If I am right,I guess the issue you are facing is the entered quantity field values are not getting saved in the table control(itab) display of that field.

You declare a module in chain..endchain of PAI.

loop at ITAB.

chain.

.

.

.

module save_value on chain-request.

endchain.

.

endloop.

MODULE save_value INPUT.

modify itab index tc_1001-current_line transporting itab-qty.

ENDMODULE.

0 Kudos

hi tripod ,

Then i still did'nt got your problem ,

ONce you said about INput field taking only 23 input.

Then you said you are not able to insert more than 23 records .

WHere is your Actual Problem .

1) YOu have table control

2) You want more than 23 records to be entered and Saved .

3) or anything Else .

regards

deepak.

0 Kudos

Hi Deepak,

I wanted to say that I need to enter and save more than 23 records.

Thanks,

tripod.

0 Kudos

HI ,

in previous thread i told about Adding Blank line , then you can add values in blank lines .

after pressing save . IN PAI you can save data in loop endloop .

regards

Deepak.

0 Kudos

Thanks Deepak.

I have tried that also. But still the problem exists the same. There are 23 records in one page. The field is saving only these 23 records. When I scroll down the page the next fields are showing empty.

SNo

21 2799135 Reference Article BDC 16.000

22 2799911 Reference Article BDC 17.000

23 2799912 Reference Article BDC 18.000

24 2799915 BDC testing 0.00

25 2799916 BDC testing 0.00

26 2799920 Reference Article BDC

These are my table values. Here i am showing the records from 21 to 26.

0 Kudos

Hi ,

Your problem is that you are not able to keep data in table control , it gets erased .

USe this logic  :in PAI  .



loop at it_mat  .

module user_command_1000

endloop.


in driving program .

module user_command_1000 input.

  read table  it_mat index tab_ctrl-current_line transporting no fields .

  if sy-subrc = 0 .

    modify it_mat from it_mat index tab_ctrl-current_line .
    clear it_mat .
  else .

    append it_mat .
    clear it_mat .
  endif.

endmodule.                 " USER_COMMAND_1000  INPUT

regards

Deepak.

0 Kudos

Hi Deepak,

Tried this one also. But no progress. Dont know where the problem is.

Regards,

tripod.

0 Kudos

Tripod,

totally how many records in the internal table (that you have mapped with the table control) ?

In that , are you saying that only for the first 23 records in itab are saved with the entered qty value and the qty values for remaining itab(>23) records are not saved?

0 Kudos

Hi Kapmsd,

These 23 records are saving in table control according to screen length. If i reduce the table control wizard length, then it stores values based on that length.

I tried to show the output of my table in previous thread. But dont know why people are not understanding. Anyway thanks to all for your valuable answers.

regards,

tripod.

Edited by: Tripod on Nov 28, 2011 2:40 PM

0 Kudos

Tripod, you still did not answer my questions?

How many records in itab for your issue case?

Out of which whether the qty field is saved for only 23 records (table control wizard length) ?

0 Kudos

Hi Kapmsd,

I have not specified anywhere about record limit. The records are saved only based on table control length. If I reduce this length then the records are also reduced.

Thanks,

tripod.

deepak_dhamat
Active Contributor
0 Kudos

Hi ,

Nobody will understand your Below statement .

values are showing more than 23 records for other field of that table control but only 23 records for this input field only.

regards

Deepak.