2009 Mar 18 10:58 AM
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.
2009 Mar 18 11:01 AM
2009 Mar 18 11:01 AM
2009 Mar 18 11:02 AM
2009 Mar 18 11:02 AM
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
2009 Mar 18 11:02 AM
hi,
Declare 'taplp' with header line
or
loop at taplp into wa.
write: wa-appl,wa-ATEXT.
endloop.
2009 Mar 18 11:03 AM
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
2009 Mar 18 11:03 AM
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?
2009 Mar 18 11:05 AM
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к
2009 Mar 18 11:05 AM
table:taplp.
CLEAR : taplp.
SELECT SINGLE *
FROM taplp.
write: taplp-appl,taplp-ATEXT.
2009 Mar 18 11:06 AM
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
2009 Mar 18 11:07 AM
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
2009 Mar 18 11:09 AM
have used another table TAPLT & yes table TAPLP also have ATEXT please see.