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
Similar Messages
-
Hi there,
I'm looking for a BAPI or FM that has the fields that I need to create a customer.
I need to fill the "Withholding tax information", it is in the Company Code data.
I can't find this data in the BAPI
BAPI_CUSTOMER_CREATEFROMDATA1 and neither in the FM
SD_CUSTOMER_MAINTAIN_ALL.
Thanks,
Alexandre Nogueira.Well, This folder is in the company code data, beside the folder correpondence, but I think it's valid only for Brazil, thats why I don't have it in the bapi, I think it's impossible.
Thanks anyway,
Alexandre -
Bapi or function to create Customer FI data
Hi,
i'm looking for a bapi or function that it creates a new customer in FI data, I find BAPI_CUSTOMER_CREATEFROMDATA1 but it only creates customers SD data like address, name, telephone number....
Could you say if there are something that it can help me or I need to make by myself?
Many thanks!
Raúlook report rfbide00 and its docu
A. -
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 -
Hi,
I am using BAPI function BAPI_BUSINESS_PARTNER_CREATE to create customer master. I have this error message Activity category does not exist.
Please help.
best regards,
ALNagaraj,
1. I have import the parameter PARTNERCATEGORY but i still get the same error message.
2. I have try BAPI_CUSTOMER_CREATEFROMDATA1, but this FM ask for Sales organization data which i don't have the sales area yet. Please advice.
best regards,
AL -
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
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. -
BAPI/FM in CRM that creates Customer/Bussiness Partner in CRM
Hi All,
My Requirement is to create a Customer(Called as Business Partner in CRM). Can some one tell me if there is any inbuilt BAPI/FM available to create a business partner in CRM.
Regards,
Jessica.Hello Jessica,
Here is the link for the complete information on how to create the bussiness partner.
Very helpful site to understand the basics.
http://help.sap.com/saphelp_crm40/helpdata/en/8b/0c7d4dc8dcd847abf1dd5b314e2703/content.htm
Cheers!!
VEnk@ -
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. -
Problem in BDC while creating customer data(FD01)
Hi Experts,
i am creating customer for FI module using FD01, with call transaction method, here my prob is, if i update mode A, then it is asking enter for every screen, but i use N mode, it is not creating,
so what i need to modify and where ...
Thanks,
sudha.Thats because you are skipping code for a screen, in A mode you do not notice and press ENTER, but in N mode the process gets stuck when it cannot find the code for a screen.
Run the program in A mode and find out where you are stucking, and put this code in your program at that spot:
PERFORM insert_bdc_data TABLES it_bdc_data USING:
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '=ENTE'.
The code may be different for you, I just wanted to give you an idea what may be going wrong. -
Need Function Module to create Customer Master
Hi,
I need to create customer master data (T-Code: XD01) include the company code data and sales area data.
Is there any function module that I can use? I tried to use BDC but since the screen is different for each account group, I'm thinking is there any FM that can use so that I do not need to create so much BDC.
Hope someone can use.
Thanks.hi there...
Please find below some of the BAPIs, Function Modules and Direct Input Programs for Customer Master.
RFBIDE00
BAPI_CUSTOMER_CREATEFROMDATA1
SD_CUSTOMER_MAINTAIN_ALL
hope it helps...
do reward if helpful or get bak if u hav further queries.
Maybe you are looking for
-
EPSON Stylus Color 1160 changing default print quality under 10.4
Greetings. I have the above printer and since Epson no longer produces a driver that will function under 10.4 I am using the Gimp driver. Which works fine. The printer is connected to our server and so functions as a 'shared printer' in the network.
-
How do i backup itunes from an older pc that wont start up to a new pc
i broke my 3gs and my pc burne dout aswell, how do i upload those songs from my old itunes account to my new one? missing 50% of files atm
-
Map.Entry not supported in queries?
Hi, I tried to run the following JDO query: Query query = pm.newQuery(SomeClass.class); query.setFilter("someMap.contains(entry) && entry.key == value"); query.setOrdering("entry.value ascending"); query.declareVariables("java.util.Map.Entry entry");
-
EOS 5D Mark III - Serial Number EXIF Error
Hi, I just enquired of PhaseOne as to why their DAM & RAW processor does not show the Camera Serial Number and I received the following reply: "The simple reason for this is that the 5DmkIII does not write it in the standard EXIF data which the 5D an
-
bonjour à tous, je suis sous windows 7 64 bits et j'ai systématiquement l'erreut suivante lorsque j'ouvre itunes: il est impossible de répondre à votre demande auprès de l'itunes store une erreur inconnue s'est produite (0x80090330) quelqu'un a t'il