on 08-08-2007 10:50 AM
Hi Experts,
I'm writing a Transfer Routine for one of my InfoObject calles ZCRM_ESCLT. When I debug my routine, the routine gives the correct result but I when check in the data target,the field is empty,meaning that the routine does not store the result. Here is my code.Please help.
Data: zusername(20) TYPE c.
CLEAR result.
SELECT SINGLE /bic/zcrm_unam INTO zusername
FROM /bic/azsrvhist00
WHERE /bic/zoguid = tran_structure-guid
AND /bic/zobj_id = tran_structure-object_id.
IF zusername = tran_structure-usnam.
result ='1'.
ENDIF.
returncode = 0.
Full points will be rewarded if the problem is solved.
Thanks and Regards,
Azimah
Hi Azimah,
What kind of data field are you updating in the ODS? A key figure or a characteristic? I guess this is a key figure as the target value is 1. But please confirm.
Now, what is the update method of the key figure? Addition or overwrite? Because if this is overwrite, then depending on the business key of the ODS (surely not guid and object_id), the same figure may swap from 1 to 0 from a row to another row, for the same key fields and so the previous 1 is overwritten by 0 .
Please check,
Laurent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Azimah
I am assuming this code is the routine you have in the update rule. Can you check if your code has the following statement as the last statement before ENDFORM.
ABORT = 0.
If ABORT is not equal to 0, then the update process will be canceled.
Thanks
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Check the update rules and see if the field value is being cleared there.
2) When you debug, check the box to debug update rules also. Then verify if the value is still set in update rules.
3) Is your data target an InfoObject? If yes, have you run the attribute change run?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if ur data target is an ODS, check after activating..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.