<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: call screen using function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683648#M30523</link>
    <description>&lt;P&gt;Hi Muthu,&lt;/P&gt;&lt;P&gt;My PBO coding look like below :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE STATUS_800.
 MODULE in_800 OUTPUT.

*****************************************


 MODULE in_800 OUTPUT.
    PERFORM   get_data.

    PERFORM   create_object.

    PERFORM   display_data.
ENDMODULE.   

FORM create_object.
  CREATE OBJECT g_cont
    EXPORTING
      container_name = 'SCREEN'.
  CREATE OBJECT go_grid
    EXPORTING

      i_parent = g_cont .
ENDFORM.                    " CREATE_OB

FORM display_data .



DATA    lo_variant TYPE disvariant.

DATA    ls_layout     TYPE lvc_s_layo.

DATA    lt_fieldcat   TYPE STANDARD TABLE OF lvc_s_fcat.
DATA    lo_variant TYPE disvariant.

DATA    lt_fieldcat   TYPE STANDARD TABLE OF lvc_s_fcat.

lo_variant-report = sy-repid.

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

    EXPORTING
      i_structure_name       = 'MARA'
    CHANGING
      ct_fieldcat            = lt_fieldcat
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.
  CALL METHOD go_grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_variant                    = lo_variant
      i_save                        = 'A'
      is_layout                     = ls_layout
    CHANGING
      it_outtab                     = gt_mara
      it_fieldcatalog               = lt_fieldcat

    EXCEPTIONS

      invalid_parameter_combination = 1

      program_error                 = 2

      too_many_lines                = 3

      OTHERS                        = 4.

  IF sy-subrc &amp;lt;&amp;gt; 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

ENDFORM.                    " DISPLAY_DATA

FORM get_data .

  Data lt_mara TYPE STANDARD TABLE OF mara.

  DATA ls_mara TYPE mara.

select * from mara into TABLE gt_mara UP TO 100 ROWS.

ENDFORM.         

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the FM i have wrote &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function ZFM_TEST

call Screen 800.

ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the program...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;start of selection
call function 'ZFM_TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I still not able to pass the screen to the FM as either the status or the PBO are working???&lt;/P&gt;&lt;P&gt;your pieces of advice are highly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jenie&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 14:41:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-09-28T14:41:04Z</dc:date>
    <item>
      <title>call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683646#M30521</link>
      <description>&lt;P&gt;I am trying to create a function group and a function module to be able to call the screen from a function module&lt;BR /&gt;I have done the following steps:&lt;BR /&gt;1- create a function group&lt;BR /&gt;2- create a screen '800'&lt;BR /&gt;3- create a PBO initial module in the screen to pick the data and status.&lt;BR /&gt;4- creat a PAI commend module in the screen. &lt;BR /&gt;5- create a function module and in this FM just wrote&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; call screen 800.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;6- Now in the the program that should call this screen/FM I have wrote&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;start of  selection.

call function 'ZFM'&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;the problem is when I'm executing the FM or the program the system shows a screen with no data or status????&lt;BR /&gt;&lt;BR /&gt;could some tell me what is still missing me?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Best Regards&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Jenie&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/230268-23.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 13:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683646#M30521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-28T13:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683647#M30522</link>
      <description>&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt; Kindly attach PBO code as well.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 14:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683647#M30522</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2018-09-28T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683648#M30523</link>
      <description>&lt;P&gt;Hi Muthu,&lt;/P&gt;&lt;P&gt;My PBO coding look like below :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE STATUS_800.
 MODULE in_800 OUTPUT.

*****************************************


 MODULE in_800 OUTPUT.
    PERFORM   get_data.

    PERFORM   create_object.

    PERFORM   display_data.
ENDMODULE.   

FORM create_object.
  CREATE OBJECT g_cont
    EXPORTING
      container_name = 'SCREEN'.
  CREATE OBJECT go_grid
    EXPORTING

      i_parent = g_cont .
ENDFORM.                    " CREATE_OB

FORM display_data .



DATA    lo_variant TYPE disvariant.

DATA    ls_layout     TYPE lvc_s_layo.

DATA    lt_fieldcat   TYPE STANDARD TABLE OF lvc_s_fcat.
DATA    lo_variant TYPE disvariant.

DATA    lt_fieldcat   TYPE STANDARD TABLE OF lvc_s_fcat.

lo_variant-report = sy-repid.

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

    EXPORTING
      i_structure_name       = 'MARA'
    CHANGING
      ct_fieldcat            = lt_fieldcat
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.
  CALL METHOD go_grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_variant                    = lo_variant
      i_save                        = 'A'
      is_layout                     = ls_layout
    CHANGING
      it_outtab                     = gt_mara
      it_fieldcatalog               = lt_fieldcat

    EXCEPTIONS

      invalid_parameter_combination = 1

      program_error                 = 2

      too_many_lines                = 3

      OTHERS                        = 4.

  IF sy-subrc &amp;lt;&amp;gt; 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

ENDFORM.                    " DISPLAY_DATA

FORM get_data .

  Data lt_mara TYPE STANDARD TABLE OF mara.

  DATA ls_mara TYPE mara.

select * from mara into TABLE gt_mara UP TO 100 ROWS.

ENDFORM.         

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the FM i have wrote &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function ZFM_TEST

call Screen 800.

ENDFUNCTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the program...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;start of selection
call function 'ZFM_TEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I still not able to pass the screen to the FM as either the status or the PBO are working???&lt;/P&gt;&lt;P&gt;your pieces of advice are highly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jenie&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 14:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683648#M30523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-28T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683649#M30524</link>
      <description>&lt;P&gt;Hi Jenifer,&lt;/P&gt;&lt;P&gt;in the factory call method, please check if the internal table - &amp;lt;lt_call_prp_show&amp;gt;. is populated or not.&lt;/P&gt;&lt;P&gt;Share the debug screen ..to know what exactly is coming here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 15:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683649#M30524</guid>
      <dc:creator>TMSingh_SAP</dc:creator>
      <dc:date>2018-09-28T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683650#M30525</link>
      <description>&lt;P&gt;Hi Jenifer,&lt;/P&gt;&lt;P&gt;Thanks for sharing the code. I would suggest you to display some simple data to the screen and check it is working. If it is displaying the data then please start work with above code. Also, try to debug line by line which will help to find out where the issue is.&lt;/P&gt;&lt;P&gt;Thanks a lot !!!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ MR &lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 17:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683650#M30525</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2018-09-28T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683651#M30526</link>
      <description>&lt;P&gt;Hi Muthu,&lt;BR /&gt;I have changed my code to make it easier to figure out the concept of the FM, please take a look at what I have wrote I think I losing the connection between the Function group and the FM.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 10:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683651#M30526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-29T10:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683652#M30527</link>
      <description>&lt;P&gt;Hi mohan,&lt;BR /&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;I have debugged the code in a separated program and it is working smoothly...but how can I debug a  code which has been written in a function group,  is this possible ?.... as I can debug till calling the screen 800 in the FM and then SAP call the screen 800 directly without going inside it.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Jenie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 11:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683652#M30527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-29T11:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683653#M30528</link>
      <description>&lt;P&gt;Hi Jennifer,&lt;/P&gt;&lt;P&gt;Lots of doubts.&lt;/P&gt;&lt;P&gt;1) The FM called from the program is different. Use the Name properly.&lt;/P&gt;&lt;P&gt;2) Why you have used call screen 400 inside the FM? Are you working on 800 or 400 Screen ?&lt;/P&gt;&lt;P&gt;3) Now where is the issue exactly? In the program or in the FM ? How you will pass the screen to the FM? Could you elaborate it more ?&lt;/P&gt;&lt;P&gt;~ MR&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 12:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683653#M30528</guid>
      <dc:creator>Muthu_raja</dc:creator>
      <dc:date>2018-09-29T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683654#M30529</link>
      <description>&lt;P&gt;Hi, Muthu,&lt;BR /&gt;&lt;BR /&gt;this is just typing mistakes and I have corrected them,&lt;BR /&gt;&lt;BR /&gt;the problem is in the FM because when I execute it no screen will be called ...&lt;BR /&gt;&lt;BR /&gt;I mean by passing that I have already worte everything in FG and the just call screen 800 in the FM to call what I wrote but it is not working.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Jenie&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 13:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683654#M30529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-29T13:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: call screen using function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683655#M30530</link>
      <description>&lt;P&gt;Sorry I have to ask there are 2 things you dont listed:&lt;/P&gt;&lt;P&gt;1. did you create gui status?&lt;/P&gt;&lt;P&gt;2. did you create screen contaner SCREEN.&lt;/P&gt;&lt;P&gt;because all your code working as expected.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 13:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-screen-using-function-module/m-p/683655#M30530</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2018-09-29T13:21:19Z</dc:date>
    </item>
  </channel>
</rss>

