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

select query ?

Former Member
0 Likes
1,599

I wish to select the text from this table ATEXT but my query is not working please guide.

table:taplp.

CLEAR : taplp.

SELECT SINGLE *

FROM taplp

WHERE appl = wa_zprohdr-appl.

write: taplp-appl,taplp-ATEXT.

12 REPLIES 12
Read only

Former Member
0 Likes
1,514

Check your select query properly

Read only

Former Member
0 Likes
1,514

table taplp

does not have ATEXT field but have KTEXT

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,514

Do you have an entry in the table with wa_zprohdr-appl.???

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
1,514

Hi,

>

> I wish to select the text from this table ATEXT but my query is not working please guide.

>

> table:taplp.

>

> CLEAR : taplp.

> SELECT SINGLE *

> FROM taplp

> WHERE appl = wa_zprohdr-appl.

>

>

>

> write: taplp-appl,taplp-ATEXT.

Make sure that the parameter wa_zprohdr-appl has a valid value.

Also check the data in database table for the passing value entry.

Hope this helps you.

Regards,

Tarun

Read only

awin_prabhu
Active Contributor
0 Likes
1,514

hi,

Declare 'taplp' with header line

or

loop at taplp into wa.

write: wa-appl,wa-ATEXT.

endloop.

Read only

sarbajitm
Contributor
0 Likes
1,514

table:taplp.

CLEAR : taplp.

SELECT SINGLE *

FROM taplp

WHERE appl = wa_zprohdr-appl.

write: taplp-appl,taplp- KTEXT.

Notice the change.

Regards

Edited by: Sarbajit Majumdar on Mar 18, 2009 4:33 PM

Read only

matteo_montalto
Contributor
0 Likes
1,514

please provide some more info. E.g., what's the sy-subrc code after that select? are you sure that wa_zprohdr-appl has a proper value @ runtime?

Read only

Former Member
0 Likes
1,514

dont use tables it is obsolete.

use as

data: it_taplp type of taplp.


SELECT SINGLE *
FROM taplp
into taplp
WHERE appl = wa_zprohdr-appl.

кu03B1ятu03B9к

Read only

Former Member
0 Likes
1,514

table:taplp.

CLEAR : taplp.

SELECT SINGLE *

FROM taplp.

write: taplp-appl,taplp-ATEXT.

Read only

former_member222860
Active Contributor
0 Likes
1,514

Check

tables:taplp.

SELECT SINGLE appl atext 
into (taplp-appl, taplp-atext)
FROM taplp
WHERE appl = wa_zprohdr-appl.


write: taplp-appl,taplp-atext.

Edited by: Mahesh Reddy on Mar 18, 2009 12:06 PM

Read only

Former Member
0 Likes
1,514

The field name is not ATEXT its KTEXT.

table:taplp.

CLEAR : taplp.
SELECT SINGLE *
FROM taplp
" into <workarea> missing
WHERE appl = wa_zprohdr-appl.

thanks

sarves

Read only

Former Member
0 Likes
1,514

have used another table TAPLT & yes table TAPLP also have ATEXT please see.