Smartforms - Structure
Hi,
How to call and access below structure in Smartforms mainly in Global definitions....
whether it is possible to call this structure in smartforms....
DATA : BEGIN OF ITAB OCCURS 0,
VBELN LIKE VBAK-VBELN,
ERNAM LIKE VBAK-ERNAM,
POSNR LIKE VBAP-POSNR,
KUNNR LIKE KNA1-KUNNR,
END OF ITAB.
First of all you need this as a part of Interface or Just you want it inside the Smart form. If you need it inside the smart form you can declare that in Global definitions.
But if you need it in Interface then you create a table type and use it in Interface Table's attribue.
Regards
Vijay
Similar Messages
-
Hi,
I have the job to change all old sapscript orders to be printed with co01/02/03 from DIN A4 to DIN A5 and decided to recreate them in smartforms now. The boxes and stuff were created dynamically and to change that big forms and printprograms in sapcript to DIN A5 is like You have to change everything.... The sapscript masters know, what I mean! ;o)
So now I have made the design of the forms in Smartforms. I wanted to use the data-selection of the old print programs. When You print an order in Co01/02/03, You have to choose a list in combination with the printer destination.
In the old programs, I´m getting a structure called PRINT_CO and PRINT_OPT with the list option I have chosen for the print. This structure has a field called "DESTI", but this field is only the size of 4 characters.
The smartforms structures CONTROL_PARAMETERS and OUTPUT_OPTIONS need the full tddestination content, like the printername. And that field is in size 8 char.
How can I get this destination using the field DESTI and pass it to smartforms. Or is there a better way, to use the chosen options of the lists in CO01/02/03?
I hope, You can understand my problem!
Cheers Arneok, for example:
TA CO02->choose an order->menu order->settings->list control. Here You can check the lists, You want to be printed and there output device.
In the customizing, You can set the sapscript and the print program for every list, so You can print different forms with only one order in CO01/02/03.
The problem is, that You can´t choose a smartform there. So I have to write my own program and call the actual smartform by the choosen list.
In the print program, I´m calling the function CO_PRINT_GET_INFO_LIST to get the list structures PRINT_CO and PRINT_OPTS. In there, I have the field DESTI, which has the type CHAR 4, buit I need to fill the TDDEST field in the smartform structure, and it´s size is CHAR 8. Here I need the destination, like the printername. In DESTI I get only the short name.
Hope You understand, what I mean!
Cheers -
Hi expert,
I want to archive a form ( by smartform ). I know that I need to pass some parameters like that:
CALL FUNCTION wk_fb
EXPORTING
control_parameters = control_parameters
output_options = output_options
user_settings = 'X'
archive_index = archive_index
archive_index_tab = archive_index_tab
archive_parameters = archive_parameters
IMPORTING
job_output_info = job_output_info
job_output_option = wa_ssfcresop
TABLES
it_tab = it_tab
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
Do you have some exemple to fill the following parameters ?
archive_index = archive_index
archive_index_tab = archive_index_tab
archive_parameters = archive_parameters
I don't Know how need to fill it !!
Tks a lot.this document will help you
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0b6bc290-0201-0010-5b87-a0e7c7eb55d0
XML is a general language where u can define ur own tags and own document structure,
XSF is an XML based language.
where the structure is defined according to smartform structure, with tags customised to suit smartform structure.
In case of multiple forms within one spool job, the following XSF
output is appended to the last one. This means that several XML tags can occur within one XSF
stream, which is the only variation from the XML standard.
-Quote from above mentioned document
кu03B1ятu03B9к -
How to use HRRCF00_PRE_DATAOVERVIEW
Hello
I am trying to add some additional data in the candidate's data over view: There is a badi available for this: it doesnt have an extended documentation. It says i can export some data to a function group or an external area and call it back in the form ( smartform? adobe?)
I need to add some summarized data into the data over view. Could someone guide me on steps required for this activity?
I have made an implementation in the badi and can see the importing parameters. What do i need to do in order to place some data into the form?
Thank you... (splitted to be better layouted) ...
The BAdI is only a way to pass data. So it has no direct effect on the data oveview appearance. If you do not need additional runtime specific information of the data overview call you can easier just put some coding for getting the needed information directly into the initialization of the smartform. I usually build a static method of the class to get the data and call this method in the initialization. This is better to maintain and easier to test.
If I build the data overviews for a customer I usually start with a word mock up to discuss layout and content with the customer
(the sap examples are not really satisfying neither in content nor in style). Most customers only change the important smartforms (canadidate, application, decision maker, application wizard, requisition, posting, publication internal and external) while leaving the one for activity or position in standard (rarely someone ever look at them). When having my ~10 mock ups i consolidate them and check which data can be used from the data overview interfaces and which i have to get by customer development. then I build these data retrieval methods. After this I start with creating the customer smartforms by copying the original ones to get the interface and throw out everything else. Then I include the calls for the data retrieval and build the smartform structure. Last I take care for the layout. Now you only have to put your smartforms into the customizing so they are integrated into the application. Testing and some finetuning finishes the job.
Best Regards
Roman -
Internal table in smartforms without use predifined structure
Hi !!!
I have a doubt is possible to use an internal table that was defined in a program but not in a structure in the data dictionary ??
How i need define this in smartform ??
I'm doing the following:
In the global definitions in the tab types i define a type.
types: begin of ty_tab,
data1 like ....
data2 like ...
end of ty_tab.
types: ti_itab type standard table of ty_tab.
In the form interface in the tab import
I define the internal table ti_namex:
parameter name: ti_namex type ti_itab.
When i try to activate the system send a message: Form interface, type ti_itab is unknown
Somebody have any suggestions ??
Thanks for your support
Noemí H.
Edited by: Noemi Reyna Huerta Araujo on Jun 28, 2011 8:25 PMHi Noemi,
As per Srilathau2019s answer, it cannot recognize the parameter, it showu2019s error.
But it is possible to pass the values from your driver program to the smart form through the internal tables defined in the driver program to the smart forms, without needing to create structure to the internal table in the data dictionary.
Follow the procedure given below.
In smart form to get the required data from driver program you need to declare the variable / field in form interface menu as import parameters with their associated types.
Run the smart form take functional module generated by smart form, then in driver program call function by using function module.
In that called function you get field which we declared in smart form.
Then pass final internal table field to fieldu2019s in exporting section of call function
Hope this will help you.
Regards,
Pravinkumar -
How to call structure in Smartforms
Hi,
For single table in Smartforms,we will do...
1)In form Interface,
Parameter_name Type_assignment Associated_type
itab like vbak
2)In Main window ->Table->Data
Loop...
Operand....itab into itab...
3)In Main Area->Row->Text
&itab-vbeln& &itab-ernam&....
It is working well in Abap editor by calling function module...
For Multiple Table fields,How to do in smartforms?
vbak-vbeln,vbap-posnr,kna1-kunnr....
suppose i create one structure....
data : begin of jtab occurs 0,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
kunnr like kna1-kunnr,
end of jtab.
where i will have to call this structure in Smartforms...
In Global Definitions, How to configure this structure...Hi
Define one table type with these fields, and use this table type when declaring Form interface data in smartform.
REF:
You can create that structure in SE11
extras ---> change table category -->> select structure radio button
Reward if useful
Thanks
Krushna -
Text and table structure getting jumbled up in the smartform output
Hi all ,
While viewing the print preview of a smartform output , i am facing a strange issue.
The hardcoded text is getting jumbled up .For eg:"As soon as possible" becomes " as possible . soon as"
The structure of the table is also getting reversed.That is the table is now getting displayed with the last couloum first.The data in the table is also coming in the reverse order.
While executing the smartform directly , the layout is coming in the proper order.But while executing this through a transaction (FINT) , this issue is coming up.The print program is a standard program.
I have tried deleting the window , copying it to a new smartform etc.I have also tried in different systems to check whether if it is an issue with the system.
If anyone has faced a similar issue , please let me know how to solve it.Thanks a lot in advance.
Regards,
RashmiHi
Please check the Printout rather the print Preview. and also check the Structure/table entries also that u printing and also if u r using template, then check the assignment 1 of 1 , etc to the texts.
surya -
How to use Types structure in smartform layout
Hi Experts,
i have a requirement in smartforms. i have a z-structure having some fields. those fields
should be in the smartform output when we run the print program. This is working fine.
But i need to add 2 more fields to the existing z-structure. For this, i created a types
structure in the print program and added the 2 new fields and created internal tables from
that structure.
My question is how to pass this types strucure to the smartform layout. i tried to add the
structure in the tables option of the form interface.
I get the error "Form Interface - Only table types may be used as the reference type for a table parameter".
i also tried to declare the types structure. Please advise.Hi,
you create structure in se11 and select structure radio button.
In the smart form give like as
Form interface---->tables (tab)
parameter name ---I_FINAL(inernal table)
type assignment---LIKE
Associated type---ZXXXXX (structure name)
For declarations of workarea:
Global definitons----->Global data
Variable name----WA_FINAL
Type assignment---TYPE
Associated type---ZXXXXX
you declared as of above
I hope it will helpful you
Regards
Bhupal -
Include structure in smartform
I am trying to define types in smartform Global->Types.
1---types: BEGIN OF tvbdpr1.
INCLUDE STRUCURE vbdpr.----
vbdpr is view
types: END OF tvbdpr1.
it gives error:
"." or "IF FOUND." expected after "STRUCURE".
BUT when i define below there is no error
types: BEGIN OF tkomv1.
INCLUDE STRUCTURE komv.-------it is table
types: END OF tkomv1.
any help thanks
ismailIt was spelling error, thanks
-
Error generating test frame - smartform -flat structure
When i run the smartform,its giving an error message saying "Error generating test frame".When i run through driver program it gives dump saying "zmbook must be flat structure".
Now the problem is in smartform -> form interface -> tables it_test like zmbook
its saying zmbook must be flat structure.
here zmbook is transparent table.but says use flat structure.
i tried it through structure also but says use flat structure.
i tried it through table type of tructure also but says use flat structure.
can anyone help me out
regards sajidHi shaik,
Create the table type for zmbook in se11 and include this table type in the form interface.
Goto se11 : datatype-->yy_book
select table type
In the line type : Zmbook.
Goto smartforms and in the form interface include this yy_book.
Regards,
Sravanthi -
Dynamic Smartform - Matrix structure
Hi All
i have a requirement to create a table dynamically in a matrix format. i am new to smartforms
scenario is something like
1) My internal table structure
*Article Store Quantity*
1a S303 2
2a S304 3
3a S305 2
4a S306 4
5a S307 5
1b S303 2
2b S304 3
3b S305 2
4b S306 4
5b S307 5
i want my smartform to be like
*Article S303 S304 S305 S306 S307*
1a 2 3 2 4 5
1b 2 3 2 4 5
suggest me how can i achieve this.thanks in advance.
Internal table structure may vary time to time
Regards
Chaitanya.AArticle Store Quantity
1a S303 2
2a S304 3
3a S305 2
4a S306 4
5a S307 5
1b S303 2
2b S304 3
3b S305 2
4b S306 4
5b S307 5
for this same internal table you have one more filed like char1.
new internal table is
Article Store Quantity char1
1a S303 2 a
2a S304 3 a
3a S305 2 a
4a S306 4 a
5a S307 5 a
1b S303 2 b
2b S304 3 b
3b S305 2 b
4b S306 4 b
5b S307 5 b
here you can take 2 varibles like
data: var1 type char 250,
var2 type char250,
lv_n(3) type n.
lv_n = 20
loop at newitab into wa_itab.
concatenate ' 10 char space' wa_itab-store into var1+lv_n(20).
concatenate ' 10 char space' wa_itab-Quantity into var2+lv_n(20). .
at end of char1.
append var1 to final interbal table
append var2 to final interbal table
clear lv_n.
lv_n = 20.
endat.
lv_n = lv_n + 20.
endloop. -
Smartforms (User defined structure in a priver program in smartform)
I am declaring my own structure in the driver program.
How can i call this structure into my smartform?
Ex: types: begin of ty_stud,
field1,
field2,
end of ty_stud.
i want to use this structure in my smartform.
is it possiable? If yes, who please explain me.
Thanks,
RajI am invoking a servlet from a java program. Some
data is being sent to the servlet. I want to
manipulate that data in servlet. The data sent from
java program is received in doGet(). Now to
manipulate the data can I write member functions
inside a class within the servlet, create an object
of that class and invoke the mem Funcs ?Have that class outside the servlet. You can also store the object by binding it to a scope and reuse it within a jsp.
ram. -
Smartform - no data incoming to print-program (structures empty)
Hi,
I am creating a Smartform for an RMA, based on a standard Sales Order confirmation form.
When testing the entry in the print program, I have noticed that none of the incoiming global structures are filled with values (VBDKA, VBDPA and etc).
Is this normal or has something not been configured correctly?
The only structure that is filled is NAST, which gives me the objky number. This is triggered from VA02.
Please help.
Thanks,
JohnHello
This is normal scenario. Print program will always have NAST data coming from Document Output Determination. You will have to fetch/collect any other data required for printing in the Driver Program/Print Program.
For ex: function module RV_DOCUMENT_PRINT_VIEW has been used in Print Program RVADOR01 (Print Program for Sales Documents) to collect the required data which is used to print the sales documents.
Thanks
Amol Lohade -
Structure of VT03 - to pass values to smartform
Hi
I had done smartform for Bill of lading which displays the details of all deliveries by
inputing one shipment number in selection screen of driver program .. But now user wants it through output type .Can any one tell me the structure for the tcode
VT03 so that i can pass the shipment number to my smarform rather then driver program .(structure means as we have in VL03N -IS_DLV_DELNOTE)
Regards
salishHi Tammy
Thank you for your reply,
I am not sure whether this video will help for achieving my requirement.
I will make my requirement more clear:
Level 1: Year represented in a Chart.
Level 2: Quarter represented in a Cross tab.
Filter : Year (Passed from 'Year Chart') - can be easily achieved //DS_1.setFilter("YEAR", CHART_1.getSelectedMember("YEAR"));
Level 3: Month represented in another Cross tab.
Filter : Year, Quarter (passed from 'Year Chart' and Quarter Cross tab) - Couldn't achieve this
Please help
Thanks
Vivek -
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
Maybe you are looking for
-
Problem Trying to Subscribe to a Google Calendar in iCal
We work with a freelance contactor who has shared his Google calendar to one of our staff. When he shares it she gets an email invitation, follows the included link, and can see the shared calendar just fine in Google Calendar. She wants to have the
-
I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?
-
"set deadlock_priority" not effective in SQL Server 2012?
I am trying to control which of two sessions is chosen as the deadlock victim in SQL Server 2012. I have set up a test that induces a deadlock by updating two tables in opposite order with a "waitfor" in between the updates. I can consistently repro
-
ESB Soap Service invoking mutiple operations of a WSDL
Hi, we have a requirement where in we have to call mutiple opeartions of a WSDL. We tried developing this using ESB, where in we used many soap services invoking different operations of thw WSDL and a routing service which will decide on which SOAP s
-
Select most recent DATE for an ID.
Hi All, I need to SELECT the records with the most recent DATE for each ID. A DATE range is part of the selection criteria. My data. MY_ID MY_DATE 1684662 26-JAN-09 1424097 27-JAN-09 1684663 27-JAN-09 1684664 27-JAN-09 1684672 28-JAN-09 0689073 28-JA