‎2008 Jun 25 12:36 PM
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,
‎2008 Jun 25 5:33 PM
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.
‎2008 Jun 25 5:33 PM
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.
‎2008 Jun 25 6:15 PM
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