01-02-2014 4:07 AM
I'm Going to insert vendor through .net web service. i use function module. inside the function module i call VENDOR_INSERT bapi code as follows
----------------------ABAP code :-------------------
function zrfc_vendor_creation.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_LFA1) LIKE LFA1 STRUCTURE LFA1
*" VALUE(I_LFB1) LIKE LFB1 STRUCTURE LFB1
*" VALUE(I_LFM1) LIKE LFM1 STRUCTURE LFM1
*" EXPORTING
*" VALUE(ZO_MSG) TYPE CHAR20
*" VALUE(ZO_MSG2) TYPE CHAR20
*"----------------------------------------------------------------------
zo_msg = ''.
data: t_xlfas type standard table of flfas,
t_xlfb5 type standard table of flfb5,
t_xlfbk type standard table of flfbk,
t_xlfza type standard table of flfza,
t_xknvk type standard table of fknvk,
t_bapiret2 type standard table of bapiret2.
call function 'VENDOR_INSERT'
exporting
i_lfa1 = i_lfa1
i_lfb1 = i_lfb1
i_lfm1 = i_lfm1
tables
t_xlfas = t_xlfas
t_xlfb5 = t_xlfb5
t_xlfbk = t_xlfbk
t_xlfza = t_xlfza
t_xknvk = t_xknvk.
IF sy-subrc <> 0.
zo_msg = 'Error'.
ENDIF.
i pass the vendor number, name .group through .net, service successfully insert.
but i run function module manually by passing vendor number, name .group details same as .net , that record found by vendor number se16n
Please help me
01-02-2014 4:32 AM
Hi Gevan jayasinghe,
Vendor number data type is Character. So please pass with zero. that is if vendor number is 101010, please pass as '0000101010'..
Please try.
Arivazhagan S
01-02-2014 4:29 AM
01-02-2014 4:32 AM
Hi Gevan jayasinghe,
Vendor number data type is Character. So please pass with zero. that is if vendor number is 101010, please pass as '0000101010'..
Please try.
Arivazhagan S
01-02-2014 4:57 AM
Wow Arivazhagan Sivasamy Your Correct . Thankx Lot, Thank You Very Much