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

pass a particular value in the function module.

Former Member
0 Likes
400

Hi Gurus!

I have a function module READ_HAUPTBUCH_TEXT , here in the importing table KONTENPLAN like ska1-ktopl.

But I need to pass a value as ZNOA for KONTENPLAN while calling the function which is maintained in the db, but it is always picking up the value 'AZ'.

can you please let me know as to how i do it .thx in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
368

hi sandeep it is better to pass like this...

data: v_ktopl type ska1-ktopl.

clear v_ktopl.

v_ktopl = itab-ktopl.

CALL FUNCTION 'READ_HAUPTBUCH_TEXT'

EXPORTING

kontenplan = v_ktopl

sachkonto =

sprache =

  • NO_BUFFER =

  • IMPORTING

  • TEXT_WA =

  • EXCEPTIONS

  • TEXT_NOT_FOUND = 1

  • OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards,

venkat.

Read only

Former Member
0 Likes
368

Hi All!

My requiremnt is to select the entries for company from a table where the company code value starts from 2* only there are many other company code values in that table apart from 2000 like1000 also.

Eg: I need values for Company that has a company code of 2000,2001,2002,2003.......

pls advice..