Skip to Content
avatar image
Former Member

How to perform "Enter" operation via code in call transaction

Hi Folks,

In my module pool program, I am calling a transaction code and passing the required input parameters to the called screen.

I want to perform enter operation after calling the tcode through my code.

As I pass input parameters via bdcdata structure,is there are way to perform the enter operation similarly??

Thanks and Regards,

Kawish.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2015 at 08:22 AM

    Hi Kawish,

    I hope this is what you are looking for. Try with ok code '/00' or '=ENT1'.

    PERFORM bdc_field       USING 'BDC_OKCODE'

                                            '=ENT1'.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2015 at 08:49 AM

    Maybe add the 'AND SKIP FIRST SCREEN' addition to your CALL TRANSACTION statement ?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 07, 2015 at 09:30 AM

    Hi,

    You can use the below function module to call the enter event dynamically in programming.

    On calling transaction, in calling program just checked that it has been called by another one then use below function module.

    *Begin-Auto triggers ENTER command

         CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'

           EXPORTING

                functioncode           = 'ENTER'

           EXCEPTIONS

                function_not_supported = 1

                OTHERS                    = 2.


    Many Thanks / Himanshu gupta

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Himanshu,

      Thanks for your reply.

      I am not sure where to call this function module.

      If I call it in the PBO of the called transaction, It does not directs to PAI---(Enter Event block).

      No action will take place if i call the same in the calling program.

      Thanks and Regards,

      Kawish