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

Could anybody help me for Dynpro program?

Former Member
0 Likes
483

Hi,

i have a question. I have created a dynpro tabel. In this table man can edit again. To this step it works.

But when i insert a new row and paste a value for a field. e.g contact number 7250.0001.001. But i can not paste completly, only 7250.0001. For date i face this problem. ONly 12.12. es fehlt 2009.

code:

data:

lc_wa_fcat type lvc_s_fcat.

lc_wa_fcat-col_pos = 1.

lc_wa_fcat-fieldname = 'COMP_CODE'.

lc_wa_fcat-reptext = 'Buchungskreis'.

lc_wa_fcat-edit = 'X'.

append lc_wa_fcat to lc_tb_fcat.

lc_wa_fcat-col_pos = 2.

lc_wa_fcat-fieldname = 'CGI_MV'.

lc_wa_fcat-reptext = 'Mietevertr?ge'.

lc_wa_fcat-edit = 'X'.

lc_wa_fcat-OUTPUTLEN = 'X'.

append lc_wa_fcat to lc_tb_fcat.

lc_wa_fcat-col_pos = 3.

lc_wa_fcat-fieldname = 'CONDTYPE'.

lc_wa_fcat-reptext = 'Konditionstype'.

lc_wa_fcat-edit = 'X'.

append lc_wa_fcat to lc_tb_fcat.

lc_wa_fcat-col_pos = 4.

lc_wa_fcat-fieldname = 'DATEFR'.

lc_wa_fcat-reptext = 'Date From'.

lc_wa_fcat-edit = 'X'.

append lc_wa_fcat to lc_tb_fcat.

lc_wa_fcat-col_pos = 5.

lc_wa_fcat-fieldname = 'DATETO'.

lc_wa_fcat-reptext = 'Date TO'.

lc_wa_fcat-edit = 'X'.

append lc_wa_fcat to lc_tb_fcat.

Could somebody help me?

Edited by: gang qin on Jan 18, 2010 1:04 PM

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
457

Use two references fields to refer directly to table fields


lc_wa_fcat-col_pos = 1.
lc_wa_fcat-fieldname = 'COMP_CODE'.
lc_wa_fcat-REF_TABLE = "give referenced table name here
lc_wa_fcat-REF_FIELD = "give referenced table field name here

"lc_wa_fcat-reptext = 'Buchungskreis'.   "no needed anymore as this text will be taken directly from field of table you provide above
lc_wa_fcat-edit = 'X'.
append lc_wa_fcat to lc_tb_fcat.


lc_wa_fcat-OUTPUTLEN =  "this also must be a numeric value, not 'X'

Regards

Marcin

3 REPLIES 3
Read only

Former Member
0 Likes
457

hi ,

check the field length ........

regards

Gaurav

Read only

MarcinPciak
Active Contributor
0 Likes
458

Use two references fields to refer directly to table fields


lc_wa_fcat-col_pos = 1.
lc_wa_fcat-fieldname = 'COMP_CODE'.
lc_wa_fcat-REF_TABLE = "give referenced table name here
lc_wa_fcat-REF_FIELD = "give referenced table field name here

"lc_wa_fcat-reptext = 'Buchungskreis'.   "no needed anymore as this text will be taken directly from field of table you provide above
lc_wa_fcat-edit = 'X'.
append lc_wa_fcat to lc_tb_fcat.


lc_wa_fcat-OUTPUTLEN =  "this also must be a numeric value, not 'X'

Regards

Marcin

Read only

Former Member
0 Likes
457

Check the datatype/dataelemnt that you are using for your date field.

Probably you may have incorrectly used a data type of a lesser field length.