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.
Showing results for 
Search instead for 
Did you mean: 

Error message while using BAPI

Former Member
0 Kudos

Hi Friends,

I'm using BAPI_ADDRESSORG_SAVEREPLICA to create Address data for Vendor/Customer.

<b>Reason of usning BAPI is :</b> We can upload data through LSMW using standard program but the limitation is that in target strcucture of standard program length for some of the fields(NAME1,NAME2...etc) is 35 but in real SAP transaction it allows upto 40.So as per BAPI documentation we should use it to overcome this problem.

<b>Problem :</b> When i take NAME fields with 40 character length in my source file using BAPI_ADDRESSORG_SAVEREPLICA then it returns error in internal table (RETURN parameter) saying -

<b>"The use of the last 5 characters in field NAME1 is restricted (40 of 40)"</b>

And it takes length upto 35 character.

<b>Observation :</b> In BAPI we are passing internal tables (loaded with address data) , in tables parameter BAPIAD1VL is the structure and in this structure name of the field is NAME (NOT NAME1) and lengh 40 while in error message of BAPI it is NAME1 only.

NAME1 is the name of field in KNA1 and length 35.

Please help in loading 40 character against these fields.




Former Member
0 Kudos

Hi Sonal,

As KNA1-name1 field only accepting 35 chars u can pass 40 chars long to this field.

BAPI is posting to this table for these fields.

So i think its not possible.


Manas Ranjan Panda

0 Kudos

When we use BAPi then it do not update KNA1 but ADRC.

So it should work as it is meant for the same.



Former Member
0 Kudos


You can only use more than 35 char because it has to store at kan1 table fields. if you want to upload more than 35 char (add one custom field and use that field).


0 Kudos

Poorna, Thanks for reply .

When we use BAPI it store Address data in ADRC where we can save upto 40 character and in KNA1 35.

Need to find , how ?