Pretty Printer ONLY for selected lines in ABAP editor?

Hi,
I have done SETTINGS(Menu----Utilities) in PRETTY PRINTER in my ABAP editor that, all KEY WORDS shuld b in UPPER CASE.
Say, I hv written code(in raw format, not yet pressed the PRETTY PRITER) like below,
ABAP Code Line_1
ABAP Code Line_2
ABAP Code Line_3
ABAP Code Line_4
ABAP Code Line_5
I want to hv pretty printer format for Line 3 and Line 5 ONLY!! I do not want to hv it for other lines, so, I high lighted(selected) those lines (3 and 5) and pressed pretty printer, but, am getting the pretty printer format for all the rest of the code as a single shot!!
So, pls. let me know that, How I can get the pretty printer format ONLY for the lines, for which I wished(selected by high lighting)?
And also let me know, How Can I do automatic(not manually) indentation for my code as a part of pretty printer? Actually, I tried but, am not getting even though I checled the check box intendation in SETTINGS!!
Thank you

Hi ,
Preety printer will work on all the code that is avaliable in window,
In case. if you want to do partial , copy your code in seperate window and do Pretty Printer for  it.
Refer http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ad6454211d189710000e8322d00/frameset.htm for other queries.
Edited by: Harsh Bhalla on Nov 27, 2009 9:17 AM

Similar Messages

  • Header Details to be Printed only for the line item details.

    Hi All,
    I have the following requirement.
    I have Page1 with the Logo, Header Window, Vendor Window, Send Invoice To, Delivere Invoice To and Main Window. Main Window Starts from the middle of the page. In the Page2 i have Logo, Header window and Main Window. In the Page3 i have only Main Window.
    In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3.
    The requirement is Logo,and Header Window should appear only for the Line items and not for the Terms and conditions.
    For the Page1 i have given the Next Page as Page2. Suppose if there is only one line item then it Prints in the first Page itslef and the control flows to the Page2 and since in the page2 i have given the condition for the Logo and header window to print only if line item is more than 1 and since Main Window is starting from the middle there is a blank Space appearing in the start of the page.
    The command i have given in the footer to trigger new page that is page3 is not getting triggered. If there are more than one line item then its printing the logo and header window and so there is no blank space appearing and it is working fine.
    Please let me know how to avoid this blank space and move my main window to the start of the Page if there is only one line item.
    Thank you.

    Dear Vasudha,
    I am a little bit confused regarding your query,
    "In the Footer of the Main Window i have Placed the Terms and conditions which should always be Printed in the New Page. So in the footer i have given a command "Go to New Page " and given the page as Page3. "
    When you say footer of main window does it mean , that you are using a table inside your main window and the command node your have inserted is in the footer of the table ?.I hope it is, because my suggestion is based on this assumption.
    Well my suggestion for your issue is,
    1.I  hope you are aware we can trigger a next page in two ways, one by setting the next page static attribute & second using  the command node which you have used.In your case you will have to use a combination of both.
    2.I feel your First page design is ok. Set its static next page attribute to PAGE2. Similarly set the static next page attribute for PAGE2 as PAGE2 itself. This should take care of your table which you have placed in the main window. If the table contains only one lineitem it will get over in the first page itself. If the lineitems are more in the table, it will automatically triggerPAGE2 (since static next page attribute for PAGE1 is PAGE2)  and the remaining line items will be displayed. Now no matter how many lineitems you have ,PAGE2 will be triggered repeatedly(since static next page for PAGE2 is PAGE2 itself) until the entire data in your table is displayed.
    In this way your requirement of printing the logo and header windows for the data lineitems only will be fulfilled.
    3.Now the last catch in your case is the printing of PAGE3(The terms and condition page) on an entirely new blank page.
       In the footer section of the table which you have used,  use a command node set to PAGE3.  After the command node and under the same  footer section now insert your terms and condition lineitem.
    Also Check the "at End of table" checkbox and uncheck " AT PAGE BREAK" under OUTPUT OPTIONS tab for the footer section.
    So now this footer section will be triggered only once after all the data in the table is displayed
    4. So now if there is only one lineitem, before the default second page is triggered the command node will trigger the PAGE3 and the terms and condition will be displayed.Else if there are more lineitems the page2 will be triggered again and again and finally when all the lineitems are over, the footer of the table will get triggered. So the command node will take you to the PAGE3 wherin the terms and condition will only be displayed.
    Hope this helps.
    Regards,
    Riju

  • Print RFKORD50 only for customer line ?

    I have to print credit note only for  customer line (account type 'D'). Then I use TCode F.62 using printing program RFKORD50. But RFKORD50 will print for customer & vendor line.
    Could you please to help me to only print customer line ?
    Is there any better printing program ?
    Thanks in advance.

    Try out this.
    If your query is something like this
    Select col1,col2,col3,col4 from tab1
    now you have pulled col1,col2,col3 from the group and have formed the group left.
    Select Col1,col1 col1_1,....
    Select each column twice from the select stmt.
    Let me know whether this works.

  • I can not print only a selected part of a page

    I have reset the print.print_printer and still can't print only the selected part of a page. I highlight what I want to print and use control P to get to the printer setup. Then I click the selection button and then OK. The preview screen shows what would print but the page has blank space above what was selected. This has only started to happen since the upgrade to FF 11.0. I have tried the same operation using IE and it works fine. please, is there a fix for this??

    Hi jweigh,
    This is a known bug. You should take a look at this thread:
    https://support.mozilla.org/en-US/questions/923294
    See the last post by Cww.
    Hopefully this helps!

  • Print only cursor-selected area of a PDF in Acrobat Pro, just as it is psbl to do in a browser

    Hi
    I want to print only cursor-selected area of a PDF in Acrobat Pro. That could be both text and images, which are in my selection. Just as it is psbl to do in a browser. Is it possible in Acrobat PRO?
    I am using the latest Acrobat Pro 11.0.9

    Thanks for your effort but this again clearly does NOT answer my question. I do see a particular problem and that is that I might want to select text and images over a range of multiple pages. In a doc of 20 pages I might want to make a single selection of the text starting PRECISELY at the MIDDLE of page 2 and then continue dragging my selection all the way to PRECISELY the MIDDLE of page 15, thereby selecting all text and images within the precise range of my selection. That is some 13 pages there and I want to print out ONLY THAT selection of text and images. And in that case I cannot use your suggestion with the marquee zoom. Do you get me?

  • Lock the table by user with grant only for select

    Hallo.
    It is possible that the user has rights only for SELECT, do not lock the table? Now, where do "SELECT * FROM table FOR UPDATE", does not make the change, but it locks the entire table, and another user to get into it.
    Thanks

    And here is the "evidence" ;)
    SQL> select * from v$version ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> create user u1 identified by u1 ;
    User created.
    SQL> grant connect to u1 ;
    Grant succeeded.
    SQL> connect hr/hr
    Connected.
    SQL> create or replace view v_t1 as select username, user_id, created from t1 group by username, use
    r_id, created with read only ;
    View created.
    SQL> grant select on v_t1 to u1 ;
    Grant succeeded.
    SQL> connect u1/u1
    Connected.
    SQL> select * from hr.v_t1 where rownum = 1 for update ;
    select * from hr.v_t1 where rownum = 1 for update
    ERROR at line 1:
    ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    SQL> select * from hr.v_t1 where rownum = 1
      2  ;
    USERNAME                          USER_ID CREATED
    AK                                     36 08-MAY-00

  • Print ID for condition lines?

    Hi,
    who can tell me how to use the 'Print ID for condition lines' in pricing procedure settings?
    tks in advance.

    Hi,
    print ID in pricing procedure controls the printing of that
    condition lines i.e  value[if condition record exists] of that condition type will be displayed when u take print preview of that document[order confirmation etc].if u set it as 'X' than that condition line[condition value] will be printed on any of your
    output.Eg print preview of ur invoice.
    Assign points if helpful.
    Edited by: Sharad Kaliya on Sep 3, 2008 8:55 AM
    Edited by: Sharad Kaliya on Sep 3, 2008 8:56 AM

  • Need to give REVOKE CLOSE option in CO02 only for selective users

    Hello,
    Need to Restrict Revoke Close Option in Tcode CO02 (Under Functions - Restrict Processing - Revoke Close) through Role/Object Level.  Can any one suggest how to control this .    Need to give access for CO02 for 5 Users , but only 2 Users can able to do Revoke Close Option , other 3 Users should not able to do this activity.
    BR,
    Murali

    There is no authorization object as B_USERSTAT_T , but there is a authorization object as B_USERSTAT . I tried to create a Temporary Role and manually assigned this Object .  In this object there is no way to control REVOKE Close option . 
    But there is one way noted in Google to restrict Revoke Close option .
    1.Goto BS22
    2.Select the system status TEC0 (I0045) & just duble click it,
    3.Maintain the Revoke technical completion (BUTA) =Forbidd (not allowed),
    But if i set the above Parameter ,  this will restrict Revoke Option for all the users .  I need to control ONLY for selective users .  I can set some value in user data for those users  , based on that i can write some coding to restrict , but i want to know where to write this code ....  I tried in some area , but it never works.
    Can any one give some idea to fix this issue.
    BR,
    Murali

  • In ME51N need to make Purchase Org. as mandatory only for selected one

    Dear guru's
    While creation of Purchase requisitions (ME51N), I need to make Purchase Org. as mandatory only for selected one Purchase Org. out of say 10 Purchase Orgs.
    Is there any userexit or workaround for this.
    Thanks in advance,
    With regards,
    Harisha

    Dear Harisha,
    One way is to define a transaction variant with SHD0.
    http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components -> Application Personalization -> Tailoring of Application Transactions -> Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    or
    In IMG under
    Materials Management -> Purchasing -> Purchase Requisition -> Data Screen Layout at Document Level.
    Hope this will help.
    Regards,
    Naveen.

  • Why doesn't saving a print preset for selection printing work anymore? It previously did up to version 2.

    I regularly like to highlight areas on web-pages, select print/name a print preset as "Print Selection" and check-mark 'Print Selection Only' of Options under the Firefox sub-heading. Then when I wanted to quickly print a selection instead of a whole web-page, I just highlighted an area, activated print, selected "Print Selection" and then checked print preview to view the selection before printing. That worked from version 2 only.
    Now in version 3 +, all above can be done '''except''' the check-marked 'Print Selection Only' option in the Firefox sub-heading keeps resetting itself, even IF you have saved it check-marked as a print preset. Selecting the saved preset "Print Selection" next time will print (preview) the whole web-page, and not what was highlighted (selected) for printing. Why was this feature turned off?

    baileyb1 wrote:
    My skype used to work, and now it doesnt work anymore. I just get an error message now.
    Access violation at address "Skype.exe" Read of address 0000000048.
    Help, it used to work before but no longer. I dont know how to get it working again.
    Baileyb1
    Open Windows Event Viewer -> Custom Views -> Administrative Events. Look for the recent error messages with timestamp corresponding to Skype crash. Copy and paste here the text from the General tab.

  • How to update DBtable in table control (MPP) for selected lines.

    Hi Folks,
    I need to update DBtable from the table control after modification of  only multiple selected rows.
    But my issue. any row if edited is being modified in DBtable.
    Client does not want me to use Check box so im using Selcolumn in module pool table control.
    Please help me in resolving the issue. Let me know if you have any queries
    Thanks
    Reddy

    Hi Reddy,
    Hope it helps.
    For  Sel column.
    Declare:
    Data : SEL  TYPES XFELD in Structure.
    Double click on the sel  field     give the structure name and field name as below in screen shoot.
    In Flow logic.
    PROCESS AFTER INPUT.
    loop at it_tab.
        FIELD YTBLCTRL-SEL.
    MODULE update.
    ENDLOOP.
    MODULE Updatedb.
    In Editor.
    MODULE UPDATE INPUT.
       MODIFY it_tab FROM YTBLCTRL INDEX tbc1-current_line.
       if ytblctrl-sel IS NOT INITIAL.
       lv_cnt = lv_cnt + 1.
       endif.
    ENDMODULE.
    MODULE UPDATEDB INPUT.
    Case sy-ucomm.
    WHEN 'SAVE'.
    if lv_cnt is NE '1'.
    Message 'select more than one item.
    else.
    Update DB.
    endif.
    Endcase.
    Regards,
    Venkat.

  • Commenting a Line in ABAP Editor when using SAP GUI for java

    Hi,
    In ABAP editor we can highlight the line which are to be comment and use cmd+< sign to comment those lines. What will be the command to be used to achieve the same functionality when using SAP GUI for JAVA on an iMac.

    Hello Kedar,
    please check with SAP GUI for Java 7.20 rev 5 before submitting a bug report.
    Also please verify, that cmd-< and cmd-> are not assigned as "Keyboard Shortcuts" in the "Keyboard" control panel of "System Preferences".
    Bug reports can be submitted with the [SAP Message Wizard|http://service.sap.com/message], for SAP GUI for Java please use component BC-FES-JAV.
    Best regards
    Rolf-Martin

  • Standard text printed only on one line

    Hi experts,
    I have a standard text in several lines:
    Line 1
    Line 2
    Line 3
    but in the pdf form it's printing in the same line:
    Line 1 Line 2 Line 3...
    Any suggestions ?
    /Kiehn

    Hello!
    1) When you say you have Standard text is several line that does not mean, that system have is in several lines.
    I don't know if you are aware or not, but while SAP system always stores long texts in 70 (or about so) char segments the fact that they are printed on one or several lines is controlled solely by formatting column that precedes each line in TLINES table. So, does your text has line breaks or new paragraph marks before those lines?
    2) If everything in above is correct, than maybe you have to check the format you use to transfer text from SAP to Adobe (in interface/context). Please, recheck what is stated [here at SAP Library|http://help.sap.com/saphelp_nw70/helpdata/en/04/ecfab99fc345f8826490df387aaf82/frameset.htm]. All this together with correct format for field (Rich text or Plain text) plus (as stated by poster above) "Allow multiple lines" and "Expand to Fit" (vertically) formatting should do the trick.
    Regards,
    Petr Perstnev

  • How to add watermark (print only) for  a indd file in java ?

    Hi EveryOne ,
    I have a few indd files in the database .
    I want to write  a java class , that puts a water mark (print only) on a few indd files based on some parameters.
    I  have the binary , which after modification will have to be saved back to the DB as indd.
    Can anyone suggest a way how this can be done.
    Thanks in advance.
    Harish -

    HarishDv wrote:
    I dont have indesign  installed on my system. I only have the binary , which needs modification and i have to save back to the DB as indd.
    Can't be done, for a realistic assessment of "can". InDesigns documents cannot reliably be created or modified without InDesign itself. (*)
    If you need to do this on native InDesign documents, you have to buy and install it.
    * "Not true, there is always IDML". But that's not a 'binary'; and you cannot (**) "convert" a binary INDD to IDML and back again without InDesign.
    ** Again, for a remotely realistic value of "can".

  • How to enforce 72 chars/line in ABAP editor?

    Hello,
    While trying to transport a custom function module from 6.4 to 4.6C, I came to realize that 4.6C chops source lines after 72 characters.
    Is there a way to force a "word wrap" in 6.4 ABAP editor so that the code become compatible with 4.6C?
    Or, is there a way to force 4.6C to accept ABAP lines longer than 72 characters?
    Thank you in advance for your help.
    Peter

    In SE38, in the menu, 'Utilities>Settings>ABAP Editor tab-->Editor tab', you will see a check box at the bottom of the screen 'Default line length(72)'. Check that.

Maybe you are looking for

  • I want to capture data through I/O while posting to Customer Line items

    Hi Experts Can you please suggest me that while posting to Customer line items i would require to capture data through Internal Order, is this possible if yes please explain Regards Sreenivasulu

  • Creating text boxes is causing VERY slow performance

    i've read the threads about how slow indesign cc has been from last year.  i would assume this issue had been fixed by now, so i just switched our whole company over from cs5 to cc.  we are a prinitng company that makes calendars with many text boxes

  • Midi doesn't play correctly with plugin

    I cannot get midi to play correctly in applets using java plugin (of any version). It does not stay "synced" when it is played. It does work with the appletviewer though. Not even the example in the java tutorial/sound is played correctly. Is there a

  • My ID in appel sait cannot open in ID itunes

    my id in appel sait cannot open in id itunes     I donot speke inglish good help me

  • Infotype 1610 (Job attributes) user exit/BADI?

    Hello Friends I want to write some custom code on the event when I Modify the Jobs attributes (IT 1610) via PP02. I know that Badi HRPAD00INFTY is used to achieve this for the infotypes 1000, 1001 etc. but this does not work with the IT 1610. Please