2008 Dec 23 8:41 PM
I have a field that is a custom append in an SAP table, don't think it makes any difference in this case, but thought I'd mention it. When I move space to the 10char field in a structure, the I move the structure to the table declared in the ABAP, I say modify, or update, the field still has the previous value in it? It should be spaces?
Is it because it is blank? It seems to blank out other fields?
Any suggestions? Thank-You.
2008 Dec 24 4:37 AM
Hey,
Instead of moving spaces to the field, u can simply nullify the contents of the field.
like this:
select * into corresponding fields of table itab from mara
loop at itab.
clear itab-matnr.
update mara from itab.
if sy-subrc = 0.
commit work.
endif.
endloop.Hope it works.
thanks\
Mahesh
Hey,
Instead of moving spaces to the field, u can simply nullify the contents of the field.
like this:
select * into corresponding fields of table itab from mara
loop at itab.
clear itab-matnr.
update mara from itab.
if sy-subrc = 0.
commit work.
endif.
endloop.Hope it works.
thanks\
Mahesh
2008 Dec 23 8:48 PM
hi how u r passing spaces, if possible please provide the code for us to analyze and answer
2008 Dec 24 4:37 AM
Hey,
Instead of moving spaces to the field, u can simply nullify the contents of the field.
like this:
select * into corresponding fields of table itab from mara
loop at itab.
clear itab-matnr.
update mara from itab.
if sy-subrc = 0.
commit work.
endif.
endloop.Hope it works.
thanks\
Mahesh
2008 Dec 24 6:00 AM
Hi ,
The appended fields of the table are updated in the same way as the regular fields of the table.
Pass null values to the specific field (Appended field) and Modify the table.
******
Loop at it_mara into wA_mara.
wa_mara-DISPO = ''.
Modify mara from wa_mara .
Endloop.
*******
Hope this helps.
Regards,
Radhika.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |