ABAP Plug in: Building SQL Query

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
nsm
Premium Member
Premium Member
Posts: 139
Joined: Mon Feb 09, 2004 8:58 am

ABAP Plug in: Building SQL Query

Post by nsm »

All,

I am using ABAP Plug in to download the data from SAP based on a selction criteria.

In my selection criteria what i have to do is compare part of the field and get the rest of the data, can somebody let me know how to do that?

ex:

Select Kna1-CusName where Left(kna1-CusNo,10)="9999999999"

Thanks
nsm.
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

As far as I know ABAP plugin supports only basic conditions like IN, LIKE, BETWEEN etc. I dont think Build Sql Query option has features like substring or left etc.

You need to manually edit the ABAP program generated by the plugin to include any extra logic required by you.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Try
LIKE '9999999999%'
PilotBaha
Premium Member
Premium Member
Posts: 202
Joined: Mon Jan 12, 2004 8:05 pm

Post by PilotBaha »

I 'd recommend highly against changing the ABAP query. Some time, or two consultants down the road that will get lost completely. On the other hand LIKE works just fine..
Earthbound misfit I..
Post Reply