Skip to Content
author's profile photo Former Member
Former Member

Open SQL for ABAP and MS SQL equivalent code.

can somebody please give open sql for ABAP and MS SQL equivalent code for the following code snippet.

EXEC SQL.

SELECT *

INTO :zglhrmm_trans_v

FROM zglhrmm_trans_v

WHERE trans_num = :trans_num

AND UPPER(in_val_01) = :zinVAL01

ENDEXEC.

Points will be rewarded .

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 04, 2012 at 07:48 PM

    You have to have an internal table defined say IT_ZGLHRMM_TRANS

    DATA : IT_ZGLHRMM_TRANS TYPE zglhrmm_trans_v

    DATA lv_zinVAL01, lv_trans_num ......

    SELECT *

    FROM zglhrmm_trans_v

    INTO CORRESPONDING FIELDS OF TABLE IT_ZGLHRMM_TRANS

    WHERE

    trans_num = lv_trans_num

    AND UPPER(in_val_01) = lv_zinVAL01

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2012 at 07:06 AM

    Thanks Venkat. I appreciate your response. It helped me fix the code.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.