Skip to Content
author's profile photo Former Member
Former Member

Select Query fields

Hi,

I have a select query like this.

select vbakvbeln posnr vkorg vbakauart kunnr matnr edatu kdgrp

kvgr3 kvgr4 bsark

from ztsddelividx

inner join vbak on ztsddelividxvbeln = vbakvbeln

inner join tvak on vbakauart = tvakauart

into table rt_delividx

where spart_i = rp_spart and

edatu in ro_date and

vkorg in ro_vkorg and

werks in ro_werks and

matnr in ro_matnr and

ztsddelividx~auart in ro_auart and

kunnr in ro_kunnr and

stgak = c_stgak.

This select query is from a program in production and is working fine. But I want to know from which tables this select query is fetching the fields posnr vkorg kunnr matnr edatu kdgrp kvgr3 kvgr4 bsark .

I checked the Z table ztsddelividx. But to my surprise the fields vkorg kunnr kvgr3 kvgr4 bsark are not there in this Z table.

I want to know from which tables this select query is fetching the fields posnr vkorg kunnr matnr edatu kdgrp kvgr3 kvgr4 bsark .

Thanks in advance.

Brahma Reddy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 10, 2008 at 07:56 PM

    Go for a ST05 trace and check out the select statement that is being executed and built from ABAP open SQL. I hope you will get the solution. By the way, whats the SAP version you are using?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.