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

Values not fetched

Former Member
0 Likes
707

  Hi,

When i given the task value in selection screen the description of the task need to be taken from the table hrs100

this is my code

IF NOT s_task[] is INITIAL.

     SELECT  stext

             FROM hrs1000

             INTO TABLE lt_hrs1000

             WHERE otype = lv_type AND

                   objid = lv_ojid and

                   langu = 'E'.

   ENDIF.


but values not fetched

4 REPLIES 4
Read only

sivaganesh_krishnan
Contributor
0 Likes
679

Hi,

before coding , please check the table for values.

Regards,

Sivaganesh

Read only

former_member201275
Active Contributor
0 Likes
679

Have you tried using 'EN' as suggested in the same question you have onw asked twice? i.e. LANGU = 'EN'.

Or try leaving the LANGU out of the SELECT statement and see if you get anything.

Do you have an abap person there that can help you quickly because this is very basic stuff i'm sure they can quickly solve for you?

Read only

Former Member
0 Likes
679

Hi,

look at the table -what entries are in it?

try to select without where-statement. add 1 where-statement by another to figure out what line causing the error. sometimes leading 0 or SPACE in the ID field can be the issue.

go to transacion SE16 and enter your conditions. if you find something you should find something via programm too. If not - watch the data convertions to internal format.

regards

Stefan Seeburger

Read only

bernat_loscos
Explorer
0 Likes
679

Hi,

You can try to use system variable for language: sy-langu.

WHERE otype = lv_type AND

               objid  = lv_ojid and

               langu = sy-langu.

Regards.