on 06-15-2012 3:37 PM
Hi all,
I have a rather short but not easy to answer question. The basic scenario is simple: you have a file receiver adapter with File Construction Mode set to "Add Counter". However, when you add a module before the CallSapAdapter module (which will calculate the next value of the counter suffix), is there some way to access this counter value from within the module code?
The standard API has not helped me further, I doubt whether it's even possible.
Any information would be of great help. Thanks!
Best regards,
Aerv
Hi all,
I have decided to go with a number range object and wrapping GET_NUMBER_NEXT_V1 in an RFC and triggering this from a message mapping before reaching the adapter. This seems like the most standard way to handle this.
If you have other thoughts, feel free to contribute!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Accesing counter value(lookup) using module not a right design,check my below doc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Few cents. How about creating a database table and update the counter every time and use that new value to the file receiver? You can even handle via mapping UDF. Or if you want module then create a module that updates the counter every time using jdbc call and pass that value to the receiver adapter.
Just a thought... How you will be handling error or cancel messages w.r.t to counter values? Do you need to handle discrepancy during the cancel or system error messages?
User | Count |
---|---|
93 | |
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.