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

Report

Former Member
0 Likes
1,624

i have region (region-adrc) as op in my report,which shows op as 13 for Maharashtra but i need to show Maharashtra instead of 13, what should i do?

1 ACCEPTED SOLUTION
Read only

former_member491621
Contributor
0 Likes
1,577

Hi Pratik,

Just a small correction to what Kevin suggested.

You can get the value from table T005U. Table T005S does not contain the field BEZEI.

Hope this helps

12 REPLIES 12
Read only

Former Member
0 Likes
1,577

You need to read table T005S using the region.

Select BEZEI

from T005S

where LAND1 = 'IN'

and bland = '13'.

T005S-BEZEI = 'Maharashtra'.

Read only

Former Member
0 Likes
1,577

To find out the description of a code is usually straightforward. Check the table in SE11 - in this case ADRC. Go to the "Entry help/check'" tab. Find the field you wish to find the description for - in this case "REGION". Look at the search help or check table attached to that field - in this case the check table is T005S.

Read only

Former Member
0 Likes
1,577

Hi,

ADRC will not give you the description for the region.

What you could do is you could fetch the BEZEI field from the t0005s table where you can get the description.

if you still don't want to write a query then use

if adrc-bland = '13'.

description = 'MAHARASTRA'.

endif.

in the loop you make for final output.

Thanks,

Dinesh.

Read only

Former Member
0 Likes
1,577

Hi,

as all said you have to get the description from t005u table.

select * from t005u INTO TABLE it_t005u
FOR ALL ENTRIES IN  it_tab
where spras = 'EN' and land1 = 'IN'and bland = it_tab-region_number.

READ TABLE it_t005u into wa_t005u WITH key spras = 'EN' land1 = 'IN' bland = region_number.

Read only

former_member491621
Contributor
0 Likes
1,578

Hi Pratik,

Just a small correction to what Kevin suggested.

You can get the value from table T005U. Table T005S does not contain the field BEZEI.

Hope this helps

Read only

0 Likes
1,577

Thanks Aniket,

This helped... i wanted that correct table name which u suggested.

Read only

Former Member
0 Likes
1,577

Hi,

Read Table T005U.

Select BEZEI

from T005U

where LAND1 = 'IN'

and bland = '13'.

T005U-BEZEI = 'Maharashtra'.

Regards,

Ravi Pratap Singh

Read only

former_member209120
Active Contributor
0 Likes
1,577

Hi Pratik Ranadive,

Try like this

Select BEZEI

             from T005S

             into table it_T005S

             for all entries in it_adrc

             where LAND1 = 'IN'

             and      BLAND = it_adrc-REGION.

Read only

Former Member
0 Likes
1,577

Hi Pratik ,

Goto below code.

data: var1 type BEZEI20.

Select BEZEI from T005U into var1

where SPRAS = SY-LANGU

AND    LAND1 = 'IN'   " COUNTRY CODE

AND    BLAND = '13' . " REGION CODE.

Regards

Alok

Read only

venkateswaran_k
Active Contributor
0 Likes
1,577

Dear Pratik

Is this issue resolved? 

Regards

Venkat

Read only

0 Likes
1,577

Dear Venkat,

Yes the issue is resolved completely.

Thanks all for the help.

Read only

Former Member
0 Likes
1,577

Hi,

     can you show your source code ?