Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CRM :: Automating BUI1 (business partner) process using BAPI

Former Member
0 Likes
1,209

Dear forum,

I am tasked to automate creation of business partners. This was used be done using the transaction BUI1 and I first decided to use BDC. Unfortunately, BDC seems really problematic and difficult with this system.

I saw BAPI_BUPA_CREATE_FROM_DATA and thought that it would be useful. I already started programming today and found out that it only populates the first tab of BUI1.

Am I wrong or should I look into other BAPIs as well? What can you suggest? I also need to populate the Control, Long Texts, and Customer Data tabs of transaction BUI1. I already tried to search the net and this website but haven't found any solution.

Any solutions that would point me to the right direction will be appreciated.

Thanks!

Kyle

Dear forum,

I am tasked to automate creation of business partners. This was used be done using the transaction BUI1 and I first decided to use BDC. Unfortunately, BDC seems really problematic and difficult with this system.

I saw BAPI_BUPA_CREATE_FROM_DATA and thought that it would be useful. I already started programming today and found out that it only populates the first tab of BUI1.

Am I wrong or should I look into other BAPIs as well? What can you suggest? I also need to populate the Control, Long Texts, and Customer Data tabs of transaction BUI1. I already tried to search the net and this website but haven't found any solution.

Any solutions that would point me to the right direction will be appreciated.

Thanks!

Kyle

10 REPLIES 10
Read only

Former Member
0 Likes
1,140

Any answers?

Read only

Former Member
0 Likes
1,140

(Just a side note: I was not trained at CRM)

After a bunch of reading and trying several solutions posted here, I found out that fields from the two tabs in bui1 in our system were created using EEWB (tried EEWB when I saw [;).

I will try BUPA_CENTRAL_CI_CHANGE (as stated in that page) when I get back to the office.

As of now, I'm wondering how I can fill the Long Texts in transaction BUI1.

Any advises?

Thanks a lot!

--

Kyle

Read only

0 Likes
1,140

Hi Kyle,

You Can use the LSMW tool for your requirment.

The LSMW Method details are attached as follows:

Business Object :- BUSISB990

Method :- FSCREATEFROMDATA2

Message Type : - BUPAFS_FS_CREATE_FRM_DATA2

Basic Type :- BUPAFS_FS_CREATE_FRM_DATA201

Regards,

Dhirendra

Read only

0 Likes
1,140

The Function module mentioned to change the EEWB fields is the one to use. It works just fine for us.

In general, most of the function modules needed to create/change a business partner can be found when searching for function groups with pattern: BUBA* in SE80.

For updating the long text...that one is also already mentioned in previous reply. You should be ok with all the info provided.

To find out which info you need for updating / creating a text can be found by double clicking in the text editor (only in change mode). You will be forward navigated to the 'sap script' editor. Via the menu Go To->Header.

Read only

0 Likes
1,140

How do I access the custom fields created by EEWB?

Here is a screenshot of our system's BUI1 transaction: [http://i38.tinypic.com/nbspww.gif]

As you can see in the image, that is a custom tab (Customer Data) and I looked at the EEWB entry for this particular tab and I see this: [http://i38.tinypic.com/zkpx7n.gif]

Upon looking at FM BUPA_CENTRAL_CI_CHANGE, I can only see two tables for import: [http://i37.tinypic.com/jq46zk.gif]

When I looked at the structure BUS000_EEW, I can see only these fields: [http://i33.tinypic.com/2nbvbex.gif]. The BUS000_EEW_X structure looks similar.

I tried calling BUPA_CENTRAL_CI_CHANGE and putting recognizable text in the fields so I would know where they are put... But I cannot see them in BUI1.

How can I put values in these custom fields in BUI1?

Please help. Thanks!

--

Kyle

Edited by: Kyle Domingo on Oct 2, 2009 8:51 AM

Read only

Former Member
0 Likes
1,140

Hi,

To populate Long Text tab of bp, call function module Save_Text with following parameters:

DATA: ls_tdhead TYPE thead.

CLEAR ls_tdhead.

ls_tdhead-tdobject = 'BUT000'. "Text Object namd for BP

ls_tdhead-tdname = <Partner Number u got from Bapi_create_from_data>

ls_tdhead-tdid = '0001'.

ls_tdhead-tdspras = 'E'.

****Populate gt_lines with the actual Text

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

client = sy-mandt

header = ls_tdhead

insert = 'X'

savemode_direct = 'X'

TABLES

lines = gt_lines

EXCEPTIONS

id = 1

language = 2

name = 3

object = 4

OTHERS = 5.

No need to call commit exiplicitly.

Thanks,

Vinny

Read only

Former Member
0 Likes
1,140

just pushing this thread up

Read only

Former Member
0 Likes
1,140

Can somebody please guide me through EEWB and BUPA_CENTRAL_CI_CHANGE?

Thank you.

Read only

Former Member
0 Likes
1,140

up

Read only

Former Member
0 Likes
1,140

How do I access the custom fields created by EEWB?

Here is a screenshot of our system's BUI1 transaction: http://i38.tinypic.com/nbspww.gif

As you can see in the image, that is a custom tab (Customer Data) and I looked at the EEWB entry for this particular tab and I see this: http://i38.tinypic.com/zkpx7n.gif

Upon looking at FM BUPA_CENTRAL_CI_CHANGE, I can only see two tables for import: http://i37.tinypic.com/jq46zk.gif

When I looked at the structure BUS000_EEW, I can see only these fields: http://i33.tinypic.com/2nbvbex.gif. The BUS000_EEW_X structure looks similar.

I tried calling BUPA_CENTRAL_CI_CHANGE and putting recognizable text in the fields so I would know where they are put... But I cannot see them in BUI1.

How can I put values in these custom fields in BUI1?

Please help. Thanks!

--

Kyle