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

SELECT STATEMENT (Correct answers will be given full points.)

HI Gurus

I am new abap help me with the select statement for these please

Get BKPF-AWKEY where BKPF-BELNR = VBRK-VBELN + prefix “00”.

this is the reference number for printing in script(SD)

i need to write in the text elements

Get KNA1- STCEG where VBRK-KUNRG = KNA1-KUNNR This is the GST REG

how to write in the text elements.

Correct answers will be given full points.

thanks & regards

sirish.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 04, 2007 at 04:49 AM

    Hi sirish,

    First of all to add the prefix to vbrk-vbeln u can write the syntax like this-

    CONCATENATE '00' VBRK-VBELN INTO VBRK-VBELN.

    if 00 is suffix then write like this--

    CONCATENATE VBRK-VBELN '00' INTO VBRK-VBELN.

    Now u can write ur first select query like this-

    SELECT awkey FROM bkpf

    WHERE belnr = vbrk-vbeln.

    Syntax for second select query-

    SELECT stceg FROM kna1

    WHERE kunnr = vbrk-kunrg.

    Reward if useful.

    Regards,

    Rajesh Akarte

    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.