Creating a Customer/Business Partner using Function Module in Background.
Does anyone know how to use the function module BAPI_ISUPARTNER_CREATEFROMDATA? I am unable to pass parameters exactly to this FM and make it work.
Hi,
unfortunately my system does not have this BAPI. However, with other BAPIs I have tried to read the relevant data using the corresponding BAPI_xxx_GETDETAIL BAPI - there usually is a "GETDETAIL" BAPI for every "CREATE" BAPI.
Simply read all the data for an object in your SAP system that has been created using SAP transactions and use this information to fill the "CREATE" BAPI. With a bit of trial and error, you should soon be able to supply the correct data.
Btw: Be shure to call BAPI_TRANSACTION_COMMIT afterwards!
Hope that helps (please reward me if it does),
Joerg
Similar Messages
-
Create Business Agreement Using Function Module
Hi Guys...!!
Please help me out...
I want to create Business Agreement for a Business Partner using FM or Class
Can any one tell me FM or class name ?
Thanks
RajeshHi Rajesh,
Check the FM CRM_BUAG_IS_CREATE2 or BOR method BUS1006130.
These are used to create a buisness agreement.
Cheers,
Amlan -
How to create Contract or Move-in using Function module
Hello Gurus,
I'm looking for a way to create contract(Move-in) using Function module.
Please help me out...
Thanks in advance,
RajeshHi Rajesh,
Please try this: BAPI_ISUMOVEIN_CREATEFROMDATA
Regards,
S -
Creating the bussiness roles for the bussiness partner using Function modul
Hi
How to create the business roles using the function modules for the Business partner.You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
<b>Reward points if it helps.</b> -
Can anybody explain me creating Generic Datasource using Function module?
Hi,
can anybody explain me creating Generic Datasource using Function module?
Thax in advance,
Ravi.Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " E_T_DATA " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
<b>is an example</b>
1.Create a function group .
2. Structure ZTEST123
ZMATNR MATNR CHAR 18 0 Material Number
ZMTART MTART CHAR 4 0 Material type
ZMBRSH MBRSH CHAR 1 0 Industry sector
ZMATKL MATKL CHAR 9 0 Material group
ZBISMT BISMT CHAR 18 0 Old material number
ZMAKTX MAKTX CHAR 40 0 Material description
3. Create function module (i.e. ZTEST .) .
FM - YMARA_DATA_TRNS
FUNCTION YMARA_DATA_TRNS.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
data : ZTEST123 type ZTEST123 occurs 0 with header line.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
S_COUNTER_DATAPAKID LIKE SY-TABIX.
DATA: begin of t_mara occurs 0,
ZMATNR type MATNR,
ZMTART type MTART,
ZMBRSH type MBRSH,
ZMATKL type MATKL,
ZBISMT type BISMT,
end of t_mara.
DATA: begin of t_makt occurs 0,
ZMATNR type MATNR,
ZMAKTX type MAKTX,
end of t_makt.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZZMARA_DATA'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
select MATNR
MTART
MBRSH
MATKL
BISMT
from mara up to 10 rows
into table t_mara.
if not t_mara[] is initial.
select MATNR
maktx
from makt
into table t_makt
for all entries in t_mara
where matnr = t_mara-zmatnr.
endif.
loop at t_mara.
read table t_makt with key zmatnr = t_mara-zmatnr.
ZTEST123-zmatnr = t_mara-zmatnr.
ZTEST123-ZMTART = t_mara-ZMTART.
ZTEST123-ZBISMT = t_mara-ZBISMT.
ZTEST123-ZMBRSH = t_mara-ZMBRSH.
ZTEST123-ZMATKL = t_mara-ZMATKL.
ZTEST123-zmaktx = t_makt-zmaktx.
append ZTEST123.
clear ZTEST123.
endloop.
clear E_T_DATA.
refresh E_T_DATA.
E_T_DATA[] = ZTEST123[].
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extractio
ENDFUNCTION.
3. Create the data source using transaction (RSO2).
4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter E_T_DATA.
5. Test the datasource in R/3 using transaction RSA3.
6. Transfer the data source to BW System and replicate it in the BW-System. -
Datasource using Function Module
Hi Guys,
I have two ODS objects...the first ODS has 5 fields and it gets data from flat file.
I created a custom Datasource based on Function module and i'm extracting data from first ODS based on one of the field 'DATE'. This datasource extracts correct number of records as per my logic in RSA3.
So i think there is no problem with Datasource.
Now, i created Infosource and i'm trying to load data from Custom Datasource to second ODS. But when i start the infopackage, the records are not extracted completely...i can see 3 records sent( 0 records received) '0 from 3' records in the monitor...it's a yellow request...
In status i get following message -
No request Idoc generated in BW
Diagnosis
No request IDoc has been created in BW. A short dump has most probably been logged in BW.
Procedure
Look for the short dump belonging to your data request in the short dump overview in BW. Pay attention to the correct date and time in the selection screen.
You can get the short dump list using the Wizard or from the monitor detail screen via the menu path "Environment -> Short dump -> Data Warehouse".
Removing errors:
Follow the instructions in the short dump.
Please let me know if anyone of you have faced similar problem...
Thanks,Hi,
There are no short dumps in the system. Only the message in Bold in my first post is the help i can get and provide.
Strange thing is, RSA3 works correctly but it's not successful in actual extraction.
Thanks, -
Checking for the existence of a business partner using bu_partner
Hi,
How can i check if the business partner already exists in but000 based on bu_partner?
please help.
Regards
ShilpiHoping that BU_PARTNER means you have got a business partner id.
function module: BUPA_NUMBERS_GET
If you get a result (a partner guid for example) the BP exists on the db.
cheers Carsten -
How to create a new business partner for notification with function module?
Hello,
I got a problem when I want to create a new Notification with its businiss partner (BAPI_ALM_NOTIF_CREATE). I can't find the proper way to create the new business partner. Anyone offer some help?
Thanks a lot!
Morganwhen I look at the function you can transfer the partner in NOTIFPARTNR table.
You must already have defined the appropiate partnerroll in customizing for you're businesspartner
or do you have another problem with this function ? -
Hello All,
I was trying to create a Business Partner(Ship to Party) using function module SD_CUSTOMER_MAINTAIN_ALL. When I am executing this through SE37 transaction, its working fine &
creating a KUNNR value along with new ADRNR number.
But when the same data is passed inside the program, its throwing CAM_ERROR(sy-subrc = 22).
If anyone used this FM, please suggest. Thank you.Hello Ragu,
I am passing the data to function module as shown below.
*KNA1 population
ls_kna1-mandt = sy-mandt.
ls_kna1-ktokd = 'ZN02'.
ls_kna1-land1 = ls_adrc-country.
ls_kna1-name1 = ls_adrc-name1.
ls_kna1-name2 = ls_adrc-name2.
ls_kna1-ort01 = ls_adrc-city1."City
ls_kna1-regio = ls_adrc-po_box_reg.
ls_kna1-pstlz = ls_adrc-post_code1.
ls_kna1-sortl = ls_adrc-sort_phn.
ls_kna1-stras = ls_adrc-house_num1.
ls_kna1-spras = ls_adrc-langu.
*BAPIADDR1 population
ls_bapiaddr1-name = ls_adrc-name1.
ls_bapiaddr1-name_2 = ls_adrc-name2.
ls_bapiaddr1-city = ch_adrc_struc-city1.
ls_bapiaddr1-postl_cod1 = ch_adrc_struc-post_code1.
ls_bapiaddr1-street = ch_adrc_struc-street.
ls_bapiaddr1-house_no = ch_adrc_struc-house_num1.
ls_bapiaddr1-str_suppl1 = ch_adrc_struc-str_suppl1.
ls_bapiaddr1-str_suppl2 = ch_adrc_struc-str_suppl2.
ls_bapiaddr1-location = ch_adrc_struc-location.
ls_bapiaddr1-country = ch_adrc_struc-country.
ls_bapiaddr1-langu = ch_adrc_struc-langu.
ls_bapiaddr1-sort1 = ch_adrc_struc-sort1.
ls_bapiaddr1-sort2 = ch_adrc_struc-sort2.
ls_bapiaddr1-langu_cr = ch_adrc_struc-langu_crea.
*KNVV Population
ls_knvv-vkorg = '1000'.
ls_knvv-vtweg = '01'.
ls_knvv-spart = '01'.
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
i_kna1 = ls_kna1
i_knvv = ls_knvv
i_bapiaddr1 = ls_bapiaddr1
i_maintain_address_by_kna1 = 'X'
i_no_bank_master_update = 'X'
i_raise_no_bte = 'X'
pi_postflag = 'X'
i_from_customermaster = 'X'
IMPORTING
e_kunnr = lv_kunnr
o_kna1 = ls_kna1_output
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.
IF sy-subrc = 0.
EXPORT kunnr FROM lv_kunnr TO MEMORY ID 'Z_CUST_NUM'.
EXPORT adrnr FROM lv_adrnr TO MEMORY ID 'Z_ADDR_NUM'.
ENDIF.
When I am executing this through SE37, its working perfectly. However when used in Sales Order Save exit, its throwing an error saying SY-Subrc = 22(CAM_ERROR). -
Creating a business partner using data from a remote legacy system
Hi Experts,
I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
But I am not sure if that RFC can be used for Business Partner creation.
Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
Thanks in advance,
Torsten
Edited by: Torsten Sander on Apr 22, 2008 2:48 PMHi Experts,
I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
But I am not sure if that RFC can be used for Business Partner creation.
Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
Thanks in advance,
Torsten
Edited by: Torsten Sander on Apr 22, 2008 2:48 PM -
Error in creating Business Partner using FLBPD1
Dear All,
While creating the Business partner using tcode FLBPD1, I get the following error.
Also I need help to understand how to start Post Processing Office.
No business partner could be created for customer CFM0031
Message no. CVIC_UI018
Diagnosis
No business partner could be created from the customer selected.
System Response
An error occurred when creating a business partner from the customer selected. This error prevents data from being transferred and saved. This could be due to the following:
Fields have been left blank in the customer that are set as required entry fields for the business partner.
Settings for assigning Customizing values for the customer to the business partner are incorrect.
Procedure
Start the Post Processing Office and check the error message. Make the necessary corrections.
Regards
ArpitaHello Arpita,
I faced exactly the same issue and we had to check the entire customer/vendor master data synchronization configurations. We found that many of them were missing when we upgraded to ECC 6.0.
I would suggest you go through the following SAP notes and check whether all configs are in place or not. Then try again.
Note 954816, 956054 and then also 1077616.
Hope the first two notes will be able to help you cope with the issue.
Regards,
Suvarghya -
Hi,
We have a requirement to create a BI report based on plant maintenance report. The plant maintenance report is based on a ABAP program with complex logic. My question is i want create a Generic Datasource using Function module and can I include the logic(Abap Program) that is used for plant maintenance report in the function module? Please share your thoughts.
Thanks,
RaviHi,
Step1-Create a table structure which you need to create same as the fields you require in you data source.
Step 2-create a custom abap program and inside that call the Client abap program with the selections as required and save the result data in some table
Step 3-create infoset query.In the infoset query give your table structure name and program name which you developed.
Step4-create data source on top of that query -
How to create a Sales order with ref to Contract using Function Module
How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?
We have a unique situation where we like change the sold-to customer of the sales order
once order has been created. These orders have been created using either by function module
BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
These two processes work abosolutely fine except someone might have change the sold-to
customer of the ship-to customer of the original sales order. If this the case then the new
sales order will be created with the old sold-to and with not the new sold-to.
We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
the returned parameteres of the BAPIs and they are all successful but sold-to remains the
same old one.
Any help would be much more appreciated. -
Custom extractors using function modules
Hey all
Does anyone has a document regarding how to <b>Develop Custom extractors using function modules?Step by step method would be great</b>
Also document regarding <b>CTS in BW?</b>
Appreciate it
ThanksHi,
See here:
Generic Extractors
Generic data sources
Generic DS
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Best regards,
Eugene -
How to create Billing Plan in sales order using Function module /BAPI
hi,
How to create Billing Plan in sales order using Function module /BAPI
i hv check few FM such
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_GET_NUMBER
BILLING_SCHEDULE_SAVE
But unable to create billing plan for a sales order.....any other method to create???Hi,
Use this link.
Create sales order with billing plan via LSMW and BAPI BUS2032
BAPI or Function to update Billing Plan in Sales Order Items
Hope this will help you.
Regards,
Vijay
Maybe you are looking for
-
HP Officejet Pro 8500 Wireless A909g Loses Connectivity
[posted on behalf of another user] Problem with HP Officejet Pro 8500 Wireless A909g New printer will not stay connected to the wireless network. The printer continuously drops the network connection. For 15-20 minutes at a time, it will go off-line,
-
I need some help with a recordset that selects a series of vehicle makes that then show models when a make is selected. The problem is when I select the make it shows a list of models like it should, some of the make lists have five models and some h
-
I modified the default template that ships with Captivate 1. Specifically, the vertical splitter that is on two of the slides is not an image that can be moved to change the width. It would be great to have a place to put templates to share. This wou
-
802.1x - Windows credentials
Hello all, I am working on an 802.1x lab and proof of concept and have 2 problems. Solving either of them will have me good-to go. Just for reference I have: 1) enabled and tested workstation authentication 2)can succesfully authenticate users and wo
-
Attn: Prashant (XSLT Mapping)
Hi Prashant, I am applying xslt mapping in my scenario. The required format is: <BatchReceiptPw <b>xmlns="http://AltInn.no/webservices/"</b> > <enterpriseSystemId>int</enterpriseSystemId> <batchId>string</batchId> <passw