Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 02, 2014 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 04:29 AM

    Hi Former Member

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

    Regard's

    Smruti

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.