‎2006 Sep 11 10:53 PM
Hi All,
Can you please tell me, If i want to use a DATABASE VIEW (VBAP-VAPMA) in a program, Do I have to declare in 'TABLES:' work area?
Thanks in advance.
‎2006 Sep 11 10:57 PM
If you use the work area VBAP_VAPMA, or use the fields in select options, you need to declare TABLES VBAP_VAPMA, else you don't need to declare.
REgards
Sridhar
‎2006 Sep 11 10:57 PM
If you use the work area VBAP_VAPMA, or use the fields in select options, you need to declare TABLES VBAP_VAPMA, else you don't need to declare.
REgards
Sridhar
‎2006 Sep 11 11:08 PM
Sridhar,
Thanks for the response.
The piece of code in which i'm using this view is:
<b> select bstnk
vbeln
kunnr
into table i_cust
from vbap_vapma
where vbap_vapma~matnr = p_matnr
and vbap_vapma~charg = p_charg.</b>
plz let me know I hve to declare for this.
Thnx.
‎2006 Sep 11 11:14 PM
you don't need to declate TABLES statement, and you can change the where condion like this:
where matnr = p_matnr
and charg = p_charg.
Regards
Sridhar
‎2006 Sep 11 11:17 PM
Hi Dev,
I would suggest to go through the link once,
http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ed06446011d189700000e8322d00/content.htm
Regards,
Azaz Ali.
‎2006 Sep 11 11:35 PM