on 07-01-2016 4:11 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.