BAPI_CUSTOMER_CREATEFROMDATA.
Hi Expert.
I m facing problem in creating customer using 'BAPI_CUSTOMER_CREATEFROMDATA' .
There is error message Ref customer does not exist in master data.
what is ref customer....
Plz help me......
Thanks..
Kulvendra kumar
BAPI for Customer Creation
Please give me reward point If it is useful
Thanks
Murali Poli
Similar Messages
-
URGENT-Usage Of -BAPI_CUSTOMER_CREATEFROMDATA
HI CONSULTANTAS,
i have got this document(SEE BELOW) form SAP-0SSNOTES,
1.WT DOES REALLY MEAN.
2.<b>CAN I CALL THIS FROM REPORT PROG TO CREATE THE CUSTOMER
OR CAN I HAVE TO USE BDC ONLY</b>
Symptom
This note is meant to provide an explanation of the usage of function modules BAPI_CUSTOMER_* of function group V02D.
Other terms
BAPI_CUSTOMER_CREATEFROMDATA, BAPI_CUSTOMER_CREATEFROMDATA1,
BAPI_CUSTOMER_CHANGEFROMDATA, BAPI_CUSTOMER_CHANGEFROMDATA1
BAPI_CUSTOMER_GETDETAIL, BAPI_CUSTOMER_GETDETAIL1
BAPI_CUSTOMER_SEARCH, BAPI_CUSTOMER_SEARCH1
BAPI, SAP Online Store, ISA, ISA-R3, ISA-R/3, consumer, create customer
Solution
The BAPIs of the function group V02D are intended exclusively for use in the SAP Online Store and the SAP Internet Sales R/3 Edition, that is you can create or change consumers from the SAP Online store and SAP Internet Sales R/3 Edition in the R/3 system. You cannot use them to create or change customer masters or consumers in the standard system; you can only do this using ALE or Batch Input.
When you use the above-mentioned BAPIs outside of SAP Online Store or SAP Internet Sales R/3 Edition, or with customer master records that were created or edited outside of the SAP Online Store or SAP Internet Sales R/3 Edition, there is a danger that you will lose data.
PLZ HELP ME
REGARDS
HARIHi Martin,
from the function module documentation:
- Fields of import parameter PI_COPYREFERENCE:
R/3 reference customer, sales area data (sales organization,
distribution channel, division)
Note on reference customer:
The reference customer should be created bearing in mind that its
sole purpose is to provide data for customers that are created via
the BAPI.
That is, the reference customer is not an operative customer in the
business sense. As a result, the customer should be created with a
separate account group with internal number assignment. In addition,
the reference customer must exist in the organizational data that is
transferred to the BAPI.
If company-code-independent data is transferred to the BAPI, the
reference customer must be created for a company code.
So, if you have created a reference customer already, you should know the organizational data (Org/DistrChan/Division and Company code). -
Reg: Customer Master Creation in BAPI
Hi All,
How can i find the fields, which are all used in
BAPI_CUSTOMER_CREATEFROMDATA1 and in
BAPI_CUSTOMER_CREATEFROMDATA...
And how can i find the sap given sequential/flat file
for customer master.
Thanks & Regards
arunmost of the fields will be present in the BAPI function. some fields may not be avialable in that BAPI. first list out the fields what you want, then you check the fields in BAPI, and also you can go for LSMW Recording method or LSMW batch input method.
check this batch input program RFBIDE00 .
For testing the BAPI you have to input the data manually in SE37. First create a sample customer in XD01, use the same data for testing the BAPI. -
Dear all,
I am trying to create a customer from external system through bapi. For this is i have to follow these steps.
1) I am trying to call a report from external system through bapi.
2) I want to pass data from bapi to a bdc program and run it to create a customer.
3) After creating a customer I need to send the ceated customer no again to the bapi from where i passed the data to bdc.
is it possible .
Give me a good idea on this how to work with it.
Regards,
Madhu.Hi Madhu,
SAP has already given standard BAPI to create customer creation "BAPI_CUSTOMER_CREATEFROMDATA". So there is no need for you to create any thing new. Jut test this BAPI first whether this suit your requirement or not. If it satisfy your requirement then call it directly from external system. On how to call this BAPI or other BAPis searc google or SDn you will definetaly find something.
second approach is if nothing works for you( No BAPI satisfy your requirement) then only go for BDC aapproach. To do that, create a RFC function module( BAPi and RFC FM are diff thing, they looks same but they are not ). Inside your RFC FM directly write the BDC code to create customer.
Regards
Anurag -
Customer master and Vendor master
Hi Guys,
I am working on inbound inteface. I am getting data in form of flat file for masterial master(MATMAS04), Customer master (DEBMAS06 ) and vendor master (CREMAS04).
I am writing a Z program . First calling function module EDI_DATA_INComing and then corresponding BAPI.
I am usng BAPI_MASTER_SAVEDATA for material master
Please suggest me corresponding BAPI for vendor and customer master
Thanks And Regards
Neha KapoorFor Customer
BAPI_CUSTOMER_CHANGEFROMDATA
BAPI_CUSTOMER_CHANGEFROMDATA1
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
For Vendor
don't know any (BAPI transactional that only call transaction)
Regards -
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.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'. -
Func. Mod's, BAPI's, IDoc's Related to Customer Master
Hi,
I need Func. Mod's, BAPI's, IDoc's Related to Customer Master. For creation, modification, Deletion, Updation of master data records.
Regards,
SudheerHi,
Bapi to create customer master
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
Or you can use FM SD_CUSTOMER_MAINTAIN_ALL
customer master idoc is DEBMAS05
Hope this helps
Please reward points if useful.
Regards
Rose -
Create Customer of type CONSUMER (Accnt Group 0170)
Hello All,
i have scenario where i want to create customer of type <b>CONSUMER (account group 0170).</b>
i have seen BAPI's, BAPI_CUSTOMER_CREATEFROMDATA etc but it asks for reference customer number with sales org. But in case of CONSUMER there is no sales organization.In this case does anybody have solution for this or only BDC is the solution.
please let me know.
Regards,
ChandraHi,
If programming is not essential, you can use transactions VD01 or XD01 for the same.
Hope it helps u.
Regards,
Himanshu -
Hi All,
I am trying to create a customer by calling a BAPI. I am unable to find the right one. I wanted to create customer with all levels of data(General, Company and Sales Org including partner functions). I have used below BAPI's.
BAPI_CUSTOMER_CREATEFROMDATA - Only taking general data
BAPI_CUSTOMER_CREATEFROMDATA1 - Importing general information and copying sales org data from reference customer.
SD_CUSTOMER_MAINTAIN_ALL - it is not importing KNVP(partner function data)
Please help me.
ABAPer.
Thanks in advance,Hi All,
I found a way to solution.The way is using multiple BAPI's.
BAPI "BAPI_CUSTOMER_CREATEFROMDATA1" is used for creating for 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 FKNVP.
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
Appending line by line to the table.
Please help. Is there anything i am missing.
Thanks,
ABAPer.
Edited by: ABAPer on Dec 16, 2007 8:43 PM -
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. -
What the advantages of having an BAPI over Other data migrations
What the advantages of having an BAPI over Other data migrations
Th advantages of BAPI
1. Simple to use (its just an FM)
2. Not cumbersome like bdc
where we have to record each and every screen
sequence.
3. SAP guarantees the consistency
of bapi in future releases.
One of the big plusses for BAPIs is that the interface and function are not supposed to change. This is a big plus when you do upgrades or hot packs because the transaction can change (format, required inputs etc) which means you then need to update the call transaction.
Some of the BAPIs are better documented and easier to use than others.
You usually need to perform the BAPI that actually does the COMMIT after you call your BAPI.
The Program coding for calling a BAPI is usually cleaner than setting up the screen flow etc for the Call Transaction.
You don't need to worry about special data circumstances interrupting the normal data flow of the screens and causing errors because of that.
BAPIs probably have better performance since they don't do the screen flow processing.
In general if the BAPI exists for the transaction you want to perform and you can figure out how to use it the BAPI is probably the best way to go.
This is just from my experience working with both BAPI and Call Transaction. I have had some very good successes with BAPIs, but very occasionally found that I could not get the BAPI to perform the update I needed.
Refer the transaction BAPI for detail information.
You can also refer to below links:
http://www.sapgenie.com/abap/bapi/example.htm
Basic learning guide:
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
BAPI intro:
http://www.sappoint.com/abap/bapiintro.pdf
Overview:
http://www.planetsap.com/Bapi_main_page.htm
Also have a look at the following link :
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Go through the following Document
Bapi to create customer master
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
Or you can use FM SD_CUSTOMER_MAINTAIN_ALL
what is BAPI?
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module
ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access.
Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects.
You create business objects and those are then registered in your BOR (Business Object Repository)
which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
In this case u only specify the business object and its method from external system
in BAPI there is no direct system call. while RFC are direct system call.
Some BAPIs provide basic functions and can be used for most SAP business object types.
These BAPIs should be implemented the same for all business object types.
Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.
Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values,
for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved
and returned to the calling program.
The instance is identified via its key.
The BAPI GetDetail() is an instance method.
BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed
so that they can be called several times within one transaction.
For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction,
the second BAPI call must not affect the consistency of the sales order 2.
After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type,
for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type,
for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database
or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type.
The instance to be cancelled remains in the database and an additional instance is created
and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst!
ance and the BAPI and Remove<subobject> removes a subobject from an object instance.
These BAPIs are instance methods.
Check these Links out
http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
http://www.sap-img.com/fu033.htm
http://www.sap-img.com/abap/ale-bapi.htm
Please check out this thread..
Re: bapi
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..
BAPI's as i said earlier are remotely enabled function modules..
Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).
Check the following BDC over BAPI
The steps to be followed are :
1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
[for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]
2. Create a Z program and call the BAPi (same as a Funtion module call).
2. Now, if you see this BAPi, it has
-> Importing structures.
eg: SALESDOCUMENT: this will take the Sales order header data as input.
-> Tables parameters:
eg: ORDER_ITEM_IN: this will take the line item data as input.
Note :
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Example
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration
Notes
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.
2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit
so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.
For further details... refer to the Function Module documentation for the BAPi. -
Convert IDOC DEBMAS06 to a new BAPI
Hi,
I need to use a BAPI for Customer Creation. Currently we are using an IDOC: DEBMAS06. I checked the STD bapis available but they do not update all the fields from KNA1, like e.g.: flds in structure SI_KNA1 (General Data...).
Can anyone tell me how can I achieve this using BAPI, do I have to create a new BAPI?...
Regards,
KKhi kaustubh,
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
check these threads..
Re: Bapi to create customer master
BAPI for Customer Creation
BAPI - create customer
Re: Customer Master
hope this helps,
do reward if it helps,
priya. -
hi.. whenever user creates PO in SAP i want to send data to JAVA based system..there is JCO in JAVA based system.for this i should use BAPI or is it possible using ALE/IDOC..which is most preferable and how to do
regards
shankarHai Shankar
check the following Document
Bapi to create customer master
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_CREATEFROMDATA1
Or you can use FM SD_CUSTOMER_MAINTAIN_ALL
what is BAPI?
BAPI stands for Business API(Application Program Interface).
I have answered this question before..
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
Please check out this thread..
Re: bapi
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
Java Connector(JCO) can call not only BAPI's but also the function modules which are remotely enabled..
BAPI's as i said earlier are remotely enabled function modules..
Hence, JCO can call also BAPI's(n not only BAPI's as u mentioned).
Thanks & regards
Sreenivasulu P -
BAPI to create an online customer?
Hello,
Normally one would create a customer using XD01 via filling all the relevant data such as Address, Company Data, Sales Org Data, etc....
We have an application via which, we would like to make call to a BAPI and be able to create a customer.
The BAPIs available such as BAPI_CUSTOMER_CREATEFROMDATA1, BAPI_CUSTOMER_CREATEFROMDATA, BAPI_CUSTOMER_CREATE do not provision for entering all the data which one would like to supply while creating a customer.
Does anybody has any idea out there as to what option should I be looking at to create a customer via BAPI.
Regards
MaheshHi,
these bapis are not to be used out of their original context. Jürgen is fully right when he points at Note 390045
SD_CUSTOMER_MAINTAIN_ALL is even worse, it 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.
This is precisely what you face in your case.
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
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 -
Backend communication of web shop
Hi,
I have to find out wich BAPI or functions are called in CRM by the web shop in case of:
- search a customer
- create and save a customer
- create and save a BTOrder
Do I have to analyse the JSPs? Probably there is a trace I can use?
Do you have any ideas where to start?
Thanks,
TWHi,
Some common RFC for customers are as below.
ISA_CUSTOMER_SEARCH
BAPI_CUSTOMER_SEARCH
Reads the SU01 user attached to a specific customer.
ISA_USER_GET_FROM_CUSTOMER
Creation of an ISA user (means: SU01 with customer or contact person attached)
ISA_USER_CREATE
Search for ISA (SU01) users (users with customer or contact persons attached).
ISA_USER_SEARCH
Read customer info record
BAPI_CUSTMATINFO_GETDETAILM
ISA_CUSTOMER_SALES_READ
BAPI_CUSTOMER_CHANGEFROMDATA
BAPI_CUSTOMER_CHANGEPASSWORD
BAPI_CUSTOMER_CHECKEXISTENCE
BAPI_CUSTOMER_CHECKPASSWORD
BAPI_CUSTOMER_CREATEFROMDATA
BAPI_CUSTOMER_EXISTENCECHECK
BAPI_CUSTOMER_GETDETAIL
BAPI_CUSTOMER_GETSALESAREAS
To create a order we are using below RFC.
SD_SALESDOCUMENT_CREATE
I hope this information will help you.
Which Backend System you are using ECC or CRM?
-eCommerce Developer
Maybe you are looking for
-
Best practice to reduce downtime for fulllaod in Production system
Hi Guys , we have options like "Initialize without data transfer ", Initialization with data transfer" To reduce downtime of production system for load setup tables , first I will trigger info package for Initialization without data transfer so th
-
Hai, Can anyone say FM for F-04 Tcode. Thanks in advance. Regards, Ekadevi.S
-
Is it possible to call the SQL Server DB from jsp to java?
im doing a configurable system where you can create your own table using the system. i can do the creation of table by running the statement CREATE TABLE...........(with attributes) in java. Let's say i have created tblST1 with attributes st_ID, st_N
-
DON'T UPGRADE LION until you read this thread
https://discussions.apple.com/thread/3197249 You will see from this thread that many people who have upgraded to Lion (versus a clean install) have had a disasterous experience. For instance: I have lost count of how many times my computer has crashe
-
There is already a record with duplicate customer/vendor reference number
Dear Expert, Person "A" reject the Sale Order now Person "B" edit same SO and again send to "A",now second time "A" approval "B" in aleart msg go to that approval,press "add" button got information (error) "there is already a record with duplicate