Alv show in report but when see in spool (after run background job) there i

my program have some error when i run result alv show in report but when see in spool (after run background job) there is no data, (other program can see result in spool)
Please help
here is some example of my program
********************************declare internal table*****************************
internal table output for BDC
data : begin of t_output occurs 0,
bukrs type anla-bukrs,
anln1 type anla-anln1,
anln2 type anla-anln2,
zugdt type anla-zugdt,
result(70) type c,
end of t_output.
*****get data from loop********************************
  loop at t_anla.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
              INPUT  = t_anla-anln1
         IMPORTING
              OUTPUT = t_anla-anln1.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
         EXPORTING
              INPUT  = t_anla-anln2
         IMPORTING
              OUTPUT = t_anla-anln2.
check record is correct or not
    select single bukrs anln1 anln2 zugdt
    into w_output
    from anla
    where bukrs = t_anla-bukrs and
    anln1 = t_anla-anln1 and
    anln2 = t_anla-anln2
   zugdt = '00000000'
if record is correct
    if sy-subrc = 0 and w_output-zugdt = '00000000'.
      w_output-bukrs = t_anla-bukrs.
      w_output-anln1 = t_anla-anln1.
      w_output-anln2 = t_anla-anln2.
      w_output-result = 'Yes : this asset can delete'.
      append w_output to t_output.
if record is not correct
    elseif sy-subrc = 0 and w_output-zugdt <> '00000000'.
there is error record  this asset have value already
      v_have_error = 'X'.
      w_output-bukrs = t_anla-bukrs.
      w_output-anln1 = t_anla-anln1.
      w_output-anln2 = t_anla-anln2.
      w_output-result = 'Error : this asset have value already'.
      append w_output to t_output.
    else.
there is error record this asset donot exist in table anla
      v_have_error = 'X'.
      w_output-bukrs = t_anla-bukrs.
      w_output-anln1 = t_anla-anln1.
      w_output-anln2 = t_anla-anln2.
      w_output-result = 'Error : this asset doest not exist'.
      append w_output to t_output.
    endif.
*end of check record is correct or not
    clear w_output.
  endloop.
******************************show data in ALV***************************************************
show data from file in ALV
  perform display_report_ALV.
*&      Form  display_report_ALV
form display_report_ALV.
  DATA: LT_FIELD_CAT TYPE SLIS_T_FIELDCAT_ALV,
      LT_EVENTS TYPE SLIS_T_EVENT,
      LV_REPID LIKE SY-REPID.
  PERFORM ALV_DEFINE_FIELD_CAT USING LT_FIELD_CAT.
  PERFORM ALV_HEADER_BUILD USING T_LIST_TOP_OF_PAGE[].
  PERFORM ALV_EVENTTAB_BUILD USING LT_EVENTS[].
  LV_REPID = SY-REPID.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            I_CALLBACK_PROGRAM = LV_REPID
            IT_FIELDCAT        = LT_FIELD_CAT
            I_SAVE             = 'A'
            IT_EVENTS          = LT_EVENTS[]
       TABLES
            T_OUTTAB           = t_output
       EXCEPTIONS
            PROGRAM_ERROR      = 1
            OTHERS             = 2.
  IF SY-SUBRC NE 0.
    WRITE: / 'Return Code : ', SY-SUBRC,
      'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
  ENDIF.
endform.
*&      Form  alv_define_field_cat
      text
     -->P_LT_FIELD_CAT  text
FORM ALV_DEFINE_FIELD_CAT USING  TB_FCAT TYPE SLIS_T_FIELDCAT_ALV.
  DATA: WA_FIELDCAT LIKE LINE OF TB_FCAT,
    LV_COL_POS TYPE I.
  DEFINE FIELD_CAT.
    CLEAR WA_FIELDCAT.
    ADD 1 TO LV_COL_POS.
    WA_FIELDCAT-FIELDNAME = &1.
    WA_FIELDCAT-REF_TABNAME = &2.
    WA_FIELDCAT-COL_POS = LV_COL_POS.
    WA_FIELDCAT-KEY = &3.
    WA_FIELDCAT-NO_OUT = &4.
    WA_FIELDCAT-REF_FIELDNAME = &5.
    WA_FIELDCAT-DDICTXT = 'M'.
    IF NOT &6 IS INITIAL.
      WA_FIELDCAT-SELTEXT_L = &6.
      WA_FIELDCAT-SELTEXT_M = &6.
      WA_FIELDCAT-SELTEXT_S = &6.
    ENDIF.
    WA_FIELDCAT-DO_SUM = &7.
    WA_FIELDCAT-OUTPUTLEN = &8.
    APPEND WA_FIELDCAT TO TB_FCAT.
  END-OF-DEFINITION.
  FIELD_CAT  'BUKRS'  'ANLA'     'X' '' 'BUKRS' 'Company Code' '' ''.
  FIELD_CAT  'ANLN1'  'ANLA'     'X' '' 'ANLN1' 'Asset Number' '' ''.
  FIELD_CAT  'ANLN2'  'ANLA'     'X' '' 'ANLN2' 'Asset Sub Number' '' ''.
FIELD_CAT  'ATEXT'   'T5EAE'     'X' '' 'ATEXT' 'Result' '' ''.
  FIELD_CAT  'RESULT'  ''     'X' '' 'RESULT' 'RESULT' '' ''.
ENDFORM.                    " alv_define_field_cat

Hi,
Check this code..
FORM display_report_alv.
  DATA: lt_field_cat TYPE slis_t_fieldcat_alv,
  lt_events TYPE slis_t_event,
  lv_repid LIKE sy-repid.
  PERFORM alv_define_field_cat USING lt_field_cat.
  PERFORM alv_header_build USING t_list_top_of_page[].
  PERFORM alv_eventtab_build USING lt_events[].
  lv_repid = sy-repid.
  IF sy-batch EQ 'X'.  ----> " System Field for Backgroud..if Background use list display
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = lv_repid
        it_fieldcat        = lt_field_cat
        i_save             = 'A'
        it_events          = lt_events[]
      TABLES
        t_outtab           = t_output
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
  ELSE.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = lv_repid
        it_fieldcat        = lt_field_cat
        i_save             = 'A'
        it_events          = lt_events[]
      TABLES
        t_outtab           = t_output
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
  ENDIF.
  IF sy-subrc NE 0.
    WRITE: / 'Return Code : ', sy-subrc,
    'from FUNCTION REUSE_ALV_GRID_DISPLAY'.
  ENDIF.
ENDFORM.                    "display_report_ALV

Similar Messages

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

  • When I run the cursor over a template it shows several pages but when i select the document it only brings up the first two pages to edit. How do I see them all?

    When I run the cursor over a template it shows several pages but when i select the document it only brings up the first two pages to edit. How do I see them all?

    Skimming the templates in the Template Chooser shows you all of the pages available in the template once you open it. You can insert the one(s) you want, even more than one of any of them. Most users don't want or need all of the different pages, especially when they start the document.

  • HT1551 hi i do not see hulu plus programs. I see the shows to select but when i select a show i see the circle spin then it say please try later. That has happened over the 2 days now. This is also now happening with Netflex.

    hi i do not see hulu plus programs. I see the shows to select but when i select a show i see the circle spin then it say please try later. That has happened over the 2 days now. This is also now happening with Netflex.

    its ok i just pulled the plug from the Apple TV waited 3 minutes and plugged back in and now it works.

  • My Ipod touch 5th gen is connected to wifi but internet doesnt work on it. It is showing full connectivity but when i try using itunes or safari, nothing loads.

    My Ipod touch 5th gen is connected to wifi but internet doesnt work on it. It is showing full connectivity but when i try using itunes or safari, nothing loads.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • TS3274 My App Store shows 3 updates but when I go to it the screen is blank. It will not give me the option to update all or one at a time, it doesn't show the apps at all.

    My App Store shows 3 updates but when I go to it the screen is blank. It will not give me the option to update all or one at a time, it doesn't show the apps at all.

    Many people are having this problem for the last couple of days. This is a problem that Apple has to fix. If you look around the forum, you will see many, many discusssions about this and they have been going on for a few days.
    According to Fly150 in another discussion, this is a workaround - for the time being.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store.

  • HT201317 My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.

    My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.I reinstalled my icloud and checked if icloud sharing is ON. I can see pic in my photo stream in PC only in slide show mode. While in list mode it shows pics before i actually click on photostream folder. My phone memory is out becose of bunch of photoes. How do i copy my photostream photoes.

    Hi all.  I can’t tell you how to solve your iCloud 3.x issues.  Heck, I don’t think they’re even solvable.
    But if you had a previous version of iCloud that was working correctly then I can definitely tell you how to solve the “iCloud Photo Stream is not syncing correctly to my Windows 7 PC” problem.  …without even a re-boot.
    Log out of iCloud 3.0 and uninstall it.
    Open My Computer and then open your C:\ drive.  Go to Tools/Folder Options and click on the View tab.  Select the “Show hidden…” radio button and click on OK.
    Open the Users folder.
    Open your user folder
    Open ProgramData (previously hidden folder)
    Open the Apple folder – not the Apple Computer folder.
    Open the Installer Cache folder
    In Details view sort on Name
    Open the folder for the newest entry for iCloud Control Panel 2.x – probably 2.1.2.8 dated 4/25/2013
    Right click on iCloud64.msi and select Install.
    When finished, the synching between iCloud and your PC will be back to working perfectly as before the 3.0 fiasco.  The pictures will be synched to the same Photostream folder as before the “upgrade”.  Now all you need to do is wait until Apple/Microsoft get this thing fixed and working before you try the 3.x upgrade again.
    I think the iCloud 3.0 software was written by the same folks who wrote healthcare.gov with the main difference being that healthcare.gov might eventually be made to work.
    For those of you who hate to go backwards, think of it as attacking to the rear.  Which would you rather have, the frustration of no synching or everything working on an older version?
    Good luck…

  • App store shows no content but when i search those apps appear

    app store shows no content but when i search for a particular app they appear and then returns to a blank screen

    Many people are having this problem for the last couple of days. This is a problem that Apple has to fix. If you look around the forum, you will see many, many discusssions about this and they have been going on for a few days.
    According to Fly150 in another discussion, this is a workaround - for the time being.
    If you want to update the Apps while waiting for Apple to fix Updates:
    1. Go to App Store
    2. Select Purchased
    3. Select All
    4. Scroll down to find the Apps showing update
    5. Select update on the Apps
    This should update the Apps and get rid of the update count in App Store.

  • Iphone 4, App store showing 2 updates, but when I go into the app store it says all apps are up to date.

    I have an Iphone 4, IOS version 6.1.3. 
    My app store badge is showing 2 updates, but when I go into my app store, it tells me all apps are up to date.   I've tried several of the fixes that others have who have had simular issues,  but so far, I havn't seen anyone who is having the issue of the app store saying the apps are up to date. (Most others are unable to load the app store or its just blank.)
    Sometimes when I go into the app store the notification will go away,  but its only temporary as it will come back again later.   I've gone through my purchased list,  and there are none that have update beside them.  There are some that have a cloud,  but all of those are ones I have deleted and do not wan
    Unlike most users, I do not have a ton of apps.  Probably less then 30, some of those are ones it came with.  If this was a computer, I would think that there is something in the registry that is left over from one of the apps I deleted and its triggering the app store.  IDK if it works like that on Iphones as I'm not really an expect. This is the only apple device I've ever owned and I got it used from a friend about 6 months ago. (It was cleared and restored before I bought it from her)
    Everthing else seems to be working fine for the most part, except that it has been acting kinda slow and sometimes the browser and stuff doesn't load right the first try. (I only use wifi on it, as I don't use a cellular service with this Iphone)

    ATtempt to power off your device and power it back on, if that doesn't work reset all settings should resolve it for you

  • I just bought a Mac Book Pro and the Appstore show one upgrade of iPhoto (9.2.1). I started a section with my Apple ID (the account that I have I use to iTunes) but when I try to update it says that there are upgrades available for other accounts and that

    I just bought a Mac Book Pro and the Appstore show one upgrade of iPhoto (9.2.1). I started a section with my Apple ID (the account that I have I use to iTunes) but when I try to update it says that there are upgrades available for other accounts and that I have to upgrade using the account that I used to buy iPhoto. What do I have to do to upgrade iPhoto?

    Dear Katty,
    Thank you very much for your answer! I have 2 Apple ID, and I have tried both of them and the problem continues. I founf several peolpe with the same problem in apple communities foruns and that really seems that there is some problem. I addded the links for 2 of those discussions.
    https://discussions.apple.com/thread/3374419?start=0&tstart=0
    https://discussions.apple.com/message/16628399#16628399
    Do you have an idea of how can I solve this problem?
    Thank you very much again.
    Best regards,
    Alfonso

  • I have created a slide show with music but when i view it or attempt to burn to a CD or even copy to hard drive after about 15 sec the program stops working and it shuts down

    Elements 10 was deactivated on desktop and installed on new laptop.  Have on
    y used it for photo editing until yesterday. Created a slide show with music but every time I try to burn to cd or move it to hard drive after about 15 sec, it says windows has encountered a problem with this program and must shut down.
    I Also can't sign in to adobe with the program. It simply spins and I had to force close the program.
    help!?

    I am using photoshop Elements 10 under the create tab...slide show.
    Used it on my desktop several times. Deactivated it and installed on new lap top about 5 months ago.  Had not used it other than for photo editing until today.
    I can also not login in thru the program. It simply spins and I finally had to force close the program
    Toni V. Sloan
    Sent from my iPad
    On Jun 27, 2014, at 7:03 PM, Chris Cox <[email protected]>
    I have created a slide show with music but when i view it or attempt to burn to a CD or even copy to hard drive after about 15 sec the program stops working and it shuts down
    created by Chris Cox in Photoshop General Discussion - View the full discussion
    Photoshop doesn't do slideshows… What software are you using?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6504356#6504356
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • When i open a file the pictures show at bottom, but when I click on a pic it only shows a triangle with a ! in the center

    when i open some files the pictures show at bottom, but when I click on a pic to open it only shows a triangle with a ! in the center

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, even jpeg files. This is a NEW frustration.

    When capturing images from a Nikon D600, they show in Bridge, but when clicked to load into CS6,an error message says that it is the wrong type of document, evne jpeg files. This is a NEW frustration.

    Nikon raw files would open up in Adobe Camera Raw and so should jpegs.
    If you select one in Bridge and give the command "Ctrl r" (Windows), what happens?
    Also what is the version of ACR in the title bar?
    Gene
    Note: unmark your question as "answered". the green balloon next to the subject shows it as "solved".

  • Hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • Picture shows in library but when i open develop it shows a blue screen with a diaginal cross

    picture shows in library but when i open develop it shows a blue screen with a diaginal cross

    Go to the Preferences>Performance tab and uncheck the "Use Graphics Processor" option. Adobe are aware of this issue, and are investigating, but in the meantime unchecking that option should sort out your Develop module issues.

Maybe you are looking for

  • Computer cannot find ipod!

    Hello, I purchased a 1gb ipod shuffle about 6 months ago, and have had no problems with it until recently. For the past week I have been unable to edit the songs in iTunes or reset it with the ipod updater. I have tried uninstalling the USB massive s

  • Where I can get visio file of SAML claims-based authentication process

    Hello I saw SAML claims-based authentication process flow diagram  on http://msdn.microsoft.com/en-us/library/office/hh394901(v=office.14).aspx . Please let me know where I will get the visio of this file.   Regards Avian

  • Cursor is not visible in MIAW

    Hi All, I'm working on a desktop application (flash swf files opening in director shell). When I'm launching MIAW with hidden titlebar, cursor is not appearing in flash textfield. I have used Selection.setFocus() (Action script method) to put the foc

  • IDoc - XI - Web Service configuration

    Hallo This is the problem we are facing : We get an IDoc as Inbound, do some mapping and then send it to a WebService. The problem is that when we do so, we get a series of errors. Apparently the problem is that when the web service receives our mess

  • Applying BP05 on OIM 11g

    Following is one of the pre-request for applyign BP05 Confirm the opatch and unzip executables exist and appear in your system PATH, as both are needed to apply this bundle patch. Execute the following commands: which opatch which unzip In my system