on 12-23-2014 6:47 PM
We are on BPC10.0NWSP10
I am loading master data attributes from BW InfoObject and have written a start routine in the BADI UJD_ROUTINE as suggested by the HTG on this topic to filter certain values.
When I include the line STARTROUTINE = ZUJ_START_ROUTINE_EX_IMP under the *OPTIONS, upon "Validate & Process Transformation File" with the BW InfoObject MD, I am getting the following error:
[Start validating transformation file] | |
Validating transformation file format | |
Validating options... | |
Validation of options was successful. | |
Validating mappings... | |
Validation of mappings was successful. | |
Validating conversions... | |
Validation of the conversion was successful | |
Creating the transformation xml file. Please wait... | |
Transformation xml file has been saved successfully. | |
Begin validate transformation file with data file... | |
[Start test transformation file] | |
Validate has successfully completed | |
Validation with data file failed |
My transformation file looks like as follows:
*OPTIONS | |
FORMAT = DELIMITED | |
HEADER = YES | |
DELIMITER = TAB | |
AMOUNTDECIMALPOINT = . | |
SKIP = | |
SKIPIF = | |
VALIDATERECORDS=YES | |
CREDITPOSITIVE=YES | |
MAXREJECTCOUNT= | |
ROUNDAMOUNT= | |
STARTROUTINE = ZUJ_START_ROUTINE_EX_IMP |
Not sure what might be causing this error.
If I remove the last line (STARTROUTINE = ZUJ_START_ROUTINE_EX_IMP) the transformation file validates and processes successfully and MD loads, albeit incorrectly(since it does not call STARTROUTINE to do what we have implemented in the BADI).
Any thoughts?
Thanks.
Hi Coomar,
Try run the package, and see any short dumps in ST22.
You don't have to validate with real data to save the transformation file.
Or just debug and step through your code if no short dumps from the BADI.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you've written a BADI you probably know how to debug it.
First of all, why do you need a BADI for filtering? There is a UI package that provides a wide range of filtering options.
Second, if your filtering rules are so complex that only BADI can handle them, why START BADI and not END BADI? In START BADI data comes in delimited format and you have to parse it to get to individual element. In END BADI data is already parsed and each element is in a certain field of internal table.
If you still want to have that START BADI just put a break-point at the end and check what data you returning in the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Around 4 years back a new DM Package was delivered based on Process Chain /CPMB/IMPORT_IOBJ_MASTER. Not sure it's already in standard documentation.
It was one of the first Packages with a lot of selection options and it had "User Interface" (UI) in the name. If you don't have it, you can easily create it based on mentioned above Process Chain.
The DM package I am using is for Attributes and Text only (/CPMB/IMPORT_IOBJ_MASTER) but the filtering options are fairly limited ( with operators '=' or 'BT' only) that don't work for me.
I do not see any other UI package that does the same with expanded filtering option. If you can recall - do let me know. Thanks.
Hi Coomar,
Then the error is in the badi code...
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.