How to contorl the standard output???
Howdy....
How to control the output in the console with System.out.println()??
I wanna display some strings in the same position of the console.
Thanx!
if you don't want to use the default PrintStream instance, you'd have to code your own PrintStream subclass that prints lines as you like and then use System.setOut() to set your implementation as the system instance... ...sounds like a bad idea, or at least the wrong solution to the problem. Why not have the client format the String as necessary, rather then having the PrintStream instance do it?
Similar Messages
-
How to Enhance the Standard Report?
Hi All,
How to Enhance the Standard Report? :
When I am trying to execute the query called ZTIMES in the user group SQ01 it is navigating the screen to selection-screen with some inputs to be given here on the selection screen company code is mandatory as an input. The company code field is having the search help and it is fetching the values for the company code from table called PROJ Table (Project definition Table).But I want the company code should fetch the value from the PRPS Table ( Work break structure(WBS Element) Level).
Tables used are PROJ and PRPS.
The company code in PROJ is PROJ-VBUKR
In PRPS is PRPS-PBUKR
In the coding part related to that selection screen I have to replace PROJ-VBUKR with
PRPS-PBUKR.But it is standard report to enhance.
What is suggestible solution for this issue?
Thanks,
M RajuHi,
Since this is an ABAP Query, You can change the infoset query in SQ02 and establish the join linkages between PROJ and PRPS
Also on the selection screen of the Query make sure you provide company code from PRPS table and report output also from the same table reference.
Once you have modified the ABAP Query, activate and generate it so that it will internally regenerate the a standard program.
http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb4256455611d189710000e8322d00/frameset.htm
ABAP Query (Sq01)Modification
Hope this helps
Regards,
Shiva -
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 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 get the standard Menu of Query Designer into Web Template
Hi Experts,
is there a way on how to put the standard menu within Bex Query Designer (after executing a Query with the Query Designer you get into ad-hoc reporting with a menu including several functions like print, show as..., properties, etc) into an individual Bex Web Template?
Copy & Paste source code will not work I guess because of several javascript functions I don't have access to.
Thanks & Best regards
TobiasBEx queries are displayed on the web using standard web template 0ANALYSIS_PATTERN or some customized version base don your implementation.
You can either include the 0ANALYSIS_Pattern web template in your custom template or use Save as to create a new template with 0ANALYSIS_Pattern AS THE STARTING POINT. -
How to get the Query output to Excel
Hi ,
Can you tell me how to get the Query output to excel with out using any third party tool?
Can you tell me how to write the code in Webservice and call it..
Please explain it Elaboartly..
Thanks in Advance!!!
Miniwhats your source system?
you can use Live office, or query as a webservice if you are getting data from universe
if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
good luck -
How to put the alv output into the spool request?
Hi guys,
How to put the alv output into the spool request?
Thanks!Hi
Sending an ALV List screen output to SPOOL
Convert ALV list to PDF and send mails to respective persons
Regards
Pavan -
How to display the Form output in multiple languages ? ------ Urgent
How to display the Form output in multiple languages ? -
UrgentHi,
Do u mean the Form output in 2-3 languages ...like form output will be having english russian etc...
for the above case , what u have to do ...
first have to get the transalations for all the fields
say for example : if the english word is PO Number , then u have to get the transalation text for PO Number :
after this , what u have to is ,,, Log on to SAP with russian language , then in the form o/p u have to paste that russian test ( translation text ) ...
do like this for all the components in the form .
Reward Points if it is Useful.
Thanks,
Manjunath MS -
How to keep the filtered output in a page after user navigates back?
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the searchHi,
user13091824 wrote:
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
"SUPP_SEARCH",
OAWebBeanConstants.GUESS_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
---After setting AM Status to true u can able to c the values.
Regards
Meher Irk -
How to call the Standard Program in our ZPROGRAM?
Hi Frieds can you tell me the procedure how to call the Standard program
in z----
program and we have to get the data from standard one to our customer program.
Thanks in advance,
madan mohan.Hi,
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
*Example Code (Retrieving list from memory)
DATA BEGIN OF itab_list OCCURS 0.
INCLUDE STRUCTURE abaplist.
DATA END OF itab_list.
DATA: BEGIN OF vlist OCCURS 0,
filler1(01) TYPE c,
field1(06) TYPE c,
filler(08) TYPE c,
field2(10) TYPE c,
filler3(01) TYPE c,
field3(10) TYPE c,
filler4(01) TYPE c,
field4(3) TYPE c,
filler5(02) TYPE c,
field5(15) TYPE c,
filler6(02) TYPE c,
field6(30) TYPE c,
filler7(43) TYPE c,
field7(10) TYPE c,
END OF vlist.
SUBMIT zreport EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
EXCEPTIONS
not_found = 4
OTHERS = 8.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = vlist
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE '0'.
WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
ENDIF.
Regards
Sudheer -
How to extract the xcontrol output
I created one xcontrol for pressure sensors . I am able to display the output correctly but i could not able to use the output for other inputs .
how to extract the xcontrol output
for clear understanding please see the attached vi testing .
Attachments:
testing.vi 9 KB
Pressure sensors.zip 96 KB
testing.vi 9 KBI always measure velocity in furlongs per fortnight
Units are very powerful, and like any great magic, can result in serious unintended circumstances.
I've tried them a couple of times and decided they were more difficult to use than the value provided. Maybe it's better now, but I'm still on LV 8.6
http://forums.ni.com/t5/LabVIEW/Why-do-very-few-programmers-use-LabVIEW-unit-labels/td-p/1119746
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
How to find the Standard DFF Name In oracle apps
hi,
How to find the Standard DFF Name In oracle apps
thanks1. Open the form
2. Choose Tools--> Diagnostics
3. In the block field choose $DESCRIPTIVE_FLEXFIELD$
4. Field will show the list of all the DFF's enabled for that form.
5. Choosing one will display the name of the DFF in the value field.
Thanks
Nagamohan -
How to modify the standard script in scripts?
how to modify the standard script in scripts?
Nagaraju,
Standard scripts cant be modified.
Only thing is you need to copy it to z-form and have to do modifications as per ur requirements.
Here is the procedure to copy standard form to z-form.
goto SE71 t-code, then select the menu path : <b>Utilities -> Copy from Client</b>
then it will take to another screen, give the form name as Standard form name, if u r copying a stadard invoice means, type RVINVOICE01 and target form, ZRVINVOICE01. Now press execute button, it will copy the form into 25 languages. Now come back to se71, enter Z-form name and do the required changes.
Hope this hint may help you, Pls close the thread if u met with correct answer.
Regards,
Sujatha. -
How to find the standard Layout(Forms) list in India Baseline version
Hi,
Can anyone suggest me how to find the standard layout(forms) in the India baseline version.
i want total standard form(Scripts/Smartforms) name available in India baseline.
Thanks in Advance!!Hello,
Goto Se710> Do F4 in form. In next screen goto Find->Technical Search function and execute it. It will show no. of forms in the status bar at the bottom.
Cheers,
Balaji -
How to enable the standard price in the accounting -1 view of material mast
Hi,
When i was trying to create a material of material Type: FERT, Iam unable to enter the price of the material in the accounting -1 view-> standard price.
The field has been disabled.
So please tell me how to enable the standard price.
Regards,
Rudra Prakash. Shi
go to OMS2 double click FERT
in valuation check which price control is allowed
it should be std. price
go to OMSR check MBEW-STPRS note field group
in OMS9 for this group and material combination check whether that field is maintained as display
Vishal...
Maybe you are looking for
-
How to make an image of a folder.
I want to make back up my applications folder cause I have alot of stuff that if I were to lose it I wouldn't even know what to redownload or get from where ever else, when I try to transfer the folder to my external hd it takes forever because it wa
-
"Mail link to this page" does not search within my exchange account
Hello all, When I try to e-mail a web page from within Safari using the "Mail link to this page", I only get to search for e-mail addresses in my MobileMe account. Backtracking by clicking the "back arrow" to see all groups and what I assumed would b
-
Import WebService in CE 7.2
Hi All, I have created a Simple CAF application in which I have created a custom method which accepts the input and returns the value entered by the user. After the operation was completed, the application service was exposed as a WebService. I have
-
A7666IMS.148 bios issues/questions
(1) Has anyone experienced an issue with the rear panel e-sata connections not working after the 1.4 bios update? The "front panel" connection still works, but not those on the rear panel. (2) Why does the English language site only show bios vers
-
Discoverer Parameters in EUL Tables
Hi All, In which DB tables the information about the Parameter for each Worksheet of Discoverer Workbooks are stored.Also where are the default values for the parameter stored in the Darabase table? Thanks, HP