2010 Sep 24 11:42 AM
Hello ,
I have a problem with function module close_form.I dont know if I am doing something wrong but please help me.
the issue is
declarations:
data: gt_itcpp type table of itcpp,
gt_otfdat type table of itcoo.
CALL FUNCTION 'CLOSE_FORM
EXPORTING
RESULT = gt_itcpp
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.
DUMP: FUNCTION PARAMETER RESULT IS UNKNOWN.
THANKS
2010 Sep 24 11:50 AM
data: gt_itcpp type table of itcpp,
gt_otfdat type table of itcoo.
CALL FUNCTION 'CLOSE_FORM
EXPORTING
RESULT = gt_itcpp "<--Should pass a structure not a internal table
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.
No problem answering it, but shouldn't it be something like:
DATA: wa_itcpp TYPE itcpp,
gt_otfdat TYPE TABLE OF itcoo.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = wa_itcpp
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.Rob
2010 Sep 24 11:50 AM
data: gt_itcpp type table of itcpp,
gt_otfdat type table of itcoo.
CALL FUNCTION 'CLOSE_FORM
EXPORTING
RESULT = gt_itcpp "<--Should pass a structure not a internal table
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.
2010 Sep 24 11:51 AM
the function call is incorrect.try:
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = gt_itcpp
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.
replace "exporting" with importing
2010 Sep 24 12:03 PM
can you paste your function call here because "RESULT" should be placed in importing section rather than exporting
2010 Sep 24 3:51 PM
Pretty basic question and although marked as solved, it still doesn't look correct. So please be careful when assigning points.
Keshav??
Rob
2010 Sep 24 3:58 PM
Hi Rob,
You are always welcome to unassign it
My mistake ..shouldnt have answered it .
it still doesn't look correct
Why ?
2010 Sep 24 4:11 PM
No problem answering it, but shouldn't it be something like:
DATA: wa_itcpp TYPE itcpp,
gt_otfdat TYPE TABLE OF itcoo.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = wa_itcpp
TABLES
otfdata = gt_otfdat
EXCEPTIONS
OTHERS = 1.Rob
2010 Sep 24 4:14 PM
Yes Rob.
I have already mentioned it there
"<--Should pass a structure not a internal table
2010 Sep 24 4:55 PM
My point was that there are actually two problems with the original code: the one that you pointed out and the one that abapuser pointed out.
Although both were very helpful individually, I don't think either one actually solved the problem.
It would be misleading to anyone searching the forum looking for posts that solved a problem similar to theirs and only implemented half the solution.
In fact abapuser's answer is the one that answers the question that was actually asked.
Rob
2010 Sep 24 5:03 PM
Hi Rob,
You are right
Edited by: Keshav.T on Sep 24, 2010 9:34 PM
2010 Sep 24 5:46 PM
Keshav - just to be clear, the issue was not really with anything you posted. It was with the OP who was (I hope) just not being particularly careful in assigning points.
Rob
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |