Missing computername in output of script
My goal is to produce a quick report that the techs can use to find inconsistencies involving Adobe Flash and other installs. I have the following code and it works as far as giving the information, but I am missing the computer name. I don't think I am
understanding or not using the right syntax for both pieces of information to display.
$cn = Import-Csv -Path "c:\ps\computerlist.csv"
ForEach-Object -Process {
Get-ChildItem C:\Windows\System32\Macromed\Flash | select VersionInfo | Format-List
I am using v4.0 on a Windows 7 machine. The clients are all Windows 7 with defaults. Do I need to place an array in the code and then pass the get-childitem statement?
I understand the changes, but when I run it this way I get a blank file. If I run the Get-ChildItem locally and alone, I get the file name property and this includes the version number. Am I selecting the right property?
Get-ChildItem "c:\Windows\System32\Macromed\Flash\*.ocx" | Format-List
Directory: C:\Windows\System32\Macromed\Flash
Name : Flash32_12_0_0_77.ocx
Length : 16350088
CreationTime : 4/1/2014 8:44:47 AM
LastWriteTime : 4/1/2014 8:44:47 AM
LastAccessTime : 4/1/2014 8:44:47 AM
VersionInfo : File: C:\Windows\System32\Macromed\Flash\Flash32_12_0_0_77.ocx
InternalName: Adobe Flash Player 12.0
OriginalFilename: Flash.ocx
FileVersion: 12,0,0,77
FileDescription: Adobe Flash Player 12.0 r0
Product: Shockwave Flash
ProductVersion: 12,0,0,77
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language: English (United States)
I tried changing this line to .Name:
FlashVersion = $flashver.Name
but the ouptut is still blank.
Similar Messages
-
House number is missing in the output
Dear all,
Though House number (HOUSE_NUM1) is been maintained in the CMR for a set of customers, but in the return output type house number is not printing. can any one tell me what will be the reason for this
thanks,
satishPlease reach out to your ABAPer.
Something would be missing in the smartform / SAP Script code for the output.
Hope this helps...
Thanks,
Jignesh Mehta -
Tcode to view output of script RT_CHECK_LIST (in. delivery checklist)
Hi All,
I want to see the output of script RT_CHECK_LIST which is assigned in NACE transaction.
Details are as follows:
Output type : CHKL (Count list)
Application : E1 (Inbound delivery)
Medium : Print output
Program : RTCHECKL
Form routine : ENTRY_CHECKLIST_LIEF
Form : RT_CHECK_LIST
As it shows that it is relared to Inbound delivery , so I tried to see it by VL33 (delivery no ) ->(menu)inbound delivery -> output -> printer.
But it is giving message that "No output has been selected".
Tell me if any other way to view the output.
Regards,
Rajeev GoswamiHi
Go through VL32n....and add new entry for your output type.
Also press Information button on output screen and check your output type if it is allowed.
If not ask functional consultant to configure it for you
Edited by: Vinit Joshi on Mar 5, 2012 11:25 AM -
Missing Timecard Report output in Excel
Hi all,
Can you help me in extracting the missing timecard report output in excel format. Is it possible to achieve thru' configuration like setting up some profile option?
I have tried using vieweroptions: Application for text to 11i Excel but it is not returning me the desired output
Looking forward for your response.
thanks
VinothTry below option in your code
fnd_request.add_layout ('Appl_Name','template_code','en','US','EXCEL');
Thanks!! -
Standard driver programs,output type ,scripts,smartforms for SD reports
hi experts,
Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
maniHi,
Check this out
NACE
You can track the form and the print program used for that form
The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
NACE is used to create output type while creating the output type you will mention forms, and driver program.
that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
so check in NAST, TNAPR table
http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
Condition records in NACE?
and
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
and also
NACE is used for message control customizing.
Take a look at the following link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
If it helps reward with points.. -
How we can check the output in script
hi friends,
iam raju. new to sap.plz any one reply to my question.
Thanks,
rajuHi Sreenivasulu,
You can check the output of script in two ways.
1. Directly executing your print program u can see the output of SAP Script.
2. IF you are using any standard scripts you then need to use t-code to see the output.
Ex: if you are copied standard SAP Script (purchase order ) <b>MEDRUCK</b> this is the standard purchase order script.
Copy this into your Zmedruck edit it as per ur requirement then you have to assaig this script to standard print program of purchase order using <b>NACE</b> transaction. Replace MEDRUCK with Zmeduck which u hv edited. Then for Purchase order the T-code is<b> ME9F</b> give the purchase order no and check the output. There you can see the chages you have done in the script.
Hope this will help you.
<b>reward if useful</b>
Regards,
sunil kairam. -
Headphone & speaker option missing ,only digital output
i am using hp G42 370TU notebook pc , operating system windows 7 (32) .Few day's back my headphone & speaker option missing ,only digital output after staring windows . Speaker option & sound available after restarting the laptop for several times. After this problem i download & installed audio driver from hp.But this problem is not solved. An updated latest antivirus is installed in my laptop. i have tried by re-installing windows.sound appear after rebooting the laptop for seveal times .but again it missed by shut down or sleep or hibernet. i have installed latest & old realtec audio driver available for this laptop.but after starting the windows only digital ouput & the audio driver also missing. At this time the microsoft trouble shooting shows no peripheral speakers or headphone is not connected.please tell me about probable solution for this problem.
This question was solved.
View Solution.Hi,
As a further test to identify whether this is a hardware or software issue, try the following.
1. Create a bootable Ubuntu CD - a guide on creating an Ubuntu CD and the download can be found Here.
2. When created, follow the guide on the link below to Try Ubuntu.
http://www.ubuntu.com/download/help/try-ubuntu-before-you-install
The 'Try Ubuntu' option runs the OS from the CD without the need to install on your HDD. It will be slow running from a CD but let me know if you get audio.
Regards,
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience -
Bluetooth Speaker sometimes missing in the output list
Hi all !
My computer runs on the latest version of Gnome Shell, with pulseaudio as the sound manager.
I have a bluetooth speaker (Creative D100); I can pair it with my computer without any problem, but *sometimes* after having paired it successfully, the speaker doesn't appear in the list of the output device of the Pulseaudio panel. I need to either un-pair the speaker, restart Gnome-Shell, or sometimes even reboot my computer.
It doesn't occur every day, but when it does, that's pretty annoying.
I've searched on the net, but so far I could only find people who simply had a library missing or so, which doesn't seem to be my current problem =/
Does this sound familiar to somebody ?Hi,
The heading are in the table pt_fcat - you don't seem to be passing that in form....
PERFORM setup_and_display_alv_ver2
USING
it_out_alvp "Parameter structure
it_output[] "Internal Data table(header table)
it_output[]. "Dummy table for Hierarchical ALV!!(item table)
which I guessing in in one of the includes?
Saying that the extract pof code does not show where you are calling form it_out_alv_fieldcat_before ...which populates the headings...
Regards
Stu -
Can SQL Developer be used for Oracle Support "HTML Output" Diag Scripts ?
Hi All,
Oracle Support has asked me to run a diagnostic script (OTL_Diag.sql for anyone familar with the script) that produces output in HTML format using SQL*Plus to help troubleshoot an OTL problem we are having. Unfortunately I don't have SQL*Plus installed and my company is not on board with me installing it because of the SQL*NET connection required. Instead I have access to SQL Developer 3.1.0.7. While this works fine for most situations I'm having problems generating the required .html output file that Support needs.
I've tried runing the OTL_Diag.sql a couple of ways using SQL Developer. First, I opened the file from SQL Developer and using the Run Script functionality (F5) I executed the code that way. This method did give me an opportunity to input the necessary parms and it did create the 'start' of the HTML file on my (Windows) file system, but the script seemed to abort with a java error that indicated some sort of format error (sorry, I'm not a java person so I can't provide any more info, but I'll be glad to get the exact error message if anyone thinks that will help solve my issue).
My second approach was to open a SQL Window where I typed in @C:\OTL_Diag.sql without quotes. This approach also gave me the opportunity to enter the necessary input parms and it seemed to end normally. It also created the 'start' of the diaganostic output file on my Windows file system, but it 'completed' before any of the 'real' diaganostic output was written to the .html file.
The Metalink note clearly specifies that the OTL_Diag.sql script is to be run with SQL*Plus 10.2 or above so I don't think I can complain too loudly to Oracle about this...but given that I don't have access to this product (and it is useless for me to again ask to install it) I am hoping someone out there has some ideas or insight as to how I can use SQL Developer to execute this diag script in a manner that will produce the required .html output file.
Thanks in advance to anyone taking time to read my post !!
Jeff
Edited by: user13111861 on Jul 10, 2012 6:43 PM
Edited by: user13111861 on Jul 10, 2012 7:51 PM>
As a result, at this point in time my only available tool to run the OTL_Diag.sql script (provided by Oracle Support) is SQL Developer
>
Then you will have to edit the script, break it into pieces, execute each piece manually and save the output to feed into the next piece as required based on what the script is actually doing. Don't post the script or contents as that will likely violate your support agreement.
As I already mentioned the script may be using syntax and/or commands that are simply not supported by sql*developer. One likely area is the script may be producing intermediate output scripts that are then processed by a later portion of the script. If that is the case then my suggestion to execute the pieces manually should work but you will need to do some trial-and-error to see.
Even if you appear to be successful you will still have an issue when you communicate the results of your 'test' to Oracle support and they determine you didn't follow their instructions to use the proper tool.
Sounds like your management is either ignorant or incompetent so I suggest you cover yourself by documentating the instructions from Oracle support and the direct orders you were given to disregard those instructions. No need to discuss that issue further but clearly there are resources available somewhere in the org that has the proper privileges or they wouldn't be able to maintain and support the database. If they want to pay for support they should heed their advice. Nuff said. -
Column headings are missing in the output for ALV?
Hi all,
i have coded a small report in ALV mode. i am getting the data but the column headings are missing.
iam not getting the column headings in the output. it is coming as blank. Could you all please help me out in this?
below is the code of my program:
Includes *
*---Standard header and footer routines
INCLUDE zsrepthd.
*--- ALV Routines
INCLUDE zvsdi_alv_routines_ver3.
*--- Authorization Check
INCLUDE z_selection_auth_check.
Types Declarations *
tables : ekpo.
Types Declarations *
TYPES: BEGIN OF ty_ekpo,
EBELN(18) TYPE C,
EBELP(20) TYPE C,
MATNR(18) TYPE C,
WERKS(11) TYPE C,
END OF ty_ekpo.
*-Output field name
TYPES: BEGIN OF ty_output,
EBELN(18) TYPE C,
EBELP(20) TYPE C,
MATNR(18) TYPE C,
WERKS(11) TYPE C,
END OF ty_output.
*-Output field name
TYPES: BEGIN OF ty_fields,
fname(60) TYPE c,
END OF ty_fields.
Internal Table Declarations *
DATA:it_ekpo TYPE STANDARD TABLE OF ty_ekpo,
*--- Alv parameters
it_out_alvp TYPE typ_alv_form_params, "for alv parameters
*-Field catalog for ALV display
it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
*-Field names for Excel column headings
it_ekpo_fields TYPE STANDARD TABLE OF ty_fields WITH HEADER LINE.
**--To store output for Principial Pegging data
DATA: BEGIN OF it_output occurs 0,
EBELN(18) TYPE C,
EBELP(20) TYPE C,
MATNR(18) TYPE C,
WERKS(11) TYPE C,
END OF it_output.
**--To store output for 2nd
DATA: BEGIN OF it_output1 occurs 0,
text(2000),
END OF it_output1.
Data Declarations *
data: v_ebeln TYPE ekpo-ebeln,
v_ebelp TYPE ekpo-ebelp,
v_matnr TYPE ekpo-matnr,
v_werks TYPE ekpo-werks.
Constants Declarations *
CONSTANTS:
c_0 TYPE i VALUE 0,
c_x TYPE char1 VALUE 'X',
c_i TYPE char1 VALUE 'I',
c_eq TYPE char2 VALUE 'EQ',
c_ekpo TYPE char4 VALUE 'EKPO',
c_hyfn TYPE char1 VALUE '-'.
Work Area Declarations *
DATA: x_output_ekpo type ty_output,
x_ekpo type ty_ekpo.
Selection Screen *
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-f01.
SELECT-OPTIONS:
s_ebeln FOR v_ebeln OBLIGATORY,
s_ebelp FOR v_ebelp,
s_matnr FOR v_matnr,
s_werks FOR v_werks.
SELECTION-SCREEN END OF BLOCK b1.
At Selection Screen *
AT SELECTION-SCREEN.
Start-of-Selection *
START-OF-SELECTION.
*--- Check Authorizations for Selection-screen
PERFORM z_selection_auth_check.
*--- Fetch Purchasing Document Item data
PERFORM fetch_status_pp.
End-of-Selection *
END-OF-SELECTION.
**-- Download data to final internal table.
PERFORM data_output.
IF NOT it_output[] IS INITIAL.
*--- Fill the structure for calling the ALV form
PERFORM initialize_alv_params.
**-- Display ALV Report
PERFORM setup_and_display_alv_ver2
USING
it_out_alvp "Parameter structure
it_output[] "Internal Data table(header table)
it_output[]. "Dummy table for Hierarchical ALV!!(item table)
ENDIF.
IF it_output[] IS INITIAL.
MESSAGE i999(zi) WITH 'No data found for selection'(i02).
ENDIF.
*& Form FETCH_STATUS_PP
Get data from ekpo table
FORM FETCH_STATUS_PP .
*-Fetch PP Data from ekpo table
REFRESH it_ekpo.
SELECT EBELN
EBELP
MATNR
WERKS
FROM ekpo
INTO TABLE it_ekpo
WHERE ebeln IN s_ebeln
AND ebelp IN s_ebelp.
IF sy-subrc = c_0.
SORT it_ekpo BY ebeln ebelp.
ENDIF.
ENDFORM. " FETCH_STATUS_PP
*& Form f_top_of_page
*This is to write the top of page
FORM top_of_page.
DATA: lt_list TYPE slis_t_listheader,
lx_list TYPE slis_listheader.
*--- Title name
CLEAR lx_list.
lx_list-typ = 'S'.
lx_list-key = 'Title name'(t13).
lx_list-info = sy-title.
APPEND lx_list TO lt_list.
IF NOT lt_list IS INITIAL.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = lt_list.
ENDIF.
ENDFORM. "top_of_page
*& Form init_page_head
Description : This subroutine initializes the fields in table BHDGD *
for printing the report heading. *
FORM init_page_head.
bhdgd-line1 = 'SLA Status Report'(h04).
bhdgd-line2 = sy-title.
bhdgd-lines = sy-linsz.
bhdgd-fcpyrt = sy-uline.
bhdgd-inifl = '0'.
ENDFORM. "init_page_head
*& Form initialize_alv_params
Description : Form to initialize ALV Params
FORM initialize_alv_params.
CONSTANTS: lc_alv_grid TYPE char1 VALUE 'G', "Grid
lc_u TYPE char1 VALUE 'U'.
MOVE 'IT_OUTPUT' TO it_out_alvp-tablname. "final table
MOVE sy-repid TO it_out_alvp-repid.
MOVE lc_alv_grid TO it_out_alvp-alvtype.
MOVE c_x TO it_out_alvp-bringdefaultvar.
MOVE lc_u TO it_out_alvp-variantsavetype.
ENDFORM. " initialize_alv_params
FORM it_out_init_events *
-->this is form is to modify the events
FORM it_out_init_events
CHANGING
alevnts TYPE slis_t_event.
FIELD-SYMBOLS <alevnt> TYPE slis_alv_event.
LOOP AT alevnts ASSIGNING <alevnt>.
CASE <alevnt>-name.
WHEN slis_ev_top_of_page.
MOVE 'TOP_OF_PAGE' TO <alevnt>-form.
ENDCASE.
ENDLOOP.
ENDFORM. "it_out_init_events
*& Form DATA_OUTPUT
Download data to final internal table
FORM DATA_OUTPUT .
loop at it_ekpo into x_ekpo.
x_output_ekpo-ebeln = x_ekpo-ebeln.
x_output_ekpo-ebelp = x_ekpo-ebelp.
x_output_ekpo-matnr = x_ekpo-matnr.
x_output_ekpo-werks = x_ekpo-werks.
append x_output_ekpo to it_output.
endloop.
ENDFORM. " DATA_OUTPUT
FORM it_out_alv_fieldcat_before *
--> PT_FCAT *
--> ALVP *
FORM it_out_alv_fieldcat_before CHANGING
pt_fcat TYPE slis_t_fieldcat_alv
alvp TYPE typ_alv_form_params.
DATA: lx_fcat TYPE slis_fieldcat_alv.
CLEAR lx_fcat.
lx_fcat-tabname = 'IT_OUTPUT'.
lx_fcat-fieldname = 'EBELN'.
lx_fcat-col_pos = '1'.
lx_fcat-ddictxt = 'M'.
lx_fcat-seltext_l = 'Purchasing Doc No'(018).
lx_fcat-seltext_m = 'Purchasing Doc No'(018).
lx_fcat-seltext_s = 'Purchasing Doc No'(018).
lx_fcat-reptext_ddic = 'Purchasing Doc No'(018).
APPEND lx_fcat TO pt_fcat.
CLEAR lx_fcat.
lx_fcat-tabname = 'IT_OUTPUT'.
lx_fcat-fieldname = 'EBELP'.
lx_fcat-col_pos = '1'.
lx_fcat-ddictxt = 'M'.
lx_fcat-seltext_l = 'Item No Purchasing Doc'(020).
lx_fcat-seltext_m = 'Item No Purchasing Doc'(020).
lx_fcat-seltext_s = 'Item No Purchasing Doc'(020).
lx_fcat-reptext_ddic = 'Item No Purchasing Doc'(020).
APPEND lx_fcat TO pt_fcat.
CLEAR lx_fcat.
lx_fcat-tabname = 'IT_OUTPUT'.
lx_fcat-fieldname = 'MATNR'.
lx_fcat-col_pos = '1'.
lx_fcat-ddictxt = 'M'.
lx_fcat-seltext_l = 'Material'(010).
lx_fcat-seltext_m = 'Material'(010).
lx_fcat-seltext_s = 'Material'(010).
lx_fcat-reptext_ddic = 'Material'(010).
APPEND lx_fcat TO pt_fcat.
CLEAR lx_fcat.
lx_fcat-tabname = 'IT_OUTPUT'.
lx_fcat-fieldname = 'WERKS'.
lx_fcat-col_pos = '1'.
lx_fcat-ddictxt = 'M'.
lx_fcat-seltext_l = 'Supply plant'(013).
lx_fcat-seltext_m = 'Supply plant'(013).
lx_fcat-seltext_s = 'Supply plant'(013).
lx_fcat-reptext_ddic = 'Supply plant'(013).
APPEND lx_fcat TO pt_fcat.
ENDFORM. " it_out_alv_fieldcat_before.
Regards,
Shalini
Edited by: shalini reddy on Oct 7, 2008 5:08 PMHi,
The heading are in the table pt_fcat - you don't seem to be passing that in form....
PERFORM setup_and_display_alv_ver2
USING
it_out_alvp "Parameter structure
it_output[] "Internal Data table(header table)
it_output[]. "Dummy table for Hierarchical ALV!!(item table)
which I guessing in in one of the includes?
Saying that the extract pof code does not show where you are calling form it_out_alv_fieldcat_before ...which populates the headings...
Regards
Stu -
Missing from "Tools"- "Photoshop"-& all Scripts!
When I select "Tools"->"Photoshop" and image processor and all scripts etc are missing. Not greyed out but completly gone!! Any suggestions?
I am running CS@ on OSX10.4.6 I have reinstalled etc...
Cheers PatrickHi Patrick,
This forum is for BridgeScripting and I'm not sure from the information you give that this is the correct forum for you.
That being said let me offer the following.
Make sure you have downloaded and installed all of the current updates. In Bridge click Help > Updates then download and install any available updates.
Can you recall any changes that were done between the last good run and the now missing menu condition? Things like creating your own or modifying one of the existing Adobe Java Scripts.
It would also be helpful to know if "Script Manager" is present under the Bridge menu (it will be the item right above Preferences).
If this is not present then one of the startup scripts has encountered a problem and is blocking other scripts from loading.
Cheers,
O'Neal -
Why are dots missing from PDF output?
When I use the 'line' tool with dots, (in this case to draw a line-break,) AND export a .pdf, it often leaves out a single dot in the line. There are no objects intersecting the line, or even within a half-inch of its location. The missing dot is consistent across the document, nearly always the second or third dot in the line. And this happens with all forms of dots - normal, japanese, etc. The dot is present in the InDesign application, just not in the material it outputs.
Thanks a million for your help!
Screenshots below:Hey Bob,
Looks like you're on to something with the program used to open it. While the PDF reader presents the problem, the web plugin does not. (It opens fine in both Chrome and Firefox.) And it renders just fine as imported into Illustrator.
So that really narrows the problem down to the renderer. I'll submit the bug report.
Thanks!!! -
Missing data in Output Mapping
Hi all,
I have configured a scenario RFC -> XI -> Webservice. I am getting the response from the webservice and can see it in the SXMB_MONI. But this is not getting mapped back to the RFC output. I checked for all the mappings and those are perfectly fine. Can any body please suggest me what could be the reason and what all i need to check. I have all the mappings and objects activated.
Thanks and best regards,
KulwantHi sekhar,
Thanks for the quick reply.
I checked that anmd found that thers is one namespace missing in my mapping which is creating the problem
Here is what i get from Webservice
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <ns1:generateResponse xmlns:ns1='http://xml.avaya.com/diamond/schema/2007/07/utils/sessionidgenerator' >
<ns1:sessionId>AAAAABDxRtA=7IWEUw==-_2_1</ns1:sessionId>
</ns1:generateResponse>
What i get from Test mapping
<ns0:generateResponse xmlns:ns0="http://xml.avaya.com/diamond/schema/2007/07/utils/sessionidgenerator">
<sessionId>dsfa</sessionId>
</ns0:generateResponse>
Here ns0 is missing in front of my mapping. I am not sure how to bring it.
I have created a data type generateResponse using another data type session ID.
then i created a message type with change in default XML name space. I tried creating even sessionID Message Type and use it in my message type so that i could change the default name space.
but it didn't worked?
Can any body please suggest what to do?
Thanks,
Kulwant -
[CS2 AS] Export as Jpeg... image missing in the output.
Hi,
I'm using alot the export as jpeg feature as a validation helper while doing batch processing (for quality output, i have used export as pdf and rasterisation in photoshop... require more processing, but it give more reliable output).
So with the base export, i'm having a odd problem where on other machine the some images are not exported appropriately (some appear with a white strippe and other completely blank).
I have not found documentation on this but i'm pretty sure that the export is done from a low-res preview, so i suspect that that my script processing make the export before indesign has completed some document display refresh.
I tought that i could use a arbitrary delay, but i find this solution quite inconvenient as it make the process slower and not completely deterministic.
Is there a equivalent call to "recompose" that would let me be sure to call the export when the display refresh of the document is done? (if i remember well, i have tried forcing the document quality display to maximum).
Thanks for any ideas! :)
EricOn 5/2/09 6:22 AM, "EricGagnon" <[email protected]> wrote:<br /><br />> Thanks for any ideas! :)<br /><br />Are you sure you're using the most recent version of CS2? And are you sure<br />all the links are present and up to date?<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>
-
hi to all my querry is sas follows
i have one report program in that iam displaying all the order details of the selected customers .i have one button in thelike "print" in the gui of the report output . when i click this button ouput of that report should be printed in the main window of the script . pls give coding for this . how to call the script from report .
points will be rewarde d for good answers.
pls give coding.Hi Kumar
check this sample code it will help u
CALL FUNCTION 'OPEN_FORM'
* EXPORTING
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
* DEVICE = 'PRINTER'
* DIALOG = 'X'
* FORM = 'ZSCRIPT1'
* LANGUAGE = SY-LANGU
* OPTIONS =
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'START_FORM'
EXPORTING
* ARCHIVE_INDEX =
FORM = 'ZFORM1'
* LANGUAGE = ' '
* STARTPAGE = 'X'
PROGRAM = 'ZSCRIPT1'
* MAIL_APPL_OBJECT =
* IMPORTING
* LANGUAGE =
* EXCEPTIONS
* FORM = 1
* FORMAT = 2
* UNENDED = 3
* UNOPENED = 4
* UNUSED = 5
* SPOOL_ERROR = 6
* CODEPAGE = 7
* OTHERS = 8
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
* ELEMENT = ' '
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'HEADER'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
OTHERS = 9
IF SY-SUBRC <> 0.
write:/ 'ERROR IN HEADER'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
* ELEMENT = ' '
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'MAIN'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
OTHERS = 9
IF SY-SUBRC <> 0.
write:/ 'ERROR IN HEADER'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
* ELEMENT = ' '
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'FOOTER'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
OTHERS = 9
IF SY-SUBRC <> 0.
write:/ 'ERROR IN HEADER'.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'END_FORM'
* IMPORTING
* RESULT =
* EXCEPTIONS
* UNOPENED = 1
* BAD_PAGEFORMAT_FOR_PRINT = 2
* SPOOL_ERROR = 3
* CODEPAGE = 4
* OTHERS = 5
CALL FUNCTION 'CLOSE_FORM'
* IMPORTING
* RESULT =
* RDI_RESULT =
* TABLES
* OTFDATA =
* EXCEPTIONS
* UNOPENED = 1
* BAD_PAGEFORMAT_FOR_PRINT = 2
* SEND_ERROR = 3
* SPOOL_ERROR = 4
* CODEPAGE = 5
* OTHERS = 6
<b>difference between</b>
1<b><u>.open_form and Start form
2.end_form and Close_form.</u></b>
Open_form => It assign the form and printer, It should be first.
Start_form => It start Writing mode. You can use write_form in loop to write more than one lines befor End_form.
End_form => It end writing mode of current page and will require to start again through Start_form.
Close_form=> it end the Form. After this you can not start again for created file.
Reward if helpfull
Regards
Pavan
Maybe you are looking for
-
How to get image filename in indesign cs3
Hi, I want to get a filename of a selected rectangle frame graphic child item like tiff image or pdf file. Please help me with a code snippet. Thanks, K.Saravanan.
-
Solaris Volume Manager Problem
After installing Solaris 10 on a SunFire V880 and mirroring the boot disk, I am unable to boot from one disk. The boot process looks like this: Rebooting with command: boot Boot device: /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000000870e36cb,0:a File
-
My application runs fine for about 1-2 hours and then gradually it slows down. I have a jtable which displays records and which dynamically inserts, updates and deletes rows. There are two columns which display timer value. The problem is in displayi
-
Dear All, When i am Creating New Document Type and No.Range in Development server, it is moved to Quality But in Quality all no ranges are changed. How it will happens? How can i get the old no ranges in quality server. Pls pls help the is very high
-
Is the MacBook warranty valid internationally?
I bought a MacBook early this year but now I'm stationed in Panama and I'm wondering if my warranty is still valid here. Thanks for any info you may provide.