Changing data in the table control during run time of transaction F-28
Dear Experts,
in transaction F-28 of second screen of second column (Field Name: Assignment) currently the data is getting from BSEG table and populating this column of table control, now I have a requirement that the data should be get from the other ZTABLE and populate this column during run time instead of the data from BSEG table, please let me know your suggestions, if you guys feel it will be done using User Exit then please let me know the suitable exit for this.
Best Regards
Venkat
Hi Venkat,
Use the appropriate sort key in the GL to fill up the assignment field automatically.
U can create ur new sort key through OB16
Regards,
Kiran
Similar Messages
-
Add change Icon in the Table Control tool bar.
Hi Abapers,
I need to add "change" icon in the table control. I added it but when I click on it is not working.
My requirement is that when I run my custom report, all the fields should be shown is in display mode. Then when I click on the "change" icon, all fields should be enabled for change.
I have already referred to the standard progs BCALV_* but it does not have the "change" icon.
plz give me any reference prg or sample code.
Thanks
Nani.Hi Nani,
Track the function code of change icon in user command. if it is clicked then put a flag eq X.
check that flag in PBO, if it is eq X then screen-input = 1 or vice versa.
try this code:
in PBO:
LOOP AT SCREEN
IF WS_EDIT = 'X'
SCREEN-INPUT = 1
ELSE
SCREEN-INPUT = 0
ENDIF
MODIFY SCREEN
ENDLOOP
Hope it will work fine
Regards
Krishnendu -
How to validate the dates in the table control ?
How to validate the dates in the table control ?
Can I write like this ?
LOOP AT it_tab .
CHAIN.
FIELD : it_tab-strtdat,it_tab-enddat.
module date_validation.
ENDCHAIN.
ENDLOOP.
Module Date_validation.
ranges : vdat type sy-datum.
vdat-sign = 'I'.
VDAT-LOW = it_tab-STRTDAT.
VDAT-HIGH = it_tab-ENDDAT.
VDAT-OPTION = 'BT'.
APPEND VDAT.
WHAT CODE I have to write here to validate ?
and If I write like this How can we know which is the current row being add ?
It loops total internal table ..?
Bye,
Muttu.Hi,
I think there is no need to put chain endchain.
To do validation you have to write module in PAI which does required validations.
Thanks
DARSHAN PATEL -
Reading selected data in the table control
Hi Friends,
I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
Actually user requirement is he has to update only the selected data from the displayed data in the table control.
Can any one tell me how to read the selected records after displaying in the table control.
Thanx in advance,
LineHi
If your table control has a check box, your internal table should have a field for it. Its value will be X if the checkbox is setted else it'll be SPACE.
So in the PAI u should read only the records where that flag is X:
LOOP AT ITAB WHERE MARK = 'X'.
ENDLOOP.
Max -
Selecting data in the table control
Hi Friends,
I have final data in my table control now the user wants to select only few records from the displayed data, for that I kept a check box for selection, But my question is I am unable to read the selected data.
Actually user requirement is he has to update only the selected data from the displayed data in the table control.
Can any one tell me how to read the selected records after displaying in the table control.
Thanx in advance,
LineHello Line,
As gopi has suggested do the following..
for the table control properties u have an option called W/SelColumn.
Give in some name (ROW_SEL)to that and also include a field CHK in the internal which is being passed to the table control.
and in the PAI of the table control module wirte like this...
Then in your code..
PROCESS BEFORE OUTPUT.
PBO FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'
MODULE TABCONTROL_CHANGE_TC_ATTR.
MODULE TABCONTROL_CHANGE_COL_ATTR.
LOOP AT lt_final
INTO lw_final
WITH CONTROL tabcontrol
CURSOR tabcontrol-current_line.
MODULE tabcontrol_get_lines.
MODULE TABCONTROL_CHANGE_FIELD_ATTR
ENDLOOP.
MODULE status_0101.
PROCESS AFTER INPUT.
PAI FLOW LOGIC FOR TABLECONTROL 'TABCONTROL'
LOOP AT lt_final.
MODULE read_data.
MODULE tabcontrol_user_command.
ENDLOOP.
MODULE TABCONTROL_CHANGE_TC_ATTR.
MODULE TABCONTROL_CHANGE_COL_ATTR.
MODULE user_command_0101.
MODULE tabcontrol_user_command input.
if lt_final-chek = 'X'.
*put your logic here something like
move corresponding lt_final to gt_final.
*now you have selcted rows data in gt_final.
endif.
endmodule.
Regards -
How to modify and save the data in the table control
how to modify and save the data in the table control
hi priya,
kindly go thru the code below.
PROCESS BEFORE OUTPUT.
MODULE status_9010.
LOOP WITH CONTROL tab_control.
MODULE move_data_to_table.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE user_cancel AT EXIT-COMMAND.
LOOP WITH CONTROL tab_control.
MODULE move_data_from_table.
ENDLOOP.
MODULE move_data_to_table OUTPUT.
This is to move the data from the internal table to *the table control
*zmpets_mode-modecode, zmpets_range-rangeid, *zmpets_servfacto-factor are field names of the table *control columns.
READ TABLE int_factor INDEX tab_control-current_line.
IF sy-subrc = 0.
zmpets_mode-modecode = int_factor-modecode.
zmpets_range-rangeid = int_factor-rangeid.
zmpets_servfacto-factor = int_factor-factor.
ENDIF.
ENDMODULE. " move_data_to_table OUTPUT
**********************************************8888
MODULE move_data_from_table INPUT.
*To move the data from the table control to internal *table 'INT_FACTOR'.
int_factor-chk = line.
int_factor-modecode = zmpets_mode-modecode.
int_factor-rangeid = zmpets_range-rangeid.
int_factor-factor = zmpets_servfacto-factor.
MODIFY int_factor INDEX tab_control-current_line.
IF sy-subrc NE 0.
APPEND int_factor.
CLEAR int_factor.
ENDIF.
ENDMODULE. " move_data_from_table INPUT
if this helps , kindly award points.
for any clarification just mail me.
regards,
Anversha.S
[email protected] -
How to hide the Parameter field during Run time?
Hi,
How to hide the Parameter field during Run time?
I have a parameter field which behaves differently depending on the User logged in.
I am using reports 10G
For ex: I have 3 field created in JSP
CUSTOMER
PROVIDER
FROM DATE
END DATE
If the user = 'SUPER show all the parameter
CUSTOMER
PROVIDER
FROM DATE
END DATE
If the user is 'GATEKEEPER" Just show
PROVIDER
FROM DATE
END DATE
Can I do that?
Please help
Thanks.
KKhi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.
-
Hi,
Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please helpHi Shilpa ,
Please refer to the following link and see if that helps you out.
https://helpx.adobe.com/acrobat/kb/runtime-error-roaming-profile-workflows.html
Are you trying to access the PDF with Acrobat or Adobe Reader?
Regards
Sukrit Dhingra -
Modify data in the table control
hello:
i would like to ask a favor , i am working with a table control (it already has the information i need) all the fields all my table control are present in output form only, but i need when the user press a pushbutton to modify a specific data one of the cell of the table control permit to be change.
my output is:
field1 field2 field3 (only output )
if the user press the button 'CHANGE DATA' it will be present as
field1 field2 fiel3(ready to recibe new data ).
but i don´t know how to do it, if somebody knows how to do it
thanks a lot.this will be your's main program
*& Report ZEMP
REPORT ZEMP.
TABLES: ZEMP." Z TABLE
CONTROLS: TAB_CONTROL TYPE TABLEVIEW USING SCREEN 1000.
DATA: IT LIKE ZEMP OCCURS 0 WITH HEADER LINE.
SELECT * FROM ZEMP INTO CORRESPONDING FIELDS OF TABLE IT.
CALL SCREEN 1000.
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
IF SY-UCOMM = 'BACK'.
LEAVE PROGRAM.
endif.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module MODIFY INPUT
text
MODULE MODIFY INPUT.
MODIFY IT INDEX TAB_CONTROL-CURRENT_LINE.
MODIFY ZEMP FROM IT.
ENDMODULE. " MODIFY INPUT
and this should be your flow logic
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
LOOP AT IT WITH CONTROL TAB_CONTROL.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
LOOP AT IT.
MODULE MODIFY.
ENDLOOP.
Regards
Prakash Varun -
Adding data to a table model at run time
hiii
i want to add data to the table model at runtime.
i have used TableModel.My code looks like this
public class CaptureTableModel extends AbstractTableModel {
private String[] columnNames = { "No", "Source", "Destination", "Protocol",
"Flags" };
private TCPPacket tcpPacket;
private List data;
private static int counter = 0;
private int columnCount = columnNames.length;
public CaptureTableModel(){}
public CaptureTableModel(TCPPacket tcp) {
try{
tcpPacket=tcp;
counter++;
byte[] tcpdata = tcpPacket.getData();
String srcHost = tcpPacket.getSourceAddress();
String dstHost = tcpPacket.getDestinationAddress();
String tcpPacketData = new String(tcpdata, "ISO-8859-1");
if (tcpPacketData == null)
tcpPacketData = "";
int protocol = tcpPacket.getProtocol();
String proto = null;
if (protocol == 6)
proto = "TCP";
long sequenceNumber = tcpPacket.getSequenceNumber();
data = new ArrayList();
String[] info = {
Integer.toString(counter),
srcHost,
dstHost,
proto,
"[ACK " + tcpPacket.isAck() + " ; FIN " + tcpPacket.isFin()
+ " ; PUSH " + tcpPacket.isPsh() + " ; RESET "
+ tcpPacket.isRst() + " ; SYN " + tcpPacket.isSyn()
+ " ; URGENT " + tcpPacket.isUrg() };
data.add(info);
} catch (Exception e) {
e.printStackTrace();//return null;
public int getRowCount() {
return counter;
public int getColumnCount() {
return columnCount;
public String getColumnName(int column) {
return columnNames[column];
public Object getValueAt(int rowIndex, int columnIndex) {
System.out.println("the value in getValueAt"+((Object[])data.get(rowIndex))[columnIndex]);
return ((Object[])data.get(columnIndex))[rowIndex];
//return null;
the method getValueAt is not bieng called..where am i going wrong.
can anyone help me??Use the "code" formatting tags when posting code so the code retains its original formatting.
i want to add data to the table model at runtime.Use the DefaultTableModel it supports dynamic methods like addRow(...), removeRow(). -
Need an option to populate the calculated percentage during run time
Hi All,
I have a requirement in reporting , My report out put contains two key figures based on condition it will populate exceptions (green, yellow, Red) .Now i want calcuate Miss percantage (Marked in Red color in expection)
This Miss percentage to be calculated as per below logic during run time , percentage should populate in out put.
total no of records in report out put / Miss records (which marked red color in out put)*100
Regards
Murali.KHi Murali,
You need to create three CKF.
For calculating Red color count, create a CKF and use the Alert level condition which you have used in Exception.
For Example if your Alert level for red is Value LT 20.
then "Missed Record CKF" will have ( VALUE < 20) boolean calculation. Hope you aware about it.
after that create another "Total record CKF" which calculate the number of records by simply keeping 1.
Then under the third CKF used, SUMGT(Missed Record) / SUMGT(Total Record) * 100.
Regards,
Ashish -
How to delete select data in the table control
this problem makes me headache.
I am new to labview, when a table shows some data. many rows and column. how can delete on row which I selected. the other rows are remain no change.
I really need help.thanks in advance. It is better to attach the program.my labview is 2009
Solved!
Go to Solution.Hi,
You can do it with a table control as well. Check out the attached VI. To delete a row, Run the VI, just right click the row and click "Delete Row". To get back the default values, click reinitialize.
Reards,
NitZ
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved)
Attachments:
Untitled 3.vi 8 KB -
How to chang the number of plots in the plot legend during run time?
Hi, I am using waveform graph. At run time only i will come to know, how many plots should be plotted in the waveform graph. Based on the number of plots i have to change the plot legend. Is there any method to do the same?
Maybe something like this?
The inputs on the left are (from the top)
your array of data you want to plot (or anything that contains the number of inputs you have)
next one is an array of colorschemes (maybe you dont need this)
and the third is an array of booleans that are true if that "channel" should be plotted and false otherwise
/Anders
Message Edited by Tohatsu on 01-08-2008 08:56 AM
Attachments:
graph.JPG 10 KB -
Renaming the text of a cell in tree control during run time
Hello all,
Actually i am stuck up at one point.In the picture of front panel i attached,there is a tree control and two buttons (re,stop).when i press the rename button,i want the selected cell in the tree control to be focussed and when i enter some text through the key board the cell should be renamed.Can anybody suggest me how to do this?
Thanks and regards,
srikrishnaNF
Solved!
Go to Solution.
Attachments:
Example_VI_FP.png 7 KBYes it is possible. look at the attached library developed by Norman J. Kirchner, Jr. Also more info could be found @LAVA
Guru
Regards
Guru (CLA)
Attachments:
Tree_Control_VIs.zip 437 KB -
Setting column to input enabled in table control at run time
Hi friends,
I have one table control in that all columns are
set as display only field or ( output only).
Now, when I press enter key one column should be
enabled as input field. HOW TO DO THAT?
my coading.
loop at ztblctrl-cols into s_cols.
if s_cols-screen-name = 'ZGATEPASS-MENGE'.
s_cols-screen-input = 1.
s_cols-screen-output = 1.
s_cols-screen-invisible = 0.
s_cols-screen-active = 1.
s_cols-screen-required = 1.
move s_screen to s_cols-screen.
modify ztblctrl-cols from s_cols.
endif.
endloop.
Regards,
s.senthil kumarHi Kumar,
Hope your code is in PBO.
See the below 2 links and you will come to know where you are going wrong.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5e35c111d1829f0000e829fbfe/content.htm
http://sap.niraj.tripod.com/id29.html
Reward points for helpful answers.
Regards,
hari
Maybe you are looking for
-
"Attempting to copy to the disk 'Insert drive name' failed. The file name
...was invalid or too long" This keeps showing up after about 320 songs are downloaded into the library from a totel of about 1,700 songs from limewire. It wont let me import all of my songs and I dont know why. Its getting me really agitated. There
-
Need help in Populating data in to new fields using BDT
Hi all, in BDT, i have created a VIEW and attached it to a subscreen, i am able to see the the fields and have problem in populating data into the fields, In the BEFORE OUTPUT FM, i am populating data into the screens, but its not available in the s
-
Automate cable TV recording.....
Hi, Does anyone know of a Macintosh program that will allow me to record Component Video through my BlackMagic Intensity pro like a DVR or VCR? I don't mind doing it the old fashioned way ie.; set the start time and tell it how long.... and then walk
-
I have an iBook G4 800 Mhz processor - 512Mb ram... and i'm trying to run ableton live - but the cpu load is too great - and i keep getting glitches in my audio stream - plus it has a cpu meter that goes up to like 86% - 92% when i'm only running 2 t
-
How to track the employee expense incurred by various employees
My Client want to track the employee expense incurred by various employees. We cannot use the Cost Centers as these are used by us for cost allocations for different business units. In SAP ECC, there is some concept called internal order but how to m