Skip to Content
-2

SUBMIT PROGRAM with Selection Screen For a SLIN Tcode

Jan 09 at 02:24 PM

76

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded

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

2
Former Member

ok ...Thank you ..

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
SAPEKSH GUPTA Jan 09 at 03:01 PM
2

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.

Show 6 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

1
Former Member
Raymond Giuseppi

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

error-slin.png

error-slin.png (24.3 kB)
0

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.

1

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)

1
Former Member
Raymond Giuseppi

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.

0