Skip to Content
0
Jan 12, 2011 at 08:26 AM

Creation for the Drill down tables in selection screen

26 Views

Hi guru's

The requirement for client is In selection screen they have to drill down the tables for customized or standard tables .

,so when click the tables in selection screen it has to go for the particular tables as fields selection (same as fields selection of se16 screen).

The all tables should be maintain in tcode stvarv(cust tcode) by giving the varaibles name and variables val (zvar_ follwed by the tables) name.

I'm fetching the data from tvarvc tables and display all the tables in drill down of selection screen and calling call transaction zse16 (cust T-code) which is same as the se16 which we are maintain as zse16.

It is working fine but while coming back it going to zse16 screen of tables selection screen. .

if you want to come to my selection screen i have to press back button from the zse16 screen.

Please sugguest on this same .Instead of call transaction can i use submit and return statement how to declare .

prg name is for the zse16 (cust T-code)*SAPLZSETB*

This is hampering critical client delivarable

tables tvarvc.

DATA ok_code TYPE sy-ucomm.

TYPE-POOLS : VRM.

DATA: param TYPE vrm_id,

values TYPE vrm_values,

value LIKE LINE OF values.

PARAMETERS: CUST_TAB type tvarvc-low as LISTBOX VISIBLE LENGTH 50 USER-COMMAND DUMMY.

INITIALIZATION.

SELECT * from tvarvc where name like 'ZVAR_%' AND TYPE = 'P'.

value-key = TVARVC-NAME+5.

value-text = TVARVC-low.

APPEND value TO values.

endselect.

PARAM = 'CUST_TAB'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = param

values = values.

AT SELECTION-SCREEN." ON VALUE-REQUEST FOR CUST_TAB .

end-of-selection.

SET PARAMETER ID: 'DTB' FIELD CUST_TAB.

CALL TRANSACTION 'ZSE16' and skip first screen.

your responses will be appreciated.

Thanks & Regards

Sandeep S jajur