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

Not able to create View Based Generic data source as Base Table field referring other Tables field (Currency/Quantity)

0 Likes
1,888

Hi SAP Gurus,

I am trying to create a Data source on a View (single database table - RESB) but some of the fields of the table RESB are reference to other tables field likewise RESB field ROANZ is referring to RC29P table's field ROAME.

I have created View with only one table i.e. RESB. But as these some of the fields (Referring fields) are not available in Base table RESB, I am not able to create generic data source over this view. I am getting error as below:

If anyone has got such issue please guide further and provide solution for the same.

Thanks in advance.

Best Regards,

Demish Maniyar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,658

Create a view on RESB and RC29P tables and include ROAME field of data type ROAME from RC29P table in that view.

OR

Append structure in RESB table and add field ROAME of data type ROAME in it, then change the reference table as RESB for ROANZ field.

6 REPLIES 6
Read only

Former Member
0 Likes
1,659

Create a view on RESB and RC29P tables and include ROAME field of data type ROAME from RC29P table in that view.

OR

Append structure in RESB table and add field ROAME of data type ROAME in it, then change the reference table as RESB for ROANZ field.

Read only

0 Likes
1,658

If the Table RC29P is included in View I will need a join condition between both the tables. But there are no common fields for the Join in both the tables.

Regarding enhancing the table, we are unable to enhance the database table due to security reasons.

Read only

0 Likes
1,658

Try to append it in Extract structure created for generic datasource. Check if it solves your issue.

Read only

0 Likes
1,658

Vishal,

After Appending I need to populate those fields through FM. can you please guide how can i do that?

Read only

0 Likes
1,658

Are you creating datasource using Function module or Table/View.

Read only

0 Likes
1,658

Hi Vishal,

I created an append structure in Extract structure and added those required fields in View. This resolved the error and data source is consistent now.

Thanks for the help..!!!

Regards,

Demish