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: 

SUBMIT PROGRAM with Selection Screen For a SLIN Tcode

former_member476503
Participant
0 Kudos

Hi All,

I am looking for SUBMIT PROGRAM with Selection Screen For a SLIN T-code.

My code is as below:

DATA: itab type table of rsparams,
wa_itab like line of itab.

clear wa_itab.
wa_itab-selname = 'RSLIN-PROGAM'.
wa_itab-kind = 'S'.
wa_itab-sign = 'I'.
wa_itab-option = 'EQ'.
wa_itab-low = 'ZTEST_ACC1'.
APPEND wa_itab to itab.

clear wa_itab.
wa_itab-selname = 'RSLIN-X_CAL'.
wa_itab-kind = 'S'.
wa_itab-sign = 'I'.
wa_itab-option = 'EQ'.
*wa_itab-low = sy-datum.
APPEND wa_itab to itab.

SUBMIT saplsin VIA SELECTION-SCREEN.

Suggestion please.

Thanks.

Sanket Sagar

1 ACCEPTED SOLUTION

former_member208149
Participant

Hi Sanket,

You can use FM EXTENDED_PROGRAM_CHECK instead of SUBMIT REPORT. It will provide you the same results.

For more details, please go through this thread:

https://archive.sap.com/discussions/thread/1165164

Regards.

9 REPLIES 9

former_member208149
Participant

Hi Sanket,

You can use FM EXTENDED_PROGRAM_CHECK instead of SUBMIT REPORT. It will provide you the same results.

For more details, please go through this thread:

https://archive.sap.com/discussions/thread/1165164

Regards.

0 Kudos

yes ..but I want to fetch the output slin t code in internal table..so can you guide me how to fetch ??

The FM return those data in exported parameters RESULT and RESULT_STAT.

0 Kudos

I am looking for output in internal table like attached image..

error-slin.png

Use the function module and then write ABAP to convert RESULT and RESULT_STAT internal tables into your desired internal table types.

Or put a breakpoint on the function module and see how SAP converts these tables to the output.

The answer has been given. Thread closed.

Ask your Abaper to loop at RESULT_STAT-SET, there are already total sum fields at structure level.

Hint: Convert TID into text with method cl_slin_test_info=>desc_get_descrition (just move the key to a char4 field)

0 Kudos

Is this the right code?

LOOP AT lt_resultstat-set INTO wa_resultstat-set.
CALL METHOD cl_slin_test_info=>desc_get_description(
EXPORTING
code_nr = ld_id
RECEIVING
ret = ld_result ).
ENDLOOP.

horst_keller
Product and Topic Expert
Product and Topic Expert

Programs starting with SAPL are apparently function pools that cannot be started with SUBMIT. Learn about program types please.

former_member476503
Participant
0 Kudos

ok ...Thank you ..