Application Development and Automation 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: 
Read only

How to create customer bapi_customer_createfromdata1

Former Member
0 Likes
6,553

Hi fnds,

           I am trying to create customer using bapi_customer_createfromdata1 but when i execute the bapi_customer_createfromdata1 and enter the required field in PI_PERSONALDATA and execute it than its shows

I enter following details

pls provide me solution.

Thanks & Regards

yogendra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,221

Hi Yogendra,

Check table TSAD3T.

I have the following entries for english language.

E 0001 Ms.

E 0002 Mr.

E 0003 Company

E 0004 Dr.

As the field TITLE_P that you are passing as MR. in capitals whereas the table may be different.

Pass TITLE_P as Mr. this may solve your issue.

Hope this helps.

Thanks,

Tooshar Bendale

8 REPLIES 8
Read only

former_member188827
Active Contributor
0 Likes
4,221

The bapi checks the value entered in "title_p" against field "title-medi" of table "TSAD3T". Make sure that you pass value "Mr." in same case as in the table tsad3t. In the attached snapshot, title is passed as "MR." instead of "Mr." when you test the bapi through function builder(SE37) it automatically converts it into upper case. Try changing it while debugging and the error would be removed. Also, when you call the bapi in program, make sure that you enter the value in same case.

Regards

Read only

0 Likes
4,221

Hi netweaver developer,

                                 As you says i debug it & changes the values but it show another error

       

can help me on this, which are the mandatory field for  PI_PERSONALDATA.

regards

Read only

0 Likes
4,221

You need to enter certain fields that are mandatory. Please run the customer master creation transaction manually and see which fields are mandatory. I think you need to fill in country and language fields in addition to all the fields that are defined as "required" in your system.

Regards

Read only

Former Member
0 Likes
4,222

Hi Yogendra,

Check table TSAD3T.

I have the following entries for english language.

E 0001 Ms.

E 0002 Mr.

E 0003 Company

E 0004 Dr.

As the field TITLE_P that you are passing as MR. in capitals whereas the table may be different.

Pass TITLE_P as Mr. this may solve your issue.

Hope this helps.

Thanks,

Tooshar Bendale

Read only

0 Likes
4,221

HI tooshar actually i pass TITLE_P as you says Mr.but when i go back it will display MR.

Read only

0 Likes
4,221

Hi Yogendra

When you execute the BAPI in SE37 on top their is checkbox for upper/lowercase. Check that and then enter your data

Nabhheet

Read only

0 Likes
4,221

Hi nabheet,

                  you are correct i do this but it shows

can you help me what data i pass for testing.

Read only

Former Member
0 Likes
4,221

Hii Yogendra..

We can create the Customer..

You have to pass parameters in this Bapi : BAPI_CUSTOMER_CREATEFROMDATA1

Example : Mandatory to pass

PI_PERSONALDATA-TITLE_P        =    'MIST'

PI_PERSONALDATA-FIRSTNAME =     'yogendra'

PI_PERSONALDATA-CITY             =     'bangalore'

PI_PERSONALDATA-POSTL_COD1 =   '560051'

PI_PERSONALDATA-COUNTRY      =   'IN'

PI_PERSONALDATA-LANGU_P       =   'EN'

PI_PERSONALDATA-CURRENCY   =  'INR'

PI_COPYREFERENCE-SALESORG     =  '3000'     """     SALES ORGANIZATION

PI_COPYREFERENCE-DISTR_CHAN =    '12  '     """"   distribution channel

PI_COPYREFERENCE-DIVISION        =    '00'       """    division

PI_COPYREFERENCE-REF_CUSTMR =  '100137'   """"reference customer numer

                                                                                      (already created one)

Note  :  For bapi we should pass the reference customer number to create a new customer..

Below is the screen shot for New customer number has created..

or

we can create the customer, without ref customer number ( PI_COPYREFERENCE-REF_CUSTMR ) also using this class :  cmd_ei_api ..

Please Refer this Link :

Hope this helps.



Thanks & Regards


Shanthan Reddy