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

want to display table control from function module

Former Member
0 Likes
721

Hi ,

I have defined one screen inside function module.

and this screen is having table control on it, now I want to display one internal table that using that table control and that table data I am fatching in function module.

so Now I am trying to generate the table control using wizard, I am providing the internal table name, here it accepts the table name but probelm is with workarea,

it's not accepting the work area which I have defined in FM as well the top include of function pool, but still I am getting the error like workarea does not exist...

Can anybody tell me where I was wrong??

I tried to generate table control without wizard also, but same problem with workarea...

can anybody help me??

Reagrds,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Try to capture the import parameters, put the table control in a report and call the report from the FM like this:

FUNCTION Z_RFKORD11.

*"----


""Local interface:

*" IMPORTING

*" REFERENCE(RKONTO) LIKE BKORM-KONTO

*" REFERENCE(BUDAT01) LIKE RF140-DATU1

*"----


SUBMIT ZRFKORD11

WITH RKONTO = RKONTO

WITH BUDAT01 = BUDAT01

AND RETURN.

ENDFUNCTION.

2 REPLIES 2
Read only

Former Member
0 Likes
467

Try to capture the import parameters, put the table control in a report and call the report from the FM like this:

FUNCTION Z_RFKORD11.

*"----


""Local interface:

*" IMPORTING

*" REFERENCE(RKONTO) LIKE BKORM-KONTO

*" REFERENCE(BUDAT01) LIKE RF140-DATU1

*"----


SUBMIT ZRFKORD11

WITH RKONTO = RKONTO

WITH BUDAT01 = BUDAT01

AND RETURN.

ENDFUNCTION.

Read only

former_member491305
Active Contributor
0 Likes
466

Hi Prasad,

Even i have also faced the same problem without any great reason.You just activate the main program from object navigator and make sure that the work area you have declared and all the includes belong to the main program got activated and come out of the program.Then again go to se80 open your program and start creating a table control with wizard type now.I am sure the system will respond in a proper way after that.

one more thing:Make sure you have declared the work area in TOP include of that funtion group instead of declaring in Fucntion moule.

Regards,

Vignswaran S