07-10-2009 12:28 PM
Dear all,
I am using BAPI --> ISIDE_SM_VENDOR_DETAILS_UPDATE to update the details of vendor for transaction XK02.
I have used total 5 tables.
IT_VENDOR-- vendor no and name.
IT_BAPIAD1VL-- contact per name, street, address (str_suppl1,2,3), postal code, city, country, region.
IT_BAPIADTEL-- telephone
IT_BAPIADFAX -- fax
IT_BAPIADSMTP -- email.
ET_BAPIAD1VL }
ET_BAPIADTEL } same details as above.
ET_BAPIADFAX }
ET_BAPIADSMTP }
ETX_BAPIAD1VL }
ETX_BAPIADTEL } 'X' wherever there are values for above fields in the tabs.
ETX_BAPIADFAX }
ETX_BAPIADSMTP }
After testing the FM, it gives this message in return tab
T ID NUM MESSAGE
E AM 164 Specify address object type and key
Regards,
Sumit Nene.
07-13-2009 6:39 AM
Please let me know if I have to add any other fields.
Regards,
Sumit Nene
07-13-2009 7:31 AM
hai sumit,
r u passing IS_SEL_VENDOR import paramter and also VENDOR_DATA bcos u r paasing other fields but u rnot passign vendor detials juct chekc once for whic vendor u r updatign by passing these values
m.a
07-13-2009 8:29 AM
Thanks Afzal ,
I forgot passing ISL_VENDOR_DATA.
It is working when i directly run Fn Module in SE 37,
but it is not working when i run through ABAP Editor.
It Result in Dump saying :
The call to the function module "ISIDE_SM_VENDOR_DETAILS_UPDATE" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "IS_SEL_VENDOR".
The field "IT_ISL_VENDOR" specified here is a different
field type
.
Plz help
Regards,
Sumit
07-13-2009 8:30 AM
Thanks Afzal ,
I forgot passing ISL_VENDOR_DATA.
It is working when i directly run Fn Module in SE 37,
but it is not working when i run through ABAP Editor.
It Result in Dump saying :
The call to the function module "ISIDE_SM_VENDOR_DETAILS_UPDATE" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "IS_SEL_VENDOR".
The field "IT_ISL_VENDOR" specified here is a different
field type
.
Plz help
Regards,
Sumit
07-13-2009 9:12 AM
ha sumit,
declare a variable of type ISI_SM_SEL_RECORD and in it pass the vendor number and then pass this paramter to funciton module , i guess u r passing vednor number in qoutes ,
data : wa_vendr type ISI_SM_SEL_RECORD.
wa_vendr-lifnr = '0000000001'.
ans pass this wa_cndr to function module parameter
regards
m.a
07-13-2009 9:47 AM
07-13-2009 11:09 AM
@ M.A.
how can we pass the variable in some individual variable? we have to pass the whole "it_isl_vendor" table to FM.
So im putting vendor no in lifnr field of that tab andd passing it to the FM.
Regards,
Sumit Nene
Edited by: Sumit Nene on Jul 13, 2009 12:09 PM
07-13-2009 11:16 AM
yes u r right
u have to pass the work area or table and u cannot pass single variable
but the paamter which u r saying is import parmater and it is not table
i guess u declared that as a table may be that is the reason it is gettign dump
just try to declare it same as that of fucntion module parameters
m.a
07-13-2009 12:02 PM
DATA: WA_ISL_VENDOR TYPE ISI_SM_SEL_RECORD.
CALL FUNCTION 'ISIDE_SM_VENDOR_DETAILS_UPDATE'
EXPORTING
* IT_RETURN =
IS_SEL_VENDOR = IT_ISL_VENDOR
IS_VMDATA = IT_VMDATA
IMPORTING
ET_RETURN = it_return
* ES_VMDATA =
.
this is my code.
IT_ISL_VENDOR --> im passing vendor no in lifnr field of this tab.
IT_VMDATA--> all the vendor related data that i wish to update.
Regards,
Sumit Nene.