on 03-13-2015 4:33 AM
Hi All,
We have a written a simple BADI code for populating one virtual key figure.
We are getting a short dump while trying to execute the query– “field symbol is not assigned”.
Also when we debug we are seeing that one field is getting populated with ‘*’ value, this is causing dumps for data type.
This field is a character field and is present in free characteristic in the query
What could be the reason for getting * value in all the rows for a characteristic?
Thanks in advance!
Regards,
Rathy
Hi Rathy,
The short dump is usually issued if you access in your coding a field-symbol which is not assigned. It is therefore a safe procedure to check if the field-symbol is assigned before accessing it.
To give a more to-the-point answer, please share more details and the coding.
Thanks,
Sander
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rathy,
We get this error when any Field Symbol is not assigned correctly and we try to give some value to that variable.
if your statement I feel the issue is with
assign component P_CHA_CUSTOMER of structure C_S_DATA to <fs_customer>.
here P_CHA_CUSTOMER should be the field name of internal table C_S_DATA.
Can you confirm if P_CHA_CUSTOMER is field name?
Also look in ST22 on which exact line the dump is coming.
thanks,
Puneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rathy,
Put this line below your code:
check sy-subrc = 0.
For example:
if P_CHA_CUSTOMER > 0.
assign component P_CHA_CUSTOMER of structure C_S_DATA to <fs_customer>.
check sy-subrc = 0.
endif.
Regards,
Loed
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 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.