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

Dummy program for calling method

Former Member
0 Likes
327

Hi experts ,

I need Dummy program to call already created method. Please do the needful iam sending the method which i created.

Class name : Zcl_configurable_item

method IS_SEQUENCE_NOT_TO_PRINT .

DATA : l_kunnr TYPE kunnr,

l_kna1katr6 TYPE kna1-katr6,

l_katr6 TYPE kna1-katr6,

l_katr6_1 TYPE zkatr6_line.

*DATA : l_katr6_1 TYPE STANDARD TABLE OF zkatr6_line. " OCCURS 0 WITH HEADER LINE.

DATA : l_zliteral_tab TYPE ZLITERAL_TAB_TYPE,

l_zliteral type zliteral.

DATA : condtype_range_out TYPE Z_KATR6_TT.

SELECT SINGLE kunnr FROM vbpa

INTO l_kunnr

WHERE vbeln = vbdkr_vbeln AND

( parvw = 'RE' OR

parvw = 'BP' ).

SELECT SINGLE katr6 FROM kna1

INTO l_kna1katr6

WHERE kunnr = l_kunnr.

l_katr6 = l_kna1katr6+0(1).

SELECT * FROM zliteral

INTO table l_zliteral_tab

WHERE zkey1 = c_zlit_genosys_key AND

zkey2 = c_katr6_1.

loop at l_zliteral_tab into l_zliteral.

clear l_katr6_1.

l_katr6_1-sign = l_zliteral-zvalue1.

l_katr6_1-option = l_zliteral-zvalue2.

l_katr6_1-low = l_zliteral-zvalue3.

append l_katr6_1 to condtype_range_out.

Condense l_katr6_1-low.

IF l_katr6 EQ l_katr6_1-low.

IS_SEQUENCE_NOT_TO_PRINT = c_checked.

EXIT.

ELSE.

IS_SEQUENCE_NOT_TO_PRINT = SPACE.

ENDIF.

endloop.

Thanks & Regards

1 REPLY 1
Read only

Former Member
0 Likes
289

Hi,

Create a program Call your method using CALL Method statement following your Method name. May i know why do you need a dummy program to call a method. If your requirement is clear you could get lot of guidence from all.

Please be a little specific in your issue.

Thanks,

Prashanth