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

Customer Data tab

Former Member
0 Likes
1,687

Hi All,

We have added a customer data tab in PO header using enhancement MM06E005. We also added a push button in this tab. Our requirement is to call a zprogram once the user presses this push button. Is it possible?

Regards,

Sibin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,591

Hi Raj,

EXIT_SAPMM06E_006 - is PBO

EXIT_SAPMM06E_007 is PAI

You need to add the code in EXIT_SAPMM06E_007 also to make your requirement work

Regards,

Prakash

10 REPLIES 10
Read only

Former Member
0 Likes
1,591

Hi, if zprogram is executable, use SUBMIT zrporam .... and return

Read only

0 Likes
1,591

But in which function exit I have to use this SUBMIT command?

Read only

0 Likes
1,591

Hi Maxim,

Function Exit: EXIT_SAPMM06E_006

INCLUDE ZXM06U36

I added code in this include program.

While calling zprogram I want to pass certain values as input parameters to the called program.

How can I achieve this?

Regards,

Sibin

Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,591

Depends on parameters, but one option is to fill selection-screen of called program.

Please read documentation/help on SUBMIT command.

-- Tomas --
Read only

0 Likes
1,591

Hi , you add pushbuton in one of this screen

and you should handle pressing this button in PAI module of screen

PROCESS AFTER INPUT.

  MODULE user_command_0010.

MODULE user_command_0010 INPUT.
  save_ok = ok_code .
  CLEAR ok_code .
  CASE  save_ok.
    WHEN 'XXX'.    "  code of tour button

        submit zprorgam with ... and return .

       WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_0010

Read only

0 Likes
1,591

Don't forget that subscreens have no OWN  own OK_CODE field and shares the field of the main screen.

Regards,
Raymond

Read only

0 Likes
1,591

Hi Sibin,

Please find the below sample code to provide input parameters to while using Submit keyword.

submit zh99cwtr0

          with pnppernr in lt_pernr      "Input parameters

          with pnpabkrs in lt_abkrs

          with begd_cal eq begda

          with endd_cal eq endda

          with s_lgart in lt_lgart

          with pnppersg in lt_persg and return .

  try.

      cl_salv_bs_runtime_info=>get_data_ref(

        importing r_data = lr_pay_data ).

      assign lr_pay_data->* to <lt_pay_data>.

    catch cx_salv_bs_sc_runtime_info.

      message `Unable to retrieve ALV data` type 'E'.

  endtry.

Regards,

Manasa veena P.

Read only

0 Likes
1,591

Hi Raymond,

I want to call the zprogram when user selects the push button available in this customer data tab. If subscreens have no own OK_CODE, how to capture this event? In INCLUDE ZXM06U36, I am not getting any details of this added push button.

Regards,

Sibin

Read only

Former Member
0 Likes
1,592

Hi Raj,

EXIT_SAPMM06E_006 - is PBO

EXIT_SAPMM06E_007 is PAI

You need to add the code in EXIT_SAPMM06E_007 also to make your requirement work

Regards,

Prakash

Read only

0 Likes
1,591

Hi Prakash,

Thanks a lot for your valuable inputs.

I used my code in EXIT_SAPMM06E_007 and now it is working fine.

Regards