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>
Similar Messages
-
Diff. btwn Form Template & Table?
Hi Guys,
Wat r the differences between Template and Table(if possible with example)? Pls. list out.
Thank you.In SAP SmartForms, templates (from template node) define the format of the columnar output but they are just structures which can used to set how the columns in the output are placed. Whereas as tables actually contain rows to hold data. The Template contains a fixed number of rows and columns, where the output is fixed. The Table can have variable number of rows
The application data is selected in the application program and transferred to the form using the form interface. In contrast to the template node, the table node has another tab called the Data tab. On this tab, you enter the internal table whose data is to be output. The data is read to a work area in row format.
The table layout is determined using row types (this is same for templates).
A header area (for table headers), main area (for items of the table), and footer area (for whole sums, or similar) are table output areas. Table rows are created as subnodes of these areas. -
Adobe Form called from SAP Portal, not executing interface global init code
Hello!
I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
Thanks a lot!!
Regards,
Diana.Hi,
have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
Cheers -
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 -
Global defination ...in smart forms..
hi all 'smart forms' gurus...
how to declare table fields in global defination wat is to rite under variable name and associated type..Hi,
In 'Global Data' tab, variable name is name of internal tables or work areas or global variables etc...
Ex:
In 'Types' tab declare all user defined structures, data types.
TYPES:
BEGIN OF r_itab,
vbeln TYPE vbrk-vbeln,
vkorg TYPE vbrk-vkorg,
vtweg TYPE vbrk-vtweg,
spart TYPE vbrk-spart,
fkdat TYPE vbrk-fkdat,
END OF r_itab.
In 'Global Data' tab, declare internal tables, work areas, global variables.
Varibale name Type assignment Associated type
ITAB TYPE TABLE OF R_ITAB <----- Internal table
WA TYPE R_ITAB <----- Work area
VAR TYPE I <----- Variable -
Form Interface "YT_VBRK" is not a pre-defined type or a type from a ty
hi.
i am getting an error :Form Interface "YT_VBRK" is not a pre-defined type or a type from a type group.
i declared in types
TYPES : Yt_VBRK TYPE VBRK,
Yt_VBRP type VBRP.
can any one tell me the solution
and pls tell me how to create a table typr.pls......Please go through the help.sap online and get your basics right to create a table type or you can search in SDN about this.
Search before posting a question. -
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 -
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.. -
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 -
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
GirdhariHi 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 -
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 0CPQUABU and 0QUANT_B on Inventory
Hi Gurus,
what is the Diff Btwn 0CPQUABU and 0QUANT_B fields on Inventory Cubes.
I see 0CPQUABU assigned to 0RECTOTSTCK on the update rules of 2LIS_03_BX .
Any explaination on how the key figures , I mean stocks are calculated will be useful.
Sree
Message was edited by:
SreeRama
Message was edited by:
SreeRamaVikash,
In case of ATP you are including the order line quantity that is being entered into consideration for calculating ATP (on the fly) where as the item supply demand will consider only scheduled order lines.
Also ATP check does the check for all the lines if the item has configuration (I believe). THis is not the case in the item supply demand. It is just doing the check only for that item.
Also ATP can be global. If you want to check the availablity of the item across your supply and demand network, you can do that (Global Order Promising). Supply Demand is purely inventory function. ATP is planning function.
These are few differences. There can be or are much more.
Take a look at the ASO_ATP_INT to get an idea how to do this. This is used in quote and iStore where customers can check themselves when the product is available using the date.
I suggest you use ATP functionality and not Supply demand logic.
Thanks
Nagamohan -
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 -
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. -
PDF Form interfaces for invoice
Hi experts,
I`m implementing company forms (e.g. invoices) in PDF Forms. But I have found, that there are 2 form interfaces predefined for invoices
IS_U_BILL_IF
and
IS_U_BILL_PDF2_IF
Why there are 2 interfaces for invoice? I cannot find any references of use cases, when to use first or second one.
Thank you
VladoAs noted there has to be a special folder level script installed on each user's system. This script can be written to access individual properties of the identity object or only a specific property. One can also create a function to access the identity object or even create new properties.
Maybe you are looking for
-
Randomly "disconnection" from the internet
Hello. I am having an annoying problem about a month now regarding the internet, browsing especially. I use safari and firefox, and sometimes they can't open pages like they don't have access to the web. The same problem has the mail application. The
-
Limiting amount of lines dynamic text field
Dear Flash Forum I'm retrieving text content from an xml file and I need to limit the amount of lines. Basically if the content needs 10 lines to be displayed only the first 5 should show up. No scrolling. Can this be done? Any leads or ideas appreci
-
iPad Air iOS 8.1 Stock Photo App. 14000 Photos. Overlapping date ranges in Moments. What is the criteria used for deciding after import where photos are included in Moments. I was expecting each day to have its own exclusive slot for example, not
-
Missing pictures/jpeg files
All my pictures (saved in different folders) were deleted. Why does it happen? How do I recover them?
-
Hosting a blog on BC, connected to an outside website?
I am designing a website in muse that that I am hosting through ixwebhosting using their ftp service. I am wanting to add a blog but the only option through muse is to use BC. Am i able to build a blog on BC that is connected directly to (both in des