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

alv error

Former Member
0 Likes
827

Hi exports,

it is going dump please help me an find the attached code.

run time Errors         GETWA_NOT_ASSIGNED

BAP Program           SAPLSLVC

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
789

Hi,

Change the following in your code

     ts_fieldcat-col_pos   =   0 .
   ts_fieldcat-fieldname = 'F_LIFNR'. "Change the field name LIFNR to F_LIFNR
   ts_fieldcat-seltext_l = 'Vendor'.
*  ts_fieldcat-outputlen = 10.
   APPEND ts_fieldcat TO ta_fieldcat.
   CLEAR : ts_fieldcat.



Like this change the all fields names in fieldcatlog mentioned in ty_final.

And also check the ts_fieldcat-seltext_l in fieldcatlog there is duplicate column names.


Regards,

Chandu

5 REPLIES 5
Read only

Former Member
0 Likes
789

Hello Praveen,

Please attach a screeshot of the dump showing the place in ABAP code.

I t may be linked to your field catalog definition (field name error ? or other error...), have you deactivated most of fields and added them one by one testing between each change.

Regards

Read only

Former Member
0 Likes
790

Hi,

Change the following in your code

     ts_fieldcat-col_pos   =   0 .
   ts_fieldcat-fieldname = 'F_LIFNR'. "Change the field name LIFNR to F_LIFNR
   ts_fieldcat-seltext_l = 'Vendor'.
*  ts_fieldcat-outputlen = 10.
   APPEND ts_fieldcat TO ta_fieldcat.
   CLEAR : ts_fieldcat.



Like this change the all fields names in fieldcatlog mentioned in ty_final.

And also check the ts_fieldcat-seltext_l in fieldcatlog there is duplicate column names.


Regards,

Chandu

Read only

PallaviU
Participant
0 Likes
789

Hi Praveen,

After read statement check if field symbol is assigned instead of sy-subrc.In the code if ta_lfm1 table does not contain any data then <fs_lfm1> is not assigned and you are checking read ta_t024e  table with the value which is not assigned. End your f statement after completion of usage of that variable.

Hope this solves your problem.

Regards

Pallavi

Read only

Former Member
0 Likes
789

hi exports,

Thank you for your quick response it is working when i change below

ts_fieldcat-fieldname = 'F_LIFNR'. "Change the field name LIFNR to F_LIFNR



Regards,

praveen.

Read only

Former Member
0 Likes
789

Hi Praveen,

the field catalog in alv is missing the field tabname field.

Please added to field catalog with this statement : ts_fieldcat-tabname = 'ta_final'.

ex:

  ts_fieldcat-col_pos   =    .

  ts_fieldcat-fieldname = '  '.

  ts_fieldcat-seltext_l = '    '.

  ts_fieldcat-tabname = 'ta_final'.

  APPEND ts_fieldcat TO ta_fieldcat.

  CLEAR : ts_fieldcat.

Thanks & Regards,

K.Manoj.