. bapi to create customer
Hi All,
I am having problem finding a right bapi for create a customer.
I am using "bapi_customer_createfromdata1" to create a customer. Problem is i couldn't find a structure to pass sales org. data as well as partner functions.
Please help me. Feel free to ask me questions.
Thanks,
Diwakar.
Hi,
The way is using multiple BAPI's.
bapi "bapi_customer_createfromdata1" is used to create customer with reference customer number and then send the information to bapi "sd_customer_maintain_all" for changing the the values.
Still having problem passing parameters.
When i am sending partner information(knvp) to "sd_customer_maintain_all", it is giving abap dump assertion_failed.
I tried to debug the program but i couldn't find the error.
values i passed to bapi sd_customer_maintain_all
internal table of type <b>fknvp</b>.
MANDT sy-mandt
KUNNR st_knvp-kunnr
VKORG st_knvp-vkorg
VTWEG st_knvp-vtweg
SPART st_knvp-spart
PARVW st_knvp-parvw
PARZA
KUNN2 st_knvp-sp_kunnr
LIFNR
PERNR
PARNR
KNREF
DEFPA
Appended line by line to the table.
Reward points if found helpful....
Cheers,
Venkoji Babu.
Similar Messages
-
BAPI function create Customer master(T-code XD01)??
Hi All,
i want to create BDC program using BAPI function create Customer master(upload customer master),but i do not know which BAPI function for create Customer master.
Does anyone know,please tell me which BAPI function i can use?
Thanks.
Van DungHi Amit Gujargoud,
I can use LSMW upload the data from legacy system to sap system., but my manager he did not want to use LSMW.He wants to use BAPI function for upload customer master.
I saw this BAPI function create customer master : BAPI_CUSTOMER_CREATEFROMDATA1,
BAPI_CUSTOMER_CREATEFROMDATA,
it is not enough field for input data.
example : if i want input : customer code,company code, Sales organiration,Distribution channel,Division.
So This BAPI function have not paramaters input this field.
Thanks for your answer
Van Dung. -
Bapi to create customer Master
Dear all,
As far i know there is no standard bapi to create a customer. There i s standard fm used her is SD_CUSTOMER_MAINTAIN_ALL. I tried to create customer master using this and making the function module as remote enabled. i tried to created a zbapi and use this fm inside of this. Please tell me if any idea on this.If any body knows please help me in this.
Regards,
Madhu.Dear Alain
Once again thanks for your reply. I passed customer no to extract data of a customer . But it is not extracting any data .
I am thinking to fill all the fields of the table by seeing hoe it is extracting the data . can you give me some idea on this .
DATA: ls_i_main TYPE cmds_ei_main,
ls_e_main TYPE cmds_ei_main,
lt_custs TYPE cmds_ei_extern_t,
ls_cust TYPE cmds_ei_extern,
ls_head TYPE cmds_ei_header,
ls_instance TYPE cmds_ei_instance.
CONSTANTS: lc_obj_task TYPE cmd_ei_object_task VALUE 'M'.
ls_instance-kunnr = '0000100001'.
ls_head-object_instance = ls_instance.
ls_head-object_task = lc_obj_task.
ls_cust-header = ls_head.
APPEND ls_cust TO lt_custs.
ls_e_main-customers = lt_custs.
CALL METHOD cmd_ei_api_extract=>get_data
EXPORTING
is_master_data = ls_e_main
IMPORTING
es_master_data = ls_i_main.
"es_error = pe_error.
Regards,
madhu.
Edited by: madhurao123 on Mar 31, 2010 1:17 PM -
BAPI to create customer records (XD03)
Hi
I've seen some similar threads to this but I'm not sure the question is fully answered yet.
Is there a single, or are there multiple BAPI's available that will fully create a customer master record, by which I mean all the company code data as well as te Sales area data? I am aware of the BAPI_CUSTOMER_CREATEFROMDATA1, but this doesn't appear to meet the full requirement. Also I'm slightly alarmed by the 'Only for ONLINE Store!!!' comment in the documentation.
Previous posts on this forum and on others suggest that to fully create a customer record people have had to resort to writing their own BDC programs. Is there anyone who can confirm that this is the case?
Thanks for your help.
DominicHi
Thanks for the welcome and the advice.
While researching this further I came across SAP note 390045 which is directing me away from using the BAPI route. I realise now that I didn't mention in the original post that the idea we're investigating is having the data for the customer accounts created externally to SAP and then call a BAPI to create the account in SAP.
I suspect we could achieve this but it's getting a bit messy so ALE might be the better option.
Thanks,
Dominic. -
BAPI to create customer master record
Hi ,
I was looking for the BAPI to create the customer master record in R/3. we are using the ERP 2005 system .
I did find the BAPI but it will only creat the personal information of the customer .
I was looking for a BAPI that will create the whole record of customer including the company code . sales area record .
Hope someone knows abt this.
I have to use this in a sync interface with siebel system
Thanks
NikhilHi Michal ,
I had a loojk at this BAPi but this will only populate the customer personal data. we will have to make a refe to a existing cust to extract the company code data and the sales area data
Thanks
Nikhil -
Create customer master in Web dynpro abap
Hi Gurus,
i'm new to web dynpro abap...
My requirements is given below... which is the standard BAPI for create customer master data... then how to call workflow in web dynpro application without using portal server (uwl)... please reply as soon as possible
1) Create customer master
2) Change Customer master
3) Display customer master
4) When the customer master record is created it should trigger a workflow to another user for approval. Once approved, the customer master should be created in the system
5)The customer master record creation should be through a bapi call.
6) When the system master record is being created, duplication check should be performed for name, city, postal code,email I'd etc.
Regards
vijay.Dear Vijay,
HAVE YOU GOT THE SOLUTION FOR THE ABOVE REQUIREMENT.. i TOO HAVE GOT THE SAME REQUIREMENT AND I CAME ACROSS YOUR THREAD.
Please do reply with your answer.
Regards,
Sujit K karn -
Bapi to create cusomer accounting
Hi all,
can anyonre tel me the bapi to Create Customer (Accounting)
Thanks<b>BAPI_CUSTOMER_CREATE</b>
Create Customer Master Online
With this method, you can create or extend a customer.
<b>BAPI_CUSTOMER_CREATEFROMDATA</b>
Note: In SAP R/3 4.5A, this BAPI is replaced by BAPI
"<b><i>BAPI_CUSTOMER_CREATEFROMDATA1</i></b>", which takes full account of the
integration of customer address data in Central Address Management
(CAM). As this BAPI ("BAPI_CUSTOMER_CREATEFROMDATA") is being replaced,
it will only be supported for 2 releases after SAP R/3 4.5A.
This method of the "Customer" business object can be used to create a
customer in SAP R/3 on the basis of entered address data (import
parameter PI_ADDRESS).
The entered address data has a direct influence on the master data,
company code data and contact person data. One contact person record is
created for the customer to be created.
All the master data, company code data, sales area data, and tax code
data that is not entered is adopted from a reference customer, and from
sales area data (sales organization, distribution channel and division -
import parameter PI_COPYREFERENCE).
(Exception: Currency field of the sales area data. This field can be
transferred to the BAPI via structure PI_ADDRESS via the currency fields
(in R/3 or in ISO format).
If both currency fields are transferred to the BAPI, the currency field
in R/3 format has priority.
If both currency fields are blank when transferred to the BAPI, the
currency field is determined using table T005, on the basis of the
country that is specified.
Message was edited by:
Chandrasekhar Jagarlamudi -
BAPI to create BP as a customer
Hello
I am unable to find a relevant BAPI that can update following fields in customer view while creating the BP in customer based role:
Company Code
Reconciliation Account
Record Payment History
Please advise
RakeshHi Rakesh,
I dont think u need a BAPI for your requirement. If u have done the configuration of BP group with customer account group correctly, the system will automatically create customer in the background with the relevant fields as soon as u create a BP in REFX.
Even for cutover BP u dont need to create customers just upload BPs and system will automatically create the customers no need to create them separately.
Regards,
Deepak -
Bapi Bdc Combination to create customer
Dear all,
I want to create a customer master from external system. What are the standard bapis are there they re not suitable for my requirement. I approach it in the following way. I did a bdc for xd01 and trying to call it from a rfc fm which i prepared. But the data that i passes from this fm is not reaching my bdc program. If any body have a good idea on this please share your idea with me .
1) I created an import parameter in this i created a structure.
2) the same structure i declare with the same name in bdc report(se38).
The code in the fm is in this way
DATA:
t_cust TYPE zcust_table .(this is the structure name in my fm import tab)
EXPORT t_cust TO MEMORY ID 'TABLE'.
SUBMIT ZBDC_CUSTOMER AND RETURN.
3)
DATA :BEGIN OF zcust OCCURS 100 .
INCLUDE STRUCTURE zcust_table.
DATA:END OF ZCUST.
START-OF-SELECTION.
IMPORT t_cust FROM MEMORY ID 'TABLE'.(Thi is my decalration in se38 bdc program.)
when i executed my fm the value that given in fm is not reaching my table which i declared in bdc program.
Regards,
Madhu.Hi,
Populate all the customer details address details and personal details in KNA1 structure.
Populate Company code details in KNB1 structure.
Populate Sales area details in KNVV structure.
Populate dunning data in KNB5 table.
Populate Tax data in KNVI table
In all the structures other than customer number we have to fill all the primary key fields.
Call the SD_CUSTOMER_MAINTAIN_ALL function module to create customer as below.
Create Customer in SAP
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
i_kna1 = fs_kna1
i_knb1 = fs_knb1
i_knvv = fs_knvv
i_bapiaddr1 = fs_add1
i_bapiaddr2 = fs_add2
pi_postflag = c_true
IMPORTING
e_kunnr = w_kunnr
TABLES
t_xknb5 = t_knb5
t_xknvi = t_knvi
EXCEPTIONS
client_error = 1
kna1_incomplete = 2
knb1_incomplete = 3
knb5_incomplete = 4
knvv_incomplete = 5
kunnr_not_unique = 6
sales_area_not_unique = 7
sales_area_not_valid = 8
insert_update_conflict = 9
number_assignment_error = 10
number_not_in_range = 11
number_range_not_extern = 12
number_range_not_intern = 13
account_group_not_valid = 14
parnr_invalid = 15
bank_address_invalid = 16
tax_data_not_valid = 17
no_authority = 18
company_code_not_unique = 19
dunning_data_not_valid = 20
knb1_reference_invalid = 21
cam_error = 22
OTHERS = 23.
Check sysubrc to know the error .
Please let me know if you need any further details.
Regards
Madhu -
How to create customer with bapi
hi i want to create customer through bapi which facilitates to enter customer code(our own defined not the sequentially next no.)
i have gone through F.M BAPI_CUSTOMER_CREATEFROMDATA1 BUT NOT ABLE TO UNDERSTAND HOW TO INPUT PARAMETER FOR CUSTOMER_CODE.
PLEASE GUIDE ME IF ANY ONE AWARE ABOUT THAT.
THANKSModerator message - Welcome to SCN.
But please search the forum before asking a question. This has been discussed many times before. Also read the BAPI documentation - thread locked.
Also, Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob -
How to Create Customer by BAPI or by Function Module
Hi all,
I am new to this forum...
Please can anyone tell me how to Create Customer by BAPI or by Function Module.....?
I have tried many of the function modules posted in the threads.. but it couldn't help me out...> The only official solution is batchinput and idoc (CREMAS).
Note that when an IDoc exists, it is often possible to call the function module that is just behind it (see WE57 transaction). SAP would not support that direct call, but if you need to contact SAP support about an issue, you can create the IDoc manually and there's no reason that this issue doesn't arise.
The only difference with the IDocs is that you don't have any IDoc stored in the database, and even no log in database (so you won't be able to see anything in WE02, etc.).
Note that it is important to know if this function module does a database commit or not: you can look at the BDFG transaction (I assume there's no BAPI related as it is the initial assumption of my post) to see if IDoc packet processing is allowed or not: if packet processing is allowed, there's no database commit in the function module, otherwise there's one. -
How to create custom BAPI for a project on Agentry?
As I am very new to BAPI creation, I would like to get some helpful pdf documents or links for creating custom BAPIs, which would fetch data for an Agentry Project to be build.
Tags edited by: Michael ApplebyRajkamal,
I would recommend you work through the following tutorial on how to build an Agentry application from scratch. It covers creating a BAPI to retrieve data from the SAP backend to Agentry.
Part 1 - http://scn.sap.com/docs/DOC-47550
Part 2 - http://scn.sap.com/docs/DOC-47651
--Bill -
Dear all,
i need to use the BAPI 'BAPI_CUSTOMER_CREATEFROMDATA1' to create customer record . How and where to define the customer account group??
Or does this function is 'hardcoded' that can only create '0001-sold to party' customer account??
Or is there any other BAPI that can create different customer accounts?
Thanks in advance!Hello Winson,
I've looked through the source of 'BAPI_CUSTOMER_CREATEFROMDATA1' and it seems that it obtains account group from reference customer. -
BAPI create customer with search term 2?
Hi all,
I'm looking for a BAPI/FM, which can create customer master record with 'Search term 2' input field. Pls let me know the BAPI/FM name if you know.
Regards,
Hung.Hello Hung,
SD_CUSTOMER_MAINTAIN_ALL is used in standard during the maintenance of a consumer using the standard customer master data transaction XD01 & XD02.
It is not intended to be used out of the transaction and in no case it should be used out of its original context. Due to the specificity of the function module, out of the original context we may face limitations and data inconsistencies.
For the maintenance of customers, there is NO BAPI and NO direct function module.
There are some functions modules like the one above where the name is looking nice. But these should not be used.
Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See [note 384462|https://service.sap.com/sap/support/notes/384462]
Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
Hope this helps
BR
Alain -
Which BAPI is creating BP in consumer role, reference to customer, su01 us
Hello,
which BAPI is creating
BP in consumer role,
reference to customer,
su01 user.
please tell me
regards
ramHi Jacob,
When i am going to save the BP the details i filled in like name of the BP and all information goes blank. Asd i have mentioned.
So in error it is saying "An exception has occured during progranm processing, Make an entry in the name field".
In error dignosis i got below information:-
Exception Details--> CX_SY_REF_IS_INITIAL - Derefrencing of the Null reference.
Method: ZL_BP_HEAD_BPHEADOVERVIEW_IMPL=>EH_ONSAVE
Source Text Row: 38.
It is all because the information is getting removed which we enter for our BP. And i am not getting why it is not getting saved in the system. I have debugged the code for the event handler jsut after which all the valeus are getting removed but dint get anything.
Regards.
Maybe you are looking for
-
AutoComplete not working properly in Outlook 2013
The AutoComplete List is a feature which displays suggestions for names and e-mail addresses as you begin to type them. These suggestions are possible matches from a list of names and e-mail addresses from the e-mail messages that you have sent. Auto
-
GeForce GTX 560Ti TF2 OC (Artifacting)
Good evening, or morning, or whatever it is where you are. I bought myself this card about 7-8 weeks ago, and it's been doing splendidly. However, in the past few days I have started to notice some artifacting, tonight, the artifacting went balistic.
-
Since last week, i've been trying to make a back up copy using icloud, but it always keep showing an error during the process and it make just part of the complete copy. Since then it keeps saying that i never have made a back up copy. When i do the
-
Business Rule in trigger not working
Hi, I have business rule that no one below 18 years should be employed in this system. I have created a trigger that alerts me so, but when ever I insert someone either over 10 or below, it fires and deos not insert any record, but if I deleted the t
-
Beginner needs troubleshooting help PLEASE someone help if you can .
I am starting to learn program so i started with stanfords cs106a course on itunes U. I cannot get karel the robot to run on correctly. I have eclipse luna installed and have Java jdk 8 installed. when i try to run an assigments solution all i get is