‎2010 Jan 18 12:04 PM
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
‎2010 Jan 18 12:13 PM
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
‎2010 Jan 18 12:12 PM
‎2010 Jan 18 12:13 PM
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
‎2010 Jan 18 12:14 PM
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.