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

Passing Internal Table To a Function Module

Former Member
0 Likes
6,526

Hello,

I am new to ABAP. I am trying to pass the the internal table to function module. For that i am referring the book "Learn ABAP in 21 Days". The the screens mentioned in that book are not same as that of the ABAP editor which i am using.

Is anybody have new document (PDF, Links etc) regarding the same??

Thanks,

Prashant

1 ACCEPTED SOLUTION
Read only

Former Member
1,586

Reward points..

4 REPLIES 4
Read only

Former Member
1,587

Reward points..

Read only

Former Member
0 Likes
1,586
Read only

Former Member
0 Likes
1,586

Hi,

Here is a simple example of passing an internal table "itab" to a function module "REUSE_ALV_LIST_DISPALY".

It displays the internal table data into a list format.

data : itab like ztest213 occurs 0 with header line.

tables : ztest213 .

select * from ztest213 into table itab.

loop at itab.

call function 'REUSE_ALV_LIST_DISPLAY'

exporting

  • I_INTERFACE_CHECK = ' '

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE = ' '

  • I_CALLBACK_PROGRAM = ' '

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

i_structure_name = 'ztest213'

  • IS_LAYOUT =

  • IT_FIELDCAT =

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_SORT =

  • IT_FILTER =

  • IS_SEL_HIDE =

  • I_DEFAULT = 'X'

  • I_SAVE = ' '

  • IS_VARIANT =

  • IT_EVENTS =

  • IT_EVENT_EXIT =

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_SCREEN_START_COLUMN = 0

  • I_SCREEN_START_LINE = 0

  • I_SCREEN_END_COLUMN = 0

  • I_SCREEN_END_LINE = 0

  • IR_SALV_LIST_ADAPTER =

  • IT_EXCEPT_QINFO =

  • I_SUPPRESS_EMPTY_DATA = ABAP_FALSE

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

tables

t_outtab = itab

exceptions

program_error = 1

others = 2

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

endloop.

Hope it helps.

Reward Points if useful.

Regards

Megha Sharma

Read only

Former Member
1,586

Hi Genius,

Its not matter that ABAP 21 days is not same as ABAP editor,,,,the main thing is Concept.

and i think that ABAP 21 Days is the best for fresher.

So if you are not able to understand that book,,you should again read that book....

you read and read more...and also the language is very easy...

one day you will catch your problem...

Cheers....

Kind Regards

Yogesh