How to print filed value in vertical direction
I have some requirement to print the field value in vertical direction.How can I do that.
Hi,
you cannot rotate a field. But you can reference the field in a boilerplate text with &myfield_name and rotate the boilerplate. The value of the field inside the boilerplate is not shown, if you try the hide the field with a format trigger (as you normally don't want to show vertically and horizontally. Because of that, color your field white. So it's there, but not seen.
Regards
Rainer
Similar Messages
-
How To Print Field Value in TOP-OF-PAGE During Line Selection.
How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.
(If my memory serves me well (not used for long time ago)
Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE: / 'Interactive Report &3'.
WRITE record-vbeln TO sy-tvar3.
Regards,
Raymond -
How to print Jtable values in one A4 size paper
Hi,
i am having JPanel , this panel have Jtbale, Jtextfield, Jlable, i search the code for Printing Jpanel, its work fine and print whole JPanel including, jtable, textbox, everything.
my Jtable have Scroll bar to see all the values in the table,my problem is when i was print the JPanel the Jtable print only the display values in Jtable, cannot print all the values from Jtable,(eg. Jtable have 50 rows, screen display 20 rows only, move the scrollbar to see remaining,) .
i want to print 50 rows how to print the values anyone can help me
thanks in advance.Duplicate post. Mods please do your duty.
-
How to print the value of a field of type FLTP
hi experts,
pls tell me how to print the value of a field of type FLTP. i.e in decimal format not in exponential format.
thankyou.
krishnaHi ,
I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
Define the variable as the 'packed' type and then u can able to define the decimal point...
Cheers,
SImha. -
How to print the value if a condition is satisfied
Hi,
Please suggest me how to print a text as 'Do not print' when a field in the selection screen is entered.
If in the selection screen (s_field1) we have entered a value as ZESM then the value filed of
wa_vbak-auart should check the the values in s_field1 then it should just print the text "'DO NOT PRINT''.
we have written the folowing code, but the condition is not working.
DATA: V_FIELD1 type z_field1. "(zdata element).
ranges: r_fIELD1 for v_field1.
SELECT-OPTIONS: S_field1 FOR v_field1 default 'ZESM'.
loop at s_field1.
r_field1-sign = 'I'.
r_field1-option = 'EQ'.
r_field1-low = s_field1-low.
append r_field1.
clear r_field1.
endloop.
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
else.
wa_final-v_text = ' '.
endif.
Please suugest what can be done.
Thanks in advanceHi,
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
else.
wa_final-v_text = ' '.
endif.
Have you writtent he above code with in loop enloop on the internal table.If yes then simply add append statement after assignment.
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
append wa_final into it_final.
clear wa_final.
else.
wa_final-v_text = ' '.
append wa_final into it_final.
clear wa_final.
endif.
Hope this will solve your problem.
Pooja -
How to print the values of type Object?
Hi All,
I am not able to print values of the following can anyone telme where i am wrong and what i can do in this regard.
Object one = request.getAttribute("values");
When i try to print these values as following
System.out.println("one ="+one);
am not getting the values in a different format something like [Ljava.lang.String;@1234f. I tried to convert the following Object to String still its not working. Can some one please suggest me what i can do in this regard.
Thanksferrari_sun wrote:
I am getting a Null pointer exception if i typecast it to a string array. Not sure what to do nowThe hell you are. You don't get Null pointers out of casting. However you might be accessing null elements of the array afterwards.
You really should throw away the code, go fetch some "How to learn basic Java with Wiggles The Bear" ebook and then start learning the basics instead of tripping on every single line of your code which is too complicated for you. -
How to Print all values stored in an Associative array
DB version:10gR2
There can be multiple results(multiple rows) for the below query. So, i'll have to declare the variables v_sid_serial, v_orauser, v_objectname,v_objecttype as associative arrays.
SELECT l.session_id||','||v.serial# sid_serial, l.ORACLE_USERNAME,o.object_name,o.object_type,
into v_sid_serial, v_orauser, v_objectname,v_objecttype
FROM dba_objects o, v$locked_object l, v$session v
WHERE o.object_id = l.object_id
and l.SESSION_ID=v.sid;But I want to store the results from the above query in flat file. I want the result set to look like
SID_SERIAL ORA_USER OBJECT_NAME
742,32914 SCOTT EMP
873,49832 HR EMPLOYEES
893,9437 mytestschema emp_dtls
. .How can i print the values in Associative arrays in the above manner so that i can spool the result set to a flat file?
Edited by: user10373231 on Sep 29, 2008 5:19 AMuser10373231 wrote:
is there any way to print all values stored in an Associative arrayPrint to where?
You could use DBMS_OUTPUT to get the output on the screen within SQL*Plus.
You could also output (pipe) the data from PL/SQL using a pipelined function that you select from SQL. An example of a pipelined function...
SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
2 ( col1 VARCHAR2(10),
3 col2 VARCHAR2(10)
4 )
5 /
Type created.
SQL>
SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
2 /
Type created.
SQL>
SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
2 v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
3 v_obj myrec := myrec(NULL,NULL);
4 BEGIN
5 LOOP
6 EXIT WHEN v_str IS NULL;
7 v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
8 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
9 IF INSTR(v_str,',')>0 THEN
10 v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
11 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
12 ELSE
13 v_obj.col2 := v_str;
14 v_str := NULL;
15 END IF;
16 PIPE ROW (v_obj);
17 END LOOP;
18 RETURN;
19 END;
20 /
Function created.
SQL>
SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
Table created.
SQL>
SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
3 rows created.
SQL>
SQL> select * from mytab;
COL1 COL2
1 2
2 3
4 5... which you can easily adapt to output whatever data you want e.g. you could loop through your associative array and pipe out the values within it. -
How to print a value in text format
hello,
I want to print a value for eg. 1083.00 in word like one thousand eighty three only......can anybody tell me is there any function module present in SAP to do same.......<removed by moderator>
Edited by: Mike Pokraka on Aug 4, 2008 6:42 PMHi hav a luk @ below code,
REPORT zmdamountwords.
TABLES: spell,
komk.
*& Form get_amt_words
* text
* -->AMT text
* -->WORDS text
FORM get_amt_words TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA : value1 LIKE bseg-dmbtr.
DATA : value(18).
DATA : t_value(18).
DATA : value_s1(18).
DATA : value_s2(19),
value_s3(19),
value_s4(19),
rs_str(256),
len TYPE i,
words LIKE spell.
CLEAR : value,value1,t_value.
READ TABLE in_tab WITH KEY 'KOMK-FKWRT'.
REPLACE ALL OCCURRENCES OF ',' IN in_tab-value WITH space.
CONDENSE in_tab-value.
value = in_tab-value.
value1 = value.
CALL FUNCTION 'Z_SPELL_AMOUNT_INR'
EXPORTING
amount = value1
IMPORTING
rupees_str = rs_str
EXCEPTIONS
OTHERS = 1.
CONDENSE rs_str.
READ TABLE out_tab WITH KEY 'RS_STR'.
IF sy-subrc = 0.
out_tab-value = rs_str.
MODIFY out_tab INDEX sy-tabix.
ENDIF.
ENDFORM. "GET_AMT_WORDS
Let me know if you have any doubt.
Reward if useful.
Warm Regards,
Mohandoss P. -
How to Print the Value of a variable inside a PL/SQL package
Hi Friends,
Here is my Scenario
I have a PL/SQL Package. Let us call it Baseline Package.
This Package includes a dynamically built merge Statement.
Execute Immediate v_merge_query.
I have a procedure which replaces which few Keywords from the Package Text and Creates a new one depending on Inputs I provide. (This is something like a Code generator)
Now while Creating the new package, I need to print the Value of v_merge_query.... I Need s Static Query to be Printed inside the new package and not a dynamic query.
My Question is "Is there a way to print the value of the variable inside a different PL/SQL package?
Thanks in Advance,
MohitPrint where?
That PL/SQL code is server-side code. It runs in an Oracle server process.
That server process does not have a keyboard. Or a screen/monitor. Or display canvas. Or an attached printer.
That server process is incapable of "printing" as that is not its job or responsibility and not part of its environment.
What is can do is record data for the client to look at afterwards. This can be done using static PL/SQL session variables. Or a SQL table.
The former is done by DBMS_OUTPUT - a very primitive interface for writing text into a static PL/SQL string array. That btw resides in expensive private process server memory. The client can query the array after a database call and render the contents.
PS. Also keep in mind that bind variables are critical for performance and server robustness - especially when (ab)using dynamic SQL. -
How to print actual value on Yaxis
hi
I need help on Graphs,
I want to display value on Yaxis line such that it should not be any increment between value 1-250 like 0,50,100,150,200....
but the actual values are 2, 45, 77, 88,145
So I want to print actual values than max &min having increment
thanks
V E N K A TSyed,
Chack this link hope helps u.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_FORMS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYXXFORM/PYINT_FORMBUILDER.pdf -
How to print extract value in dbms_output.put_line
CREATE OR REPLACE PROCEDURE pr_srch_data
AS
xml_data_val xmltype:=null;
vPropertyName clob;
vstr varchar2(1000);
operation varchar2(1000);
vQuery VARCHAR2(4000):=NULL;
vQry VARCHAR2(4000):=NULL;
vPartyid VARCHAR2(2000):=NULL;
vPerson varchar2(4000);
BEGIN
FOR I IN (SELECT EAPP_XML_DATA
FROM binary_xml
WHERE extractvalue(eapp_xml_data,'/OLifE/Party[@id="Party1"]/Person/LastName') Like 'Rajesh%'
LOOP
BEGIN
SELECT extractvalue(value(t),'/Relation/@RelatedObjectID')
INTO vPartyid
FROM TABLE (XMLSEQUENCE (EXTRACT (xml_data_val,'/OLifE/Relation'))) t
WHERE extractvalue(value(t),'/Relation/RelationRoleCode')='Owner'
AND existsnode(value(t),'/Relation/@RelatedObjectID')=1 ;
END;
SELECT extract(value(t),'/OLifE/Party[@id='''||vPartyid ||''']/Person')
INTO vPerson
FROM TABLE (XMLSEQUENCE (EXTRACT (I.EAPP_XML_DATA,'/OLifE')))t;
dbms_output.put_line('vPerson'||'--'||vPerson);
END LOOP;
END;
But when i am printing vPerson i am getting error. I need to print that extract value.Things to remember (that you should know by now)
Please remind us of which version of 11g you are using in this post and all future posts.
Look at the FAQ under your sign-in name to see how to use the tag to retain formatting of your code as you have seen our examples to you look like.
We can't see your screen or your data so how about the error message and some data from your table?
Please start using either XMLTable or XMLCast/XMLQuery as odie_63 as shown you.
What are you trying to do? -
How to print Excise values in Purchase Order Smartform
Hi, Experts,
I am developing the Purchase Order Smartform as per the my client requirment. For this i took the copy of standard Smartform for PO. The name of the standard smartform is 'YBIN_MMPO'. My requirment is to print all the excise values {BED,CESS,ECESS and VAT/CST} of every item. How to get these conditions to print in PO. I serched the table KONV, but the conditions which are under the taxes button are not stored in this table.
For this I found one FM "CALCULATE_TAX_FROM_AMOUNT'. This is also not helpful if client goes to manual excise to create PO.
Is there any other table to get these conditions? or is there any function modules to get these conditions?
Please give me the solution.
Thanks & regards,
Jagadeesh.Hi,
I used this piece of code to get the excise values in PO.
SELECT SINGLE * FROM EKPO INTO
W_EKPO
WHERE EBELN EQ IS_EKKO-EBELN AND
EBELP EQ <FS>-EBELP.
CALL FUNCTION 'J_1I4_COPY_PO_DATA'
EXPORTING
Y_EKPO = W_EKPO
EXCCOM =
CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
EXPORTING
i_bukrs = <FS>-BUKRS
i_mwskz = <FS>-MWSKZ
I_TXJCD =
i_waers = IS_EKKO-WAERS
i_wrbtr = <FS>-NETWR
I_ZBD1P = 0
I_PRSDT =
I_PROTOKOLL =
I_TAXPS =
I_ACCNT_EXT =
IMPORTING
E_FWNAV =
E_FWNVV =
E_FWSTE =
E_FWAST =
tables
t_mwdat = ITAB_TAXDATA
EXCEPTIONS
BUKRS_NOT_FOUND = 1
COUNTRY_NOT_FOUND = 2
MWSKZ_NOT_DEFINED = 3
MWSKZ_NOT_VALID = 4
KTOSL_NOT_FOUND = 5
KALSM_NOT_FOUND = 6
PARAMETER_ERROR = 7
KNUMH_NOT_FOUND = 8
KSCHL_NOT_FOUND = 9
UNKNOWN_ERROR = 10
ACCOUNT_NOT_FOUND = 11
TXJCD_NOT_VALID = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
regards,
Jagadeesh T. -
In Scripts how to print the values in currence format
Dear abap guru's,
I am working on Purchase Order Script, copy from the standard script, after that wrote a one perform , in that added one new field to script, but value is printed like this formate : 1000.00, but i want to print 1,000.00 like this currence format. let me know the any solution
thanks to all
raj.Hi ,
When you are populating the value in perform instead of assigning the value (using = ) pass it using WRITE TO.
Like : WRITE lw_total TO output-value.
Declare lw_total as currency field.
Regards,
Rajitha. -
How to print report From Oracle form directly on printer
Hi,
I am running report from form and output should be directly printed on printer.
Database: 11g Release2
Forms version : 11.1.2
Report version : 11.1.2
OS: windows 7 professional 32 Bit
Written following code:
declare
pl_id ParamList;
varno number;
x VARCHAR2(150);
y NUMBER;
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
begin
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
repid := FIND_REPORT_OBJECT('SALEBILLNEW'); -- report object name
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'copies',TEXT_PARAMETER,'1');
Add_Parameter(pl_id,'background',TEXT_PARAMETER,'Yes');
Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'Character');
Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'YES');
Add_Parameter(pl_id,'VCOMPANY',TEXT_PARAMETER,:block50.coname);
Add_Parameter(pl_id,'VCOde',TEXT_PARAMETER,:block50.code);
Add_Parameter(pl_id,'VOURBILLNO',TEXT_PARAMETER,:BLOCK50.FROMBILL);
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER, 'PRINTER') ;
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'OKI MICROLINE 391 TURBO (COPY1) on NILESH-PC') ; --default printer name
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_adminserver_inorasrv-pc_asinst_3');
y := LENGTH ('rep_adminserver_inorasrv-pc_asinst_3') + 2;
x := RUN_REPORT_OBJECT (repid, pl_id);
WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/rwservlet/getjobid'||SUBSTR(x,y)||'?server=rep_adminserver_inorasrv-pc_asinst_3&userid=scott/tiger@winorasr');
Destroy_parameter_list('tmpdata');
end;
Above code giving following error:
REP-52251: The output of job ID 111 requested on Thu Oct 18 18:37:20 IST 2012 cannot be retrieved.<P>REP-51026: No output is generated for job 111.
Need help..
Thanks in advance.Hi,
I have change the printer name to OKI
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, '\\Nilesh-pc\OKI') ;
Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER, 'dflt.prt');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'\\Nilesh-pc\OKI');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt.prt');
code which i have posted above unable to reach at default printer and gives following error
The report generated successfully but distribution to destinations failed.
Modified above code to take default printer from registry.
Added below code
rtn_Registry := CLIENT_WIN_API_ENVIRONMENT.Read_Registry('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows','Device');
rtn_defaultPrinter := substr(rtn_Registry,1,instr(rtn_Registry,',',1)-1);
Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, 'rtn_defaultPrinter') ;
It is giving error
CLIENT_WIN_API_ENVIRONMENT.Read_Registry must be declare.
Edited by: parapr on Oct 20, 2012 10:47 PM -
How to print the values in smartforms
Hello Abapgurus,
This is my problem which i explained below.
IF the text has 11 rows and you can only print 8 rows in the
current page, THEN go to next page print all 11 rows at the fresh page.
How can i achieve this.I need to achieve it in smartforms.Not on scripts.
Waiting for your favourable replies
Regards
MaruthiHi Maruthi,
In smartforms create a loop. And inside loop create a Folder. In "Output Options" tab of folder there is a check box "Page Protection". Select this check box.
The above option will work only in man windows. If created window is not not a main window then make it as main window from its General Attributs tab.
Ashven
Maybe you are looking for
-
Incorrect images from .indb file export to ePub in Indesign CS6
I am having problems exporting images to ePub and get a different result from the same file depending on whether I export directly from the .indd file or from the .indb file. When I export to ePub from the individual chapter (.indd) file, everything
-
How to apply style sheet (.css) in Weblogic directory listing
Hi, We are migrating a directory listing application from Apache to Weblogic. Earlier we did this by Apache httpd.conf entry like below : <Directory "/opt/apache/httpd-2.1.9/htdocs/Myreportfolder"> IndexOptions FancyIndexing FoldersFirst NameWidth=*
-
WD Java - Showing Table with data from R/3 backend
hi folks, i have a very novice question. we have one rfc-function in abap which is called via adaptive rfc in wd java - it's mostly like the flights-demo. I get the data from backend but only one row is shown in the table???? I guess i made everythin
-
How to classify a document based on Microsoft's Naive Bayes algorithm?
I am quite unfamiliar with using SSAS as of the moment. I am aware of the classical implementation of Naive Bayes. I have learned about it from the here. However what I am looking for is a complete walkthrough of how to use this particular algorithm
-
hello! i was trying to upgrade my iphone from 3.1.3, but for some reason it keeps getting stuck during the update.. it's not showing any error, just not continue for hours... I tried dfu mode, and still nothing... what can I do? I can't use my iphone