Skip to Content
-2

Alternative for / Problems with: "For all entries in data_package"

Hi Guys

I am doing something in ABAP like:

OPEN CURSOR WITH HOLD c1
FOR SELECT (COL_STR)
FROM (JOIN_STR)
UP TO ROWCOUNT ROWS
FOR ALL ENTRIES IN ZEDITPOSTMP
WHERE (WHERESTR).

Here in WHERESTR i am passing link: client eq ZEDITPOSTMP-TABKEY+000000(3) date eq ZEDITPOSTMP-TABKEY+000003(8).

TABKEY: 80000010101.

But here in ZEDITPOSTMP-TABKEY+000003(8) is returning value like 00010101 which is without single quote ' so if we compare it with date it expect that value enclosed between this ' quote. If i manually append this quote like 'ZEDITPOSTMP-TABKEY+000003(8)' then now this is just like a string so won't be processed like a function. I want this ZEDITPOSTMP-TABKEY+000003(8) function should process first and whatever o/p it return that should be enclosed b/w ' ' this quotes.

Any reply will be a great help on this.

Thank's

ompal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 09 at 01:28 PM

    You have to generate exactly the same syntax in WHERESTR as you would type it in the ABAP Editor.

    Add comment
    10|10000 characters needed characters exceeded