cancel
Showing results for 
Search instead for 
Did you mean: 

Dump at stetement : ASSIGN cs_data->* TO <ls_data> in SAP Floorplan Manager

former_member231368
Participant
0 Kudos

Hello Folks,

I am working in SAP FPM (WDP/FPM). As suggested by I have declared the field symbol of type standard table. Still dump or run time error.

In my application, CS_DATA is dynamically changing the structure. Every time different structure is loading. cs_data is of type DATA.

My code:

    FIELD-SYMBOLS: <ls_data>       TYPE standard table,

  <ls_data_title> TYPE any,

<LFS_value> type any.

IF NOT cs_data IS INITIAL.

ASSIGN cs_data->* TO <ls_data>.

IF <ls_data> IS ASSIGNED.

ASSIGN COMPONENT 'TITLE' OF STRUCTURE <ls_data> TO <ls_data_title>.

IF <ls_data_title> IS ASSIGNED AND <ls_data_title> IS NOT INITIAL.

ASSIGN COMPONENT 'ZZEHSM_NEW_NR'  OF STRUCTURE <ls_data> TO <LFS_value>.

IF <LFS_value> IS ASSIGNED.

MOVE '2016-06-0001' to <LFS_value>.

ENDIF.

ENDIF.

UNASSIGN: <ls_data_title>, <LFS_value>.

ENDIF.

.


Dump is at statement: ASSIGN cs_data->* TO <ls_data>.

Can you please suggest.

Thanks,

Yerukala Setty


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Setty,

Declare    FIELD-SYMBOLS: <ls_data>   TYPE any,  not standard table.

Since cs_data is structure type not table type.

Try with type any, and check.

Still if you get same issue, please let me know.

Thank you.

Regards,

Shivaji.

former_member231368
Participant
0 Kudos

Hi Shivaji,

Thank you for your reply.

Firstly I have declared like any only. Later I have been modified to type standard table.

In debugging it is showing cs_data as deep structure. Since it is a deep structure we can't use just type any. Please suggest if I am wrong.

Thanks,

Yerukala Setty

Former Member
0 Kudos

Hi Setty,

Did you try with TYPE ANY.

If tried ,was it giving dump?

Please let me know.

Thank you.

Regards,

Shivajiraju.

former_member231368
Participant
0 Kudos

Hi Shivaji,

Firstly I have declared like that only. Then changed to standard table.

I have another issue: I am working on SAP EHSM Incident Management. In this,

I have created a custom field on FPM screen by adding field in data structure of BOPF(/BOBF/CONF_UI). If I enter value manually on to the field, it is updating in table. But if I pass default value based on certain conditions, then it is not updating.

Can you please help on this.

Thanks,

Yerukala Setty