Application Development 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: 

Issue with FM BAPI_BUPA_FRG0010_ADD

Former Member
0 Kudos

Hi Experts,

I want to add sales area data into Business Partner Organization using 'FM BAPI_BUPA_FRG0010_ADD'.

Below is my coding:

* Data definition for BAPI_BUPA_FRG0010_ADD sales area data
  DATA: ls_sales_area                    TYPE bapibus1006_sales_area,

            lv_business_partner_org      TYPE bapibus1006_head-bpartner.


* To Assign Sales Organization, BP and Sales Area
   ls_sales_area-sales_organization   = 'O 50000009'.
   ls_sales_area-distribution_channel = '01'.

   lv_business_partner_org = '7700000043'


   CALL FUNCTION 'BAPI_BUPA_FRG0010_ADD'
     EXPORTING
       businesspartner = lv_business_partner_org
       sales_area        = ls_sales_area
*     data                 =
     TABLES
       return               = return. " end of BAPI_BUPA_FRG0010_ADD

IF sy-subrc EQ 0.
     CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ENDIF.

After i run these coding in runtime, i check back the BP. The sales area does not assign to the business partner.

Anyone know any mistake that I have made in my coding?

Thank you so much.

Regards,

Alexender

1 REPLY 1

Former Member
0 Kudos

Hi Alexander,

Check this link,

http://scn.sap.com/message/5541056#5541056

I know its not the same BAPI, but i think they are doing the same function as you.

I was not able to find this BAPI in my system.