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
Rani
And 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.
Similar Messages
-
Is there a controlling line item table?
Moderator: Please, respect the rules and search SDN before postingHi
You can also look at COVP and COSP and COEPR
Hope it helps
Regards
Dawn -
How to decrease the width of the border line of a table in smartform in 4.7
hi all,
i want to decrease the width of the border line of a table in smartform in 4.7 version. how can i do it? plz reply.Hi,
When u r going to create a table in forms it will show the all details regarding the tables
like -> color
-> width etc...
From there u can do that .
u can also select the table format as all ready defined formats i.e available in he same screen. -
WSo2 BDC to delete line item in table control
Hi all,
My requirement is to delete material from wso2 table control.
The only way to delete a line item in this table control is to select the line in table control and delete it.
The recording doesnt captures any selection of row.
Any input on how to caputre particular row ??
Please dont send me links to work with table control in bdc
Regards
BhanuDaveL wrote:
I am not aware of any way to make the BDC delete the row, other than by running in 'A'-all mode and letting the user step through each screen and delete the rows that should be deleted.
Well , if the user has to run it in "A" all screen mode why a BDC is required
DaveL wrote:
Deleting them from the table control would obviously have no effect upon the database table though, would it....it would just hide a row from view in this particular table control
Really ? Well it will delete it from database too i dont know what makes you think that it wont be deleted from database.
Anways i have figured out how to capture row selection in BDC .
Thanks for your reply it proves nothing i guess -
Copy of a line item in table control
Save Our Environment. Save Yourself.
Hi All,
Firstly, I have an invoice number on one screen 0050. When I enter one invoice number and ENTER, it'll take me to screen 0100 in which there is a table control having some 10 columns. This will be a display of the line items of that particular invoice number.
Now, in these columns 2 will be editable and all the rest non-editable. Now, based on some condition, when the user tries to save these entries after inputting some values into those editable fields, I need to make a copy of the same line (means with all same values).
Can somebody please tell me whether this is possible? I tried searching in SCN, but was not clear with some solutions.
Thanks a lot.
- I'm not an environmentalist. I'm an Earth warrior.HI,
You can use GET CURSOR LINE LINE_NO this will give you the sy-index so that you can read the itab like
read table itab index line_no. This is one option and second is if you have row selector.
read table itab with key mark = 'X'.
If you want the Row contents befor the PAI triggers
[Check this Thread|Table Control dynamic F4;
Hope this is clear to you.
Regards
Ram -
Dynamically picking the line item of table control
Hi all,
Can u suggest me a way to dynamically picking the no of line item in the table control displayed.
Regards,
Ashutosh KumarHi Ashutosh,
In BDC case, what you can do is use the "position button" instead of finding the number of lines on the table control.
Or else you can use call transaction with 'Options addition'
eg:
Call transaction parameters
clear gs_options.
<b> gs_options-defsize = 'X'. "Default size</b>
gs_options-dismode = 'N'.
gs_options-updmode = 'S'.
call transaction 'VI02' using t_bdcdata
"mode 'N'
"update 'S'
options from gs_options
messages into t_messages.
Please let us know why do you want to know the number of lines on the Table control.If the above answer doesn't satisfy you.
Regards,
Ravi -
How to get First line item in Table control for BDC.
Hi,
I have a requirement while creating the return order from the reference Sales order for BOM.
Once I compare the line items and delete the items not to be returned, I want to read the first line item which in fact is header, to make some changes.
How to read this as cursor points to the last line item.
-B S BHi Bsb,
What is exactly unclear to you? =POPO will give a popup screen in which you can enter the order position number. This number will then be on the top of the table which means you can refer to it in BDC with "(01)".
Regards,
John. -
How to pick the value of the line item in table control
My screen.
I have designed table control by referring internal table without using wizard.
I have placed button inside of that table control.
my requirement is by clicking the button it ll show the value of the line inside of the table control.
I have used "get cursor...".
But the problem is "it ll show only the cursor value of the front screen, if suppose i scroll the value of table control at the time also, it ll show the cursor value of the screen, it ll not show the exact value of the cursor inside of the table control.Wrong Forum Anand......!
-
Setting line item of table control
I need to allow the user to enter a line item number 10, 20, 30 ... and then the cursor is set to that line item in the table control
Any one please.
-
Copy control line item to sub item condtion gets removed
Hi All,
there is an problem happening when I create return order in CRM. when I try to create a sub line item from main item the sub item gets created with diffrent condition type. I check copy control setting all looks fine but while debugging I check that this is happening due to price zone field value in CRM which is coming as zero . When its get compare with ECC which is 008 at run time re-price happen when this condition gets fail.
I need to know how come I will be able to see the setting of prize zone and incase it needs to download from ECC with which object I can perform the load.
find my analysis below.
Price zone is there in CRMD_PRICING_I table
Setting define item category determination when copying defined
item cateogry mapped in Pricing option Assign copy type
Active pricing for item categories all seems correct except pricing indicator
ThanksHi,
Can you check few more things and tell me?
- In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
- In Sales order creation time, do these table have VBELN populated when this exit triggers.
- If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
Try this code. See if it works. Let me know if you still have a problem.
DATA: wa_hvbpa LIKE vbpa,
wa_xvbpa like vbpa.
CLEAR: wa_hvbpa, wa_xvbpa.
* check if HVBAP and VBAP line items are not same
IF vbap-posnr <> hvbap-posnr.
* read the ****-to partner from main-item
READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
parvw = 'WE'.
IF sy-subrc = 0.
* read the line item data for sub-item based on main item
READ TABLE xvbap WITH KEY posnr = vbap-posnr
uepos = hvbap-posnr.
* See if current line is the child of that BoM parent
IF sy-subrc = 0.
MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
MOVE xvbap-posnr TO wa_xvbpa-posnr.
MOVE 'WE' TO wa_xvbpa-parvw.
MODIFY vbpa FROM wa_xvbpa.
ENDIF.
ENDIF.
ENDIF.
Regards,
RS -
Actual Line Items - WBS : Table
Hi,
I want to know the actual line items of a WBS element. Can someone help me with the table where i can get the details.
Thanks in Advance,
Safichk RPSCO table enter with value type 4
-
Line Item of table BSEG and table BSET
Table BSEG tax code (v7,d7) line item is 002,003,004 .But in table BSET
why line item not be 002,003,004. Please see as bellow:
Table : BSET
Document FisicalYear Line Item TaxCode Amount
4300003370 2007 004 V7 21.00
4300003370 2007 005 V7 21.00
4300003370 2007 006 D7 45.50
Table : BSEG
Document FisicalYear Line Item TaxCode Amount
4300003370 2007 001 1837.50
4300003370 2007 002 V7 21.00
4300003370 2007 003 V7 21.00
4300003370 2007 004 D7 45.50
4300003370 2007 005 1750.00
4300003370 2007 006 0.00Any one please.
-
How to decrease line width in table in smartforms
hi i want to decrease line widht in tabel in smartforms.
how can i do.
thanks.Hi
The width of the Line Type in a table is decided by table width itself. For example 20cm is the width of the table,then you can divide the table width into number of columns you want. If you want only 2 columns then,
next to the line type..one column width would be 10 and the other would be 10...so If you want to decrease the width of a column in the line type..then you would have to adjust that in the other one.
For example, If 10 and 10 cm each is what you have in your line type, then in the first column you can reduce the width to 5 cm and then increase the other column width to 15cm, in that way the total width of the line type will be equal to that of the table width.
Also, it is not necessary that the line type width should be equal to table width. It can be less also.
You can adjust the width at details tab..here you will have the table line type details like this:
Line Type 1. 2.
LTYPE1% 10.00cm 10.00 cm "here you can reduce the table line width.
Hope I am clear.
Regards,
Vishwa. -
Sales Order Line Item Status Table
Hello All
In which table the item status is stored?
I am referring the fields in the status tab of item in sales order.
Eg: There are total 6 fields under status tab of line item in sales order.
I want to see where these fields can be configured and in which table they gets stored.
Please help .
Thanks in advance
SonaliHi
In VVBUP the fields the fields UVP01...UVP05 and VBUP the fields UVP01...UVP05 contain the item staus.
Thank you,
Sekhar. -
Line height of table in smartforms
Hi,
I have created a table in smartform. I want to set row height in the table as it is available in template. Is there any option available to set height for the table row???
Thanks in advance.
-SAIn table node it is not possible to define the height of a table line. Please find the bold paragraphs in the following text(SAP library)...
Table tab properties minimum height is set the total table height.
The line height depends on the font height used in Paragraph format for your text element.
Line Types for Tables
The height of a table depends of the amount of data to be displayed or printed in a table. Therefore, you cannot use the line types in the Table Painter alone to describe the table layout, as you do it with line types for templates:
With templates the view in the Table Painter directly maps the output on the form. This is possible because the structure of a template does not change at runtime.
With tables the view in the Table Painter is an overview of all existing line types. However, it does not indicate which line types are used when for table output.
Dynamic Cell Height
The height of a table depends on the number of table lines and on the height of all table lines included in the output. The height of each table line depends on the highest cell, which again depends on the contents to be displayed in this cell. When filling table cells with contents, nothing is truncated, instead, the cell height is increased.
In the Table Painter, the height of the line types is displayed as a constant because it has no meaning for the output.
Unlike with line types for tables, for templates you specify a fixed line height for the line type. Any output that does not fit into a cell is truncated.
Maybe you are looking for
-
HT1586 Is it possible to connect my Apple TV to a TV withouth an HDMI port
I have just bought an Apple TV but my TV does not have a HDMI port - can i use it on this TV and if so what connectors do i need?
-
Hi all...& Happy New Year In fact my goal is to add a real counter at the end of the file name. I work with SAP Netweaver 7.0 SP 16. I Know that PI offers this possibility, but the native counter always start again as soon as SAP PI starts again. Do
-
Performance Issue in Document Management of SAP Solution Manager
Hi We have 10k+ documents in our current project and searching any specific document takes time of around 1-2 min. Searching document via SOLAR_EVAL or Menu-->Find Document of Solarxx is giving same output in terms of response time, later being sligh
-
How to delete Y! conversations folder
Hi Y! conversations folder has just appeared on my mailbox , how I am not sure, but would like to delete. Have tried many ways and failed.
-
Price for FCP upgrade to new version soon after purchase.
There will be a new version of FCP later this year. I'll wait to buy my first FCP, if the upgrade won't be free in a few months. Does anyone know the pricing policy for full upgrades within a short time after purchase? Thx.