2008 Apr 29 11:02 AM
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.
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.
2008 Apr 29 11:05 AM
hi laxmi,
i din't got ur problem, can u please elabarate your doubt.............
Regards,
Adarsh
2008 Apr 29 11:37 AM
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?
2008 Apr 29 11:55 AM
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.
2008 Apr 29 12:03 PM
2008 Apr 29 11:06 AM
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
2008 Apr 29 11:10 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |