Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to declare submit and return statement in program

0 Kudos

Hi guru's

Actually 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).

So what i done is i have maintain the all tables in t code strav(cust tcode) by giving the variables (zvar_ follwed by the tables) name.

Then i am fetching the data from tvarc 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 suggest on this same .Instead of call transaction can i use submit and return statement how to declare

prg for the zse16 (cust T-code)SAPLZSETB

<removed by moderator>

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

Edited by: Thomas Zloch on Jan 12, 2011 3:15 PM - *priority reduced

3 REPLIES 3

Former Member
0 Kudos

Hi Sunny,

Since you are calling a Z tcode, you can change the coding of the back button in the screen .

Regards,

Jovito.

0 Kudos

Hello Javito,

Thanks for the reply,

I tried with the changing the back button option but this t-code same as the se16 transaction i am unable to change Pf-status of

back button so i am trying with the submit and return statement .Can help out from same.

Former Member
0 Kudos

Hi,

Based on the table name selected in the parameter, call function module 'RS_TABLE_LIST_CREATE' within your program instead of call transaction.

You will see same SE16 screen and when you come back it would be back to the selection screen of your program.

Thanks and Regards,

Kranthi