Application Development 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: 

Vendor can't find by vendor number in SE16n. but vendor can found by name or other details except vendor number i was created. Please refer the Description i mentioned bellow

gevanj
Explorer
0 Kudos

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.

Problem is vendor can't find by vendor number in SE16n. but vendor can found by name or other details except vendor number i was craeted. why is that ????

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

1 ACCEPTED SOLUTION

arivazhagan_sivasamy
Active Contributor
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Hi

Can you check with is your vendor number range is external or internal using OMSJ T-Code .

Regard's

Smruti

arivazhagan_sivasamy
Active Contributor
0 Kudos

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

0 Kudos

Wow Arivazhagan Sivasamy Your Correct . Thankx Lot, Thank You Very Much