Smart form-table header-box
Moved to correct forum by moderator
Hello All,
in my smartform iam displaying the data by looping a table. i ahve put a header inside loop.
and for each new sales order , ia m going explicitly to new page, and when more number of items are there, that can fit in one page, then the smartform implicitly going to new page.
my problem is, when smart form implicitly going to new page, the MAIN WINDOW is not called, so my header is not displayed. iam displaying this header using a template.
the other windows, like date etc...are displayed, even if it goes to new page implicitly.
is there any way i can show the header (in template), in page that called implicitely.
Thanks in advance
Best Regards,
Amarender Reddy B
Edited by: Matt on Dec 17, 2008 9:59 AM
>
Amarender Reddy Busireddy wrote:
> Hello chenna
> thanks for your answer
> can you let em know, how to check that, i am getting that check box in display mode, even if enter the smart form in change mode.
> i tried many ways but i could not make that check box editable
Thats because your table is not in the MAIN window I suppose. Keep your table in the MAIN window of the smartform and then Chenna's solution would work fine.
Vishwa.
Similar Messages
-
Text inversed in the smart form table
Dear all,
I'm new in ABAP and working on a smart form which has a cell in table shows an article description in both Arabic & English
but the Arabic text appears in reversed sequence in the print preview and after printing it shows like this ##### #########.
any idea how to solve this problem
thanksHello,
Please see the following SAP Note about printing Arabic:
587150 - Support of Arabic-script languages
For your Unicode system, then you should be able to print Arabic
characters via device type ARSWIN or device type SWINCF.
The Unicode cascading fonts solution with the device type SWINCF
described in the following SAP Note:
812821 - Cascading Font settings
So you need to configure a Frontend output device that uses device type
ARSWIN and use this to create the print with the Arabic characters.
Regards,
David -
How to print global variable in smart form table cell
hi,
i have smartform and i insert table in it, i also have set global variable, i want to show variable in table cell.
regards
shahid raisHi Shahid Rais
You can use this global variable that has been declared in anywhere as you like.
For displaying global variable in table lines, You can first set the column and row of the table by using the table tab in table node . Then, u can decide either the variable u want to used will be placed on header, main, or footer. After that, right click on one of the table part, and choose create table line. After choosing the correct line type as already been declared in the table painter, just simply right click on the table cell, and then create text node.
You can now enter your variable by using "insert field".
And don't forget the & & signs before and after your variable name.
Regards,
William Prawira -
Urgent : Smart form tables
I have a smartform with main window .Inthis main window i declared one table and it's working fine .i need to add more functionality to smartform i created another table in main window were i declared earlier that place .it's goes to short dump and stops at form functionmodule . it's possible to create similar type of table in main and how is it possle . if another dynamic data collection possble in smartform. help me out .
thanking u,
sureshHi Suresh,
When you create a new table then check for the entries in 'DATA' tab. There you can see that option for internal table is marked. Uncheck it or else give any internal table there.
If you still get any problem then please revert back.
Regards,
Shikha -
Hi all,
i want to print multiple purchase orders in smart form
i have two windows in smart form layout
header window and main window
in header i need to print few header details
and in main window i need to display correspoinding line items
I need every po to be start in new paper or new form
In driver se 38 program
I_header - contains all header info
i_lineitems - contains all item info ofPO'S
iam confused whether i have to call SSF_FUNCTION_MODULE_NAME
between loop of i_header .
like this
loop at i_header.
PERFORM SMARTFORM_FM.
endloop.
if this right how do you want me to pass the info to smart form
in form interface i would declare a table similar to item
and header info right i need only one row right?
FORM SMARTFORM_FM.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZTEST'
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
CALL FUNCTION FM_NAME
ENDFORM.
ThanksHi,
Yes you will have to call smartform function module inside the loop.
some what like this.
loop at header_itab in workarea say HEAD.
refresh and clear itab_export.
loop at items_itab
append these lines to itab_export which you will pass to smartform
end items_itab
now call smrtform function module
and pass head and table itab_export which you populated above
inside item loop.
endloop.
Hope this makes sense. let me know if need more details.
Enjoy SAP.
Pankaj Singh. -
How to print the overflow entries in Smart Form
Hi all ,
I am having a problem regarding smart forms . I have 30 entries in may data base table . Bt while I am going to print these data in smart form table it is showing only 16 entries .How to print rest of the entries in smart form ? Can anybody give me any solution .
Thanks,
Regards,
Swashrayee
Edited by: Matt on Feb 20, 2012 10:15 AMHi,
Are you sure you are entering the data in the main window .
If you are using the secondary window,there is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. Text and data that do not fit into the subwindow are truncated and not displayed.
In a main window you display text and data, which can cover several pages (flow text). As soon
as a main window is completely filled with text and data, the system continues displaying the text
in the main window of the next page. It automatically triggers the page break. -
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.
-
Smart form for different header level data
Hi,
I need to design a smart form,in th samart form i have 2 header records and for each header reocrd again 10 item records.
My form shd print with fst header record and its item records and after ending fst header record details it shd give 2nd header record and its item records.
For example I have Header records A and B
A have 1 2 3 4 5 item records and
B have 7 8 9 10 11 item records
My form shd be
A----
1
2
3
4
5
b----
7
8
9
10
11
Any inputs please
Regards
Rasheed
Edited by: Rasheed salman on Mar 19, 2009 5:33 PMYou can use the SORT to have different header.
You must be having some indicator in your ITEM table to distinguish different set of data.
In the TABLE node, Under the DATA tab, give your field in the Sort Criteria.
Select the check box Event on Sort Begin.
This will create a new node under the HEADER and MAIN area of your table. In this Node, you can put your Header to have it different for different set of records.
Like:
MAIN window
.. TABLE with sort of field1
.... HEADER
.... FIELD1 sort begin "use this for Header
.... MAIN
Regards,
Naimesh Patel -
How to use Read_text in Smart Forms for printing Header Texts
Dear ALL,
I want to print Header Texts in SmartForms, For that
I am using T/Code VL02N .. and choosed Header ..
got this details... from Text Header.
Text Name :0080000441
Language :EN
Text ID :Z002
Text Object :VBBK.
So in Smart forms Under Template i have created a text and Program Code .
Inside that I have used this below code .
CALL FUNCTION 'READ_TEXT'
EXPORTING
*CLIENT= SY-MANDT
ID = 'Z002'
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = 'VBBK'
TABLES
LINES = IT_TLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF SY-SUBRC 0.
CLEAR IT_TLINE.
ENDIF.
Kindly suggest me, Where to declare the variables and loops for using this Read_Text Syntax in Smartforms .
Response to this will be highly appreciated........
Regards ,
Vinoth.hi
good
please check this code
CONSTANTS:
*For text reading like in LCNMMFTX / FORM SET_CONTROL_TEXT
text_id like thead-tdid value 'MATK',
text_obj like thead-tdobject value 'AUFK '.
data tlines like tline occurs 0 with header line.
data tdname like thead-tdname.
data tdheader like thead.
if not it_proj-ltxsp is initial.
refresh tlines.
tdname = sy-mandt.
tdname+3 = it_proj-rsnum.
tdname+13 = it_proj-rspos.
tdname+17 = it_proj-rsart.
call function 'READ_TEXT'
exporting
id = text_id
language = it_proj-ltxsp
name = tdname
object = text_obj
importing
header = tdheader
tables
lines = tlines.
exceptions
not_found = 01.
thanks
mrutyun^ -
Purchase requisition header text in smart forms
Dear Experts,
i want to pick the header text in smart form from purchase requisition ( Transaction code me52n).Can any one tell me from which table i can find out the header text of purchase requsition. please tell me table name objectid for include.
Thanks in advance.
Regards
Maqsood AhmedHi,
Go to the screen where the long text is placed, From menu bar go to the header you will get the Object details.
Use FM READ_TEXT by passing those object details you will get the text.
Have a look in this link to use READ_TEXT
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+general&
Regards,
Satish -
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 can i create Header and items in SMART FORM
Hi Experts,
How can i create Header and items in SMART FORM in the below driver program.
_Header fields_
SELECT BUKRS BUDAT GJAHR CPUDT USNAM BLART BELNR XBLNR BLDAT WAERS KURSF
FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IT_HEAD WHERE BELNR IN S_BELNR AND BUDAT IN S_BUDAT AND GJAHR EQ S_GJAHR AND BUKRS EQ S_BUKRS AND CPUDT IN S_CPUDT AND USNAM IN S_USNAM.
Item firlds
SELECT BUZEI BSCHL SGTXT SHKZG KOSTL PRCTR WERKS WRBTR HKONT KUNNR ZFBDT FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
FOR ALL ENTRIES IN IT_HEAD WHERE BELNR = IT_HEAD-BELNR AND GJAHR = IT_HEAD-GJAHR AND BUKRS = IT_HEAD-BUKRS.
LOOP AT IT_HEAD.
MOVE-CORRESPONDING IT_HEAD TO FINAL.
LOOP AT IT_ITEM
WHERE BELNR = IT_HEAD-BELNR.
MOVE-CORRESPONDING IT_ITEM TO FINAL.
ENDLOOP.
ENDLOOP.
Regards,
Sreedhar.for these internal tables you can pass some Identifier for both tables.
in header file : IT_HEAD
IDENT type char10,
BUKRS type BUKRS,
BUDAT type BUDAT, like
in header file :IT_ITEM
IDENT type char10,
BUZEI type BUZEI,
BSCHL type BSCHL, like in item data
you need to fille the IDENT value like
IT_HEAD:
10 -- DE01-- 10.20.2009
20 -- CH01-- 10.20.2009
IT_ITEM
10 -- 1234-- KSCHL value like all records
10 -- 2345-- KSCHL value like all records
10 -- 6783-- KSCHL value like all records
20 -- 3452-- 1KSCHL value like all records
20 -- 4532-- KSCHL value like all records
20 -- 4535-- KSCHL value like all records
in smartform you need to create 2 tables.
or create
LOOP with IT_HEAD
table with IT_HEAD
table with IT_ITEM
and put the condition for each table in DATA tab where condtion like IDENT = IT_HEAD-IDENT
in item table also INDENT = IT_ITEM-INDENT.. -
Smart form problem with multiple pages & table problem
Hi experts,
I have a problem with my smart form with multiple pages
Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
Regards,
PJI would suggest another approach to this problem.
Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
The table should flow as you would be using the Main window for this one.
As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
Hope this resolves your problem.
Regards,
Ancy
Edited by: abapfreak on Oct 4, 2010 11:52 AM -
How to add internal table fileds in Text module in smart forms
Hi Friends,
How to add internal table fileds in Text module in smart forms?
Thanks & Regards,
Vallamuthu.MHi Vallamuthu ,
how did you solve your problem?
thanks, -
Calling a Smart Form on Click of a Table Row..
Hi All,
I have one requirement.
I have developed one applicaiton, in which from R3, the values are coming in form of a table. Now, on Click of a Table row, it should call a smart form developed in R3 for that selected row attribute. Also the smart form should open in a new window, so that user can take a print of it.
How to add this new view and how to get the selected Row value ?
Please help me.Hi,
To open the new window, I have added blow code:
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("InfoPopup");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.open();
but, getting error message as : IWDWindowInfo cannot be resolved
what should be the import parameter? Also please tell me how to search for the Import parameters for the respected attribute/code?
Please help.
Maybe you are looking for
-
I can only use Flash Player in one tab at a time, only on Firefox.
Recently, when I downloaded the new Flash Player, I can only use flash player in one tab at a time. This is only in firefox. I'll open youtube, and the visual and sound both play perfectly. I open up a new tab, begin using a flash website in that tab
-
HT201269 i downloaded the itunes it says error -3212 any idea what is wrong,
downloaded itunes. said it was done. when i hit the icon, it gives an error message -3212 and says to check internet connections. any iteas
-
Is anyone else getting this message? It crashed just as I tried to save my website in the updated Muse
-
Problem in implementing forgotPassword function
hi, I need to implement forgotPassword function in my jsp. I followed everything from these links : - https://forums.oracle.com/message/10958330 Handling Forgotten Passwords I am not recieving any mails . In the logs there is no logs of EmailServ
-
Gmail in Apple Mail. Messages to self don't go to inbox..
Hi. I have a gmail account that I access using Apple Mail. It is IMAP I frequently CC or Blind CC myself on outgoing messages. Most of the time the messages appear in my inbox when I check mail. Sometimes (1 out of 3) they do not appear in the inbox.