![]() |
|
||||||
Select statements
select * from mara
where spart = 'PA'
and not ( zatacd = space )
order by matnr.
Gets information from Confirmed schedule file (EKES) Illustrates the usage of group by:
select ebeln eindt vbeln
into (po_ebeln, po_eindt, po_vbeln)
from ekes
where ebeln = wa_vbfa-vbeln
group by ebeln eindt vbeln.
Joining the vendor files (LFA1 and LFB1)
This outputs the fields into a table named TAB
select a1~sortl a1~name1 a1~name2
Joining VBAP and VBUP This produces a list of open line items loop at itab_vbak. select vbap~vbeln vbap~posnr vbap~matnr vbap~kwmeng vbap~werks vbap~arktx into bolines from vbap join vbup on ( vbap~vbeln = vbup~vbeln and vbap~posnr = vbup~posnr ) where vbap~vbeln = itab_vbak-vbeln and lfsta = 'C'. endselect.Table ITAB_VBAK contains a list of open orders. |
|||||||
[Perl help] [ABAP help] [MySQL help] [TCP/IP troubleshooting] [HTML help] [Feedback] [Humor] Advertise on Golden Ink's Georgia Network
|
|||||||