Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding Select Statement

Hi Experts,

I have two feilds where these two feilds will be populated in runtime of my program

let the two feilds be BUKRS1 and BUKRS2 .I want to retrive the company codes in between these two and including those also. How do i write the select condition.

[I need the values in between BUKRS1 and BUKRS2 and including thoso also.]

Former Member
Former Member replied

set up a range.

ranges: r_bukrs for vbrk-bukrs.

r_bukrs-option = 'BT'.

r_bukrs-sign = 'I'.

r_bukrs-low = bukrs1.

r_bukrs-high = bukrs2.

append r_bukrs

then use this range on the select statement.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question