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 disply data in function module

Former Member
0 Likes
825

Hi

I have one requirement. That is we display data in function module as a list. In the list it contain 12columns or fields. but here,if we display each field is some condition. here we are using around 6 tables.

My doubt is here how to develop code in function module, how to display output in function module to this requirement.

Urgent.

6 REPLIES 6
Read only

Former Member
0 Likes
804

hi laxmi,

i din't got ur problem, can u please elabarate your doubt.............

Regards,

Adarsh

Read only

0 Likes
804

Hi Adarsh,

Actually i am new to function module, I know how to create function module. But my requirement is, develop one list in function module. the output like a report,but here we will develop in function module, and display output is also in function module.

So here output is having 12 fields that are located different tables(its around 6 tables), here each field having some condition.

My question is how to display data in function module?

Read only

0 Likes
804

hi,

you may use the table parameters in FM and u can manipulate according to condition in other defined output table.

i think this is helpful for you.

Read only

0 Likes
804

Hi Adarsh

Can you explain clearly, because i cont understand.

Read only

Former Member
0 Likes
804

You cannot do that. You need to call that function module in your report and then you can write the code for displaying it.

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Read only

Former Member
0 Likes
804

Hi,

why do u need 6 tables.....???/

just take only 1 table.... n populate all 12 fields....

now based on the conditions just manipulate ur code so as to display or not to display few fields......!!!

ex.

loop at itab.

if condition1 = true.

write 😕 itab-field1, itab-field2.

else.

write 😕 itab-field2.

endif.

endloop.

*-- in above code if condition is satisfied fields 1 and 2 will be displayed else only field2 will be displayed.

no need to declare 2 tables

itab1 with field1 and field2, itab2 with field2 only.

call this function module in the program and import itab.

There u follow this while displaying....!!!

Regards

Vasu