cancel
Showing results for 
Search instead for 
Did you mean: 

SAP BW Virtual Key Figure

rathy_moorthy2
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

sander_vanwilligen
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Loed
Active Contributor
0 Kudos

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