SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while executing bapi "BAPI_ISUPARTNER_CREATEFROMDATA".

Former Member
0 Kudos
464

Hi experts

i am trying to create new business partner through bapi "BAPI_ISUPARTNER_CREATEFROMDATA".

is this bapi is right one for creating new BP in SAP-ISU?

if yes then i am geeting this error while executing the bapi "Enter an address for contract partner".

i am providing this inputs to bapi

1. TYPE___

2. BPkind

3.bpext

4.last_name

5.title.

can anybody give me the soloutions....its urgent

Thanks in adavance

kunaal

8 REPLIES 8

Former Member
0 Kudos
183

Hi experts

any updates on this thread????

Kunaal

Former Member
0 Kudos
183

DATA:

gs_centraldata TYPE bapibus1006_central,

gs_centraldataorganization TYPE bapibus1006_central_organ,

gs_addressdata TYPE bapibus1006_address.

it_return TYPE TABLE OF bapiret2.

lv_customer TYPE bu_partner.

MOVE:

'Siva B Kumar' TO gs_centraldataorganization-name1,

'XYZ' TO gs_centraldataorganization-name2,

'X' TO gs_addressdata-standardaddress,

'3000' TO gs_addressdata-postl_cod1,

'Melbourne' TO gs_addressdata-city,

'Street' TO gs_addressdata-street,

'246' TO gs_addressdata-house_no,

'GB' TO gs_addressdata-country,

'VIC' TO gs_addressdata-region,

'EN' TO gs_addressdata-langu.

CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'

EXPORTING

partnercategory = '2'

partnergroup = '0001'

centraldata = gs_centraldata

centraldataorganization = gs_centraldataorganization

addressdata = gs_addressdata

IMPORTING

businesspartner = lv_customer

TABLES

return = it_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

REFRESH it_return.

CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2'

EXPORTING

businesspartner = lv_customer

businesspartnerrole = 'CRM000'

TABLES

return = it_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

WRITE:/ lv_customer.

Reward Points if it helps

Regards,

Shiva

0 Kudos
183

hi shiva

we are using the BAPI, BAPI_ISUPARTNER_CREATEFROMDATA.

and we are passing BU_KIND,

TYPE,TITLE,LASTNAME, BP_EXT, it is asking for contract partner address.

but we want to create a BP with role General.

which field i have to set to create a BP with role General? in which table can i find the corresponding roles?

Please Reply

0 Kudos
183

Rite now i am not having sap system.it will take time to get sap system.

Try one thing :

Just keep a break point in this FM BAPI_ISUPARTNER_CREATEFROMDATA.

Create a BP with Fpp1 tcode and press save button, then u will get to know what are the values are passing into this FM in debug mode just pass those values.

Regards,

Shiva

0 Kudos
183

Hi have u got the system....

i need some confirmation regarding bapis

1.which bapi should i use for creating business partner,changes the business partner.

Thanks

Kunaal

0 Kudos
183

Till now i didn't get SAP system.

you can use to create a business partner

BAPI_BUPA_CREATE_FROM_DATA

If u want to add a role to BP use this FM

BAPI_BUPA_ROLE_ADD_2

If u want to add classification data use this FM

BAPI_BUPA_FRG0040_CREATE

Billing and sales area data:

BAPI_BUPA_FRG0030_ADD

Add bank details through

BAPI_BUPA_BANKDETAIL_ADD

if u want to change the bp: Then try like this

go to SE37 write BAPI_BUPA* then u will get it very easily

Rewards Points if it hellps

Regards,

Shiva

0 Kudos
183

hi shiva,

i want to create BP with role contract partner.

i have used below code . this code create bapi but not create address for that particular BP, pls send code.

thanx

Pradeep Sharma

&----


*& Report ZBPBAPI

*&

&----


*&

*&

&----


REPORT ZBPBAPI.

DATA: BPC LIKE BAPIBUS1006_HEAD-PARTN_CAT,

CNTDATA LIKE BAPIBUS1006_CENTRAL OCCURS 0 WITH HEADER LINE,

BP LIKE BAPIBUS1006_HEAD-BPARTNER.

DATA:

gs_centraldata TYPE bapibus1006_central,

gs_centraldataorganization TYPE bapibus1006_central_organ,

gs_addressdata TYPE bapibus1006_address,

it_return TYPE TABLE OF bapiret2,

lv_customer TYPE bu_partner,

GS_PERSON TYPE BAPIBUS1006_CENTRAL_PERSON,

GS_ADD TYPE BAPIBUS1006_ADDRESS.

*GS_CAT TYPE BAPIBUS1006_HEAD-BPARTNER.

move:

'PRADEEP' TO GS_PERSON-FIRSTNAME,

'SHARMA' TO GS_PERSON-LASTNAME,

'EN' TO GS_PERSON-CORRESPONDLANGUAGE,

'EN' TO gs_centraldata-PARTNERLANGUAGE,

'0002' TO gs_centraldata-TITLE_KEY,

'01' TO GS_ADD-EXTADDRESSNUMBER,

'X' TO GS_ADD-standardaddress,

'831001' TO GS_ADD-postl_cod1,

'Melbourne' TO GS_ADD-city,

'Street' TO GS_ADD-street,

'246' TO GS_ADD-house_no,

'in' TO GS_ADD-country,

'07' TO GS_ADD-region,

'EN' TO GS_ADD-langu.

CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'

EXPORTING

  • BUSINESSPARTNEREXTERN = GS_CAT

PARTNERCATEGORY = '1'

  • PARTNERGROUP =

CENTRALDATA = gs_centraldata

CENTRALDATAPERSON = GS_PERSON

  • CENTRALDATAORGANIZATION = gs_centraldataorganization

  • CENTRALDATAGROUP =

  • ADDRESSDATA = gs_addressdata

  • DUPLICATE_MESSAGE_TYPE =

  • ACCEPT_ERROR = ' '

IMPORTING

BUSINESSPARTNER = BP

  • TABLES

  • TELEFONDATA =

  • FAXDATA =

  • TELETEXDATA =

  • TELEXDATA =

  • E_MAILDATA =

  • RMLADDRESSDATA =

  • X400ADDRESSDATA =

  • RFCADDRESSDATA =

  • PRTADDRESSDATA =

  • SSFADDRESSDATA =

  • URIADDRESSDATA =

  • PAGADDRESSDATA =

  • ADDRESSNOTES =

  • COMMUNICATIONNOTES =

  • COMMUNICATIONUSAGE =

  • TELEFONDATANONADDRESS =

  • FAXDATANONADDRESS =

  • TELETEXDATANONADDRESS =

  • TELEXDATANONADDRESS =

  • E_MAILDATANONADDRESS =

  • RMLADDRESSDATANONADDRESS =

  • X400ADDRESSDATANONADDRESS =

  • RFCADDRESSDATANONADDRESS =

  • PRTADDRESSDATANONADDRESS =

  • SSFADDRESSDATANONADDRESS =

  • URIADDRESSDATANONADDRESS =

  • PAGADDRESSDATANONADDRESS =

  • COMMUNICATIONNOTESNONADDRESS =

  • COMMUNICATIONUSAGENONADDRESS =

  • RETURN =

  • ADDRESSDUPLICATES =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

  • IMPORTING

  • RETURN =

.

CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2'

EXPORTING

businesspartner = BP

businesspartnerrole = 'MKK'

TABLES

return = it_return.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

CALL FUNCTION 'BAPI_BUPA_ADDRESS_ADD'

EXPORTING

BUSINESSPARTNER = BP

ADDRESSDATA = GS_ADD

  • DUPLICATE_MESSAGE_TYPE =

  • ACCEPT_ERROR = ' '

  • IMPORTING

  • ADDRESSGUID =

  • TABLES

  • BAPIADTEL =

  • BAPIADFAX =

  • BAPIADTTX =

  • BAPIADTLX =

  • BAPIADSMTP =

  • BAPIADRML =

  • BAPIADX400 =

  • BAPIADRFC =

  • BAPIADPRT =

  • BAPIADSSF =

  • BAPIADURI =

  • BAPIADPAG =

  • BAPIAD_REM =

  • BAPICOMREM =

  • ADDRESSUSAGE =

  • BAPIADUSE =

  • RETURN =

  • ADDRESSDUPLICATES =

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

.

WRITE BP.

Former Member
0 Kudos
183

solved