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

Std SAP transaction modification

Former Member
0 Likes
553

Hi all,

I am working on this SAP std transaction 'Availability Control ' (trnacation - s_alr_87013561) where I have to modify this std program to add an authorization check, add couple of selection-screen fields and add couple of fields in the alv output of this program.

Since this is a SAP std report program, one way I can do it to copy the entire program and start modifying as per my need OR try finding an user exit / BADI to include the lines of code for authorization check.

Since it's not a straight forward alv program, my question is would it be possible to copy and modify it as per my need. Has somebody have any experience on modifying such reports ? I would appreciate if you could share it with me.

thanks,

/ashok

4 REPLIES 4
Read only

Former Member
0 Likes
516

Hi

In order to copy a program goto se38 and enter the program name ,after entering the program name press ctrl+f5.

I will ask for a destination program name give the appropriate program name as per your requirement then click copy button..a pop up will appear in that make tick in all the check boxes like variants,documentation,interface and so on then click copy..then assign it to a development class.

Now u can edit as the program as per your requirement.

Reward if useful

Thanks and Regards

Arun Joseph

Read only

Former Member
0 Likes
516

Hi Ashok,

Please check the availability of enhancement points in the program,they form a part of the enhancement framework and help us in enhancing the standard programs without using access keys

They are provided at specific points to add custom code.This includes add parameters in selection screens,adding filters to existing select statements or similar,adding custom logic,and also in some cases the fieldcatalog for modification..

But please also keep in mind that it differs from program to program...such points may be provided or not..so it may not always be available....anyways you can check this option ..

Go to the program in se38..and view the code..you can see statments like enhancement-point/section/spot..etc...which means you can insert your custom code there...

For that click the "spiral icon"..you can notice a change in the editor...keep the cursor on the code "enhancement-point"..right click -> enhancement implementation -> create...a table control comes up -> click on the create button at the bottom..give a suitable name and text -> click ok -> the same name appears in the table control..select it-> click "tick" -> you can see a space for writing custom code

Before starting the enhancement please check if enhancement points are available to cover all your requirements like adding extra fields,putting in ALV etc..Copying the standard can be done if the above option fails....

Also please check with your functional consultants if any configuration is possible to add fields in the selection or filter data in ALV...

Regards

Byju

Read only

0 Likes
516

I just want to add more info about enhancement spots. Byju was talking about only explicit enh. spots. These spots have to be explicitly added into program. Each program has also implicit enh. spots. For example every subroutine has implicit enh. spot at the begin and at the end. So you can add code at the end of each subroutine in any program. The enh. framework is really powerful tool. You have to be more careful about implicit points, because some routines are called from more than one program and you do not want to modify other programs.

Slides about enh. framework

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cd334f3-0a01-0010-d884-f5612003...

Cheers

Read only

0 Likes
516

thanks martin, it was helpful.