Application Development and Automation 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: 
Read only

SUBMIT PROGRAM with Selection Screen For a SLIN Tcode

former_member476503
Participant
0 Likes
2,588

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
Read only

former_member208149
Participant
2,345

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
Read only

former_member208149
Participant
2,346

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.

Read only

0 Likes
2,345

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

Read only

2,345

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

Read only

0 Likes
2,345

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

error-slin.png

Read only

2,345

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.

Read only

2,345

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)

Read only

0 Likes
2,345

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.

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
2,345

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

Read only

former_member476503
Participant
0 Likes
2,345

ok ...Thank you ..