Smart form variable Prob.
I hav a z report connected to smart form for printing. i hav main page and other windows too. on main page, Items are displayed with qty, disc., price. And on other window I m displaying Total qty, at bottom grand total of all above Items. Qty on main page is displayed in xx.000 format but at bottom window it shows in xx,000 format. why comma is there in place of dot.
similar problem with total field. If on main it shows xx.23 then it shows correctly xx.23 on bottom, But if on main there is xx.00, thn it only shws xx at bottom window.
How do I get the right outputs?
Also while activating the Form, its shows error mrssage with list of variable like :
Field variable_1 has no defined value.
the form runs fine thn why this is comming?
thanks.
khan.
Hello Khan,
Normally in currecy fields the "Field variable_1 has no defined value" appears and it can be avoided by giving a "<b>default value to be 0 (zero)</b>" in <b>Form interface or in Global definitions</b> wherever it is defined.
Hope this solves your problem.
Reward points if useful.
Thanks,
Tej..
Similar Messages
-
Sample smart forms for sales order details
M unable to retrieve the data from database to smart form variables.Please send me some standard smart forms names for sales order report.So dat i can c how dey r declared in standard forms.
Thanks & Regards,
santhosh Kumar.Hi santosh,
here are some of the standard smartforms-print programs
Inquiry /SMB40/RVADOR01 /SMB40/SDINQ_XX
Quotation /SMB40/RVADOR01 /SMB40/SDQUO_XX
Order Confirmation /SMB40/RVADOR01 /SMB40/SDORC_XX
Cash Sales Receipt /SMB40/RVADOR01 /SMB40/SDCSH_XX
Contract /SMB40/RVADOR01 /SMB40/SDCON_XX
Scheduling Agreement /SMB40/RVADOR01 /SMB40/SDSDA_XX
Delivery Note RLE_DELNOTE /SMB40/SDDLN_XX
Invoice RLE_INVOICE /SMB40/SDINV_XX -
How to insert a table with variable rows in smart form
Hi all,
How to insert a table with variable rows in smart form?
Any help would be appreciated.
Regards,
Mahesh.Hi,
Right click the mouse->create->table
If you want 5 columns, you need to declare 5 cells in one line type of the table
Click on Table -> Details, then do the following
Line Type 1 2 3 4 5
L1 2mm 3mm etc
Here specify the width of the columns as many as you want..
then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there. -
How to change the font of variables in smart forms dynamicly
Dear all,
Is there any suggestion of how to change the font of variables in smart forms dynamicly?
Thanks in advance.Hi,
You cant change the font dynamically but tell me the scenario I will try to give the solution.
Regards,
Nageswar -
How to define variable for smart form in coding
hi all,
i have to create a variable for smart form which is i already created in smart form but facing some sort of difficulties.
for example:
DATA: formname TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)
DATA: formname TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)
DATA: formname TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)
CASE in_mseg-bwart.
WHEN '101' or '105' or '321'.
formname = 'FORM_RECEIPT'.
WHEN '122' or '124'.
formname = 'FORM_RETURN_VENDOR'.
WHEN '201' or '261'.
formname = 'FORM_GOODS_RESERVATION'.
ENDCASE.
So this the logic im using but it gave me error like:
Type ZCCCL_GOODS_RECEIPT is unknown.
Kindly tell me if this coding is wrong than what should i use.
Thanks.Declare variable name for smartform as
Formname type TDSFNAME in import tab. -
To find where a variable is getting updated in a smart form thru debugging?
Hi Friends,
This is urgently required.
In transaction vf02 by putting the billing document no.and navigating as follows:
billing document -> issue output to ->select the doc->print preview
a smart form is generated.
The issue that I am facing is that the from and to date is mssing for some of the documents nos.in the output of the smart form.
How do I debug the smart form and get to the place where the particular date variables are being picked.
Thanks a lot in advance !!hi,
Create a short cut as follows
1) On the vf02, standard tool bar there is an 'shortcut generate' icon will be there, click on it. you will get the screen where under 'Application', give the following details
Type: system command
command: /h
and click ok then there is a short cut created at your desktop
2) drag and drop the shortcut before clicking on print preview then debugging will starts
then you can able to debug the smartform -
Smart Forms : problem with Float Variable
Hi Expert,
I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
I have to remove the exponent and display value like 80.
I have tried wa_qamv-sollwert(E10.4).. but it not working.
Can U suggest me some solution.
Regards
Swati.
Edited by: Swati Namdev on Apr 27, 2010 12:19 PMHi,
Please follow the steps.
1. In your smart form create a variable w_val ,, type,, associate type --> CHAR10
2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
EXPORTING
iv_menge = i_tab-qamv
IMPORTING
EV_MENGE = w_val.
4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check.. It will work.
Regards,
Lokesh.
Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM -
How to Print data from variable or in header of the table in smart forms
Hi all.
i have to print mondy tuseday etc in the header of the table . the actual data is printed ok in the main area from itab where as i m unable to print data in header from that itab.
i have tried from one variable as well . as i export that value to the smart form andthen try to print but i won't be able to do that
Regards
Ammadplease post the question clearly.
-
Variable declared in global definition smart form
Hi,
We have defined an internal table 'it_table' in the global definition. We are unable to use 'it_table' in 'Page and Windows' loop statement.
Kindly suggest.
Regards,Hi Sanjay,
There are 2 cases exist for your problem :
1. If you are filling the desired internal table and wants to pass that table to your smart form for loop processing than you have to declare it in the form interface ; As the name itself sounds the interface ,Which means it provide an interface to pass data from Print program (Driver program) to smart form.
But for this the table type can be only the DDIC structure not the one you are declaring in your print program as it will not recognize it.
2. But in second case if you are filling the internal table into your smart from than ,table should be declared in the Global definition.
The way is as :
Go to ->global definition->type tab declare the type as :
types : begin of t_vbap,
vbeln type vbeln_va,
posnr type POSNR_VA,
matnr type matnr,
netwr type NETWR_AP,
end of t_vbap.
Now declare a table type for the previously created type as follows :
types : it_vbap type t_vbap occurs 0.
(You can go to SE11 and create a table type there also for same)
Now go to the Global data tab and declare your table as follows :
I_VBAP TYPE IT_VBAP
Now I_VBAP will be a table. and you can carry on your processing.
Please award point by clicking star. -
How to Pass the Internal table of a report to Smart Form
Hi Experts,
I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
Now i want to pass that internal table data to the smart form
and print that data in the smart form.
So could you pls give me some pseudo code or any steps to achieve it.
Thanks & Regards,
DSHi DS,
First of all you need to create a SF and then need to call the FM generated by the FM in your report.
In the SF in the form interface>tables tab>mention the name of the table and its type structure.
Pls note that a new structure has to be created as the same type of your internal table which holds the data.
And the import and export parameters as just the same as in a FM.
Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
You can call this FM in your report. Hope this helps.
Ex:
say itab has your final data, and you also want to export a variable var1 to the SF.
after your normal report operations end, call the FM and pass on these data.
say your FM name is FM1.
call function FM1
exporting
var1 = var1
tables
itab1 = itab1.
pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
Hope this helps...
if you need any further explanations, pls revert...
Regards,
Narendra.
Reward points if helpful!!! -
Text element not gettin refreshed in smart form
Hi
Text element does not get refreshed in the smart form preview.
I have a selection screen on which i have a few selection parameters and three application
toolbar buttons. "Save" , "Preview" and "Print". At the end of selection screen I have a
button "text" which when clicked takes me to the text element editor(FM 'TEXT_EDIT' )
I have to enter a project number on the selection screen, enter all other details and
then click on the "Text" button. I would then change /edit some text etc and come back
to sel screen. Now i click on preview , the smart form shows up and the text gets dispalyed
with the modified text.
I am passing the text name by appending "sometext" + project number to the TEXT_EDIT
and while eiditing and as a parameter to the smart form. In the smart form i have given the variable in the "include text".
Now Herez the problem.
I am still in selection screen and clik on the "text" button and it takes me to the
text editor. Now i add more lines, save and come back. Now i clik on preview
button and it displays the old text data.
When i come out of the transaction and renter , clik on the preview it displays data
correctly. Now if i repeat the steps
1.edit text button , add a few lines
2.preview button, shows data as entered in step 1.
3.edit text button, add few more lines
4.preview button .. the text displays is from step 1 and not 3.
I am not sure if this is lot of info for anybody to write an answer straight away but
if u need more info i can provide. I can do a read_text in the smart form but its toooooo
much of a pain for the data i need to display. million adjustments to be taken care of.
What could be the problem ? I have given all the basic settings like save parameter
in edit_text fm , checked all the print preview options in sdn.
Here are my questions
1. Why is the text element not getting refreshed.
2. After a form is displayed for preview , will it store anywhere in the buffer ? if yes
is there any method to clear it ?Hi,
The problem is not with text elements, it might be your size of window which you are using to display the text elements. Check your window size and modify that accordingly.
Cheers,
Bujji -
How to use Multiple Logos in One Smart Form?
All,
I have a client where they will have 2 logos for, e.g. "Invoicing" and want the form to decide which logo to print (based on plant code).
We are using Smartforms.
They want to use one form and based on the plant code - the form should determine which logo to print in the upper left corner of the invoice - how do you do this?
This is not like having text to print on the form in the same place - my understanding is the logo is NOT some variable you can "clear" in the program and then use the logo you wish to show up on the printout.
Does this have something to do with using multiple layouts within the same form? You define a layout for each logo and then within the Smartform logic determine which layout to print? And if that is true - does someone have sample code of how they determined which layout to use?
Thanks - and as always - points rewarded where helpfull!
ScottHi Scott,
Create two Graphics in Smartform window & place them wherver you want in the smart form.
Now in Graphics node, you can find 'Conditions' tab, under this you can give the conditions.
Hope this clue wil help you
Regards,
Sujatha -
How to drag global data in text editor in smart forms
Hello friends,
I am doing a smartform. I tried to drag the global data from field list and drop it in text editor but its not working.
can you please help me how to do that or is it need any extra settings?
Please help me friends.
Thanks,
Manisha
Edited by: PATIL MANISHA on Apr 23, 2010 12:14 PMHi Manisha,
It is looking very strange. But still try to do following may be helpfull.
1. First activate your smart form after declaring the variable in Global definition. Then try to drag n drop from Field list
2. Or else click on Editor tab of Text node, Then Goto-> change editor (You will get a editor same as Sapscripts)
put the variable like that:
HT : &W_TOTAL-MASSG&
Try this. Best luck...
Regrads,
Lokesh. -
Smart Form - operator not followed by value
Hi all,
in smart form --> Global definition --> initialization
i have written this code....
select belnr gjahr bukrs blart bldat budat waers into corresponding fields of
table tbkpf from bkpf where
bukrs = ubukrs and gjahr = ugjahr and budat in ubudat.
Here cmp code and fiscal year is parameter but posting date is select-options.
Its gives error :- The IN operator with "BUDAT" is followed neither by an internal table nor by a value list.
i have taken input parameters also.
Edited by: Julius Bussche on Nov 13, 2008 10:56 AMselect-options should be handled in a different manner in smart forms.
declare 2 variable say
1) budat_low
2) budat_high.
Pass the low value of posting date to budat_low and high value of posting date to budat_high.
then handle the above 2 variables in select query using BETWEEN.
eg: budat between budat_low and budat_high. -
In Smart Form alignment disturbed from 2nd page
Hello experts,
Help me to resolve the issue.
Smart form output disturbed from second page. Here giving snap shots of first two pages only.
The value of column Item no is not from database. It come from loop, variable 'Counter' is incremented, in main window
First Page
Here line no 10 and data is disturbed.
Total number of record lines printed are 10.
Second page
Here alignment of line no and data is disturbed
Number of record lines are printed 6,not 10 as printed in first page
Item number and data record lines are not in aligned.
Sixteen(16) item no associated data is printed but item number is not printed ( printed on page 3)
Last line ‘Expected Date…’ coming on each page. How to print only after completion of all rows.?
Your help is highly appreciated in anticipation.
Regards
B R PhatakHi,
Last line ‘Expected Date…’ coming on each page. How to print only after completion of all rows.?
for this you can use the Table footer so that it can be dispalyed after the end of all records,
and can you tell me what is the type of your counter variable?
Try using CZ options for item to compress
Regards
Pavan
Maybe you are looking for
-
Can't Open Pages Document
-
Problem with video after installing ipod software update 1.2
I recently downloaded the ipod software update version 1.2 for my ipod. It seems to have changed the video screen output as some of my videos now do not play full screen and instead have black boarders down each side of the screen while playing. At f
-
i am trying to assign my purchasing org T100, T200 to my company code TA00. we can assign several P.Org to one CC. However, one P.org can only belong to one CC is this true can someone explain me why? thank you
-
I CAN NOT INSTALL PHOTOSHOP CS6
Hi, I dragged the folder to the Trash PS6 beta and I still say there is a problematic version, not to do :/ please help me, I'm USER mac
-
Domain chnage for ESS users - Error
Hi All, We have an issue with our ESS/MSS portal. We have recentley moved some users to a different domain. They can access the java stack portal, but when they try to access a BSP that is running form our backend they get 'page can not be found' e