Way to get alv grid varients info during background execution
I have used the function module 'REUSE_ALV_GRID_LAYOUT_INFO_GET' to get info alv grid varients i.e already created layout info. Is there any other way of getting this info as this is not giving the exact layout during background execution.
Hi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
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. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
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. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek
Similar Messages
-
ALV GRID with two Containers Background Execution
Hi Friends,
I have to display two ALV GRIDS on two Container one below another in one screen.
I tried with 'DOCKING CONTAINER' - it works fine in foreground and not in BACKGROUND exection.
In background execution (F9) only one grid is getting displayed.
Please suggent whether I can go for CUSTOM CONTAINER or SPLITTER or some other way.
But I should use GRID DISPLAY and it should work in BACKGROUND EXECUTION also.
Regards,
VijiHi Vijaya,
It should work. I am giving you a sample code. Try this and let me know.
REPORT TEST.
data gt_lfa1 type standard table of lfa1.
data gt_kna1 type standard table of kna1.
start-of-selection.
select * from lfa1 into table gt_lfa1 up to 10 rows.
select * from kna1 into table gt_kna1 up to 20 rows.
end-of-selection.
if sy-batch eq 'X'.
perform display_lfa1.
perform display_kna1.
endif.
form display_lfa1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'LFA1'
tables
t_outtab = gt_lfa1
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. " DISPLAY_LFA1
form display_kna1 .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = sy-repid
i_structure_name = 'KNA1'
tables
t_outtab = gt_kna1
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. " DISPLAY_KNA1
copy and paste the code and create a program. Activate it and come back to SE38 screen.
Now, in program name give the name of the report created and then
select PROGRAM->EXECUTE->BACKGROUND from the MENU bar.
This will generate two separate spools . One for KNA1 data & one for LFA1 data.
Let me know how it goes.
Thanks,
Abhishek -
GP Mail: Unexpected internal exception during background execution
Hi,
I have designed a process in Guided Procedures which send mails when Approved or Rejected. I get an exception for users who have yahoo or gmail IDs.
Technical Exception:
Unexpected internal exception during background execution: The message contains non-trusted or invalid receivers
Is there any setting /configuration for sending mails to these.
Pl help
Thanks,
Vasu
Message was edited by:
Vasu MullapudiHi,
are you using the Bounced Mails Framework to manage you mails? If so, one possible explanation is that BMF blocks untrusted messages.
To configure BMF options, go to the Administration workset and edit the list of trusted addresses in BMF.
More info:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/450862f1f014bce10000000a155369/frameset.htm">Administering the BMF</a>
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/4491dafaab0597e10000000a155369/frameset.htm">Managing Trusted Addresses</a>
HTH
Regards, Petja -
Data not getting displayed in ALV grid when run in background
Hello experts!
Could anyone help me out please?
I need to display an ALV grid in the background. My requirements are as follows:
I first display an ALV grid in the foreground based on some input parameters. The user selects a few records for updating it and clicks on the "update" button. On the click of this button another report must be called and here the ALV report is displayed in the background.I am using "reuse_alv_grid_display" to display the grid.
I am using Import/Export to get the selected rows in my called report. When i execute this report in the foreground i get the ALV grid along with the data. But when i execute it in the background, i get only the grid with the fieldnames and not the data when i check in SP01.
Thanks in advance!
SmithaHi Smitha,
If you are able to see in SP01 and only see the output layout or "List contains no data" shows clealry that the data is not getting passed in the called program or the data is not being used correctly in the called program.
Cheers
VJ -
Is there any way to get my podcasts to pause during notifications or turn by turn directions?
i get frustrated when I'm using the turn by turn directions and listening to a podcast and the podcast continues to play. Is there any way to set the app to pause during notifications?
iPad Photo Recovery: How to Recover Deleted Photos
http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
How to Restore Lost or Deleted Files from iPad
http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
How to Recover Deleted Files from iPad
http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
How to Recover Photos from iPad
http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
iSkysoft Free iPhone Data Recovery
http://www.iskysoft.com/iphone-data-recovery/
Recover iPhone/iPad/iPod touch lost data, Free.
Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
Recover data directly from iPhone or from iTunes backup
Preview and recover lost iOS data with original quality
Wondershare Dr.Fone for iOS
http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
iPad Data Recovery Software (PC & Mac)
http://www.anysoftwaretools.com/ipad-data-recovery.html
Jihosoft Mobile Recovery for iOS
http://www.fonerecovery.com/iphone-data-recovery.html
Cheers, Tom -
Any way to get rid of the awful white background in grid view?
The old dark background was infinitely easier on the eyes, and more attractive. When I look at stuff in grid view now it gives me a headache. Any chance of changing this back via terminal or something?
I would also like to know how to get rid of ugly *** white background. It ****** me off every time I have to look at it. There is nothing that I see here as being an improvement over the last itunes.
-
Is there a way to get Safari to download tabs in background?
Hi there,
If I do a search on something and as I scroll through the search results, I usually Command Click to open a result in a new tab.
I could open about 5 or 6 tabs but none of them download until I click on the tab to bring it into focus. So if I'm scanning down the results and one of the tabs could be a PDF, it only starts loading once I activate the tab which seems a bit of an illogical waste of time as it could be have downloaded in the background while I was looking at other things. What it does do however is that if I click on a tab that could be a PDF d/l of about 5 MB say, as soon as I activate the tab, it starts to download, I can then zap to another tab, get that to download, zap to the third tab, then the fourth and so on... So my usual ritual is to do my search, open the search results in several tabs, and then quickly zap through each one of the new tabs to start the screen loading.
So... Is there a setting in Safari to get EACH tab to download as soon as I Command click?
I find Firefox to be a miles better browser than Safari but switched to Safari because FF had a slight irritating "nudgey" delay when scrolling which Safari doesn't. However, maybe I should switch back to FF because there are far too many "quirky irritations" with Safari that I'm noticing... e.g. if I have one tab open, it doesn't display a tab, but when I open a new tab (i.e. a second tab) in the background, the first screen jerks down because the tab for the first screen now appears! It should be there initially!
Anyway, I apologise for digressing... if there's some setting for background loading of tabs in Safari, it would be great!
Thanks, MazYou're right.. Command click from search results should open in a new tab then load that webpage.
From your Safari menu bar click Safari > Preferences then select the Privacy tab.
Click: Remove All Website Data
Then delete the cache.
Open a Finder window. From the Finder menu bar click Go > Go to Folder
Type or copy paste the following
~/Library/Caches/com.apple.Safari/Cache.db
Click Go then move the Cache.db file to the Trash.
Quit and relaunch Safari to test.
If nothing above helped, troubleshoot Safari extensions.
From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
If nothing above has helped, make sure your system software is up to date.
Click the Apple top left in your screen. From the drop down menu click Software Update. -
How to get the Grid lines in the background of bar chart
How to get the background of bar chart given in the following link
http://javafx.com/docs/articles/controls/barChart.jpg
thanks in advanceSet the border attribute of the table tag to zero. Use CSS to assign your borders like this -
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
table {
border-collapse:collapse;
border:1px solid black;
tr {
border:1px solid black;
tr.top {
border-bottom:none;
tr.bottom {
border-top:none;
</style>
</head>
<body>
<table width="600" border="0">
<tr class="top">
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr class="bottom">
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html> -
Raising of CONTROL_FLUSH_ERROR during background execution of RBDMIDOC
Hi
I run program RBDMIDOC in the background job for automatic transport of data. Im sure that RBDMIDOC supports background executing, but background job is canceled with runtime error RAISE_EXCEPTION and following description: Exception condition CONTROL_FLUSH_ERROR raised.
Could anyone please help me ?
Best regardsHi Victor,
Go to SM37 and put in the username as DDIC and see the job log.
Also check Sm50 and see whether you have BTC processes available.
Last but not the least check your filesystem space usage too.
Gerard -
ALV Grid in ITS Mobile Application
Hi Experts,
I am working on Integrated ITS. In my application I need to use ALV Grid to display and modify data. I have used a custom control on the screen to display the ALV grid. The application running fine when I am executing the tcode but when I am testing in SICF its not getting displayed. I am seeing an error on that screen saying "Unknown type CUST_CTRL for element CONTAINER1".
I am just following the general way of displaying ALV Grid.
- CREATE OBJECT go_container1
- CREATE OBJECT go_alvgrid1
- CALL METHOD go_alvgrid1->set_table_for_first_display
I am seeing the standard service ITSMOBILE which is having templetes for ALV_GRID, CUST_CONTROLS etc. Do I need to use these templates in my service? and how to use it?
I am new to ITS Mobile. Please guide me in doing this.
Thanks,
SAMHi Edgar,
Thanks a lot for your reply. My program is ready and the templates also created for ll my screen and all the screen are working fine except the 4th screen on which I want to display the ALV Grid.
On this screen I just have a Custom Control placed and created the template. But while testing I am not seeing anything apart from the error 'Unsupported cust control........' .
In the CUA Area of the HTML template :
<table class="MobileUserArea" cellpadding="0" cellspacing="0" border="0" style="width:25.2em">
<thead><tr style="height:-1px">`
repeat with i from 1 to 028
`<td style="width:`~itsmobile1UnitWidth`"/>`
end
`</tr></thead>
<!-- line 1 -->
<tr class="MobileRow">
<td colspan="29" rowspan="11">
<div>Unknown type CUST_CTRL for element CONTAINER1</div>
</td>
Template creation, ITS Service creation and SICF part seems correct for me as I am able to see other screen working fine for me. I am not sure where I am doing wrong. There should be a specific way to display the alv.
Kindly help me giving the steps of it.
Thanks,
SAM -
Binding ALV GRID with Deep Internal Table
Hello all,
I am looking for a way to display ALV Grid with the Deep ITAB.
My ITAB is not too complex.
It has One Structure which gets whole DB table + One extra field.
Therefore my Itab looks as follows.
TYPES: BEGIN OF TY_TRIP,
ZPM_UPLOAD LIKE ZDBTABLE, "ZDBTABLE is custom database table.
TDTIME TYPE STRING,
END OF TY_TRIP.
DATA: ITAB TYPE TABLE OF TY_TRIP,
WA_ITAB LIKE LINE OF ITAB.
Now i am able to populate data into Deep ITAB.
If i call ALV Grid with ITAB then i get error. So how to call 'REUSE_ALV_GRID_DISPLAY' with this ITAB?
Thanks in advance.Hello,
My senior asked me to use the below definition.
TYPES: BEGIN OF TY_TRIP.
INCLUDE STRUCTURE ZDBTABLE.
TYPES: TDTIME TYPE STRING,
END OF TY_TRIP.
DATA: ITAB TYPE TABLE OF TY_TRIP,
WA_ITAB LIKE LINE OF ITAB.
If anyone else is looking to print in ALV, they can use this type of ITAB definition though it gives you the flexiblity to create ITAB and also making it FLAT and not DEEP.
But i am still looking for an answer for my first post.
Thanks. -
Vendor open items wise ALV Grid Display (FBL1N) report to Excel Sheet
Hi All,
I need vendor wise open items and cleared items in ALV Grid format in excel sheet.
I'm Trying that in T Code FBL1N, After the execution. I had select ALV Grid format like this From the menu bar->Settings-> Switch list.
After that i get ALV Grid format, Then i'm doing export the data to excel sheet. like this From the Menu bar->List->Export->Spread sheet.
That time i'm getting Error Message no. 0K064, Filter criteria, sorting, totals and subtotals are not taken into account.
I want vendor wise sorting totals and subtotals,
How can i over come this Error please let me now.
Thanks,
AmarHi Amar,
Please check the KBA 2083705.
https://websmp230.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3230383337303526
Regards,
Monika -
Want to export output of alv grid to excel automatically
hi friends.............
i want to export output of alv grid without displaying on screen to excel file .......................
how i m able to do it ..............................
in the same way as after alv grid display click on LOCAL FILE-> SPREADSHEET-> ........................
plz rply me soon if anyone of u know abt that.................
thanks allot.............actually in output through 'REUSE_ALV_GRID_DISPLAY' some title is also there through TOP_OF_PAGE how can download it also and data table in excel sheet ...................
actually when an alv output is displayed then some title data is also displayed in alv grid then we can download it by clicking on icon 'local file--> spreadsheet........and soon ' ..........
my req. is download it automatically without doing this process and without displaying it on screen......... it means i want to interrupt to alv grid output to only download without displaying it in output screen............
if u clear my question then reply me............. -
ALV Grid Subtotal text and Total text display
Hello ABAPGuru's
I want to display the subtotal and Total texts. alv grid program runing on background.
Regards
Sweety(Sri)Hello Neil,
Here I have attached my routines.anyway my confusion. I have wrote the routine subtotal_text .but i am not passing ALV GRID FM.
*& Form eventtab_build
&---- This is used to get the list of events
---- <--RI_EVENTS Internal table
FORM eventtab_build CHANGING ri_events TYPE slis_t_event.
Structure for event handling.
DATA: rs_event TYPE slis_alv_event.
Returns table of possible events for a list type.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = ri_events. " Table of events to perform
Read the internal table with the TOP_OF_PAGE and move the
form name to the internal table
READ TABLE ri_events
WITH KEY name = slis_ev_top_of_page INTO rs_event.
IF sy-subrc = 0.
MOVE c_formname TO rs_event-form. " Form name
MODIFY ri_events FROM rs_event
INDEX sy-tabix. " Top of page event
ENDIF.
READ TABLE ri_events
WITH KEY name = slis_ev_end_of_page INTO rs_event.
IF sy-subrc = 0.
MOVE c_form_eop_name TO rs_event-form. " Form name
MODIFY ri_events FROM rs_event
INDEX sy-tabix. " Top of page event
ENDIF.
READ TABLE ri_events
WITH KEY name = slis_ev_subtotal_text INTO rs_event.
IF sy-subrc = 0.
MOVE c_formname_subtotal_text TO rs_event-form. " Formname
MODIFY ri_events FROM rs_event
INDEX sy-tabix. " Top of page event
ENDIF.
*&-- Delete all unneeded events:
DELETE ri_events WHERE form IS INITIAL.
ENDFORM. " eventtab_build
*& Form SUBTOTAL_TEXT
text
--> p1 text
<-- p2 text
FORM SUBTOTAL_TEXT USING ep_subtot_line TYPE type_data
e_event_data TYPE slis_subtot_text.
IF NOT e_event_data-criteria IS INITIAL.
E_EVENT_DATA-DISPLAY_TEXT_FOR_SUBTOTAL = 'Account Total'.
ENDIF.
ENDFORM. "SUBTOTAL_TEXT
*& Form initialise_layout
Initialise Layout
FORM initialise_layout .
i_layout-colwidth_optimize = c_x.
i_layout-group_change_edit = c_x.
*i_layout-subtotals_text = ' a'.
i_layout-detail_popup = c_x.
i_layout-zebra = c_x.
i_layout-no_vline = 'X'.
i_layout-no_hline = 'X'.
i_layout-totals_text = 'Account Total'.
ENDFORM. " initialise_layout
Call the function module to display the report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_program
i_callback_top_of_page = 'TOP_OF_PAGE' "Top Of Page
is_layout = i_layout
it_fieldcat = i_fieldtab
it_sort = i_sort
it_events = i_events " Events
is_print = i_print
i_default = c_x
i_save = c_save
is_variant = v_variant
TABLES
t_outtab = i_data
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
Sweety (Sri) -
Excel view in ALV Grid---- Urgent
Hi,
On executing sample porgram BCALV_FULLSCREEN_DEMO, we get ALV grid display. After that, on Clicking "<b>Microsoft Excel View(controlshiftF7)</b>" we are getting blanck Excel screen view instead of the field values.
I have the same scenario requirement in real time. I want the excel screen with values from ALV Grid.
Thanks in Advance.
-Mohan.Hi Mohan,
Try this:
Download Data in EXCEL from ALV list display
1) Once you have alv report displayed in the screen.
2) Click button 'View' ( next to print button) on application toolbar
3) Select Excel in Place
4) This will download the same format as of Report
I hope your ALV have all the Standard functions in Toolbar. If not copy the status from and get the function as mentioned above.
<b>Program - SAPLSALV
Status - STANDARD</b>
Reward points if this Helps.
Manish
Maybe you are looking for
-
I am unable to copy and paste a number from the call logs in the hub to the 'to' field in the text message. On pressing the number in the call log the copy number option appears but the number cannot be pasted in the text message 'to' field. The clip
-
Freeradius Authentication not working when AP is given a reboot
Dear All, I have been working on this lab. The blue part of the network represents GNS3 emulated part and green part is real part. Following are key components in network. I am using Centos 7 as Freeradius. I am using Cisco e4200 with DDWRT as access
-
Hi all, in the time Taken Overview page in ESS (sap~lea dc), can we somehow make the "show Overview of Leave" by default open? i.e, I want to hide the "Show calendar" and make the third link to be opened by default. I tried to do this using floor pla
-
Buttons to change to next/previous state not working
Hi guys Apologies if you consider this an acrobat issue but I thought it was more indesign. I am trying to add in a slide show to my interactive pdf and I just can't get it to work. I've followed a couple of tutorials to the letter and when I preview
-
Ringtone Editor release?
Maybe someone from Apple will see this that knows the answer. iTunes 7.4 has been released and I have upgraded to it already on my iBook. I just purchased an iPhone yesterday and have totally converted all of my life from my Treo to the iPhone very s