I am not getting the headings of the fields in ALV output.

I am not getting ALV out put but  the headings of the fields in ALV output.
Please see my below code .
TYPES : BEGIN OF ty_zgxmit.
          INCLUDE STRUCTURE zgxmit.
TYPES : END OF ty_zgxmit.
DATA : gt_zgxmit TYPE TABLE OF ty_zgxmit.
*&      Form  alv_display                                              *
This subroutine is to display the out put in ALV.                    *
FORM alv_display .
Local data
  DATA: y_x          LIKE boole  VALUE 'X'.
DATA: lt_fieldcat  TYPE slis_t_fieldcat_alv.
  DATA: lf_fieldcat  TYPE slis_fieldcat_alv.
  DATA: lh_index     LIKE lf_fieldcat-col_pos.
For variant
DATA: ws_repid LIKE sy-repid,
      g_save TYPE c VALUE 'A',
      g_exit TYPE c,
      g_variant LIKE disvariant,
      gx_variant LIKE disvariant.
  For 1st field.( RPT_LOC )
    CLEAR lf_fieldcat.
    lf_fieldcat-fieldname = 'RPT_LOC'.
    lf_fieldcat-tabname = 'GT_ZGXMIT'.
    lf_fieldcat-ref_tabname = 'RPT_LOC'.
    lf_fieldcat-ref_fieldname = 'ZGXMIT'.
    lh_index = lh_index + 1.
    lf_fieldcat-col_pos = lh_index.
    lf_fieldcat-key = y_x.
    lf_fieldcat-no_sum = y_x.
    APPEND lf_fieldcat TO lt_fieldcat.
For 2nd field.( BAL_XMIT )
    CLEAR lf_fieldcat.
    lf_fieldcat-fieldname = 'BAL_XMIT'.
    lf_fieldcat-tabname = 'GT_ZGXMIT'.
    lf_fieldcat-ref_tabname = 'BAL_XMIT'.
    lf_fieldcat-ref_fieldname = 'ZGXMIT'.
    lh_index = lh_index + 1.
    lf_fieldcat-col_pos = lh_index.
    lf_fieldcat-key = y_x.
    lf_fieldcat-no_sum = y_x.
    APPEND lf_fieldcat TO lt_fieldcat.
For 3rd field.( INC_XMIT )
    CLEAR lf_fieldcat.
    lf_fieldcat-fieldname = 'INC_XMIT'.
    lf_fieldcat-tabname = 'GT_ZGXMIT'.
    lf_fieldcat-ref_tabname = 'INC_XMIT'.
    lf_fieldcat-ref_fieldname = 'ZGXMIT'.
    lh_index = lh_index + 1.
    lf_fieldcat-col_pos = lh_index.
    lf_fieldcat-key = y_x.
    lf_fieldcat-no_sum = y_x.
    APPEND lf_fieldcat TO lt_fieldcat.
For 4th field.( Z500_XMIT )
    CLEAR lf_fieldcat.
    lf_fieldcat-fieldname = 'Z500_XMIT'.
    lf_fieldcat-tabname = 'GT_ZGXMIT'.
    lf_fieldcat-ref_tabname = 'Z500_XMIT'.
    lf_fieldcat-ref_fieldname = 'ZGXMIT'.
    lh_index = lh_index + 1.
    lf_fieldcat-col_pos = lh_index.
    lf_fieldcat-key = y_x.
    lf_fieldcat-no_sum = y_x.
    APPEND lf_fieldcat TO lt_fieldcat.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program       = 'ZJV_2245'
            it_fieldcat              = lt_fieldcat
       TABLES
            t_outtab                 = gt_zgxmit
       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.
ENDFORM.                    " alv_display

You can force the headings like so.
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'RPT_LOC'.
lf_fieldcat-tabname = 'GT_ZGXMIT'.
lf_fieldcat-ref_tabname = 'RPT_LOC'.
lf_fieldcat-ref_fieldname = 'ZGXMIT'.
lf_fieldcat-reptext_ddic  = 'Whatever Heading'.    "<-  Right here
lh_index = lh_index + 1.
lf_fieldcat-col_pos = lh_index.
lf_fieldcat-key = y_x.
lf_fieldcat-no_sum = y_x.
APPEND lf_fieldcat TO lt_fieldcat.
Regards,
Rich Heilman

Similar Messages

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • Billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc.

    Hi All,
    In case of billing document cancellation (VF11) the cancelled doc. is not getting automatically cleared against the actual billing doc. no. Each time user has to clear the doc. manually. We have observed this issue after recent patch updation dated 22nd Feb’2014. Till 21st Feb’2014 the cancelled doc. has been cleared automatically against their respective billing documents.
    Please guide.
    Thank you.

    Hi Gopi,
    Please chheck SAP Note No. 1259505. It explains two ways in which SAP releases cancellation documents to FI.
    OSS NOte 1259505 lists the possible causes from SD side &
    OSS Note 309208 lists the possible causes from FI side.
    Regards,
    Kavita

  • HT4859 The guy at the verizon store programmed my phone before I got the chance to restore my apps, etc. from icloud- therefore i did not get to go through the setup assistant..  How do i get my apps and app data back on my phone w/o having to go through

    The guy at the verizon store programmed my phone before I got the chance to restore my apps, etc. from icloud- therefore i did not get to go through the setup assistant..  How do i get my apps and app data back on my phone w/o having to go through and re-

    To restore from an iCloud backup you have to erase the phone and start over.  To do this, go to Settings>General>Reset, tap Erase All Content and Settings, then go through the setup assistant again and when given the option, choose Restore from iCloud Backup.  There is no other way to do this.
    Be sure you phone is connected to wifi and your charger as this is likely to take some time to finish.

  • I can not get sound out of the HDMI output on my mac mini. happened before after unpluging headphone and had to change some hrz number.

    I have had this problem before. I just cant remember how I fixed it. I am not getting any sound from the HDMI output. Everything is selected properly and volumes are set correctly. Last time I had to change a megahrz thing and thats where I am stumped.

    Mac HD/Applications/Utiltiies/Audio MIDI Setup
    441000 or 48000 Hz for Format

  • Hello, I am running a Mac book pro soft. 10.5.8 version. Since june the current year I did not get any updates for the software or any kinds of other application, in my opinion that's weird for such a company.

    Hello, I am running a Mac book pro soft. 10.5.8 version. Since June the current year I did not get any updates for the software or any kinds of the other application, in my opinion that's weird for such a company.
    The problem that I have now is with the Iphone 5 which is not supported for the current Itunes and I can not download the Itunes 10.7 version. What I supposed to do in this case because I can not syncronize at all.
    Please give me a hand as soon as possible.
    Many thanks

    Mac OS X 10.5.8 is years old, 3 major versions out-of-date and unsupported at this point. You will never get any further updates for 10.5.8, and more and more applications will stop supporting 10.5.8 as time goes on. As mende1 points out, you can buy Snow Leopard (Mac OS X 10.6), which will let you use your new iPhone with your computer, but you need to make sure your computer's hardware is supported. See the system requirements for Snow Leopard:
    http://support.apple.com/kb/SP575
    If your computer cannot run Snow Leopard, you will need to either buy a new computer or abandon any thoughts of syncing the iPhone with that computer.
    Also, note that you'll get far better integration of your iPhone and your Mac if you're using Lion (Mac OS X 10.7) or Mountain Lion (Mac OS X 10.8), which are required to use iCloud. Of course, the requirements of those systems are even steeper than those of Snow Leopard:
    http://support.apple.com/kb/HT4949
    http://support.apple.com/kb/HT5444

  • How do i remove the Icloud Lock on a Iphone thats Clean and can not get in touch with the oraganal owner

    How do i remove the Icloud Lock on a Iphone that's Clean and can not get in touch with the oraganal owner
    thers no  you cant put a reset tool on your site to reset phones thats not stolen or in lost mode

    it's an anti-theft measure DAH Its Not Stolen SO what the crap Then. I wish thay would Remove it From there Ios and Redo it so it Only Locke if you Report it Stolen  or enter Lost Mode. BC thers A lot of PPL that abuse it.

  • Was skiing with a lifeproof on and my phone did not get wet. On the ride back my phone was struggling to send/receive messages and had trouble opening apps. The screen froze and I hit the sleep button; since then, it has not turned on. A

    Was skiing with a lifeproof on and my phone did not get wet. On the ride back my phone was struggling to send/receive messages and had trouble opening apps. The screen froze and I hit the sleep button; since then, it has not turned on. Any suggestions on what to do?

    It probably got too cold and shut down. Warm it to room temperature, then hold the HOME and SLEEP buttons at the same time until an Apple logo appears.

  • My phone is listed as compatable on the Mozilla site, but I can not get it to locate the mobile or download it

    I have the Sony Erickson Experia X10 phone with Android 2.6 running on it. My phone is listed in the compatible phones list, but I can not get it to locate the app, nor can I get it to download. I have tried from the browser, the market app and even android.com's site. I can find the mobile app on the android.com market site (via my laptop) but it insists that it is not compatible with my phone. I love my FF and want the continuity this would provide. Please help!!

    There is no version 2.6 of Android. If you are using Android 1.6, then you will need to update your phone to Android 2.0 or later before you can install Firefox.
    To check which version of Android you have, open the "Settings" app, then choose "About phone" and look for "Android version."

  • Hi, I have downloaded some avi files and mov files. i am not getting audio while playing the movie. i tried to play with iTunes, QT, DivX player. but I am getting audio in mp4 files. can u help me to fix this

    Hi, I have downloaded some avi files and mov files. i am not getting audio while playing the movie. i tried to play with iTunes, QT, DivX player. but I am getting audio in mp4 files. can u help me to fix this

    First, back up all data and then uninstall "DivX" according to the developer's instructions.
    Then try this:
    VideoLAN - Download official VLC media player for Mac OS X

  • On my Iphone 4, I can not get any response accept the apple logo after recharging for an entire day and trying to connect to iTunes. help?

    On my Iphone 4s, I can not get any response accept the apple logo after recharging for an entire day and trying to connect to iTunes. A few days before that the speaker suddenly stopped working during a call. I also reset everything by connecting to itunes but no luck then. help?

    Hey there xntricj,
    It sounds like you are putting a password for your Apple ID that works without issue on your iPad into your iPhone but get a message saying that the password is incorrect. I recommend the steps from the article named:
    iCloud: "Incorrect Apple ID or Password" alert when setting up iCloud after upgrading to iOS 7
    http://support.apple.com/kb/TS5207
    After completing iOS 7 setup, go to Settings > iCloud.
    Scroll down and tap Delete Account, then enter your previous Apple ID and password.
    If your Apple ID or password are not accepted, follow the steps in iOS 7: If you're asked for your previous Apple ID when signing out of iCloud.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt cmd esc. Ideas?

    When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt+cmd+esc. Ideas?

    I have never seen it but then I run SL which is much more reliable than Lion..
    See
    http://pondini.org/TM/E4.html
    Check the master guru of all TM problems.

  • Since I upgraded I can not get into any of the POGO games

    before I upgraded to the newest version of firefox everything worked fine , now I can not get into any of the POGO.com games unless I use internet explorer and I do not want to do that

    Mozilla are aware of the issue in Firefox 3.6.14 and are working on a fix, no timescale but they are planning on a quick release. Firefox 3.6.15 will fix the issue with some Java applets not working, which has caused many Pogo games to stop functioning.

  • How do I travel to other countries and have my phone still work and not get any surprises in the bill?

    How do I travel to other countries and have my phone still work and not get any surprises in the bill?

    Depends on what you mean by "surprises" in the bill. Verizon's rates for using your phone internationally are pretty expensive, ~$0.99/minute. I would certainly think a 10 minute call for $10 would be surprising!
    Well it would certainly depend on your phone, but if it is a 4G LTE phone, you can simply purchase a prepaid SIM card from the location you are going, switch that with the SIM card currently in your phone and you would be using your phone locally in that location. Of course you would need to notify people needing to contact you of your "temporary" new international phone number. Make sure you keep your Verizon SIM card safe as you would want to switch back to it when returning to the states.
    You can see Verizon's global services information HERE. It includes a trip planner and would be more specific on the prices you would expect to pay if you chose to use Verizon's service rather than a local SIM card from where you are visiting.

  • My iphone can not get in touch with the server. What can I do?

    My Iphone can not get in touch with the server, when I am trying to accept terms and conditions. What can I do?

    Possible causes:
    1. Your antivirus is blocking access to gs.apple.com.
    2. Your phone is jailbroken.
    3. Your computer has been used at some time in the past to jaibreak some iOS device (not necessarily the phone with the problem), and its network database was corrupted by the hacking software that was used.
    4. Apple's activation servers are down (very rare, and never for more than an hour or so).
    For 1. try disabling your antivirus.
    For 2. & 3. you need to go somewhere other than an apple forum for help. Although you can try deleting lines containing gs.apple.com from your "hosts" file on your computer.

Maybe you are looking for