Search found 4 matches

by Abraxas
Thu Feb 13, 2014 10:26 am
Forum: ABAP
Topic: SQL command as string
Replies: 3
Views: 1766

SQL command as string

Hello everybody! I´m wondering if there´s a way to store/generate an SQL command in a string variable and execute it like: SELECT (sql_string) INTO CORRESPONDING FIELDS OF wa. ... ENDSELECT. What, if the SQL command looks something like this? SELECT DISTINCT t005t~landx AS val sflconn~countryto AS k...
by Abraxas
Wed Feb 12, 2014 10:49 am
Forum: ABAP
Topic: Fetching field names from work area
Replies: 5
Views: 1559

Re: Fetching field names from work area

Just found out the same - anyway thanks a lot for your help!
by Abraxas
Wed Feb 12, 2014 10:32 am
Forum: ABAP
Topic: Fetching field names from work area
Replies: 5
Views: 1559

Re: Fetching field names from work area

Thanks for your answer! I tried the following code and got an exeption ( Field symbol has not yet been assigned ): TYPES: BEGIN OF wa_type, key TYPE string, text TYPE string, END OF wa_type. DATA: wa TYPE wa_type. SELECT key_abc AS key text_abc AS text INTO CORRESPONDING FIELDS OF wa FROM (select_ta...
by Abraxas
Wed Feb 12, 2014 7:30 am
Forum: ABAP
Topic: Fetching field names from work area
Replies: 5
Views: 1559

Fetching field names from work area

Hi everybody! What I´m trying to do is fetching the fields within a work area dynamically, that is, without knowing the field names. The following code is taken from a subroutine and may illustrate what I mean: DATA: list TYPE vrm_values, value LIKE LINE OF list. SELECT (select_field) INTO CORRESPON...