‎2007 Mar 19 11:45 AM
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
‎2007 Mar 19 11:51 AM
Have you given the destination name in upper case??
rfcdest = 'SERVER1'. <------------
‎2007 Mar 19 11:52 AM
‎2007 Mar 19 12:08 PM
hi martin,
check this line in the program.
rfcdest = 'server1'.
Change this 'server1'. to SERVER1, and give rfcdest to the destination.
try this.
Regards,
Balaji E.