Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fieldsymbol problem

Former Member
0 Likes
570

CALL FUNCTION 'BBP_MESSAGE_CREATE'

EXPORTING

i_msgty = 'W'

i_msgid = 'ZYTR'

i_msgno = '037'

i_msgv1 = v_msgv1

i_msgv2 = v_msgv2

i_msgv3 = v_msgv3

IMPORTING

e_messages = ls_message2.

ls_message-message = ls_message2-message.

ls_message-msgty = 'W'.

ls_message-msgid = 'ZYTR'.

ls_message-msgno = '037'.

ls_message-msgv1 = 'with Date:'. "v_number.

ls_message-msgv2 = v_todate.

ls_message-msgv3 = v_factcal.

-


> APPEND ls_message TO <lv_fs_gs_sc>-messages.

ENDIF.

This line which states the arrow cause a dump with the error:

Fieldsymbol has not been assigned yet.

What is here not coreectly ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
544

Hi,

Assign Field-symbol.

Tks,

Krishna

4 REPLIES 4
Read only

Former Member
0 Likes
544

you have that in your message

Fieldsymbol has not been assigned yet.

Read only

Former Member
0 Likes
544

I think you should:

ASSIGN ls_message TO <lv_fs_gs_sc>

Regards,

Ali

Read only

0 Likes
544

Ali thank you very much but the problem is they are different types.Is there a workaround

or a solution in this case ?

data ls_message TYPE bbps_sc_app_messages.

FIELD-SYMBOLS: <lv_fs_gs_sc> TYPE bbps_sc_app_document.

Regards

sas

Read only

Former Member
0 Likes
545

Hi,

Assign Field-symbol.

Tks,

Krishna