2007 Apr 10 3:03 PM
suppose my flat file havng 150 fields...i don't have value for a perticular field..how to findout this type of errors in BDC...points wil be given...
2007 Apr 10 3:05 PM
When you get values into your internal table, check for not initial.
IF NOT ITAB-FIELD IS INTIAL.
ENDIF.
Thanks,
SKJ
2007 Apr 10 3:05 PM
When you get values into your internal table, check for not initial.
IF NOT ITAB-FIELD IS INTIAL.
ENDIF.
Thanks,
SKJ
2007 Apr 10 3:07 PM
Hi,
If you don't have a particular field which is required or mandetory in the file.The bdc message will give error message when you are using call transaction.
Regards,
Tanmay
2007 Apr 10 3:08 PM
The errors will come back from the CALL TRANSACTION statement when using the extension MESSAGES into <MessTab>.
data: messtab like bdcmsgcoll occurs 0 with header line.
data: bdcdata like bdcdata occurs 20 with header line.
Call transaction 'ME11' using bdcdata
message into messtab.
REgards,
RIch Heilman
2007 Apr 10 3:08 PM
When you try to upload a record using call transaction, then the sy-subrc will be non zero immediately after the call to the transaction.
cal transaction 'VA01' using it_bdcdata options from x_ctu_params
messages into it_bdcmsgcoll.
if sy-subrc <> 0.
loop at it_bdcmsgcoll.
call function 'FORMAT_MESSAGE'
.
.
.
endloop.
endif.
In Session method, you can directly see the error log to now what the errors are.
Regards,
Ravi
2007 Apr 10 3:09 PM
Hi,
In call transaction, you can use the following statement to capture error(s) for mandatory/input field(s).
CALL TRANSACTION MODE.. UPDATE ..... MESSAGES INTO ITAB.
Using this addition, all the messages sent during batch input processing are stored in an internal table itab.
In session method, you can go to SM35 to check the error message(s).
Regards,
Ferry Lianto
2007 Apr 10 3:14 PM
hi
load data to PSA first. u will come to know which field is empty.
regards
ravish
<b>plz reward if helpful</b>