TABLE_GET_KEY_TO_SET_CUR_ROW
Hi,
in table contorl,I want to use POSITION push button to get the right line to the top line
i want to use TABLE_GET_KEY_TO_SET_CUR_ROW to get current line,
CALL FUNCTION 'TABLE_GET_KEY_TO_SET_CUR_ROW'
EXPORTING
table = gt_tc
F4_FORMNAME = ' '
F4_PROGRAMNAME = ' '
F1_FORMNAME = ' '
F1_PROGRAMNAME = ' '
IMPORTING
TABLE_KEY =
TABLES
SELLIST =
EXCLUDE_FIELDS =
CHANGING
TABLE_KEY_NEW = ' '
EXCEPTIONS
CANCELLED_BY_USER = 1
TABLE_NOT_FOUND = 2
OTHERS = 3
I don't no how to use this fm,because i want to input 3 fields of the table line to choose the right line of table contorl, which parameter should i importing and changing and exporting,
Hi
Just take a look at the include program L0Q13F10 which uses the function module 'TABLE_GET_KEY_TO_SET_CUR_ROW'.
Shakir
Similar Messages
-
Position button at the end of ALV grid
Hi,
I have a requirement to place position button (like in OB52 or any table/view maintenance ) to search and position the record on the top of list. I have placed the position pushbutton with function code and have called TABLE_GET_KEY_TO_SET_CUR_ROW for the input . My alv grid doesn't show the toolbar till the records cross one page. can you please suggest 1- how to make the scrollbar visible always ? 2- How to make the position button work as in tables for ALV grid?
Regards,
GarimaI have created the pushbutton in the same screen as container and assigned a function code. I have put this logic in user-command for this button and refreshed display. But it doesn't work, moreover the scrollbar is not visible if the records are less than one page.
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN '&BACK&'.
LEAVE TO SCREEN 0.
WHEN '&EXIT&'.
LEAVE PROGRAM.
WHEN '&POSI&'.
DATA: LV_EBELN(15) TYPE C,
IT_EXCL TYPE VIMEXCLFLD OCCURS 0,
WA_EXCL TYPE VIMEXCLFLD,
LV_PO TYPE EKKO-EBELN.
DATA: LT_CELL1 TYPE TABLE OF LVC_S_ROID,
LS_ROW_ID TYPE LVC_S_ROID,
LS_COL_ID TYPE LVC_S_COL.
DATA: LWA_CELL1 LIKE LINE OF LT_CELL1.
WA_EXCL-FIELDNAME = 'MANDT'.
APPEND WA_EXCL TO IT_EXCL.
CALL FUNCTION 'TABLE_GET_KEY_TO_SET_CUR_ROW'
EXPORTING
TABLE = 'EKKO'
IMPORTING
TABLE_KEY = LV_EBELN
TABLES
EXCLUDE_FIELDS = IT_EXCL
EXCEPTIONS
CANCELLED_BY_USER = 1
TABLE_NOT_FOUND = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
SHIFT LV_EBELN LEFT DELETING LEADING SPACE.
MOVE LV_EBELN+0(10) TO LV_PO.
READ TABLE GT_FINAL INTO WA_FINAL WITH KEY EBELN = LV_PO.
CALL METHOD R_GRID->GET_SCROLL_INFO_VIA_ID
iMPORTING
ES_ROW_NO = LS_ROW_ID
ES_COL_INFO = LS_COL_ID.
LS_ROW_ID-ROW_ID = sy-tabix.
LS_COL_ID-FIELDNAME = 'EKGRP'.
data: ls_row type LVC_S_ROW,
ls_col type LVC_S_COL.
ls_row-index = 2.
CALL METHOD r_grid->set_scroll_info_via_id
EXPORTING
IS_ROW_INFO = ls_row
is_col_info = ls_col.
ENDIF.
**Row and column of the alv are refreshed after changing values
STABLE-ROW = 'X'.
STABLE-COL = 'X'.
*REfreshed ALV display with the changed values
*This ALV is non editable and contains new values
CALL METHOD R_GRID->REFRESH_TABLE_DISPLAY
EXPORTING
IS_STABLE = STABLE
EXCEPTIONS
FINISHED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please help!!
Maybe you are looking for
-
TimeOut Exceeded in SMQ2- queue Block
Hi all, I am having an issue with my production PI BOX. Not sure if there is any solution for this. I have some interfaces in PI which expects huge payload data.Sometime the messages are getting failed in SMQ2 with error message " Time Limit Exce
-
5600XT - 2nd Monitor flickers in Dual View
Problem Description: I am running on dual monitor mode using two Samsung Syncmaster 171s monitors. After 20 minutes of the system being up and running the second monitor has started switching on and off every 10 seconds or so, the on and off becomes
-
WCS not synchronising with WLC automatically
HI Experts . I have 5508 WLC with 7.0.98.0 software version and WCS with 7.0.172.0 version . I have a problem of synchronisation of the configs . Automatic sync is not working .I have scheduled the synchronisation but the same is getting failed . But
-
Calendar - Event Locations as addresses don't link?
I thought addresses in all sorts of places were supposed to link to google maps seamlessly. Why don't the locations of my events exhibit the same functionality? Would be nice to have.
-
After Installing Cam Raw 7.3, I get Error Message
I have installed both Lr 4.3 & Camera Raw 7.3, but still get error message "This version of Lightroom may require the PhotoShop Camera Raw plug in version 7.3 for full compatability.". This happens when I transfer an image from Lr to CS5, by clickin