on 09-13-2007 2:17 PM
Hello all together,
I have fileadapter with certain content. I want to ensure that the data in this file are processed exactly once. The argument for checking this is i.e. an invoiceNo. in the file.
What would you propose is the easiest way to come to this!
I thought of doing it by using a JDBCLookup in an external Database or with an RFCLookup in SAP Z-Table.
Could you please advise me?
TIA
Volker
As per my underst u want to have a unique invoiceNo before u send it to the receiver. Please correct me if i m wrong.
In that case, if the invoiceNo is a unique key in any database table, and u have a direct access, then JDBC lookup is a good option.
Go for RFC lookup if that database is SAP database
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There r certain scenarios where a frequent call to database using lookups hamper the overall performance of the scenarios. Or it may not capture all the clients requirement.
At that time another option is to go for making a sync call to JDBC and use BPM for the message persistance.
Regards,
Prateek
Hi Volker,
Can you please explain your scenario a little bit more regarding the validation for unique records.
Cheer's
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course.
I get orders in flat files. One field contains a unique number.
The orders are mapped to a RFC-function that writes the orders to a Z-table.
I have to ensure that one order is exactly processed one time. It is possible that the filename changes, but the unique number should be really unique.
So I think I have to check this while the order is mapped.
Hope this helps you to help me.
Volker
Hi,
The simple method is to add a check if the RFC function that is being called anyway.
ie. read Z table with invoice number to see if already processed and exit processing if it has.
This will not have any overhead doing this method instead of a JDBC lookup.
Try it and see - it will only be one line of code to add.
If you are calling a SAP standard module you will need to create a wrapper function with the lines to check the Z table and the call of the standard function.
Cheers
Colin.
What i am failing to understand is if you already have a unique number in the file for each order and thats what you are inserting into the database then why you need to check it using a lookup OR is it that the same order can be repeated in the same or other files and you want to avoide the processing of these duplicate orders.
yes, you are right, normally I should be able to use this unique number, but there are some cases, where this unique number is not used in our system. In our system another unique number is created. It sounds strange, but the unique number is not the reference number of our customer. But I should think about using the customers reference number for unique-check.
Volker
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.