Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

If condition-- mapping

Former Member
0 Likes
329

Hi,

I want to print the company description using the following mappings :

0268 = x.

0278 = y.

2706 = z.

how can i do this with this select statements.

select bukrs docdat ntgew brgew anzpk nfnum from J_1BNFDOC

into corresponding fields of int_output where

DOCNUM = int_output-docnum.

here,

bukrs is company code.

Pls reply asap.

Stal.

1 REPLY 1
Read only

Former Member
0 Likes
290

After your select statement,

You can write the below select to get the company description.

select bukrs butxt

from t001

into table i_t001

for all entries in int_output

where bukrs = int_output-bukrs.

Once you get the values then you can loop and move the company code description to the final internal table...and you can do the further process.

Thanks,

Srinivas