Tables in form interface in Smartforms
Hi
Generally for creating Tables in Form Interface in smartform , We have to create a Zstructure Or ZTable Type in SE11 and then we refer this structure in form interface. My requirement is how can we create Tables In Form Interface in smartforms
without creating Zstructure In se11. Can you please tell me is it possible , If possible then how can i do it.
Thanks & Regards
Girdhari
Hi friend,
If you have a driver program and you need to pass data from the driver program to the smartform then during Form interface declaration you need to specify a global parameter. Which you will be creating using SE11.
With out creating a global structure or global table type we cannot declare it. If you have all the logic with in the smartform then you can declare the table type or structure with in the form then declare it.
But once if data comes from outside then we should go for global.
So i hope you will be clear and got the answer for your question.
Thanks,
Sri Hari
Edited by: srihari.kumar on Feb 8, 2012 12:06 PM
Similar Messages
-
How to declare custom structure in form interface in smartforms?
Hi,
How to declare custom structure in form interface in smartforms?
Thanks.Create a structure in SE11 and use that in Form Interface - > Tables tab in smartforms.
Pranav -
Form interface import parameter cannot be used in smartform
Hi,
When I try to use the standard parameter HEADER in a routine in a smartform, I get the error: "HEADER" expected, not "...".
I have put the HEADER definition in the Input parameters of the routine and I have tried other form interface import parameters and I do not get any error with those. So I cannot see why HEADER woudl be any differnt?
Any suggestions? Thanks.Hi,
Thanks for your reply.
There's a smartform with this definition in the Import tab of the Form Interface:
HEADER TYPE BAPIBUS2000110_HEADER_DIS
I've created a Program Lines routine. In the Input Parameters under the General Attributes tab, I entered HEADER. This is so I can reference the table in the code. However if I do a syntax check, I get the error described "HEADER" expected, not "...".
Hope this clarifies the problem. -
SMARTFORMS - Change an import parameter in form interface
Hello everyone,
I don't know if it's possible, but I put some program lines in my smartform to clear some fields if the last page is not reached. The problem is that these fields are from a table that's stated as an import parameter in form interface, which means that data is taken from the program, right?
Am I able to clear these fields anyway? If so, which way?
In my code I'm comparing the systems fields sfsy-page and sfsy-formpages, if they're different I clear the fields, otherwise I don't, actually I did it because the conditions don't get the result as I wish. If I check "only after the end of main window" the whole table doesn't appear in my form and I don't want that.
PS: I didn't set this condition on table, I set it in the text.
Any ideas?
Thanks in Advance.Hi,
You can do one thing.....create an internal table in the smartform itself....transport those values in this table and display the fields using this table only.
Now if the last page is reached u can use the main table (that is imported from the program). This way the original data is not cleared.
I hope it helps.
Regards,
Shraddha -
Difference between Form Interface and Global definitions in Smartforms.
Hi guys!
I'm learning about Smartforms.
I would like to know which is the difference between Form Interface from the Global Settings and Global Definitions from Global settings as well, because in both of them I have to declare tables, structures, variables, etc. Could you please explain to me when should I use them?
Thanks!
GabyTwo ways to use Smart Form:
1. by using Application Program
2. By coding in Smart form itself.
Now, if the 1st method is used then same interface can be used for multiple requirements. For eg two different programs Z1 and Z2, may use same interface. Hence a lot of efforts are reduced.
On the other side in 2nd method, multiple forms have to be created to fulfill different requirements.
Now, Global Definiton is something that is irrespective of which Program is being used, the form nodes can use the Global definition in all cases.
Also all tables etc must be declared in the Global setting.
Regards,
Sana -
Creating a Purchase Order Smart Form (Form Interface)
After reading up on all the posts about making a PO smart form I know this:
- An SAP script "medruck" is the current output
- A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
- You need to install an update to get those smartforms if you are using ECC 6.0
So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system. I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
Basically all I need to know is what form interface parameters do I pass in? Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N? Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?Hi
If the smartform purchase order is not available in your system
means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
Thanks and Regards
Arun Joseph -
i have declared a internal tale in driver program and it is like this
data : begin of itab occurs 0,
vbeln TYPE vbak-vbeln,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
matkl TYPE vbap-matkl,
end of itab.
i am passing to smartform
call function I_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
itab_end = itab
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
In the smartform i am trying to create itab_end so that i can capture the data from the program.
in the form interface in tables option i am declaring like this
itab_end type itab.
I am getting the error like 'type itab does not exist'.
please tell how to solve this.Hi,
Ramesh kumar
Your check this code.
data : begin of itab occurs 0,
vbeln TYPE vbak-vbeln,
audat TYPE vbak-audat,
auart TYPE vbak-auart,
vkorg TYPE vbak-vkorg,
vtweg TYPE vbak-vtweg,
spart TYPE vbak-spart,
posnr TYPE vbap-posnr,
matnr TYPE vbap-matnr,
matkl TYPE vbap-matkl,
end of itab.
data:
t_itab type standard table of itab.
Working fine .
Regards,
Ansari. -
Table from driver program to smartform
Hi All,
I am passing the table from driver program to smartform as below
CALL FUNCTION w_fname
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
output_options = ls_composer_param
user_settings = space
TABLES
t_prod_ords = i_prod_ords
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
now my problem is that i want to access the data into smartform i have already define similar structure under types tab in global setting and then create a table in global data tab but when i go to smartform the table comes up BLANK.
i dont want to create Z structure and dont want to define table in import parameter.
any other way out ?
Thanks ,
Ruchi TiwariHi Ruchi,
The data you wanted to pass from driver program to Smartform should be defined under Global settings in Form Interface not in Global data.
If you want to pass tables data from driver program to smartform, define a table with same structure in Form Interface of Global settings and if you wanted to export/import some values just do the same in Import/export parameters under Form Interface.
The data you declare under Global data can be used globally in the smartform.
eg : GT_VBAK LIKE VBAK.
Hope this helps
Rgds,
Sripal -
Deff. b/w form interface and globel definition
what is the defference bt form interface and globel definition
Hi,
Form Interface is where you get your internal tables, variables and all necessary information from the driver program. You specify the required data here.
Pls note that if you need to pass internal tables from the driver program to the SF then you need to create a structure with the similar fields in your internal table and give a reference to the same here in Form interface.
The import and export are nothing but same like a Function module, for variable to be passed from the driver program add them in the import tab. Export you can just let it remain as it is.
In the tables tab add the tables what you require from the driver program.
Global definitions are nothing but where you declare variables, work areas required to be used further in you program.
To do coding in SF, you need to add program lines. This you can do by creating any window and then on the left hand tree of the main window, right click and then you can find the options to create various things like table, window, program lines, command et.al.
Hope this helps you to build a brief idea about Smartforms.
There will be various links in sap help, blogs and also in this forum where you can find loadsa information!!
chk out the following links as well:
here is a link which will teach you step by step
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
More links
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
Step by Step creation of Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
FAQs
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
also see
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
http://www.techinterviews.com/?p=198
http://www.techinterviews.com/?p=326
http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
http://www.sap-img.com/abap/abap-interview-question.htm
http://www.allinterview.com/Interview-Questions/ABAP.html
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
Regards,
Satish -
Diff. btwn Form Interface & Global definations?
Hi Guys,
Wat r the differences between Form Interface and Global definations(if possible with example)? Pls. list out.
Thank you.When you create a SmartForm and activate it creates a function module which has same interface as the Form Interface of the smartform. Smartforms are always called by calling the corresponding function module. There is 1 fm for each smartform. The form interface has the IMPORT, EXPORT, TABLES and EXCEPTION, same like in a fm
Global definitions in smartforms is used to define data variables, type definitions, field symbols, form routines etc which are used globally withing the smartform. Every part of SmartForm can access these objects defined in Global definitions.
<a href="http://img483.imageshack.us/img483/297/globaldefinitionsqa4.jpg">SmartForms Global Definitions</a>
<a href="http://img390.imageshack.us/img390/2193/forminterfacebo2.jpg">Form Interface of a Smartform</a> -
Error in the import tab of form interface with parameter name
Hi Experts,
in the import tab of form interface i have define the following..
Parameter Name type assignment Associated Type
t_vbrk type vbrk
and then in a loop i am using this as follows...
t_vbrl into fs_vbrk
after executing check i am getting the error 'T_VBRK" is neither specified under "TABLES" nor defined as an internal table.'
plz help me out with this.....
why this error is occuring?
thnks n reagrds,
AshmitaHi,
U cannot loop the import tab i think....Give tat one in tables statement and execute..
t_vbrk type vbrk in Tables tab...
I think it will solve ur issue.. -
Hi,
I had an error in form interface.I declared as,
IN_VOICE TYPE VBRK-VBELN for parameter.
error: "VBRK-VBELN" is not a pre-defined type or a type from a type group.Hi dilip,
Declare in the Import tab in the global definitions:
t_vbrk type y_ty_vbrk.
t_vbrp type y_ty_vbrp.
Create the table types for these two parameters (t_ vbrk and t_vbrp) in se11.
In the driver program declare:
fs_vbrk LIKE LINE OF t_vbrk,
fs_vbrp LIKE LINE OF t_vbrp.
Regards,
Sravanthi -
Adobe form to replace smartform in SRM 7
Hello,
We are in the process of utilizing the adobe server for form processing in our SRM 7 environment. In SRM 5.0 we have some custom Z smartforms for SRM documents. I am having the following questions:
1) What are the steps to do a "smoke test" to make sure the adobe server is working as it should?
2) Is there a graceful way of transforming the smartforms into adobe forms without re-designing them?
3) What are the steps to configure the system so that the it prints adobe form instead of the smartforms? (I have read note 1264423. It doesn't seem to have too many details.)
4) If adobe form would be exclusively used in SRM 7, is BADI BBP_OUTPUT_CHANGE_SF still relevant or should we deactivate it?
Thanks.I think my question has been answered by this help:
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
What I didn't realize is this:
By migrating Smart Forms, you can reuse them as PDF-based print forms. You can find the Smart Form migration tool in transaction SMARTFORMS.
I have tried the migration tool. It did convert the old smartform to the new form/interface, but not without many errors. But at least we know that we don't have to start from scratch. -
Re: Adobe forms - interface type
Hi...
When Iam creating the interface ... it is asking Description and
interface type as ABAPDictionary- Based interface
XML Scheme- Based Interface
Smartforms-Compatible interface... Have to select one option.. In some Examples I didnt see this interface type Option... what is the use of this interface type...
Thanks & Regards,
Abaper..hello again,
i tried to list all the things u need to know to create your interface:
1. Open the required interface in the Repository Browser of the ABAP Workbench.
2. The Interface tab is displayed. Under Form Interface, double-click the Import node
3. You see a screen for entering import parameters. This screen also shows the standard parameter /1BCDWB/DOCPARAMS. You cannot change this parameter.
You use this parameter in your application program, to specify the value for the language setting, for example. To display this structure in the ABAP Dictionary, double-click the SFPDOCPARAMS type.
4. XML schema-based interface
○ The standard parameter /1BCDWB/DOCXML with the type XSTRING is used for sending data from the application program.
ABAP-based or Smart-Forms-compatible interface
○ To insert a new line, choose Insert Line (This graphic is explained in the accompanying text). Enter the parameter names of the data you want to import. These names are valid for the whole form and do not have to match the variable names in the data collection program. All data types are valid. TYPE can be selected under Type Assignment.
5. When you double-click Export, you see the standard parameter /1BCDWB/FORMOUTPUT of the generated function module. You cannot change this parameter.
Note: You use this parameter in your application program, to make the generated form available as a PDF for further processing, for example.
6. To display the exceptions used by the generated function module, double-click Exceptions.
7. Activate the interface.
Note: At runtime, the application program must provide the parameters. If a parameter has been defined in the form, but is not defined when the application program is called, then the output of the form ends with the program crashing (hex dump).
However, it is also possible that the application program provides parameters that the form does not need. You do not need to mention these parameters in the form; they can also be specified in a different order from the code of the application program. This has the advantage that an application program can work with several different forms.
Hope this helps
Cheers -
how to use form routines in smartforms??..there is a option for using it in the global definition..plz explain the proper sequence of using it
Hi Arun,
In Form routines tab you enter routines that you want to use in the form via the program lines node. Within these form routines you cannot access any global data unless you explicitly pass them to the form routine interface.
i hope this will be helpfull to u,
Regards,
swapnil
Maybe you are looking for
-
Restriction of number of POs for a single Sales Order
Hi, Currently, For a Single Sales Order multiple Purchase Orders are being created. Now, the Client wants to restrict number of Purchase Orders for a Single Sales Order that means, he wants only 1 Purchase Order for 1 Sales Order. Could you guys sugg
-
How to increase performanc​e?
Hi everyone, I have a HP Pavilion G6 2302ax laptop (AMD A4 2.5 ghz, 4GB RAM 1800 Mhz & 1.5 GB Radeon graphics card), running on windows 8. My problem is that my computer is running slow. It does whatever i wanted to but, i feels it is a tad slow. If
-
Hi, I'm working on a Web Service Project, and i'm trying to deploy Web Services dynamically. Now the problem is, that i have to adapt the Java src-files sometimes before the deployment (Like adding Annotations, Methods or just peaces of code into a M
-
I have a row container with 3 rows. In each row, I display 5 entries. Now, the 5 entries in each row are displayed next to each other without any spacing between them. What can I do do add some spacing (margins, paddings) between the elements?
-
Backward compatibility of teststand
Hi , I have a sequence written in teststand 4.5 , but I am not able to run it in teststand 3.5 , is there any solution to this ? Otherwise I have to rewrite the sequence in teststand 3.5 . Thanks, Manreet Solved! Go to Solution.