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

Select-option values with Concatenate statement

Former Member
0 Likes
966

Hi,

I am using :-

Concatenate P_FNAME S_RBUKRS S_POPER into v_filepath

separated by '_'.

But I am getting this during testing ...

/sapbatch/TBQ/export/Logs_IEQ3060_IEQ001000

I want to get rid of IEQ from IEQ3060 and I want to get rid of IEQ & ending 3 zero's from IEQ001000.. how do I do that ??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

Hi,

Use LOW field of the select-options.

Concatenate P_FNAME S_RBUKRS<b>-LOW</b> S_POPER<b>-LOW</b> into v_filepath

separated by '_'.

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
641

Hi,

Use LOW field of the select-options.

Concatenate P_FNAME S_RBUKRS<b>-LOW</b> S_POPER<b>-LOW</b> into v_filepath

separated by '_'.

Thanks,

Naren

Read only

Former Member
0 Likes
640

Concatenate P_FNAME S_RBUKRS<b>-LOW</b> S_POPER<b>-LOW</b> into v_filepath separated by '_'

Use the LOW field of the SELECT OPTIONS as shown.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
640

Hello SB,

U need to give like this

LOOP AT S_RBUKRS.

READ TABLE S_POPER INDEX 1.

Concatenate P_FNAME <b>S_RBUKRS-LOW S_POPER-LOW</b> into v_filepath

separated by '_'.

ENDLOOP.

If useful reward,

Vasanth

Read only

Former Member
0 Likes
640

For select options you need to read it as an internal table

read table s_rbukrs index 1.

then use the field s_rbukrs-low to concatenate.

You may geet issues though if that start to enter ranges.

Read only

Former Member
0 Likes
640

HI,

follow below logic

Concatenate P_FNAME S_RBUKRS-low S_POPER-low+0(3) into v_filepath

separated by '_'.

Regards

amole