‎2008 Jul 28 3:58 PM
Hi,
I need call a subscreen, but i have a problem, my sentence is this:
in PBO:
call subscreen vl_area including sy-repid '0403'.
in PAI:
call subscreen alv_area.
and it tell me that: '.' or 'ID...FIELD...' expected after SUBSCREEN
‎2008 Jul 28 4:06 PM
Is there a reason why you are using two different variables behind call subscreen? Try to use the same and check if that makes a difference.
Hope that helps,
Michael
‎2008 Jul 28 4:06 PM
Is there a reason why you are using two different variables behind call subscreen? Try to use the same and check if that makes a difference.
Hope that helps,
Michael
‎2008 Jul 28 4:07 PM
Hi,
Check the subscreen name.
In PBO, subscreen name is vl_area
In PAI, subscreen name is alv_area
I think it solves your problem. If not pls let me know.
Thanks,
Phani Diwakar.
‎2008 Jul 28 4:08 PM
sorry my threat have a mistake, my sentence are these:
in PBO:
call subscreen vl_area including sy-repid '0403'.
in PAI:
call subscreen vl_area.
‎2008 Jul 28 4:08 PM
In PBO:
call subscreen alv_area including sy-repid '0403'.
in PAI:
call subscreen alv_area
Ideally it will allow you to activate. only change is use alv_are instead of vl_area.
‎2008 Jul 28 4:11 PM
Helious:
REPORT demo_dynpro_subscreens.
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
DATA: number1(4) TYPE n VALUE '0110',
number2(4) TYPE n VALUE '0130',
field(10) TYPE c, field1(10) TYPE c, field2(10) TYPE c.
CALL SCREEN 100.
MODULE status_100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE fill_0110 OUTPUT.
field = 'Eingabe 1'(001).
ENDMODULE.
MODULE fill_0120 OUTPUT.
field = field1.
ENDMODULE.
MODULE fill_0130 OUTPUT.
field = 'Eingabe 2'(002).
ENDMODULE.
MODULE fill_0140 OUTPUT.
field = field2.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE save_ok INPUT.
save_ok = ok_code.
CLEAR ok_code.
ENDMODULE.
MODULE user_command_0110 INPUT.
IF save_ok = 'OK1'.
number1 = '0120'.
field1 = field.
CLEAR field.
ENDIF.
ENDMODULE.
MODULE user_command_0130 INPUT.
IF save_ok = 'OK2'.
number2 = '0140'.
field2 = field.
CLEAR field.
ENDIF.
ENDMODULE.
MODULE user_command_100 INPUT.
CASE save_ok.
WHEN 'SUB1'.
number1 = '0110'.
WHEN 'SUB2'.
number1 = '0120'.
CLEAR field1.
WHEN 'SUB3'.
number2 = '0130'.
WHEN 'SUB4'.
number2 = '0140'.
CLEAR field2.
ENDCASE.
ENDMODULE.
‎2008 Jul 28 4:12 PM
the variables are equal, but i have a mistake when i write the sentence.
‎2008 Sep 02 8:18 AM
Hi,
did you find yout the solution to this error message? I have the same problem
‎2008 Sep 02 9:15 AM
Hi,
the solution is not to put 'CALL SUBSCREEN' into a module, but exactly into the PBO event, e.g. this is right:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN sub1_0200 INCLUDING sy-repid gs_sub1_0200-dynnr.
and this is wrong (error message occurs):
PROCESS BEFORE OUTPUT.
module call_subscreen.
MODULE call_subscreen OUTPUT.
CALL SUBSCREEN sub1_0200 INCLUDING sy-repid gs_sub1_0200-dynnr.
ENDMODULE.