on 02-23-2006 10:42 PM
HI,
Has anyone used UpdateRecordsBySearch() to update multiple records in MDM table? I modified the code from the API lib manual but got run time error. In my code, I replaced "Product" table with "Employees". I have used a program to
test same freeform search using the same parameters "ALLEN" and returned correct results.
The followin are the code:
Search search = new Search("Employees");
SearchParameters params = search.GetParameters();
FreeFormTableParameter fftParam =
params.NewFreeFormTableParameter("Employees");
FreeFormParameterField ffParamField =
fftParam.GetFields().New("Last Name");
ffParamField.GetValues().NewString("ALLEN", FreeFormParameter.EqualToSearchType);
A2iFields fields = new A2iFields();
fields.Add(new A2iField("Last Name", new Value("ALLN")));
A2iIntArray ids = catalog.UpdateRecordsBySearch(search, fields);
Error message:
a2i.core.StringException: Error updating records
at a2i.common.CatalogData.UpdateRecordsBySearch(Unknown Source)
at MDMConnect.MySearch.updateMultiple(MySearch.java:275)
at MDMConnect.MySearch.run(MySearch.java:43)
at MDMConnect.MySearch.main(MySearch.java:32)
Free form search Result:
Logged into MDM server from MDMConnect.
Enter last name: ALLEN
Number of records found: 2
Personnel Number Last Name First Name Date of Birth
00010129 ALLEN NORINE 1934/09/27 00:00:00
00010364 ALLEN PAUL 1931/06/17 00:00:00
Thank you in advance.
YW
Hi,
the described behaviour is confirmed to be a bug, which is planned to be corrected with the next patch after MDM 5.5 SP03 P2.
Kind regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dirk,
all bugs, at least all that are detected based on a customer reporting a problem via OSS, should be available as a SAP Note.
Regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.