Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dialog Programming(module pool):call a screen to subscreen area.

Hi experts,

I want to call a screen created in the function group into my

subscreen area of current screen of main program.

I have done the below way :

1. Created a screen 100 in the module pool program z_bpmodule.

2.created a subscreen area SUB in screen 100.

3. I hav created function group :zfungroup

and a screen 300,a function module Z_EXPORT_FUN for exporting the data to the screen 300 from report.

Now my prog is lik below :

PROGRAM Z_SUBSCREEN1.

DATA : ZMATNR LIKE MARA-MATNR.

DATA : DYNNR LIKE SY-DYNNR .

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

SET TITLEBAR 'TITLE'.

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module EXPORT_DATA OUTPUT

&----


  • text

----


MODULE EXPORT_DATA OUTPUT.

CALL FUNCTION 'Z_EXPORT_FUN'

EXPORTING Z_INPUT = ZMATNR.

ENDMODULE. " EXPORT_DATA OUTPUT

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

  • CASE SY-UCOMM.

*

  • WHEN 'EXP'.

  • DYNNR = '0300'.

*ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

and the flow logic is lik this :

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

MODULE EXPORT_DATA.

CALL SUBSCREEN SUB INCLUDING SY-REPID ' 0300'.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN SUB.

Now the main problem is i am not able to call the screen from function group to subscreen area...

kindly provide the solution.....

Thanks a lot in adv ....

Brahma.

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question