Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bdc...

Former Member
0 Kudos
99

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...

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

When you get values into your internal table, check for not initial.

IF NOT ITAB-FIELD IS INTIAL.

ENDIF.

Thanks,

SKJ

6 REPLIES 6

Former Member
0 Kudos
83

When you get values into your internal table, check for not initial.

IF NOT ITAB-FIELD IS INTIAL.

ENDIF.

Thanks,

SKJ

Former Member
0 Kudos
82

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
82

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

former_member181962
Active Contributor
0 Kudos
82

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

ferry_lianto
Active Contributor
0 Kudos
82

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

Former Member
0 Kudos
82

hi

load data to PSA first. u will come to know which field is empty.

regards

ravish

<b>plz reward if helpful</b>