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

Error during displaying table control screen

Former Member
0 Likes
2,983

Hi All,

I am facing a problem with TABLE CONTROL.I have created the same using wizard.It displays some fields from the internal tabel

below is PBO code for the same:

process before output.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC_ZASN'

module tc_zasn_change_tc_attr.

*&SPWIZARD: MODULE TC_ZASN_CHANGE_COL_ATTR.

loop at gt_tab

into gs_tab

with control tc_zasn

cursor tc_zasn-current_line.

*&SPWIZARD: MODULE TC_ZASN_CHANGE_FIELD_ATTR

module tc_zasn_get_lines.

endloop.

*&SPWIZARD: OUTPUT MODULE FOR TC 'TC_ZASN'. DO NOT CHANGE THIS LINE!

*&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR

module tc_zasn_change_tc_attr output.

set pf-status 'ZSTATUS'.

set titlebar 'ZTITLE'.

describe table gt_tab lines tc_zasn-lines.

  • tc_zasn-lines = tc_zasn-lines * 1000.

  • refresh control 'TC_ZASN' from screen 9000.

endmodule. "TC_ZASN_CHANGE_TC_ATTR OUTPUT

*&SPWIZARD: OUTPUT MODULE FOR TC 'TC_ZASN'. DO NOT CHANGE THIS LINE!

*&SPWIZARD: GET LINES OF TABLECONTROL

module tc_zasn_get_lines output.

g_tab_lines = sy-loopc.

endmodule. "TAB_GET_LINES OUTPUT

i get a dump at this step.

module tc_zasn_get_lines output.

g_tab_lines = sy-loopc.

endmodule.

Please note:

1) There is only 1 screen in my program

2) I have used wizard to generate the code

3) In element list, I have maintained length of 10 for DATE etc.

Request you all to kindly help.

thanks in advance,

regards,

Akshay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,481

Hi Akshay,

Check this [Link|]

will give you idea of the table control..

Regards!

7 REPLIES 7
Read only

Former Member
0 Likes
1,482

Hi Akshay,

Check this [Link|]

will give you idea of the table control..

Regards!

Read only

0 Likes
1,481

Hi,

Has it got anything to do with the scroll functionality. If yes, then can somebody point out as to how do we use scroll functionality.

Thanks,

Akshay

Read only

0 Likes
1,481

Hi all,

I have tried recreating the table control all over again but i am still facing issues.

I am getting dump at this line of code.

module tc_zasn_get_lines output.

g_tab_lines = sy-loopc.

>>>endmodule. "TAB_GET_LINES OUTPUT

the long text of the dump says:

There was a conversion error in the output of fields to the screen.

The formats of the ABAP output field and the screen field may not match.

Some field types require more space on the screen than in the ABAP

program. For example, a date output field on the screen requires two

more characters than the corresponding field in the ABAP program. When

the date is displayed on the screen, an error occurs resulting in this

error message.

Screen name.............. "ZTEST_ASN_AKS"

Screen number............ 9000

Screen field............. "GS_TAB-DIFFM"

Error text............... "FX015: Sign lost."

But the same piece of code works fine when the records are less in the internal table.

Is it related to scrolling functionality?

Any inputs will be highly appreciated.

Thanks,

Akshay

Read only

0 Likes
1,481

hi all,

Unfortunately i fail to understand why am i still getting the error message.

I have tried to recreate the table control without using wizard.

I have tried copying the logic from standard program examples.

I also tried to manipulate the table control lines...in the module code

but to no avail..i am still getting the error.

The long text of the message still says.

"There was a conversion error in the output of fields to the screen.

The formats of the ABAP output field and the screen field may not match.

Some field types require more space on the screen than in the ABAP

program. For example, a date output field on the screen requires two

more characters than the corresponding field in the ABAP program. When

the date is displayed on the screen, an error occurs resulting in this

error message.

Screen name.............. "ZTEST_ASN_AKS"

Screen number............ 9000

Screen field............. "GS_TAB-DIFFM"

Error text............... "FX015: Sign lost." "

Is it anything to do with data type or scrolling?

Please reply back if anybody has faced such an issue earlier.

Any hints would really be appreciated.

Thanks & Regards,

Akshay

Read only

Former Member
0 Likes
1,481

Hi Akhya,

I think there is some data type mismatch betwween the table field and screen field.

So, i request to you use the screen filed also from the dictionary or give the tablename-filed anme and check.

Regards

Rajendra

Read only

dev_parbutteea
Active Contributor
0 Likes
1,481

Hi,

i think that you are trying to put a number larger than 3 characters in field DIFFM which can only contain 3 characters. Also, you should be reserving 1 additional character for sign. This might be why you get the message :

Error text............... "FX015: Sign lost." "

Try changing the length of your DIFFM field. Try to see if you fill only values of less than 999 or signed value of less than 99 in this field and check if it dumps.

Regards.

Read only

0 Likes
1,481

Finally, the issue is resolved.

I do not understand why but the following helped.

All i had to do is In the element list tab, Under the text I/O templates i appended "V" at the end of the field (type I/O) in consideration.

Thanks for all ur replies though.

Regards,

Akshay