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: 

Interface Error Handling

Former Member
0 Kudos

Hi Experts,

I am doing an Interface, Journal Upload for Transaction FB01 (F-65).

I have to check the following ERROR Handlings.

1. How can I find out a profit Centres is blocked for posting?

2. How can I find out a GL Accounts are blocked for posting?

3. Incorrect VAT code is allocated.

Please explain me clearly.

Thanks & Regards

Rajendra

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

what is the method you are using.

are you using BAPI.

Regards

vijay

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

Hi,

what is the method you are using.

are you using BAPI.

Regards

vijay

0 Kudos

Hi Vijay,

I am using BDC, Call Transaction Method.

Regards

Rajendra

0 Kudos

hi,

all of the above listed are standard checks.so you can capture them in the following way.

then you can get the messages using the option messages.

data: it_msg type BDCMSGCOLL

call transaction TCODE .. messages into IT_MSG.

here you get the messages and after upload show the log.

Regards

vijay

0 Kudos

Hi rajendra,

if you are using bdc, for uploading data, then the transaction itself will take care of raising the errors in case of erroneous data.

If you are able to get that eror message when you are doing the Fb01 transaction manually, the bdc will also result in the same error messages.

You hace to use an internal table of type bdcmsgcoll to collect such messages.

call transaction 'FB01' using it_bdcdata options from xctuparams messages into it_bdcmsgcoll.

loop at it_bdcmsgcoll.

call function 'FORMAT_MESSAGE'

exporting.

.

..

importing

message = lv_message.

write:/ lv_message.

endloop.

0 Kudos

Thanks Vijay,

Actually I did that..

My Functional consultant mentioned it Strongly. That’s way I confused about that. I thought is there is any other way to find it, Are I have to check any other way to find above Errors.

Regards

Rajendra

0 Kudos

No, you did correctly.if you want to do some manual checks then you can do it at the beginning , before sending it to BDC table itself do that validations.

generally these are validations against check tables , etc.

Regards

vijay