Very useful to every one if any one finds answer plz have a look

i want to pass the value to the fieldcatlog
and we will pass the value
gwa_fieldcatlog-fieldname = 'kunnr'.
gwa_fieldcatlog-tabname = itab.
gwa_fieldcatlog-seltext_l = 'meta customer'.
gwa_fieldcatlog-outputlen = '15'.
append gwa_fieldcatlog to git_fielcatlog.
My question is instead  passing the lenth to output length there is one field in fieldcat log which we need to pass something to it so tthe output lenght will adjust itself ( no need to drag the alv grd it will adjust excatly how many letter that many).which i have worked so long aback..can y one gives the answer ..
i check with fix_col
which it is not working when i pass it is not working..
plcheck once and reply as soon as u can..
regards
satish.v

Hi,
kindly let me know ,where the internal table comes into picture, u r preaparing a fieldcatalog ryt...here u are using manual filling of the field catalog....the fields which are there in the internal table for those ....
also u have another option as
use the FM "REUSE_ALV_FIELDCATALOG_MERGE",it will fill the fieldcatalog with appropriate lenghts...if u want instead of standard ,custom one then we can modify the field catalog..
check the belwo sample code
Declaration of local workareas and internal tables
  DATA:   li_sort        TYPE slis_t_sortinfo_alv,    "For Sort ALV
          lwa_fieldcat   TYPE slis_fieldcat_alv.
Declaration of local constants
  CONSTANTS : lc_long_text(1)   TYPE c VALUE 'L'.
*pt_fieldcat TYPE ty_fieldcat
*--Call the functino module to get the field catalog.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = v_repid
      i_internal_tabname     = 'I_FINAL'
      i_inclname             = v_repid
    CHANGING
      ct_fieldcat            = i_fieldcat
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
    LOOP AT i_fieldcat INTO lwa_fieldcat.
      CASE lwa_fieldcat-fieldname.
        WHEN 'GRIR'.
          lwa_fieldcat-ddictxt    = lc_long_text.
          lwa_fieldcat-seltext_l  = text-003.
          lwa_fieldcat-do_sum    = 'X'.
          MODIFY i_fieldcat FROM lwa_fieldcat
            INDEX sy-tabix TRANSPORTING ddictxt seltext_l do_sum.
          CLEAR lwa_fieldcat.
        WHEN 'GR'.
          lwa_fieldcat-ddictxt    = lc_long_text.
          lwa_fieldcat-seltext_l  = text-004.
          lwa_fieldcat-do_sum    = 'X'.
          MODIFY i_fieldcat FROM lwa_fieldcat
            INDEX sy-tabix  TRANSPORTING ddictxt seltext_l do_sum.
          CLEAR lwa_fieldcat.
        WHEN 'IR'.
          lwa_fieldcat-ddictxt    = lc_long_text.
          lwa_fieldcat-seltext_l  = text-005.
          lwa_fieldcat-do_sum    = 'X'.
          MODIFY i_fieldcat FROM lwa_fieldcat
            INDEX sy-tabix TRANSPORTING ddictxt seltext_l do_sum.
          CLEAR lwa_fieldcat.
        WHEN 'NETWR'.
          lwa_fieldcat-do_sum    = 'X'.
          MODIFY i_fieldcat FROM lwa_fieldcat
            INDEX sy-tabix TRANSPORTING do_sum.
          CLEAR lwa_fieldcat.
      ENDCASE.  " CASE lwa_fieldcat-fieldname
    ENDLOOP.    " LOOP AT i_fieldcat INTO lwa_fieldcat
  ENDIF.        " IF sy-subrc <> 0
This function module is used for displaying the ALV report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program = v_repid
      is_layout          = wa_layout
      it_fieldcat        = i_fieldcat
      i_default          = c_chk
      i_save             = c_save
      is_variant         = wa_variant
      it_events          = i_events
      is_print           = wa_print
      it_sort            = li_sort
    TABLES
      t_outtab           = i_final
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Regards,
Nagaraj

Similar Messages

  • After,using,CS,for,one,year,I,must,have,an,activation,code,,the,trial,version,will,be,end, over,25,days.,How,is,it,possible?,What,can,I,do?

    After,using,CS,for,one,year,I,must,have,an,activation,code,,the,trial,version,will,be,end, over,25,days.,How,is,it,possible?,What,can,I,do?

    Was the iPad originally set up on a different computer, and hasn't been synced to the one that you are now trying to use ? There are some instructions on this page for syncing to a new computer : https://discussions.apple.com/docs/DOC-3141
    (Before trying that you could copy any important files/documents off the iPad so that you have you own backup copy of them e.g. depending upon what the apps support then email them to yourself, use Dropbox, copy them to your computer via your wifi-network.)
    You should be able to copy iTunes purchases off the iPad and over to that computer's iTunes via File > Devices  Transfer Purchases, but if you have music from other sources (e.g. copied from CDs) which aren't in that computer's iTunes (and you haven't got a backup to copy them onto it from) then there are some programs listed half-way down this page which should be able to copy them back : https://discussions.apple.com/docs/DOC-3991
    For recovery mode, that will result in your iPad being put back to factory defaults i.e. all of your content will be removed from it

  • When using more than one tab, once I have opened a pdf using firefox my laptop will not allow me to type or click in another tab unless I drag the pdf into it's own window?

    when using more than one tab, once I have opened a .pdf using firefox my laptop will not allow me to type or click in another tab unless I drag the .pdf into it's own window? not a major problem just irritating.

    I found the cause but no solution, it's actually a plugin that does that: divx plus weblpayer (it gets installed when you install DivX on your system), if you disable it and restart firefox it all works again. But I want that plugin... so DivX need to fix this, unless it is a Firefox bug in its own core... anyway these two together creates the problem.
    (I'm running Firefox 9.x on OSX Lion)
    I also wish firefox tab tear out tab worked more like chrome's tab tear out, much friendlier...

  • When I closed out of yahoo email, get a blank page on every tab if any are opened. I have to exit out & restart firefox . It does not happen w/any other browser.

    When I sign off on yahoo email. I get a blank page on every tab if any are opened. I have to exit out & restart firefox . It does not happen w/any other browser. I have no malware or viruses. Please advise.

    Actually, it's not obvious & common sense would dictate that users' bookmarks would not be left stuck to random computers even once they've logged out of the account. No one wants that if it's a public work computer or if they're traveling & use an Internet cafe. As I am not the only one who has noticed this issue or had bookmarks disappear/be deleted, in addition, common sense would indicate it's not really a very good system. And carrying around a flashdrive to run Firefox off of it is a good solution? Really? Just curious why a useful feature such as being able to login & use your preferences & bookmarks & then logging out removes your preferences when you're gone hasn't been developed. Yahoo keeps my preferences when I logout (it's called My Yahoo!). Maybe a My Firefox or My Chrome solution could be developed.

  • Is it possible to open iPhoto twice under os-x lion to create a photobook on one desktop and to have a look to the photos in full size on the other desktop?

    Is it possible to open iPhoto twice under os-x lion, to create a photobook on one desktop and to have a look to the photos in full size on the other desktop?

    Ok let me ask you IF the IT department of your workplace does NOT want OS X installed on "THEIR" (The Companies) computers because of what they think is some type of security issue why are you trying to go against their wishes and install OS X on a computer that is NOT owned by you.
    That could cost you your job.
    If you continue down this path you will screw up the Windows install and have to take the system back to the IT department to get it fixed. What do you think they will say at that point?
    Do as you like but you would be better off just buying your own Mac computer if you are set on using OS X as your personal operating system.

  • Hello everyone: I am going to buy a new ipad in Australia and after that I am going back to China. I am just wondering if I can use it in China without any problem? Do I have to unlock or something like that?

    Hello everyone: I am going to buy a new ipad in Australia and after that I am going back to China. I am just wondering if I can use it in China without any problem? Do I have to unlock or something like that?

    The iPad is not locked. Read the specifications.
    http://www.apple.com/ipad/specs/

  • TS3297 Hey every one ..help plz

    I got this : your purchase cant be completed .... Any bdy have an idea plz!!

    What does the rest of the message say?
    GB

  • Very urgent! plz have a look at this

    hi
    can anybody help me to develop a jsp page in which
    i want to include 3 dynamic dependant lists .
    Ex:-->Country-->state-->district-->city
    all the values r stored in MySql tables.
    independently i am able to display all the values for the first time(default)
    but when i change the opiton for country,then the state field values r to be changed and the district ,city fields should be set empty.when i select a STATE-->then district should get the values related to that state. and so on.
    But i didn't get how to do this.
    plz help me?
    awaiting a quick response form you
    thank you

    AJAX code: to populate each combo use seperate ajax call. then populate the combobox.
    function getHTTPObject() {     
         var xmlhttp;
         if (window.XMLHttpRequest) // if Mozilla, Safari etc
              xmlhttp = new XMLHttpRequest();
         else if (window.ActiveXObject){ // if IE
              try {
                   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
              catch ( e ){
                   try{
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                   catch ( e ){}
         return xmlhttp;
    function myAJAX(string1) {
        var URL =  "requiredAction.do";
        var queryString = "name="+escape(string1);
        httpObject.open( "Post", URL, true );
        httpObject.onreadystatechange = callBackFn;
        httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
        httpObject.send(queryString);
    function callBackFn() {
        if (httpObject.readyState == 4)
             if (httpObject.status == 200)
              var result = httpObject.responseText;
              //code here to manipulate result
         var valarray=attrVal.split(","); //get the result in a comma delimited string from action class (also from BO resultset)
         for (var i=0; i < valarray.length;++i){
              addOption(document.getElementById("combobox"), valarray, valarray[i]);
    function addOption(selectbox,text,value)
         var optn = document.createElement("OPTION");
         optn.text = trim(text);
         optn.value = trim(value);
         selectbox.options.add(optn);

  • Can i use RHB Now to purchase any app in i tunes

    can i use RHB Now to purchase any App in Itunes

    Do you have a credit card from them that is one of the types of card that is listed on the payment details screen on your account ? If not then you won't be able to, you can only use the payment types listed on that screen. If it is then try adding the card and see if it's accepted by iTunes - to have a chance of being accepted it will need to be registered to the same name and address as on your iTunes account, and you need to be in the country where the bank is based.

  • Is it possible to edit multiple images description, time, title with new OSX Photos? I find this option very useful in Iphoto

    Is it possible to edit multiple images description, time, title, with new OSX Photos? I find very useful this option in Iphoto

    why? i find this opportunity very useful, there is an alternative way?

  • Hello every one. Please let me know what is the best mouse to use in a Photoshop? Thank you very much. Alex.

    Hello every one. Please let me know what is the best mouse to use in a Photoshop? Thank you very much. Alex.

    My ArtZ II is on a Win2K supplemental computer. I think that the main reason that I keep it around is the 12 x 12 ArtZ II.
    Next workstation will probably force that comupter into a closet and my beloved ArtZ II will probably go with it...
    Even on my laptop out on the patio, if I have to do almost anything in PS, or Painter, I'll go grab my Intuos 2 and hook it up, even though it's a 9 x 12 and a bit big for the patio table (works fine on my various desktop situations though). I cannot be without my tablets, though I am not a fan of the Wacom mice that I have tried (2 still in the box). Best mouse is my Logitec cordless (hated its keyboard and got rid of it in a second), which has nice weight, the right feel for my hand and is just great. Still, I only use it for the duties that the Wacom is not the best at. If I open up PS, or Painter, the mouse sits idle.
    Good luck to the OP,
    Hunt

  • Aperture 3 shuts down every time I try to use it after only using it for one minute. Aperture closes then a pop up screen asks if I want to reopen Aperture. If somrone at Aperture didn't keep pushing a stop button for it to close,it wouldn't need to ask t

    Aperture 3 shuts down every time I try to use it after only using it for one minute. Aperture closes then a pop up screen asks if I want to reopen Aperture. If somrone at Aperture didn't keep pushing a stop button for it to close,Apple wouldn't need to ask the stupid question"Do you want to reopen Aperture?" to begin with. Anyone out there having the same annoying problem?? I like Aperture or used to anyway,but if this nonsense continues, I will be forced to buy some other editor besides "No hanging fruit - Adobe photoshop CS5" or "I don't like you so I'm shutting down - Aperture".

    Hello,
    sorry to hear about your troubles, but we will need to have more technical information about your problem to be able to help you:
    There may be several reasons that can cause Aperture to crash on start up:
    You may have imported an image (or video) in an encoding that Aperture does not support, or that is larger than 2 GB, or that is corrupted and Aperture cannot process it
    Your Aperture Library or Preferences may have been corrupted
    Or you are having a system wide problem with your machine.
    Or you may simple be running out of disk space.
    It would help, if you could post the crash log from your last crash. Also, more details on your Aperture Library: Is it managed or references? how large is it? Is it on your system drive or on an external drive?
    What have you done, shortly before the trouble started? Have you imported new images or videos? Did you install any plug-ins or any new software, lile Final Cut?
    Try, if you can get Aperture to launch, if you defer the generation of Previews: Hold down the SHIFT-key immediately after you start Aperture to prevent preview generation for that session. If a damaged image in your library is preventing normal opening, this may allow you to start Aperture. If this succeeds, try to identify the broken image or video among the images you recently imported and remove it from the library.
    Regards
    Léonie
    Don't you think your user name is a little bit tactless in an Apple provided forum?

  • Why we cant use commit in trigger, can any one give proper explanation

    Why we cant use commit in trigger, can any one give proper explanation

    You shouldn't use a commit in a trigger if it's part of the same transaction as the action happening on the table.
    Eg. Suppose you have a table that stores details of orders, and it has a trigger that updates the stock table.
    If a customer comes along and creates an order but decides part way through that actually, they don't want the order after all, the transaction is rolled back.
    If you don't put a commit in the transaction, then the stock table details remain unchanged - no order, so no stock reduction. If, however, you forced the commit to happen in the trigger, you now have no order, but the stock table details have changed.
    That's not what you want to happen!
    Sometimes it does make sense to have a commit in the trigger, but this is very much the exception. If you come across a table mutating error, it usually means that you have a problem with your design and that you need to rethink it, NOT bodge it by using autonomous_transaction and a commit.
    Of course, the times when you'd use triggers should be few and far between - the above example is NOT how I'd code an orders-stock transaction; I'd have some PL/SQL that handled the transaction, rather than direct inserts onto the table.

  • How to install windows 7 on my macbook pro mid 2009 using usb. right now aim using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me

    how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
    Iam new to coding. please help me.

    try the solution posted by kunu here and report back
    https://discussions.apple.com/thread/5105056?tstart=0

  • I have a very old (by computer standards) MacBook Pro, and a newer one.  I've been using the old one mostly for iTunes, into which I have only CD entries.  For a long time, years, the old MacBook pro ceased entering the song titles.  This is very time con

    I have a very old (by computer standards) MacBook Pro, and a newer one.  I've been using the old one mostly for iTunes, into which I have only CD entries.  For a long time, years, the old MacBook pro ceased entering the song titles.  This is very time consuming for me, so I finally investigated a bit further.
    I discovered how to enter the track titles onto my newer MacBook Pro, and was so pleased!  But when I tried to do the same with the other laptop, it failed. 
    What I did, basically, was what the Apple Help suggested--choose iTunes General Preferences, etc.etc.  And yes, I did upgrade the old laptop to the newest iTunes version.
    Am I just wasting my time here? Is there some reason why an older Mac Pro will not do what the newer one will, with regard to iTunes?
    My older laptop is a 2.6 GHz Core Duo; it has 36 GB of "memory available."  The newer one  a 2.3 GHz Intel Core i7. It has 284 GB of memory available.
    Both are using the same version of Snow Leopard--10.6.8.

    I have a very old (by computer standards) MacBook Pro, and a newer one.  I've been using the old one mostly for iTunes, into which I have only CD entries.  For a long time, years, the old MacBook pro ceased entering the song titles.  This is very time consuming for me, so I finally investigated a bit further.
    I discovered how to enter the track titles onto my newer MacBook Pro, and was so pleased!  But when I tried to do the same with the other laptop, it failed. 
    What I did, basically, was what the Apple Help suggested--choose iTunes General Preferences, etc.etc.  And yes, I did upgrade the old laptop to the newest iTunes version.
    Am I just wasting my time here? Is there some reason why an older Mac Pro will not do what the newer one will, with regard to iTunes?
    My older laptop is a 2.6 GHz Core Duo; it has 36 GB of "memory available."  The newer one  a 2.3 GHz Intel Core i7. It has 284 GB of memory available.
    Both are using the same version of Snow Leopard--10.6.8.

Maybe you are looking for