08-14-2006 12:20 PM
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
08-14-2006 12:32 PM
Hi,
what is the method you are using.
are you using BAPI.
Regards
vijay
08-14-2006 12:32 PM
Hi,
what is the method you are using.
are you using BAPI.
Regards
vijay
08-14-2006 12:50 PM
08-14-2006 12:54 PM
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
08-14-2006 12:57 PM
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.
08-14-2006 1:10 PM
Thanks Vijay,
Actually I did that..
My Functional consultant mentioned it Strongly. Thats 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
08-14-2006 1:18 PM
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