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

HOW TO USE FUNCTION MODULE IN ALV

Former Member
0 Likes
1,028

hi guyz

I developed an alv report using join statements .But i got all that fields in a function module. so how can i use function module in alv .

if i got a function module with all the fileds do i need to use select statement.

plz help me.

thanks

sudheer

hi guyz

I developed an alv report using join statements .But i got all that fields in a function module. so how can i use function module in alv .

if i got a function module with all the fileds do i need to use select statement.

plz help me.

thanks

sudheer

9 REPLIES 9
Read only

Former Member
0 Likes
993

Hi,

Please explain your requirement in detail..

Thanks,

Naren

Read only

0 Likes
993

Hi mate,

actually i need to pass tracking number frm the function module which is generated to alv report how iz it possible?

thanks

sudheer

Read only

Former Member
0 Likes
993

Hi,

Modify the output internal table (let's say ITAB) that is used for displaying the ALV with the tracking number..

Ex..

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

....

....

TABLES

<b>T_OUTTAB = ITAB_OUTPUT</b>

Thanks,

Naren

Read only

0 Likes
993

The function module to get the tracking number as follows:

Z_BAPI_CS_SHIP_A_PACKAGE

how can i use it alv

plz explain

thanks

sudheer

Read only

0 Likes
993

The function module to get the tracking number as follows:

Z_BAPI_CS_SHIP_A_PACKAGE

how can i use it in alv

plz explain

thanks

sudheer

Read only

Former Member
0 Likes
993

Hi,

Please check if this is your requirement..

Are you using the FM REUSE_ALV_LIST_DISPLAY to display the records in ALV..

And you want to include the tracking number in the output??which will be a new column..

Or is it an existing column that you modify the column with the value from the Z function module..

Please post the code of your program..

THanks,

Naren

Read only

0 Likes
993

yep , it iz an existing column wanna modify the column with value frm the zfunction module and also

how can u make date from yyyy.mm.dd to mm/dd/yyyy in alv

sorry to bother you,

thanks a lot

sudheer

Read only

Former Member
0 Likes
993

Hi,

Hope the following helps..

1)

LOOP AT IT_OUTPUT.

  • Call the function module to get the tracking number and store the output in the

  • variable V_TRACKINGNO.

IT_OUTPUT-TRACKING_NO = V_TRACKINGNO.

MODIFY IT_OUTPUT TRANSPORTING TRACKING_NO.

ENDLOOP.

2) Date conversion

DATA: V_CHAR(10) VALUE '2006.11.17'.

DATA: V_DATE TYPE SYDATUM.

CONCATENATE V_CHAR(4) V_CHAR5(2) V_CHAR8(2) INTO V_DATE.

WRITE: V_DATE TO V_CHAR MM/DD/YYYY.

WRITE: / 'MM/DD/YYY Format - ', V_CHAR.

Please make sure to reward points for helpful answers..

Thanks,

Naren

Read only

Former Member
0 Likes
993

we cant do that in alv