Smartforms line item
Hi,
Consider me newbie..Am trying to explore the smartforms.. i was able to capture all the header information but i am stuck on how to print/ loop the multiple line item from table ekpo. How to achieve this ...appreciate step by step guideline...thank you
ekpo-ebelp,ekpo-txz01,ekpo-menge,ekpo-meins ekkn-sakto
She
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
&wa_ekpo-ebelp&
&wa_ekpo-txz01&
&wa_ekpo-menge&
&wa_ekpo-meins&
&wa_ekpo-sakto&
and so on
In the Table,
Loop IT_EKPO into WA_EKPO.
I hope this helps you.
Regards,
Vanessa
Similar Messages
-
Regarding sap smartforms line items
hi,
this is regarding line items in sap smartforms
when i am executing single line item i am getting out put
when i am executing with 2 line items i am getting error like bellow
You tried to switch to the next table column, but no other column exists. The current column is 9. The line type IT_GEN contains only 9 columns.
plz explain clearlyHi,
if you are using template and the line type is for 1 to 2 lines in the template... make sure that column position you mention is equal to the number of cells in the line type... if the data is displayed in the second row the row position should start from 2 and and column position should lie between 1 and 9.
Just a suggestion ... its better to go with table node instead of going with template...
regards
padma -
Smartform line item -group total
Hai All,
I need logic for the following requirement in smartform,
I should print the subtotal of each group of line items that i have calculated in my report.\
for example Group-A has 1,2,3 line items.now i should print t total at the end of this particular group item in SMF.
similarly Group-B has 1,2,3,4 line items.now i should print t total at the end of this particular group item in SMF .Hi,
If you have the Driver program, then do the logic in your driver program and finally print those details in the smartform.
sort itab by group.
Loop at itab assigning <fs_tab>.
v_total = v_total + <fs_tab>-field.
at end of Group.
<fs_tab>-newfield = v_total.
clear v_total.
endat.
endloop.
Now use this new field in your smartform to print the totals.
Regards,
Venkatesh -
Hai All,
I need a help on SMF development,i have to print each line item of the SMF table in a each individual page, ie., 10 pages of SMF for displaying 10 rows of line item from the table. how do i achieve it?Hi Raghav,
Use can use Event on Sort End option of Table .
In there you need to give on which field you what the event to be triggered and what to do when that event triggers.
Field you can give it as serial number or storage type or etc..
Under the event check(tick) 'Go to New Page' and give the page name.
Regards,
Dep -
How to draw horizontal line in smartform after end of the all line items
Hi Friends,
I am working on the smartform. I have created TABLE node in Main window.
i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
Could you please help me how to resolve this issue.
FYI: I tried with the below two options. But no use.
1. desinged footer area in the table node of the main window.
2. tried with uline and system symbols.
please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
this is very urgent.
Thanks in advance
Regards
RaghuHello Valter Oliveira,
Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
Could you please tell me how to insert blank line text.
1 - in your table, create a line type with only one column, with the same width of the table
2 - in table painter, create a line under the line type
3 - insert a blank line text in the footer section with the line type you have created. -
Reg: Printing multiple lines of line item in a smartform?
Hi Experts,
I have a query regarding printing multliple line items in a smartform. In this form i dont have control on the font size because the client is using some generic type format to print the data in EPSON LQ 590.
Here this generic type drivers, it has his own default font.
If i print using the normal EPSON LQ 590 drivers, alignment is perfectly fine. But in generic case its totally different.
My query is in my item row there are 7 columns. If one of the column exceeds the space which i have assigned for that particular cell, it should go to next line automatically. How should i do this?
Then there should be a line space between 2 rows of data. How should i do this?
Please help me on this.
Another query is date is getting displayed as 19.07.2009, due to the space problem in that particular cell i need to display as 19.07.09. Please tell me how should i do this also?
Waiting for the reply.
Thanks and Regards,
Abdur RafiqueUse smartstyles for the same to mke sure it goes into next line. Also you can set space between 2 lrows to one line.
For the date issue..use the following piece of code...
DATA: w_date TYPE sy-datum,
w_char TYPE char8.
CONCATENATE w_date+6(2) w_date+4(2) w_date+2(2) INTO w_char SEPERATE BY '.'. -
Smartforms: no page break between last line item and footer in table?
Hello All,
my smartform has FIRST and NEXT pages. I would like to avoid a page break between last item line of a table in MAIN window and the footer of the same table.
Here is how it looks currently.
Output of FIRST page, MAIN window, table ITEMS:
1.line item
2.line item
3.line item
4.line item
page break
output of NEXT page, MAIN window, table ITEMS:
1.footer line
2.footer line
I would like that if a footer does not fit on FIRST page, it would be displayed on NEXT page with last item line.
It should be like this:
output of FIRST page, MAIN window, table ITEMS
1.line item
2.line item
3.line item
page break
output of NEXT page, MAIN window, table ITEMS
4.line item
1.footer line
2.footer line
Any ideas?
Thanks and best regards,
MindaugasDo you mean line item text or your want to print footer text?
If your trying yo display some footer text, then you either place a footer window or you can create a table inside your main window and place text under the footer of the table, then it will display the text without any page break.
If it is item tem.
Then you need to build additional logic. As we cannot guess, the total number of item text upfront.
Example: if page1 can hold 15 line items, check whether your header and item can fit in page one else call a new page by placing a condition FLAG = "X".
I hope it will help you to solve your problem.
Regards,
SaiRam -
Displaying line item details in smartform
Hi,
I need to display tax details of each line item in a smartform in the given format. Tax details should get displayed only if it present. Please tell me how to do this.
for ex:
item description qty price
10 ytfytfyf 20 30
VAT:2%
Service Tax: 3%
20 rwedw 30 10
VAT:3%
service tax:4%
Thanks.hi,
Under the loop node after displaying
item description qty price
10 ytfytfyf 20 30
create another loop node of table tax information under the main loop with condition that is having same field in common... then create text elements to display the following data
VAT:2%
Service Tax: 3%
regards
padma -
Control Line Items of table in Smartforms
Hi,
Please help me out for following problem which I am facing in smartforms.
Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal tables from my driver program, One internal table is for header details and other internal table for Line item details.
I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one page and if there are more than 5 line items , it should print next line items on next page. when new page will start it should print header details and footer details also,
In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
In short the Flow of Smartforms is given below.
Loop (For Header details)
Template
Template
Template
Table (For Printing Line Item Details)
(row 1
row 2
program line (Whre I am counting Number of Line items
Command (Go to next page is activated )
Template ( For Printing the footer details
Page%2
Template
Template
Template
Looking out for your valuable help .
Thanks and Regards
RaniAnd one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
as i have done here.
* Page Break after 21 Records means
count_rec = 1.
loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
count_loop = sy-tabix.
if count_rec = 21.
wa_it2_all_outlet_sale-zyear = '9998'.
modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
clear: count_rec.
endif.
add: 1 to count_rec.
endloop.
describe table it2_all_outlet_sale lines count_rec.
" This part of code for not page triggering after last 21 records
read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
if sy-subrc = 0.
count_loop = sy-tabix.
if wa_it2_all_outlet_sale-zyear = '9998'.
wa_it2_all_outlet_sale-zyear = '9999'.
modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
endif.
endif. -
Display line items in Cells of a table- Smartform
Hello All,
Can any one help me achieving the below requirement.
I have a requirement of printing invoice with a smartform. I am displaying line items from a TABLE node by looping VBRP's internal table. There are 12 cells and the 5 th cell contains a number of Dicount rates.
I am displaying these discount rates from LOOP node by looping KONV's internal table within that CELL. The 7 th Cell has got 2 values which are required to be: one aligned to the TOP right corner of the cell and the other to the bottom right side of the cell.
Now the issue description is:
CELL-5: Contains unknown number of values for display within the cell to be positioned as MIDDLE justified for an item(POSNR) of the main item table.
CELL-7: Contains two fixed values :KWERT to be at Top right of the CELL-7and NETWR at the bottom right of CELL-7
I have managed to display the sub items in CELL-5 in the middle by giving values to SPACE BEFORE/SPACE AFTER sections of PARAGRAPH FORMAT in SMART STYLE.
Requirement: Irrespective of number of sub items in CELL-5 the 2 values in CELL- 7 to be aligned as one at the top right and the other to the bottom right cell flexibly . Same applies to other items(POSNR) of MAIN VBRP item table.
The ROWS of the MAIN Table to be flexible enough to shrink the space when then are less number of subitems in CELL-5.
Values in Cell-7 should be adjusted according to contents in CELL-5.
Thanks in advance for your valuable suggestions.Hi,
Do one thing while filling the 5th cell , count the number of values(counter) in it for each record and fill new internal table (Itab_cell7) as follws.
DATA : FLAG,
counter1 type n.
DO COUNTER TIMES.
counter1 = counter1 + 1.
CLEAR FLAG.
IF counter = 1.
WA_CELL7-VALUE = KWERT.
APPEND WA_CELL7 TO ITAB_CELL7.
FLAG = 'X'.
ENDIF.
IF counter1 = (counter1 - 1).
WA_CELL7-VALUE = KWERT.
APPEND WA_CELL7 TO ITAB_CELL7.
FLAG = 'X'.
EXIT.
ENDIF.
IF FLAG NE 'X'.
WA_CELL7-VALUE = ''.
APPEND WA_CELL7 TO ITAB_CELL7.
ENDIF.
ENDDO.
Adjust the code if need as per your data.
In cell 7 under loop node print ITAB_CELL7 values in a text. and prepare a paragragh for alingment.
if it does not work for send me the XML file for your smartform.
Regards,
Antim -
Smartform multiple line items in template
Hi friends.
I am passing a internal table to smartfrom.Now there are 2 line items that need to be printed.The data that is passed to the smartform is having correct 2 line items.
Now i have created 3 line types for my template.
In the first one i am passing the Header data.Its wrking fine...
In the third i am totalling the amount.Its wrking fine..
In the second i am looping and this line will contain the mulitple data from the internal table.
Now i am looping at my internal table into a work area.but only one line item is getting printed.The second one is overwriting the first line item.
So how to print all the line items in template.
i have created loop in template.Under that loop i have passed 3 texts and in them i hve passed the work areas.,,But overwriting is been done..
Regards
Plz share at earliest as its very urgent.Hi,
Template is a STATIC structure u cannot loop internal tables.
See link how to loop a internal table in TABLE in SMARTFORMS.
[Display a contents of a table on SmartForm with LOOP |http://www.sap-img.com/smartforms/display-a-contents-of-a-table-on-smartform-with-loop.htm]
Regards,
Ballack.
Reward Points if helpful. -
Continuation of line item data to next page in SmartForm
Hi,
Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
Please try to send ASAP.You can print total by reading page numbers.
Ex: IF <current page> EQ < next page number>
Print total.
ENDIF
Regards,
Sairam -
Printing problem for line items in a smartform
Hi
I am developing a smartform for inbound delivery, i have to print each line item in each page and each line item should be printed according to count of pallets.
lets say if my first line item has 5 pallets, it should print 5 time on smartform. and second line item should print on second page , and this logic should continue for all line items.
can some one help me out ?item No Material No Descripition Putaway Bin SUT Vendor Batch LE QTY COA Base UOM
this how my line item should like, i am able to print only single line item for each item no.
if i have 5 pallets for single line item, i want the same line item to be printed 5 times and this is what i am looking at -
Printing multiple PR with different line items in smartform
Hello all,
I have an requirement to print multiple PR with different line items on different pages.
So,suppose two PR are there,PR1 and PR2 with n no of line items,then i should get each PR on different page with its line items.
Note: One loop processing is already there on line items.
Best Regards,
AnurodhHi,
Fetch all the PRs and its corresponding items into 2 different table. Then Loop at the internal whihc contains the PRs and call the 2nd internal table for its items and call the FM for smartforms and pass them.
LOOP AT it_PR.
fetch all the items into it_PR_item
Call Function Fnam
Passign the it_PR_item
ENDLOOP.
Regards,
Aditya -
Invoice Smartform Printing Multiple Line Items
Hi Floks,
I have a billing Document with multiple items like labor ,material,miscellaneous and more .. i want to print all line items description and data also in smartform . It's possible to print all this requirement in Normal Windows or How is it possible to print .If any Standard form is there .
please Helpme Out.
Regards,
sureshHi suresh,
We are having standard smartform for the Invoice. Use LB_BIL_INVOICE. Copy it to Zform. You can get all the details by default.
regards,
Chandra.
Note: Please reward if helpful.
Maybe you are looking for
-
How to check the "check box" based on an event on form
Hi, I have couple of text items and a check-box on a form. Is there a way I can check the box automatically when the text item values are edited/enterd by user ? I'm using the JS shown below but it doesn't work. I have this JS in page header. +<scrip
-
Sql loader and tablespace doubt
while i was inserting the data into a table using sqlloader and then suddenly the datafile gets full and i got sql*loader 605 error and i alloted a new datafile to the tablespace but the data didnt get inserted after that and the error was same sql*l
-
I am loading Firefox on a new computer, and I can't find the Navigation Bar button for "Reload current page/Stop loading current page". Is there any way to get it back as a choice under Navigation Bar customization or to create a new function? CTRL-R
-
How do you force a section to begin on an odd-numbered page?
I would like to be able to format sections in my Pages document to automatically begin on odd-numbered pages. In this manner, each chapter of my document will begin on a right-hand page regardless of where the previous chapter ended. Yes, this has th
-
Hello, I have recently bought the P9981 through eBay. However, I am facing issues with BBM and emails. After I have received the phone and I updated the BBM and the software I recognized that the BBM wasn't working although I have a BlackBerry plan