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: 

How to pretty printer of a code in enhance framework of a standard FM

Former Member
0 Kudos
6,526

Hi,

I have written a code in a <b>enhancement point of a standard Function Module</b>. But i am unable to pretty printer that portion of code. Doed any one have any idea how to do that??

Thanks & Regards,

Abhishek Sarkar

1 ACCEPTED SOLUTION

RaymondGiuseppi
Active Contributor
1,876

I don't think you can do it "in place". The standard part of the code is protected.

Paste your code in a dummy program, pretty print it, and paste it back.

Regards

8 REPLIES 8

RaymondGiuseppi
Active Contributor
1,877

I don't think you can do it "in place". The standard part of the code is protected.

Paste your code in a dummy program, pretty print it, and paste it back.

Regards

0 Kudos
1,876

<b>Paste your code in a dummy program, pretty print it, and paste it back</b>

Actually i thought it as a last way. Bkz its using so many parameters. But if no other way is possible, then i have to go by that only.

Former Member
0 Kudos
1,876

Hi,

Pritty printer gives a pritty view to your code, so that it can be easily readable.

You can set the functionality of pritty printer by doing some setting.

The path for setting is

Utilities>Setting>ABAP Editor-->Pritty Printer.

Thanks.

former_member196280
Active Contributor
0 Kudos
1,876

No way you can do pretty printer in SFM.

Rgds,

SaiRam

Former Member
0 Kudos
1,876

if its a standard FM i think it's already doing a pretty printing when activated...but if it's created then you must create the code in se38..pretty print it then paste it there...

1,876

Select the code snippet you want to pretty printer.

Right-click on the selected snippet and choose "Format->Format Selection".

0 Kudos
1,876

thank you for a great tip

885

This should be the correct answer for the question!

Thanks, Leonardo!