2008 Jul 30 12:52 PM
Hi all the requirement is while downloading an internal table if we have a CHAR field and its partially filled then spaces should be appended after the text to make it completely filled and in case the field is a numeric field then during downloading if the field is partially filled then there should be leading zeroes before the number. Also in case the field is a blank then it should be filled depending upon the character field or a numeric field. If its a character then it should be filled with spaces and if its a numeric field then the empty values should be filled in with zeroes. In short the field should be completely filled and should not be left blank.Any sample code .......thanx in advance .......
2008 Jul 30 12:58 PM
say U have data in ITAB ..
loop at itab.
wa_itab+0(10) = itab-field1,
wa_itab+10(5) = itab-field2,
wa_itab+15(8) = itab-field3,
wa_itab+23(10) = itab-field4 .....
*Now download this work area
transfer wa_itab to filename.
endloop.
Hi all the requirement is while downloading an internal table if we have a CHAR field and its partially filled then spaces should be appended after the text to make it completely filled and in case the field is a numeric field then during downloading if the field is partially filled then there should be leading zeroes before the number. Also in case the field is a blank then it should be filled depending upon the character field or a numeric field. If its a character then it should be filled with spaces and if its a numeric field then the empty values should be filled in with zeroes. In short the field should be completely filled and should not be left blank.Any sample code .......thanx in advance .......
2008 Jul 30 12:58 PM
say U have data in ITAB ..
loop at itab.
wa_itab+0(10) = itab-field1,
wa_itab+10(5) = itab-field2,
wa_itab+15(8) = itab-field3,
wa_itab+23(10) = itab-field4 .....
*Now download this work area
transfer wa_itab to filename.
endloop.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |