2013 Nov 18 6:45 AM
Dear ,
I am getting trouble in transfer decimal values only from internal table to Dynamic internal Table .
Please Help me out
2013 Nov 18 7:10 AM
HI Alok,
When you are defining the field catalog for dynamic internal table, give the inttype as 'P' and decimals as 2 . (or as required).
IF sy-subrc NE 0.
gw_dyn_fcat-fieldname = wa_zdemo-month.
gw_dyn_fcat-tabname = 'IT_DEMO'.
gw_dyn_fcat-coltext = fname.
gw_dyn_fcat-outputlen = 10.
gw_dyn_fcat-do_sum = 'X'.
gw_dyn_fcat-inttype = 'P'.
gw_dyn_fcat-DECIMALS = 2.
gw_dyn_fcat-col_pos = gv_pos.
APPEND gw_dyn_fcat TO gt_dyn_fcat.
ENDIF.
The decimal values values will moved to your dynamic internal table.
HI Alok,
When you are defining the field catalog for dynamic internal table, give the inttype as 'P' and decimals as 2 . (or as required).
IF sy-subrc NE 0.
gw_dyn_fcat-fieldname = wa_zdemo-month.
gw_dyn_fcat-tabname = 'IT_DEMO'.
gw_dyn_fcat-coltext = fname.
gw_dyn_fcat-outputlen = 10.
gw_dyn_fcat-do_sum = 'X'.
gw_dyn_fcat-inttype = 'P'.
gw_dyn_fcat-DECIMALS = 2.
gw_dyn_fcat-col_pos = gv_pos.
APPEND gw_dyn_fcat TO gt_dyn_fcat.
ENDIF.
The decimal values values will moved to your dynamic internal table.
2013 Nov 18 6:58 AM
Hi Alok,
what is the type of Dynamic internal Table? What is the error you are getting?
Please paste the code.
I mean did you declared as TYPE ANY or not?
2013 Nov 18 6:59 AM
2013 Nov 18 7:10 AM
HI Alok,
When you are defining the field catalog for dynamic internal table, give the inttype as 'P' and decimals as 2 . (or as required).
IF sy-subrc NE 0.
gw_dyn_fcat-fieldname = wa_zdemo-month.
gw_dyn_fcat-tabname = 'IT_DEMO'.
gw_dyn_fcat-coltext = fname.
gw_dyn_fcat-outputlen = 10.
gw_dyn_fcat-do_sum = 'X'.
gw_dyn_fcat-inttype = 'P'.
gw_dyn_fcat-DECIMALS = 2.
gw_dyn_fcat-col_pos = gv_pos.
APPEND gw_dyn_fcat TO gt_dyn_fcat.
ENDIF.
The decimal values values will moved to your dynamic internal table.
2013 Nov 18 8:17 AM
thank you Susmitha Mam , I done it from your above example.
Thread Closed
2013 Nov 18 8:45 AM
2013 Nov 18 9:26 AM
Can you tell how to put event at end of in loop of Dynamic internal Table
Loop at <internal table > assigning <work area>
at end < how to give field name please write it here >
end at
endloop .
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |