How to Send the result of a report to a user through email.
Hi,
We have a report. It creates quotation. It automatically sends the report to the printer.
in nace transction - for the particular quotation type - the output types are defined. The output types for printer, Fax, External Send and Edi is defined.For printer, the processing routine is zprogram.
I want to send this report to the user through email. What i have to do? Whether i have to modify the zprogram or i have to define seperately output types for email also, without modifying the program?
Pl try to give me replies as early as possible.
Thanks
Mallik.
Hi,
Check this link.
function to send e-mail
Reward points if useful.
Cheers,
Swamy Kunche
Similar Messages
-
Ability to send the results of a report query to a table in the database
Hi Guys
Is it possible to send the results of a report query to a table in the database ?
ThanksYes.
For this purpose, you can use :
* the delivers advanced option
http://gerardnico.com/wiki/dat/obiee/bi_scheduler/advanced_publication_delivers
* the SOA API
http://gerardnico.com/wiki/dat/obiee/obiee_soap_eclipse
This two solutions need some development skills. -
Sending the adobe interactive form as non-interactive form through email
Hi ,
I am trying to send the interactive adobe form as non-interactive form through email.The interactive form size is very large because of the interactivity.
Can anybody suggest how to do this.
Regards,
DebasisDear Antony,
Thanks for the reply.
I got you but can you pls guide me how to go about it.
I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
Regards,
Debasis Nayak -
Sending the result of report to printer
hi friends,
i written code for my report and actually my requirement is to send the result of this report directly to the printer without displaying the list.
could u plz guide me how to go for this task.
regards,
malli.Check this ... yo will find an answer as this is a similar question thread
Printing report directly from printer;
Regards,
Santosh -
How to send the output to PDF format in reports 6i?
Hi,
How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
Thanks
KavithaHello,
Do you get this problem only for DESFORMAT=PDF ?
Test with :
DESFORMAT = RTF, DESNAME = C:\x.rtf
or
DESFORMAT = HTMLCSS, DESNAME = C:\x.html
does it work ?
Check if DESNAME is modified in the reports itself.
Regards -
How to send the report output to the application server in a excel file
Hello,
how to send the report output to the application server in a excel file.
and the report runs in background.
Thanks in advance.
SundeepDear Sundeep.
I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
D A T A D E C L A R A T I O N *
TYPES: BEGIN OF TY_EXCEL,
CELL_01(80) TYPE C,
CELL_02(80) TYPE C,
CELL_03(80) TYPE C,
CELL_04(80) TYPE C,
CELL_05(80) TYPE C,
CELL_06(80) TYPE C,
CELL_07(80) TYPE C,
CELL_08(80) TYPE C,
CELL_09(80) TYPE C,
CELL_10(80) TYPE C,
END OF TY_EXCEL.
DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
WA_EXCEL TYPE TY_EXCEL..
E V E N T : S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Here you populate the Internal Table.
Display - Top of the Page.
PERFORM DISPLAY_TOP_OF_PAGE.
E V E N T : E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
SET PF-STATUS 'GUI_STATUS'.
E V E N T : A T U S E R - C O M M AN D *
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXPORT'.
Exporting the report data to Excel.
PERFORM EXPORT_TO_EXCEL.
ENDCASE.
*& Form DISPLAY_TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM DISPLAY_TOP_OF_PAGE .
SKIP.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'O R I C A'
CENTERED COLOR 1,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
CENTERED COLOR 4 INTENSIFIED OFF,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE.
E X C E L O P E R A T I O N
CLEAR: IT_EXCEL[],
WA_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
WA_EXCEL-cell_02 = ' XYZ Ltd. '.
APPEND WA_EXCEL TO IT_EXCEL.
CLEAR: WA_EXCEL.
WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
APPEND WA_EXCEL TO IT_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
ENDFORM. " DISPLAY_TOP_OF_PAGE
*& Form APPEND_BLANK_LINE
text
-->P_1 text
FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
DO P_LINE TIMES.
CLEAR: WA_EXCEL.
APPEND WA_EXCEL TO IT_EXCEL.
enddo.
ENDFORM.
*& Form EXPORT_TO_EXCEL
text
--> p1 text
<-- p2 text
FORM EXPORT_TO_EXCEL .
DATA: L_FILE_NAME(60) TYPE C.
Create a file name
CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
'.' SY-DATUM+0(4) INTO L_FILE_NAME.
Pass the internal table (it_excel which is already populated )
to the function module for excel download.
CALL FUNCTION 'WS_EXCEL'
exporting
filename = L_FILE_NAME
tables
data = IT_EXCEL
exceptions
unknown_error = 1
others = 2.
if sy-subrc <> 0.
message e001(ymm) with 'Error in exporting to Excel.'.
endif.
ENDFORM. " EXPORT_TO_EXCEL
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
Regards,
Abir
Don't forget to award Points * -
HOW TO SEND THE REPORTS AND THROUGH XI TO NON -SAP SYSTEM
Hi Experts,
I want to know how to send the reports and smartform through xi to another system. All the post blogs are just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.Hi,
XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
In R/3 the smartforms, are generally converted to PDF and then have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
If need anymore specific details, please let us know.
Thanks
Swarup -
Adding prompts dynamically and then send the results to users via email
Hi,
We have to schedule the reports for auto delivery to users at a specific time period. Please, tell me the mechanism to schedule them and how to assign prompt values to them. Currently, the reports are run by users by selecting prompts from the dashboard. If we schedule them, we will have to add some of these prompts dynamically and then send the results to users via email.
Thanks in advance!Hi,
I haven't tested it myself...but may be the following steps can help you.
Fill some session variables depending on the the name of the user who logs in (this can be done easily be creating different session variables and put some executing order in it)
Then you use these session variables as default values for your prompts. So the report will be executed making use of this default values.
And by scheduling your ibot..you can send it by mail.
I don't know if it's this what you're looking for...probably you have to base your prompt values depending on the users that are selected in your ibot?
Hope it can help y ou in some way or another...
KR,
A -
mac book running slow I tried etresoft but not sure how to inturpret the results any help would be so awesome, thank you
Problem description:
Computer started running very slowly, when I type there is a delay and internet connection is very slow although it is not the wifi connection because it is running well on all other computers, phones, ect.
EtreCheck version: 2.1.8 (121)
Report generated March 28, 2015 12:02:27 PM HST
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
MacBook Pro (13-inch, Late 2011) (Technical Specifications)
MacBook Pro - model: MacBookPro8,1
1 2.4 GHz Intel Core i5 CPU: 2-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 640
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ℹ️
Mac OS X 10.7.5 (11G63) - Time since boot: 24 days 0:56:6
Disk Information: ℹ️
ST9500325ASG disk0 : (500.11 GB)
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 499.25 GB (422.45 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. FaceTime HD Camera (Built-in)
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple, Inc. MacBook Pro
Launch Agents: ℹ️
[running] com.Affinegy.InstaLANa.plist [Click for support]
[loaded] com.google.keystone.agent.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[unknown] com.Affinegy.InstaLANd.plist [Click for support]
[loaded] com.google.keystone.daemon.plist [Click for support]
[loaded] com.microsoft.office.licensing.helper.plist [Click for support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Click for support]
[failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
[running] com.spotify.webhelper.plist [Click for support]
User Login Items: ℹ️
iTunesHelper Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
GrowlHelperApp Application (/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app)
Belkin Router Monitor Application (/Applications/Belkin/Belkin Router Monitor.app)
AdobeResourceSynchronizer Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify Application (/Applications/Spotify.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.1
AdobePDFViewerNPAPI: Version: 10.1.3 [Click for support]
AdobePDFViewer: Version: 10.1.3 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
OfficeLiveBrowserPlugin: Version: 12.3.5 [Click for support]
SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
DirectorShockwave: Version: 12.1.3r153 - SDK 10.6 [Click for support]
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
3rd Party Preference Panes: ℹ️
Flash Player [Click for support]
Growl [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
22% iTunes
5% ReportCrash
2% WindowServer
1% Microsoft PowerPoint
1% Google Chrome
Top Processes by Memory: ℹ️
241 MB Google Chrome
137 MB Google Chrome Helper
107 MB Microsoft PowerPoint
103 MB Dropbox
94 MB mds
Virtual Memory Information: ℹ️
440 MB Free RAM
2.27 GB Active RAM
536 MB Inactive RAM
1.05 GB Wired RAM
8.03 GB Page-ins
908 MB Page-outs
Diagnostics Information: ℹ️
Mar 28, 2015, 12:01:57 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:45 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115845_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 12:02:18 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120218_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:01:57 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crashUpdate your Belkin router software along with Affinegy software.
-
How to send the output of one step as input to next step
Hello All,
I have a question that how to send the output of the first step as the input to the next step.
for e.g
consider a test sequence as below,
1.battery ON.
2. read Voltage
3. Check battery voltage.
as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is less than 11V or greater than 12V te test has to FAIL.
so in order to check that voltage we need to send the voltage read from the second step.
so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
kindly suggest me this using LabVIEW/Test stand.Hi,
Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
But to answer your reoriginal question, some additional information is required.
What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
Regards
Ray Farmer
Regards
Ray Farmer -
Send the result of a query by email
Hi,
I want to execute a query in a procedure and send the result in an email using the utl_smtp package. I have send a one line messages based on the result received based on a query. But I'm not sure how to send the entire result of the query as a message body. Any help is appreciated. Thanks,Doesn't it depend on what you want to send, do you want the results as just text in the e-mail or an attachment? Do you want csv, xls, xml? Once we know what you want to send we can probably give you some guidance on how you might best create the result you want. If you're already sending an e-mail you can easily add an attachment to the e-mail which would probably be your best bet as you don't know the size of the result set (?). I reckon this will be more of an issue around how you turn your results into a format that you can send rather than how you send it.
Richard -
How do i send the username and password to yahoo web page through url
how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...
If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.
-
How to download the output of a report along with column header
Hi,
Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.Hello,
Try this FM:
Data: being of itab occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
end of itab.
data:begin of fld_tab occurs 0,
fld_name(20),
end of fld_tab.
fld_tab = 'Material'.
append fld_tab.
fld_tab = 'Material Desc'.
append fld_tab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = 'C:\1.txt '
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = fld_tab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
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,
Naimesh -
How to send the spool output to the specific user during ALE distribution
Hi All
In ALE internal order Configuration done by BAPI Method SAVEREPLICA Business object BUS2075whenever user changed the internal order which is moved to the destination system because of change data setting in data element fields.
I want to know how to send the spool output of the changed internal order to the specific user during ALE distribution.
Please help me to reslove the above issue
Thanks & Regards
KRISHGUNASolved by myself
-
How to send the ALV GRID output to spool by using the print button in std t
How to send the ALV GRID output to spool by using the print button in standard tool bar.
We have created a button in the va02 transaction. If user click on the button the new screen will be display on that screen we are populating the alv grid output using the oops concept. But i am unable to send the output to spool using the print button in the standard tool bar.
I am able to display the Print parameter dialog box but i am not able to send it to spool.
Kindly help.
Thanks In Advance.
G.V.RamanaHi Shaik,
There is not properties button in my print screen.
MODULE user_command_0900 INPUT.
WHEN 'EXCEL'.
PERFORM excel_download.
WHEN 'PRI'.
PERFORM print_output.
form Print_output.
CALL FUNCTION 'RSPO_LIST_LAYOUT_FITS'
EXPORTING
columns = 80
device = 'ANY '
lines = 65
maxpenality = 1999
TABLES
layouts = lt_layouts1
EXCEPTIONS
unknown_device = 1
OTHERS = 2.
IF sy-subrc = 0.
LOOP AT lt_layouts1.
IF lt_layouts1-penality < 1000 AND
lt_layouts1-penality < l_min_penality.
l_layout = lt_layouts1-layout.
l_min_penality = lt_layouts1-penality.
ENDIF.
ENDLOOP.
IF NOT l_layout IS INITIAL.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
mode = 'CURRENT'
line_size = 80 "#EC *
new_list_id = l_new_list_id
no_dialog = l_no_dialog
layout = l_layout
IMPORTING
out_archive_parameters = rs_arc_params
out_parameters = rs_pri_params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc NE 0. " INS SLIN
ENDIF. " INS SLIN
IF rs_pri_params-linsz LT 80 OR
rs_pri_params-linsz LT gt_stack-s_lprint-width.
gt_stack-print_line_break = 'X'.
ELSE.
CLEAR gt_stack-print_line_break.
ENDIF.
IF l_valid NE 'X'.
rs_pri_params = ls_pri_params_sav.
rs_arc_params = ls_arc_params_sav.
ENDIF.
ENDIF.
ENDIF.
endform. " Print_output
CALL METHOD gv_cost_tot_alv_grand->set_table_for_first_display
EXPORTING
is_layout = gs_layout_cost_tot_grand
CHANGING
it_fieldcatalog = gt_fcat_cost_tot_grand[]
it_outtab = gt_cost_tot_grand[].
Please check my code
Maybe you are looking for
-
Disk Utility internal error message
I am receiving an error message every time I try to repair permissions on my MB running OS X 10.4: error: Disk Utility Internal Error Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and re launch Di
-
XML Form Builder : user the TinyMCE.
Hy, Can we change the defaut Html Editor in the XML FORM BUILDER to use the TinyMCE one ? How ? I'am not speaking about the one in WPC. Thanks.
-
Hi every one, I want to know wat are the issues while doing a version upgrade. I have the knowledge of Dynpro missing , Screen Field related problem and Program itself missing the target system. Pls .. tell me .some other issues... Thanks Everyone in
-
SC Header POWL Detail Component Showing SC Item POWL
Hi , I have created SC Header POWL Query according to this SAP Note: SAP Note 1410793 - SRM Shopping Carts (SC) header POWL query. Now i want to show SC Item POWL when a user clicks on SC Header POWL's record. i am looking for a way to show SC Item P
-
Tuning Greater than predicate query on dates
Hi, I have the below query which is doing FTS and is very expensive causing load to timeout. I did my analysis and found that table is having large number of records and hence FTS is taking long time causing timeout from app side. I proposed to have