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

sql query

Former Member
0 Likes
591

Hi,

I need to join two table, one itab and other database table with single field selection. its about FI table BSEG.And also be able to choose the entry from itab based on there company codes.

eg: structure for itab : product code,bsc market,nsc market.

along with the above query it should also select if BUKRS = 4000 then Nsc or Bsc. please tell me.

Hi,

I need to join two table, one itab and other database table with single field selection. its about FI table BSEG.And also be able to choose the entry from itab based on there company codes.

eg: structure for itab : product code,bsc market,nsc market.

along with the above query it should also select if BUKRS = 4000 then Nsc or Bsc. please tell me.

3 REPLIES 3
Read only

Former Member
0 Likes
546

Hi,

Use the following tables instead of querying BSEG depends on your requirment,

Vendor info : BSIK ,BSAK

Customer info : BSID, BSAD

G/L account : BSIS, BSAS

Hope this helps,

Rgds,

Read only

andreas_mann3
Active Contributor
0 Likes
546

hi,

i don't get your problem exactly.

try to select tables bsik,bsid,bsis

or bsak,bsad,bsas insted of bseg.

or try to use a logical database (DDF,KDF or SDF)

A.

Message was edited by: Andreas Mann

Read only

Former Member
0 Likes
546

thanks for ur prompt help at the right time.