cancel
Showing results for 
Search instead for 
Did you mean: 

BODS: Restrict rows in SAP ECC datasource

LeeFung
Participant
0 Kudos

I am pulling data from an SAP ECC table.  How can I restrict the # of rows in the source, like using an SQL query to restrict rows in an RDBMS datasource? Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member198401
Active Contributor
0 Kudos

Whats your Source Database

You can try the following where clause of a Query transform


Oracle: pushdown_sql('<datastore name>','ROWNUM <= 100')


Not sure about SQL Server. But there must be some way out



Regards

Arun Sasi

former_member198401
Active Contributor
0 Kudos

Oops I didnt see that your Source is ECC.

Pushdown_sql() doesnt work with SAP Applications datastore(SAP ECC, SAP CRM etc)

Pushdown_SQL

Regards

Arun Sasi

Answers (1)

Answers (1)

former_member187605
Active Contributor
0 Kudos

If the exact number of records is not important add a condition like  PK_Column <= <some profiled value> to the where-clause.

If you really want an exact number of records in the output, you can add a 2nd query transform with a where-clause: gen_row_num() <= 1000