on 07-29-2005 7:55 PM
Hai,
I have a start routine for an ODS. The data comes from R/3 to this ODS and there is a filter thats supposed to delete records that doesnot meet the given conditions.For instance if I load 20, if 5 of them donot meet the conditions given only 15 comein. But the problem is when loading data to the ODS, all the records are getting deleted. I checked some records that are good and meeting conditions, but are still getting deleted. I have been to start routine and deleted the code and now all the data is getting loaded. WHen I insert the code again, all the records are getting deleted.
Can somebody please tell me how to fix my start routine.
Hi Visu,
Can we please see your routine...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the routine. The same code is working in development system but not in quality. Starnge!!!
Here is the code:
LOOP AT DATA_PACKAGE.
IF ( DATA_PACKAGE-COMP_CODE = '2101' OR
DATA_PACKAGE-COMP_CODE = '2204' ) AND
( DATA_PACKAGE-AC_DOC_TYP = 'DZ' OR
DATA_PACKAGE-AC_DOC_TYP = 'ZD' OR
DATA_PACKAGE-AC_DOC_TYP = 'RV' OR
DATA_PACKAGE-AC_DOC_TYP = 'AB' ) AND
( DATA_PACKAGE-COUNTRY = 'US' OR
DATA_PACKAGE-COUNTRY = 'USA' ) AND
( DATA_PACKAGE-DOC_CURRCY = 'USD') AND
DATA_PACKAGE-DEBIT_LC > 0 AND
( DATA_PACKAGE-/BIC/ZAR_IND = '01' OR
DATA_PACKAGE-/BIC/ZAR_IND = '02' ).
clear: ZRC_ACCOUNT.
Check if customer is an external customer. Reconciliation account
*30110000 indicates this.
select single RC_ACCOUNT into ZRC_ACCOUNT
from /BI0/MCUST_COMPC
where comp_code = DATA_PACKAGE-COMP_CODE and
cust_compc = DATA_PACKAGE-DEBITOR
AND OBJVERS = 'A'.
if ( ZRC_ACCOUNT <> '0030110000' ).
delete DATA_PACKAGE.
endif.
Thanks.
Hi Visu,
Do check what Bhanu has suggested..If you still encounter the problem..
Since you mentioned the code works in the other system, I would suggest that try debugging the update rules..
You will be able to do this if you loaded thru PSA.
Hope you know how to debug update rules..
Hope this helps..
Ashish..
Hi Visu,
Could you teel us the condition you are trying to validate or a piece of the code would be helpful..
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.