Optimize certain columns and fixed others of the same ALV

Hi All,
I was wondering whether it is possible to optimize the width of certain columns based on their content and fixed( hard coding the width ) the others, all fields found in the same ALV.
Thanks,
Shabir

Here is what i am using to manage the lenght of the columns.
  TRY.
    gets the columns object
      lref_columns = iref_alv->get_columns( ).
    loops trough the columns to hide the unnecessary ones
      lt_columns = lref_columns->get( ).
      LOOP AT lt_columns INTO ls_column.
        lv_colname = ls_column-columnname.
        CASE lv_colname.
          WHEN 'MANDT'.
            ls_column-r_column->set_technical( if_salv_c_bool_sap=>true ).
          WHEN 'MATNR'.   "Material Number
            ls_column-r_column->set_long_text( 'Material Number'(017) ).
            ls_column-r_column->set_medium_text( 'Material Number'(017) ).
            ls_column-r_column->set_short_text( 'Mat.Number'(036) ).
            ls_column-r_column->SET_OUTPUT_LENGTH( '11' ).
          WHEN 'MTART'.   "Material Type
            ls_column-r_column->set_long_text( 'Material Type'(020) ).
            ls_column-r_column->set_medium_text( 'Material Type'(020) ).
            ls_column-r_column->set_short_text( 'Mat. Type'(037) ).
            ls_column-r_column->SET_OUTPUT_LENGTH( '13' ).
          WHEN 'MATKL'.   "Material Group
            ls_column-r_column->set_long_text( 'Material Group'(040) ).
            ls_column-r_column->set_medium_text( 'Material Group'(040) ).
            ls_column-r_column->set_short_text( 'Mat. Group'(023) ).
            ls_column-r_column->set_output_length( '10' ).
          WHEN OTHERS.
        ENDCASE.
      ENDLOOP.

Similar Messages

  • Is it possible delivery iphone broken in hands to apple store and fix it in the same day?

    I am not leaving more in USA, but I will come back for only 3 days in June. Is it possible fix or change my iphone ( broken LCD) in this short time? Is it necessary schedule fix?

    Apple does not replace screens in the iPhone 5S, they will replace the entire iPhone. If you purchased your iPhone from an official source in the US, make an appointment at a US Apple Store for the time when you will be in the US and take your iPhone there. They will replace the iPhone on the spot. If you have physically damaged the screen rather than it failing due to a defect, then you will of course have to pay for the replacement.
    Regards.

  • Grand total of calculated column and case function in the same calcultd col

    Hi Gurus,
    In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
    Thanks,
    Pooja

    Hi Pooja,
    In the totals ,which u mentioned try using cell sum function instead of sum function.
    Manikandan
    GKB Consulting Inc.,

  • We have two iPad 2s and on one apps keep shutting down but on the other iPad the same app is fine. We have deleted the app, hard restarted and it still shuts down. How can we fix this?

    We have two iPad 2s and on one apps keep shutting down but on the other iPad the same app is fine. We have deleted the app, hard restarted and it still shuts down. How can we fix this?

    got the same problem. did the hard reset but to no avail. mine is ipad 2 16gb ios 7

  • Had to get new hard disk for my macbook. After installing snow leopard on new HD the computer only connects to free wifi at certain places and not others. Took it to genius bar (of course it worked find there!) they said it was fine. Not!

    Had to get new hard disk for my macbook. After installing snow leopard on new HD the computer only connects to free wifi at certain places and not others. Took it to genius bar (of course it worked find there!) they said it was fine. But problem persist.

    Hi there ricalimo,
    I would recommend taking a look at the troubleshooting steps in the article below. If the issue is location specific, than you may want to save the article so you can perform troubleshooting when you are experiencing trouble.
    Wi-Fi: How to troubleshoot Wi-Fi connectivity
    http://support.apple.com/kb/HT4628
    -Griff W. 

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • HT204053 My wife and I are using the same apple ID. since last week, i am required to pay twice for the same app on our 2 devices (even though we are using the same ID). what can I do to fix this?

    My wife and I are using the same apple ID. Up until last week we used to buy an app and pay for it only once, but use it on both devices.
    since last week, the app store asks me to pay again for an app i already paid for on one device. On both devices automatic downloads (in settings) is and was always turned off.
    what can I do to fix this?

    Actually no. After installing an app on one device, I used to see an "install" button on the second device (since it's already been paid for). Now i get the full price button on the second device. I didn't want to proceed with the purchase because i didn't want to be billed twice.

  • My ipad won't let me sign in to my FaceTime and iMessage and won't update my apps no more ever since I got my iphone and put them on the same account. Does anyone know how to fix it or why it's doing this

    II've had my ipad with retina display for about a 1 now and everything was fine In till I got my iphone 4s and put them on the same account then my ipad stopped letting me log in to my FaceTime and iMessage and it doesn't let me update my apps and dosnt let me log in to iCloud ever since I got my phone and put them on the same account does anyone know how I could fix it and still be able to connected to my iphone??

    Did you change your Apple ID?
    Unable to make or receive FaceTime calls after April 16, 2014
    http://support.apple.com/kb/TS5419
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Text on the iPad
    http://ipad.about.com/od/ipad_tricks/a/How-To-Text-On-The-Ipad.htm
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • TS1717 My itunes won't open - it says: 'The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem' I have tried un-installing then re-installing itunes and I still get the same message??

    My itunes won't open - it says: 'The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem' I have tried un-installing then re-installing itunes and I still get the same message?? Can anyone help?

    I have the exact same problem.
    I have uninstalled the program, rebooted and downloaded the update again. Same problem, same message.
    Please, where is that missing MSVCR80.dll? I don't remember misplacing it.
    I'm a Windows 7 user.

  • Hi.is it possible to add 2 columns and put it in the third calumn thru sqll

    Hi.is it possible to add 2 columns and put it in the third calumn thru sqll
    Hi i have 3 columns
    callstart,duration and callrelease
    In the extract i get values only for callstart and duration.
    Is possible thru sqlldr to output the sum of callstart and duration into callrelease.

    May This Can Help You..
    SQL> select * from table_a;
            ID SCHEDULED  MARK             PRID
             5 07-NOV-10  T05                 7
             6 18-SEP-10  T06                 8
             4 31-JAN-11  T02                 2
             1 18-JAN-11  T01                 2
             2 18-JAN-11  T02                10
             3 18-JAN-11  T03                 1
    6 rows selected.
    SQL> alter table table_a add mix varchar(50);
    Table altered.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7
             6 18-SEP-10  T06           8
             4 31-JAN-11  T02           2
             1 18-JAN-11  T01           2
             2 18-JAN-11  T02          10
             3 18-JAN-11  T03           1
    6 rows selected.
    SQL> update table_a
      2  set mix=mark||to_char(id);
    6 rows updated.
    SQL> commit;
    Commit complete.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7 T055
             6 18-SEP-10  T06           8 T066
             4 31-JAN-11  T02           2 T024
             1 18-JAN-11  T01           2 T011
             2 18-JAN-11  T02          10 T022
             3 18-JAN-11  T03           1 T033
    6 rows selected.
    SQL> Regards
    Umesh

  • I keep getting an error code that my billing info doesnt match my card info.  I verified with my bank, the bank card, and my itunes account and all are exactly the same.  I need this crap fixed, how?

    I keep getting an error that my billing info for my card doesnt match my bank info, but it does.  Nothing has ever been changed.  I called my bank, the card company, and all are exactly the same, word for word as my billing info in iTunes.
    In fact, every time I get the error code that billing doesnt match, my card gets charged a $1.00 authorization fee.  It later falls off, but it shows my card is being billed when they say they cant verify billing info.
    I called Apple support and they want to charge me to get their crap together.
    I need to do some updates and by a couple apps for work and am about ready to go to ANdroid if I cant get it fixed.
    $##@@$%%$##$%%$$%$!!!!!!!!!!!

    If you're in the US, this is usually caused by the simple fact that what the Postal Service shows as your address does not match what you're entering. Go here & see:
    https://tools.usps.com/go/ZipLookupAction!input.action

  • Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    This may depend on your chosen encoding options for the Mails (MIME vs. Base64 or similar) and/or the mails being reduced in size and sliced up server side. Apple (and Google) do stuff like recompressing images when viewing mails on mobile devices from an Apple ID or Gmail account... You have to turn it off in their web frontends....
    Mylenium

  • The screen no longer displays a playlist column and when I hit the plus sign the screen no longer has a right side column to let me make a new playlist. Now what?

    The screen which comes up no longer displays a playlist column and when I hit the plus sign and choose new playlist the screen doesn't display the narrow right side column for a new playlist. Does this have something to do with the new iTunes version I installed?

    iOS: Unable to update or restore

  • Why is Skype freezing everytime I try to open it after upgrading to Mountain Lion? Will it help if I delete and download it again? Are others having the same/similar problem?

    Skype was working fine with the OS X Lion but ever since I upgraded, it has constantly been freezing. I've decided to drag it to trash and download the .dmg file from the Skype website once again. Are others facing the same problem?
    Also, what are the associated files I should delete from the Library (Preferences, Caches etc) to remove Skype completely?

    Well, this problem is fixed. I deleted all the files associated with Skype from the Library. Reinstalled it and the main thing, unlinked Skype from Facebook. Now it works fine!

  • How to delete app error message.  This appears when I try free apps.  "says, unable to purchase a certain book and 4 others".  Have reset account and credit info.  Any ideas?

    How do I delete error message that says "unable to purchase certain book and 4 others".  Have reset account ant credit info.  any ideas?

    Have you tried tapping on your id in Settings > Stores on your phone and logging ouy of your account and then logging back in and seeing if that 'refreshes' the account on it ?

Maybe you are looking for

  • Make to Order Sales Process

    Dear All I have been assigned  to work on make to order sales process.So far I have worked only on third party sales process. Here we need to trigger production order from Sales Order. Can you plz help me out in configuring? Any inputs will be highlt

  • Skype-to-go and Online Number

    Hi, I am an American graduate student who will be living in Canada for a year.  I plan on purchasing a Canadian cell phone plan but would still like to be able to call and be called easily by my family and friends in the states.  I was considering pu

  • Custom Live Tiles for Third Party Apps

    Hello, how can I create custom live tiles for third party apps? There are a lot of applications which can pin live tile which starts another app - for example Facebook. How can I do that?

  • The TOOLS menu & HELP menu are missing (not the whole bar)

    the TOOLS menu & HELP menu are missing (not the whole tool bar, but only these two menus), I can see File, Edit, View, History, Bookmarks but not Tools and Help (on Firefox 3.6 on windows XP)

  • PGI reversal for difference quantity

    HI Friends I have a question with regard to Proof of Delivery We created sales order for 5 Qtys Created Delivery for 5 Qtys PGI done for 5 Qtys Physically delivered 4 Qtys POD confirmation for 4 Qtys with Difference Reason Billing for 4 Qtys But what