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

CALL SUBSCREEN

Former Member
4,345

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

1 ACCEPTED SOLUTION
Read only

Former Member
2,414

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

8 REPLIES 8
Read only

Former Member
2,415

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

Read only

Former Member
0 Likes
2,414

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.

Read only

Former Member
0 Likes
2,414

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.

Read only

Former Member
0 Likes
2,414

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.

Read only

Former Member
0 Likes
2,414

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.

Read only

Former Member
0 Likes
2,414

the variables are equal, but i have a mistake when i write the sentence.

Read only

0 Likes
2,414

Hi,

did you find yout the solution to this error message? I have the same problem

Read only

Former Member
2,414

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.