2014 Jan 29 11:44 AM
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
2014 Jan 29 12:07 PM
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
2014 Jan 29 12:04 PM
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
2014 Jan 29 1:28 PM
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
2014 Jan 30 4:51 AM
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
2014 Jan 29 12:07 PM
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
2014 Jan 29 12:53 PM
HI tooshar actually i pass TITLE_P as you says Mr.but when i go back it will display MR.
2014 Jan 29 1:13 PM
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
2014 Jan 29 1:32 PM
Hi nabheet,
you are correct i do this but it shows
can you help me what data i pass for testing.
2014 Dec 16 5:41 AM
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 ..
Hope this helps.
Thanks & Regards
Shanthan Reddy