LCHR fields in SmartForms
Hi,
I'm trying to pass data from self-defined table which has a field type of LCHR and its length is more than 255 characters.
Which type of element should I use on Smartforms side to get all data to the smartform? Now it shows only ~255 characters but I am sending more data to smartform.
We have own table where I am going to store instructions which can be up to 1000 characters long.
So I thought that the best way to get data to smartform is just pass it to smartform trough interface, but the smartform doesn't seem to support so long texts.
If I use include text they seem to be static? I can't put variable in smartform include text (text name/object/id) which tells what long text I want to get to the form?
In my case the long text that I want to get to smartform depend on the data that I pass to smartform.
Similar Messages
-
How to add a field in smartforms
hello friends,
how to add a RFQ field in smartforms.
thx,
kiHi,
Pls check
Smartform
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d! -
Setting output length of desired values for a Field in Smartforms.
Hi,
I'm working right now on 4.6c system and I have a field declared as "String" in the Global Definition, on viewing the output in the print preview i find that it is printing only 255 characters while the actual field value is more than that (somewhere around 600+).
Could you please help me out in as to how to declare this particular field in Smartforms.
Thanks in Advance,
Regards,
Divakercheck this
Re: Output length restricted to 255 when running ALV report in background
in that case u have to create a new Print Format which can give u complete data in while prining.
format will be like this
65*512.
Regards
Prabhu -
Displaying amount field in smartform output
hi experts,
i am printing amount field in smartform output. like this 11,200.
but i need to display like this $11,200.
i need to print $ with amount field .
can u give me some idea?
ThanksHi,
Try like this.
Data : v_amount type i value 11200,
v_final type string
If u r getting currency, then check the currency.
If Curr eq 'USD'
concatenate '$' v_amount into v_final separated by space.
endif.
Print V_FINAL where do u want. -
How can i avoid leading zeros for a field in smartform?
how can i avoid leading zeros for a field in smartform?
Hi,
Using the Symbols.
&symbol(Z)& Omit Leading Zeros &symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
Regards,
Shiva Kumar -
Printing 500 char field in smartform
Hi Experts,
I want to print a field in smartform which has nearly 500 characters. But while printing the filed, I am getting only 256 characters and the rest is truncated.
Can any one let me know how I can print all the characters.
Thanks in Advance,
SatishOh.. You seems to be right. I have tried with 500 hardcoded value instead of the variable.
I have tried with the variable and it seems it is only printing 256 characters.
So, try to print like:
&W_VAR+0(256)&&W_VAR+256(256)&
And it get printed.
Now, when I tried like:
&W_VAR+0(500)&
I got this exception raised and message:
Exception FORMATTING_ERROR
Message ID: SSFCOMPOSER Message number: 603
Message:
Field W_VAR: Output area not wide enough for field value
Regards,
Naimesh Patel -
Handling currency and quantity fields in smartforms
Hi,
can i know how to handle currency and quantity fields in smartforms.
i have to display ZMENG field of VBAP table but it is not getting displayed.
i have given the details in CURRENCY AND QUANTITY tab in the GLOBAL DEFINITIONS.
Thanks,
BJR.Hi
Did u pass that value in the INPUT and OUTPUT parameters where u r calling that field...
if u have not included that in The Currency/Quant Tab will get an Error Message.....
and &VBAP-ZMENG& ..in the text
surya -
How to add fields in smartform
Hi,
I would like to add some fields in standard smartform for outbound delivery ( VL03N ). Actually, I formatted smartform accourding to clent requirement. But I am not getting how to add some fields in that. Please, help me with any example.
Thanks ...Hi Manoj,
it depends: If the values for new fields are passed in any interface structures/tables, just add in the eight context.
If not, you must insert a Program lines node.
This tutorial may be helpful as your smartforms experience may be limited:
[SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
Regards,
Clemens -
Add editable fields in smartforms
Hi,
I'm working with smartforms (CRM) and i wonder to know if its possible to create a kind of blank fields that allow the user to insert some free text right before print the form?
Thanks a lot in advance,
Nuno MoreiraYES !
What kind of document would you like to print ? For example if you go in VL03N, you could enter text at different level, in the ITEM in the HEADER, all this text is saved into SAP tables.
You could read this text with the function READ_TEXT.
The text will be dependent of the document and will be print if it exist.
That's not what you ask ?
Rgd
Frédéric -
To Include Standard Text in TEXT Field of SMARTFORM
Hi,
I have a requirement to include a Standard text inside a TEXT field. The name of standard text is ZSD_CMR_&VSTEL&_STATISTICAL where for VSTEL we should put the respective work area field like ZSD_CMR_&W_LIKP-VSTEL&_STATISTICAL .
But while executing the Form its giving Error that STD text does not exist.
The Requirment is like - shipping point (LIKP_VSTEL) of the delivery to identify the standard text. So, if a doucument for a delivery for shipping point 3114 is printed, it should come with the contents of ZSD_CMR_3114 STATISTICAL In case the shipping point is 3112 it shoukd be ZSDCMR_3112 _STATISTICAL.
Can you please let me know how to include Std Text inside the TEXT, I mean SYNTAX .
Regards
AviHi Avi,
Lets take the example the standard text <b>'ZSD_CMR_3114 _STATISTICAL'</b> then with this standard text get the TDOBJECT,TDNAME,TDID and TDPRAS from <b>STXH</b> table.
In the Smartform, goto <b>TEXT->General Attributes Tab</b>.
Select <b>Type</b> to be I<b>nclude Text</b> from the drop down list.
Then give the Text Name, Text Object, Text ID and Language.
Your Standard Text whcih you maintain in S010 will be displayed in the smartform window.
Regards,
Tushar
Message was edited by:
Tushar Marshall Dass -
Supress gaps in the field in smartform
Hi
I am using wrbtr as amount field in my smartform and length of that field is 15. i want to decrease the gap between the preceding word(Rs.) and amount field. How can it be done?before putting in the smart form you just add one program lines and declare one character variable of size 15 say
AMOUNT type CHAR15.
now
AMOUNT = it_tab-wrbtr.
condense amount.
then drag & drop this amount field... -
How to select and copy more than one field in SMARTFORMS
Hello, I have about 60 fields in my smartforms, I need to copy them and paste once more at the same page. There is a problem, I can not select and copy more than one field. Is there some trick to copy and paste more than one element simultanicly?
Hi,
There is no way to copy multiple elements in smartform.
you have to do one by one only -
How to sum a field in smartform
hi experts,
i m new to smartform. i made a smartform in which i get the output in a tabular form......
i want to sum a field. how can i get the sum in the footer?Hi
Welcome to SDN forum
see this and doa ccordingly
Subtotals - Check the link...
Re: Subtotal with Table Node in smartforms
You can use the PROGRAM LINES node to calculate the page totals in Table node.
Table Node has three sections:
Header: (Triggered once in the beginning of a page)
Create a Program lines node to reset the value of TOTAL to 0.
Main Area (For each row of internal table)
Create a Program lines node to add the Value to TOTAL
Footer (Triggered once in the End of a page)
Display the TOTAL
Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.
2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters
<b>Reward points for useful Answers</b>
Regards
Anji -
Hi Experts,
I am developing smart form for invoice.In output it is displaying amount field like this
123.44,65 instead of 123,44.65.(I.e full stop is coming in place of comma and vice versa).
please help me.
Thanks,
SantoshHi
In order to convert the amount field we need to check first user settings . Even though the User setting value is 'X' .
The amount will not display correclt .
For this proper soultion is change the format according to country settings .
for that we need to give the syntax set country countryid.
this syntax will look into T005X if the country id is avaliable it will fetch the decimal notation provided.
if not provided you need to provide the syntax
SET COUTNRY SPACE . Here space will check the user settings and change the correct settings.
Please provide the SET COUNTRY SPACE before where you are trying to display . ie using flow logic -> program lines
or in driver program where you are trying to calculate .
I have done the same thing when i had this problem for Purchase order smartform.
Thanks
Hariharan. -
Smartforms- TABLE -Lines,rgrding passing Quan&DATS fields to smartforms
Hi All ..
Iam working on Tables in smartform ,
These are queries to which i need solution ..
1) In (Window) Table- Heading i have created 3 LINES in which my data had to display...( i have a line in that TEXT is used to display a particular fields of the Itab ) . as i came to know that in my Zprog iam gettting my data in the fields but wen in smartform these fields values are not displayed ( when these fields are placed in LINE ) but wen these fields are placed outof LINE that is outof table then iamgetting value for these fields.. so please let me know wat are the changes that ishould do to get my data in my table ( LINE )
2) How to pass DATS and QUAN fields to the smartforms..
as iam getting data to DATS and Quan Fields in my Zprog but these values are not showed in my smartForm .. ..
Thanks in Advance..
Looking for a good reply ..
Aslam..Hi,
you have created 3 linetypes for table .
you have create loop for multiple records display.
in loop you have to pass table from which you are displaying inti output.
To internal table we get data from print program and create text for corresponding cells.
then it will pass those data to table.
2) create programlines for that.
in that mention table from which table is containing quantity.
that is import parameter specified .
export parameters are your output fields using for calculation.
AMOUNT = TAB3-NETWR.
Netamount = Netamount + TAB3-NETWR.
here input is tab3 table it contains quantity data.
lamount,netamount are output parameters.
like that you can display quantity.
or in global definitions currency/quantity fields tab is available you can pass there also.
for dat fields write logic for conversion of date and pass that variabl in form output.
Maybe you are looking for
-
Performance problem - Tablespace Free Space
Hi, Version 10204 I am running the following statment in order to monitor tablespace free space. There are some tablespaces that i am not interesting to monitor , and i also whant to be alert only when less than 4 GB left in the tablespace. I build t
-
How to supress blank page in scripts?
Hi gurus. can any one let me know how to supress blank page in scripts? When one of my condition satisfies it should print two pages and its working fine. When condition fails, it should print one page but its printing blank page as second page. Wait
-
hai Can anyone send the 'How to create queries on effeciencitenly on the Multiproviders' document to me please. rizwan
-
Problem in creating report in report painter
Hi, I am creating a report in Tcode GRR1 and while creating it,i am getting a error i.e. :- CO Area must be specified -> Add in general data selections or rows/c Please provide me guidelines how to solve this problem as i am new to the report painter
-
Transitions Truncated During Export
Couple of points on PP CS4 Background: Asked to present at an imaging conference. To be efficient, I was just going to re-use a project completed in CS3 with a new intro. 1. Could not open CS3 project in CS4. Crashed outright and got the we are sorry