09-15-2011 3:11 PM
Hi Gurus,
I have a requirement to create customer,i have used the following bapis but cudnt help o create.
but tried all the bapis like :
/SAPNEA/SMAPI_CUSTOMER_CREATE2
/SAPNEA/SMAPI_CUSTOMER_CREATE
BAPI_CUSTOMER_CREATEFROMDATA1
BAPI_CUSTOMER_CREATEFROMDATA
SD_CUSTOMER_MAINTAIN_ALL,
bapi_customer_create,
these are not suitable for my requiement.
i have to pass customer,address,control data,shipping and billing details of xd01.
please help me to sort out this problem.
thanks & regards,
sap8752.
09-15-2011 3:23 PM
Hi
Check the standard programs RFBIDE00 & RFBIDEK0. This programs used to update customer master records.
Ragards,
Raghu
09-15-2011 3:30 PM
Hi,
You can use RFBIDE00 or
BAPI_BUSINESS_PARTNER_CREATE using this BAPI u can update the address also.
09-15-2011 3:29 PM
thanku for ur quick reply,
sry these are not helpful to my req, plz suggest me to sortout my problem.
thanks & regards,
sap8752
09-15-2011 3:34 PM
thanku for ur reply,
i have to pass the values IN XD01, SO THAT IS NOT HELP FUL..
THANKS & REGARDS,
SAP8752
09-15-2011 3:43 PM
Hi,
Have u tried this FM
go for this /SAPNEA/SMAPI_CUSTOMER_CREATE
CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'
EXPORTING
pi_personaldata = pi_personaldata
pi_opt_personaldata = pi_opt_personaldata
pi_companydata = pi_companydata
pi_opt_companydata = pi_opt_companydata
pi_consumeren = pi_consumeren
pi_copyreference = pi_copyreference
pi_credit_control_flag = pi_credit_control
IMPORTING
customerno = customer_code
return = return.
IF return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = pi_wait_commit.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
For creation of classification data you can use below one
'BAPI_OBJCL_CREATE'.
09-15-2011 3:51 PM
THANKU Devireddy omkar
that cudnt help me,
error : double creation of company and user address not permitted.
thanku.
09-15-2011 4:35 PM
Hi,
There is no standard bapi available to create with all data like sales data..You can try a bdc and bapi combination that is the easiest way to achieve this all the fields mapping and create customer master.If you need any help in this please post.
Regards,
Madhu.
09-16-2011 5:03 AM
Hi madhu,
Can u please provide me with a sample code...
thanks & regards,
sap8752abap.
09-16-2011 5:28 AM
Hi,
1) Create your own bdc program first.Now data is ready in your internal table from file
2) Use this fm and collect return messages from bdc log FORMAT_MESSAGE.
3) CONVERT_BDCMSGCOLL_TO_BAPIRET2 will pass this messages ti bapi ret
4) Use import ,export memory concept
5) When you pas the values from the bapi as a import parameters that will come into bdc program and will create customer
6) Once the customer created or any other error messages that will move to bapi return messages
7) Only issue here if you need any extra fields again you have to map that in bdc program and in import parameters in bapi.
Try this if there is any issue post.
Regards,
Madhu.
09-16-2011 7:39 AM
hi madhu,
In my requirement i should not use bdcbut can use 2-3 bapis,
can u plz suggest me...
thanks & regards,
sap8752abap.
09-16-2011 7:45 AM
Hi,
There is a fm but it is not that much useful.Here we are not using bdc directly we are calling that in back ground of this program.As i know there is no option.Are you planning to call this from external system.
Regards,
Madhu.
09-16-2011 7:56 AM
09-16-2011 7:58 AM
09-16-2011 2:50 PM
Even that bapi is noy useful, i can use 2-3 bapis if necessary can u plz help me...
09-16-2011 2:52 PM
Hi,
I think there is no standard on this.My suggestion is better t go with this.
Regards,
Madhu.