Dynamic columns in smart form
Hi All,
The requirement is to display columns in the form dynamically based on the user input. For example if a country is chosen, each of the states is to come as a column. So based on the country, the no. of states is likely to change. This would call for dynamically changing the no. of columns in the smartform based on the country chosen. Is this possible to achieve in smartforms?
Regards,
Divya.
You cannot have dynamic columns in smartform instead create all the required columns and display them based on the conditions passed from the program.
Refer the link -
Re: smartforms - dynamic column of tables
Regards,
Amit
Reward all helpful replies.
Similar Messages
-
Dynamic picture in Smart forms
hi all,
i need to include the picture of am employee dynamically in the smart form deponding on the personnel no selected .so each page will need to include the picture. how to create graphics node dynamically / assign the picture .
can any one tell me the logic .
thanks
senthilHi Senthil,
Create a graphic node in the Smartform and under the tab 'General Attributes' fill the Name, Object and Id with variables (e.g. &NAME&, &OBJECT& and &ID&) and fill these parameters to get the picture you want at runtime.
Regards,
John. -
Dynamic graphics in Smart Forms
Dear All:
I have a requirement in my SMARTFORM page development that i have to place a dynamic graphics and printout.
Does anyone know how to control the dynamic graphics in Smart Forms?
Any help whould be highly appreciated.
Many thanks in advance.
Regards,
ElvisHello,
You can call the graphic dynamically as per your requirement by calling the Graphic dynamically, For ex: Name of the graphic: &WA_ITAB-FIELD1& ( which is a field of IntTab ITAB taken into Work area WA_ITAB ).
Also please note that you cannot print / overlay text in a diamond, perhaps you can have a work around to print the graphic and beside the graphic you print the Customer short name. for this you can either define a table / template.
Hope this helps you.
Best Regards,Murugesh AS -
Writing Dynamic code in smart form
Hi All,
I have a issue on Smart form . the smart form is customized view of bbp_po(srm) for po(purchase order) details in that in a secoundary window where vedor adress is displaying .In the first line of the address name1 and name2 are displaying now my need is if the name1+name2 is more than 47 chars then i need to shift name2 to next line how can i do this dynamic code plase i need it urgently .
Thanks
channu sajjanarHi
Write code yto count the no of character, if it is more than 47 then display NAME2 in second line else write in first line.
for second line put conditionin text element NAME2 <> space.
This will work
Thanks
Shiva -
Dear,
I just want to pass dynamic internal table to smart form which i have created in print program.How it is possible and i am also using border for field in layout.
Anuj ModiHi Anuj Modi,
Smart forms are not really dynamic (except if you are talking about the number of lines), could you please explain what rendering you want to achieve exactly?
Sandra -
We have a business case to choose different logos based on a condition. This invloves significatn effort from Change mangement point of view.
Is there any solution by which I don't need to change any thing in smart forms but able to derive the graphic dynamically.
any help in this regard is appreciated.
regards,
SadamHi Harpit,
I did as follow in my requirement... i have to print logo based the company code.. for this
i have created 1 graphic window, then given the name as<b> &V_LOGO& then press the Button right arrow (looks like ">").</b> so that system will understand the name will comes form vareiable V_LOGO(is type char20. rest is same.
but some how we need to pass the logo name for this i have written code in GOBALDIFINATION-->INITIALIZATION tab...
if xxx-BUKRS = 1008.
V_LOGO = 'xxxxxxxx'.
elseif xxx-BUKRS = 1011.
V_LOGO = 'yyyyyy'.
elseif xxx-BUKRS = 1152.
V_LOGO = 'zzzzzzzz'.
endif.
Please Close this thread.. when u r problem is solved
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Regards
Naresh Reddy K
Edited by: Alvaro Tejada Galindo on Oct 1, 2008 3:25 PM -
Hi
I have searched the forums and noticed this question has been put forward many times but without a complete solution.
I have so far managed to use the IGS to create a .JPG/PNG file for me. I seem to have an error while trying to create a BMP file, basis is currently looking into this for me, i get a LISTENERRFC : error.
I'm using class : cl_igs_chart_engine
to generate a chart from the IGS, this is returned to me in a MIME table format.
Now how can I use this MIME table to insert it dynamically in the SMARTFORM. I see there is provision for Dynamic determined graphics in smart forms but i don't think it can be used here.
Does anyone know how to do this ? Is there any other more effective way of inserting dynamic graphs into SAMRTFORMS
Another question is class : cl_igs_chart_engine, how can you create a line graph instead of a bar graph ?
ThanksHi Kevin,
Dynamic graphic in samrtform is supported provided you have the BMAP ( Bitmap ) created in SAP. In the graphics node of SMARTFORM you can assign a variable &GRAPHIC& as the name. From the program pass the graphic name in variable "GRAPHIC" through samrtform interface .
The prerequisite is that the graphics should be there in SAP database at the time you call smartform .
About your other question I have no idea but I can say that if you can have a graphics created on your PC at runtime you can always upload it to SAP using report RSTXLDMC , just before calling smartform. However this would generate a lot of graphics on SAP even if it is for one time use by smartform . You will have to find a way to delete subsequently .
Cheers -
Hi
Web form is a Account ( Rows) X Period ( Columns) Webform.
I want to have dynamic columns in the web forms. For example, In the month of March the User should be able to see Jan, Feb and March in the columns. And in the month of may.. Jan, Feb, Mar, Apr, May should be the columns.
The remaining months are not required .
Can this be achieved??
Regards
AbhishekTry something like:
C1=P#@Cur
C2=P#@Cur(+1)
C3=P#@Cur(+2)
It seems to work. -
Dynamic Changes in Smart Form ( From External Source )
Dear Sap Folks ,
Whether the SF layout attributes can be changed from the external loading program dynamically .
Please give your views on this topic.
Thanks in advance .
Best Regards,
RajHi Raja,
As far as my understanding goes this cannot be achieved by an external program but what you can do is that you can some flags that you can set in the print program and when you pass them to the smart form function module(the function module generated by the smartform) you can decide whether certain windows need to be displayed or not by giving a condition to them. You can have two windows with diferrent attributes and then switch between them with the help of flags acting as conditions.
Hope this will help
Sudhi -
ABAP - Dynamic Table in Smart Form
Dear All,
Can i assign a table at run time mens table rows and column will depend on user selection and no. of records fetched by query. Is there any utility.
Plz let me know ASAP if there is any. Looking forward to your co-operation.
Thanks & Regards,
Gulrez AlamDear All,
At the time of table creation in Smart Form, we had to assign no. of columns and its width.
In the case when no. of coulumns will be decided by the no of records return from the query. how can i link smart form with that records.
No. of coulms in the smart form will be decided on the i/p no. given by the user. it can be any no.
Plz suggest me the appropriate things.
Is it possible or not in the smart forms.
Thanks in Advance
Gulrez Alam -
Is it possible to show/hide dynamically columns in RDLC form?
We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?Depends on what you mean dynamically, you still need to press the view report button.
What you can do is right click on the column you want to be able to hide/display in design mode,
click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column -
Smart forms - Dynamic sizing of the windows.
Hi gurus, iam working on smartforms, i have a problem.
My requirement is: Printing a table data on the smart form. Is the window which prints this table data is resized with the amount of table data, if so, what is the procedure i should follow for to print this data in the window.
Please give me the steps to go with the above issue. iam new to smartforms. what is the size of the window i should give in the Form painter and what all the attributes i should declare.
Plz give a detailed explanation..
Regards,
chaitanyaHi Chaitanya.
I would like to suggest a few references,
[SDN - Reference for Smart form - setting dynamic window height |Smart form-setting dynamic window height;
[SDN Library - Standard Reference - Dynamic Window Height - SMARTFORM Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef]
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Problem with dynamic columns in the BEx report
Hi Gurus,
I am tryging to build some planning application using BI-IP and input ready queries.
I'm facing issues with making the columns in the query 'dynamic'. The example is given below: -
Lets say there are states and cities for which we have to plan sales volumes. Depending on the value I choose for 'State' it should create as many columns for 'Cities' as per the hierarchy of the cities.
Lets say if I choose Maharashtra then the report shud look like :-
State-> Maharashtra
Rows Column1 Column2 Column3
GL Account Mumbai/0quantity Pune/0quantity Aurangabad/ 0quantity
1000000 1000 1500 1200
State--> Karnatka
Rows Column1 Column2
GL account Bangalore Mangalore
1000000
Any idea how this can be achieved?
Best Regards,
SSCHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
Problem with dynamic columns in smartforms.
Dear SDN Experts,
I have a requirement in smartforms for dynamic columns.
i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
readings with them for that month.
i cannot fix column headings also,Because headings also changes dynamically.
So Problem is if there is no data in columns,Columns is displayng empty.
For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
Please suggest me a solution is this posible in smartforms if i use table also.
<removed by moderator>
Regrds,
MNR
Edited by: Thomas Zloch on Sep 11, 2011 3:50 PMHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
How to Print Vertically in Smart Forms
I need to print data in vertical format into columns in smart forms. Can any one give me the solution.
Hi Sreedhar,
In Smartforms, if you need to print vertical text, only possible way (That i know) is, Create a Bitmap image of the text and rotate the same to 90 deg and then use that image in your smartform....
If you can use adobe forms, you can rotate the text to any angle that you want....this is one of the main advantage of adobe forms.
Best Regards,
Ram.
Maybe you are looking for
-
Clean out start up disc I Mac g5
How can I clean out the start up disk. I do not have enough space to import video into I movie on my G5.
-
I have an applet, and I want to support multiple instances of the applet running in the same browser. This is easy: just make sure that the applet object is encapsulated properly - no ugly globals which aren't shareable. However, the applet needs to
-
What are you doing ? just now i'm listening... Learning Disabilities
-
Czech Adobe Reader X with English menu
Hi all, I have a problem with Adobe Reader X (10.1.0 and next updates). When I install it on clear Windows Pro 7 system, I choose Czech package, the installation is in Czech language, after installation I accept terms which are also in Czech language
-
CS4 titler: exit and abort changes?
Before I upgraded to CS4 I was using premiere cs 1.5, and the titler behaved differently: in cs 1.5: each title is saved as a different file you can cancel out of the titler and abort any changes you can create new title from within the titler, just