Skip to Content
0
Former Member
Mar 19, 2007 at 11:45 AM

Whats Wrong with this Code Or Function Call

13 Views

Hi all,

Can you please once go through this small peace of code.

If I test the below function module in SE37

BAPI_STDMATERIAL_GETINTNUMBER

it works perfectly with RFC destination.

However It gives me a short dump when I call the BAPI in a report with RFC Destination

Can any one throw some light on this ?

DATA : l_return LIKE bapireturn1,

it_matnr LIKE bapimatinr OCCURS 0

WITH HEADER LINE.

DATA : rfcdest TYPE rfcdest.

.

rfcdest = 'server1'.

CALL FUNCTION 'BAPI_STDMATERIAL_GETINTNUMBER'

DESTINATION 'SERVER1'

EXPORTING

material_type = 'PLEL'

industry_sector = 'M'

required_numbers = '1'

IMPORTING

return = l_return

TABLES

material_number = it_matnr.

Thanks in Advance