‎2014 Mar 05 8:17 AM
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
‎2014 Mar 06 5:31 AM
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
‎2014 Mar 05 8:24 AM
Hi, if zprogram is executable, use SUBMIT zrporam .... and return
‎2014 Mar 05 8:29 AM
But in which function exit I have to use this SUBMIT command?
‎2014 Mar 05 8:56 AM
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
‎2014 Mar 05 9:04 AM
Depends on parameters, but one option is to fill selection-screen of called program.
Please read documentation/help on SUBMIT command.
‎2014 Mar 05 9:11 AM
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
‎2014 Mar 05 9:24 AM
Don't forget that subscreens have no OWN own OK_CODE field and shares the field of the main screen.
Regards,
Raymond
‎2014 Mar 05 9:34 AM
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.
‎2014 Mar 06 4:41 AM
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
‎2014 Mar 06 5:31 AM
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
‎2014 Mar 06 7:51 AM
Hi Prakash,
Thanks a lot for your valuable inputs.
I used my code in EXIT_SAPMM06E_007 and now it is working fine.
Regards