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

Modify standard program

Former Member
0 Likes
1,570

I want to modify standard report program "rehsevalpersmed01". I am planning to make modify by copying in Zprogram.

The standard program is called in T-code "EHSAMBTAET"

SUBMIT rehsevalpersmed01

WITH ehspernr IN l_range_pernr

WITH srvnr IN l_range_srvnum

AND RETURN.

How can I make change here?? We don't want to create Z "EHSAMBTAET"?

Thanks

AP

4 REPLIES 4
Read only

Former Member
0 Likes
1,186

Hi,

You can not modify the SAP standard program you should have access key to modify , But you can do it by copying into a Z (Custom) program and you can change it.

Or otherwise if you want to add / enhance some other functionality to SAP standard program you can do it by user-exits or BADI's

if they availbal for that transaction

Regards

Krishna

Edited by: Krishna Gowrneni on May 23, 2009 2:44 AM

Read only

0 Likes
1,186

Can I use IMPLICIT ENHANCEMENT AND SKIP SUBMIT command and use my SuBMIT command with Z program?

I tried IMPLICIT enhance ment and add mu SUBMIT command , but how can I skip the STANDARD program SUBMIT.

Following is the subroutine I want to modify.

&----


*& Form REPORT_FOR_SERVICE_SUMMARY

&----


FORM report_for_service_summary

  • text

----


  • --> p1 text

  • <-- p2 text

----


USING p_srv_number

p_pernr

p_person_flag.

RANGES: l_range_srvnum FOR t7ehs00_service-srv_number.

RANGES: l_range_pernr FOR t7ehs00_mappernr-person_id.

MOVE: 'I' TO l_range_srvnum-sign,

'EQ' TO l_range_srvnum-option,

p_srv_number TO l_range_srvnum-low.

APPEND l_range_srvnum.

MOVE: 'I' TO l_range_pernr-sign,

'EQ' TO l_range_pernr-option,

p_pernr TO l_range_pernr-low.

APPEND l_range_pernr.

SUBMIT rehsevalpersmed01

WITH ehspernr IN l_range_pernr

WITH srvnr IN l_range_srvnum

AND RETURN.

ENDFORM. " REPORT_FOR_SERVICE_SUMMARY

Read only

0 Likes
1,186

If you can create a implicit enhancement at the start of the form, write your submit code there and after that terminate the program using LEAVE PROGRAM Statement.

Regards

Karthik D

Read only

0 Likes
1,186

There would an implicit enhancement at the begining of the Form..

use it to call your own Z program.. do not use return statemet.. check out for the statements which are getting executed in the std SAP program after that call.. if you dont want those statements to be exceuted then it would work fine because In standard program there is return after call