Exact cell in list and Table Control
Hi,
Is there someone who knows,
how to to get exact cell from lists (START-OF-SELECTION)
or from Table Control.
For example:
In list I wrtie:
number name date
1234 | es | 10/07/07
and now if I click for example on "es" now there should window apear about name "es"
the same with Table Control.
I know that get selected line is not the problem
but how to get column ???
Please it's very important
Best regards,
Greg.
hi,
You can retrieve information either about the current field or the current line.
For field information, use this syntax:
GET CURSOR FIELD <f> [OFFSET <off>]
[LINE <lin>]
[VALUE <val>]
[LENGTH <len>].
This statement transfers the name of the field on which the cursor is positioned during a user action into the variable <f>. If the cursor is on a field, the system sets SY-SUBRC to 0, otherwise to 4.
The system transports the names of global variables, constants, field symbols, or reference parameters of subroutines. For literals, local fields, and VALUE parameters of subroutines, the system sets SY-SUBRC to 0, but transfers SPACE as the name.
The options have the following effects:
OFFSET <off>
The field <off> contains the position of the cursor within the field. If the cursor is on the first column, <off> = 0.
LINE <lin>
The field <lin> contains the number of the list line on which the cursor is positioned (SY-LILLI).
<b>VALUE <val></b>
The field <val> contains the character string output representation of the field on which the cursor is positioned. The representation includes formatting characters.
LENGTH <len>
The field <len> contains the output length of the field on which the cursor is positioned.
<b>you try with this logic.</b>
**define variables for holding field name and field values
DATA: fieldname type n,
fieldval type n.
<b>GET CURSOR FIELD fieldname VALUE fieldval </b>
now the fieldname and fieldval variables hold the values which was selected by user based on cursor position.
the variable declarations based on your selected fields.
regards,
Ashok Reddy
Similar Messages
-
Query on ABAP List Viewer and Table Control?
Hi all,
I was trying to solve the exercises in these areas....but was unable to do as some of the concepts were not clear to me as I'm new to this field.
So Can any one help me out in giving me the Notes or attachments on the ABAP List Viewer(A.L.V.) and Table Control.
My ID: [email protected]
Waiting for a reply...
A New Entrant in ABAP.
Message was edited by:
saikumar bHi saikumar,
I just start to work with Abap too. All links i Know:
http://www.erpgenie.com/abap/controls/alvgrid.htm
http://www.abapfans.hpg.ig.com.br/links.htm
http://abap4.tripod.com/index..html
http://paginas.terra.com.br/educacao/abap/
http://www.sdn.sap.com/
http://www.sap-img.com/
http://www.planetsap.com/Tips_and_Tricks.htm
http://www.abap4.com.br/
http://www.erpgenie.com/sap/abap/index.htm
Good lucky -
Difference between ALV and Table control
Hi folks,
i want to know the major differences between AlV and table controls.
i know that table control is designed in screen painter, but i want to know the major diff between Table control and ALV.
helpful answers will be rewarded.
Regards,
NaveenHi Naveen,
Basically ALV is a way to display the output and Table Control is designed in screen painter through which you can get entries in Table Control, can delete some records etc for further processing and its not use only for Display.
<b>ALV is Application List viewer:-</b>
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
<b>TABLE CONTROL:-</b>
ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.
Rewards if useful.
Regards,
Shilpi -
Dynamic tabstrips and table control in custom infotype
Dear Experts,
I have a requirement to create a custom infotype using tabstrips and table control. The tabstripes should also be dynamically populated. For example we have infty 8(Basic pay) used table control and 24(Qualifications) for tabstripes.
Could you please tell me how to do this. Please do the needful ASAP.
Thanks,
Chaitanya.
Moderator message - Please don't just post your requirements and ask the forum to do your work for you...especially ASAP - Thread locked
Edited by: Rob Burbank on Oct 7, 2009 4:16 PMHi Partha,
Pls check the threads:
Best way to store a table control into an infotype
Re: Custom Infotype with table control - Overview/List Screen
Dilek -
Dropdown list in table control
Hi,
how do i create dropdown list in table control with reference to the database table field names? (dropdown list will be populated with the particular table field names upon selecting the input help value from an input box).
please provide sample codes.
thanks.
will reward marks if useful.ok i have checked that for the past few days but its not what i want.
i am using wizard to do this and i need to populate the database table records (individual field names) and display in the table control dropdown list.
what the demo shows is only how to display a dropdown list with reference to the table names. -
How to add a field and table control to BP transaction.
Hi,
I have a requirement to add a field and table control to the 'Control data' tab of the Transaction BP.
Can some on please help me if having a solution and with any relavant documents.
Thanks in advance.
Raj & Khader.Also explore with EEWB tcode.
Refer this threads
Re: EEWB
Created New fields in Business Activity with EEWB
Cheers
Manohar -
List and details controls of JFileChooser not working
hey pls tell me wheather there is any way of making list and details controls of JFileChooser work in jdk1.3 it perfectly work in jdk1.4 ....
pls help me
thanx
nikHi Kamal
In XI 3.0, this is a known issue for DCP value which is based on SAP OpenSQL driver can't be shown .
It has been resolved in XI3.1 version.
Thanks
Ricky -
What is the difference between Alv Grid and Table Control?Explain in detail..
Table control is a screen table to display table data in a screen. You can add table control to a screen in the Screen Painter. The typical flow-logic to process table control is:
LOOP AT <internal table> CURSOR <scroll-var>
[WITH CONTROL <table-control> ]
[FROM <line1> ] [TO <line2> ].
...<actions>...
ENDLOOP.
ALV Grid is a SAP Technology to display a set of data on the output screen. For example if you have selected some SAP tables and processed these data in a way you want to display, then you can pass the internal table to the ALV Grid and it will be displayed on the result screen as ALV Grid. See example in SE16 result. -
Drop down list in Table Control - Value disappeared after pressing ENTER
Dear Gurus,
I have a problem in one of my development where I used a table control in which one field is a drop down list.
I used VRM_SET_VALUES and VRM_GET_VALUES for populating the values from the programand not use any domain level value table for that field.
My problem is when I select one value from this list , and pressing enter , the value get disappeared. But if I use a domain for this field with value table then everything working properly.
My doubt is am I doing some miss coding or using the VRM_ function modules improperly ?
I am sharing some code with you
in PAI :
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
id = 'ITAB-FIELD3' "This is drop down list element on screen
IMPORTING
values = values[] " even it is not the expor parameter...it will work..
EXCEPTIONS
id_not_found = 1
OTHERS = 2.
IF sy-subrc NE 0.
No sy-subrc check required.
ENDIF.
IN PBO
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'IVBAP-ERNAM'
values = values[].
Can you please help me.
Thanks .HI,
The link contains the list box creation, just check if this might help.
Re: Getting values back from a listbox.
Regards and Best wishes. -
BDC programming and table controls selColumns
Hello,
I have a small question regarding BDC programming. I am already quite familiar with the process in creating one but I have one question regarding table control and its selColumns.
Transactions like pa40 would require its users to select one of the rows in the table controls via SelColumns. My questions is how would you simulate this using BDC.
Thanks people and take care.Hai Chad Cheng
report Z_TAB_CONTRL_01
no standard page heading line-size 255.
data : begin of it_kna1 occurs 0,
kunnr like RF02D-KUNNR,
D0130 like RF02D-D0130,
end of it_kna1.
data : begin of it_kna2 occurs 0,
kunnr like RF02D-KUNNR,
BANKS like KNBK-BANKS,
BANKL like KNBK-BANKL,
BANKN like KNBK-BANKN,
koinh like KNBK-koinh,
end of it_kna2.
data : V_Count(2) type n.
data : V_Val(15).
include bdcrecx1.
start-of-selection.
perform Get_Data1.
perform Get_Data2.
perform open_group.
loop at it_kna1.
V_Count = '04'.
perform bdc_dynpro using 'SAPMF02D' '0106'.
perform bdc_field using 'BDC_CURSOR'
'RF02D-D0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02D-KUNNR'
'10002103'.
perform bdc_field using 'RF02D-D0130'
'X'.
perform bdc_dynpro using 'SAPMF02D' '0130'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMF02D' '0130'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMF02D' '0130'.
loop at it_kna2 where kunnr = it_kna1-kunnr.
if v_count = '10'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPMF02D' '0130'.
v_count = '00'.
endif.
V_Count = V_Count + 1.
concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
perform bdc_field using 'BDC_CURSOR'
'KNBK-KOINH(09)'.
concatenate 'KNBK-BANKS(' V_Count ')' into V_Val.
perform bdc_field using V_Val
it_kna2-BANKS.
concatenate 'KNBK-BANKL(' V_Count ')' into V_Val.
perform bdc_field using V_Val
it_kna2-BANKL.
concatenate 'KNBK-BANKN(' V_Count ')' into V_Val.
perform bdc_field using V_Val
it_kna2-BANKN.
concatenate 'KNBK-KOINH(' V_Count ')' into V_Val.
perform bdc_field using V_Val
it_kna2-KOINH.
endloop.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
perform bdc_transaction using 'FD02'.
clear : it_kna1,it_kna2.
endloop.
perform close_group.
*& Form Get_Data1
text
--> p1 text
<-- p2 text
FORM Get_Data1 .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = 'C:\tab_contl.txt'
FILETYPE = 'ASC'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
DATA_TAB = it_kna1
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " Get_Data1
*& Form Get_Data2
text
--> p1 text
<-- p2 text
FORM Get_Data2 .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = 'C:\tab_cont1.txt'
FILETYPE = 'ASC'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
TABLES
DATA_TAB = it_kna2
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " Get_Data2
Thanks & regards
Sreenivasulu P -
Method for dble-click and table control
I'm a beginner in object. I build, with screen painter, a table control with x rows and x cols. and give the possibilty to use 'double click'.
But how to handle this event by a method and importing the number of the row and col where the action of the event has been.
which class and method can i use. thanks for your help
Moderator message: sorry, these forums are not a replacement for ABAP training, please search for available information and documentation, there is plenty available.
Edited by: Thomas Zloch on Dec 7, 2010 4:21 PMhi,
You can do this by estimating maximum no of records of that internal table used for table control to some number and then assign that number lines field of table control.
try this.
Regds
Sivaparvathi
Please reward points if helpful... -
Computer Lists and Access Control
Hi
I've got OS/X Server 10.4.6 setup to a be an OD master and have several linux boxes authenticating to it using kerberos.
Currently, all OD users can login to all the linux boxes, but I'm trying to restrict access to some boxes to a group of users.
I've tried creating a computer list and putting a linux server in this list, then adding entries to the 'access tab' but this doesn't seem to work.
All users can still login to these 'access controlled' servers, in effect the list is ignored.
Has anyone got this working or can shed some light on what I'm doing wrong ?
Thanks,
Mac OS X (10.4.6)Hi, Tropic
You must to load the class into an jar file
Then you must to sign out the jar file by means of th jarsigner utility provided bye java SDK
Hear a sample script to do it.
javac SomeApplet.java
jar cvf SomeJarFile.jar SomeApplet.class
keytool -genkey -keystore SomeStoreFile -keyalg rsa -dname "CN=May BeYour Name, OU=IT Dept., O=Company Name, L=Your Location, ST=Your State, C=Your Country" -alias YourAlias -validity 365 -keypass YourPassowrd -storepass storePasswd
jarsigner -keystore SomeStoreFile -storepass storePasswd -keypass YourPassowrd -verbose SomeJarFile.jar YourAlias
Regards, -
hi,
Here is the issue:
I have a table controle where i specify for a field a F4 with the event PROCESS ON VALUE-REQUEST.
I can't get the value back from the F4.
here's a piece of my code:
TYPES: BEGIN OF t_dunn_run,
mark(1),
laufd LIKE f150v-laufd,
laufi LIKE f150v-laufi,
END OF t_dunn_run.
DATA: wa_dunn_run TYPE t_dunn_run.
DATA: gt_dunn_run TYPE t_dunn_run OCCURS 0.
*tablecontrol 'TC_DUNN_RUN' itself
CONTROLS: tc_dunn_run TYPE TABLEVIEW USING SCREEN 0100.
start-of-selection.
call screen 0100.
PAI
PROCESS ON VALUE-REQUEST.
FIELD wa_dunn_run-laufd MODULE f4_laufd_0100.
MODULE f4_laufd_0100 INPUT.
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = step_line
EXCEPTIONS
stepl_not_found = 1
OTHERS = 2.
tab_update-fieldname = 'GT_DUNN_RUN-LAUFI'.
tab_update-fieldvalue = <what ever you want>.
tab_update-stepl = step_line.
APPEND tab_update.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = tab_update
EXCEPTIONS
OTHERS = 8.
any Idea??
thank in advance,
joseph fryda
Message was edited by: joseph frydaI've actually never done it that way.
Here is what I've done.
In the flow logic.....
process on value-request.
field imdl-dplno module optin_value_request.
Here the field in the table control is IMDL-DPLNO.
Here is the code for the module.
module optin_value_request input.
data: begin of option_help occurs 0,
custid type zhp_plans-custid,
planid type zhp_plans-planid,
homemod type zhp_plans-homemod,
planno type zhp_options-planno,
optionid type zhp_options-optionid,
optionidx type zhp_options-optionidx,
optdesc1 type zhp_options-optdesc1,
end of option_help.
* Read the line of the table where user has requested F4 help
get cursor field cursorfield line cursorline value cursorvalue.
cursorline = ( cursorline + imdlcon-top_line ) - 1.
read table imdl index cursorline.
* Get the values..
clear option_help. refresh option_help.
select zhp_plans~custid zhp_plans~planid zhp_plans~homemod
zhp_options~planno zhp_options~optionid
zhp_options~optionidx zhp_options~optdesc1
into corresponding fields of table option_help
from zhp_plans
inner join zhp_options
on zhp_plans~planno = zhp_options~planno
where zhp_plans~custid = p_cstid
and zhp_plans~planid = imdl-plnid.
sort option_help ascending by custid planid homemod
planno optionid optionidx optdesc1.
delete adjacent duplicates from option_help comparing all fields.
<b> call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'OPTIONID'
dynprofield = 'IMDL-DPLNO'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = option_help.</b>
endmodule.
You can most likely ignore the parts where it is getting the data. Pay attention to the stuff which is bolded.
Regards,
Rich Heilman -
Modpool Tabstrip control and Table control
Hi All,
pls mail me step by step procedure fo rmodule pool programming using Table control and Tabsrip.
Thanks in Advance.hi,
check the below links
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-img.com/
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
check these links
http://www.allsaplinks.com/dialog_programming.html
http://sappoint.com/abap.html
http://www.sap-img.com/abap.htm
http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com.
http://www.sap-img.com/abap/
http://sap.mis.cmich.edu/sap-abap/abap09/
http://www.sapbrain.com/TUTORIALS/default.html
steploops
http://help.sap.com/saphelp_nw04/helpdata/en/d1/801c13454211d189710000e8322d00/content.htm
http://sap.niraj.tripod.com/id28.html
If you need further info on this shoot me a test mail to [email protected] i will farward the material to you
If you find it useful mark the points
Regards,
Naveen -
Dynamically change the cell editor in the table control
Hi..
I have 3 columns in a table . of which in one column we need to change the cell editor dynamically at runtime.
i.e for example i have columns as carrid, connid and fldate.
For the first 2 rows the cell editor for the carrid clomn shud be a dropdown and from there on in the next rows for the same carrid column it shud be a input field.
Can experts plz help me how to achieve this as this is very high priority issue....
Regards,
Madhu...This is actaully fairly simple to do. You will need to add a cellVariant to your table column. You can then dataBind a context attribute to the selectedCellVariant property of the column to control which cellVariant will be used. This allows you to control row-by-row which cell editor you want to output.
http://help.sap.com/saphelp_nw70/helpdata/EN/bd/5d9041d3c72e7be10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/56/5e9041d3c72e7be10000000a1550b0/frameset.htm
Also here is an example that I did the other day that uses Cell Variants within ALV. This process is actually a little more complicated because you have to go through the ALV APIs. To do this in a normal table is actually easier because you can create the cellVariant in the layout designer.
Re: Freely-programmed value help for a single ALV cell
Maybe you are looking for
-
How to install archlinux2008.6 from the hard drive?
How to install archlinux2008_6 by archlinux2008_6_i686.iso in hard drive? i get the booting files(archlive.img,vmlinuz26) in the archlinux2008_6_i686.iso and put them in c:\ in the grub command mode the use of these code: root (hd0,0) kernel (hd0,
-
Multiple Macs, one iPhone 4
I have an iMac and a MacBook Pro. I want to sync iBook books between my iPhone 4 from my MacBook Pro's iTunes library. I want to sync my music and video content from my iMac's iTunes Library. All of my software and OS on my two Macs are current. The
-
Hi All, My outbound queues from ECC to CRM system are in Stop state, I checked under qRFC monitor (SMQS) , queue is registered. When i go to SMQ1 and click on unlock the queues works but when the next entry gets stuck again. Any ideas to fix this. Th
-
HR Benefit-Claim Attachments from portal & linkage to DMS content server
Hello DMS Experts, Our client is using standard HR functionality for telephone bill claim and attaching scanned bill copy through enterprise portal during creation of claim. Due to higher frequency of file upload there is issue that PCL4 cluster size
-
Mac color separations dialog problem
When I have more than 8 colors to separate in the print/output dialog on the mac I cannot easily apply the frequency and screen angles for those I have to scroll to access, the color dialog just jumps around. I have to fight to get to the parameters