cancel
Showing results for 
Search instead for 
Did you mean: 

CRM BP Job Group

Former Member
0 Kudos

HI Friends,

I have a req in which i need to create BP from a flat file. in this I need to assign them Job Group ( BUT000-JOBGR).

do you know which FM to use for assigning this attribute since BAPI_BUPA_CREATE_FROM_DATA doesnt have this field.

Thanks in advance.

-

Dave

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved.

Just need to pass the LS_BP_DATA_X Parameter.

-

Dave

robert_kunstelj
Active Contributor
0 Kudos

This field is available in function 'BAPI_BUPA_CREATE_FROM_DATA' under EXPORTING parameter CENTRALDATAPERSON. You must fill it in OCCUPATION field.

I have also one question for you. Were you able to maintain international address with one of the functons. I'm able to fill standard address but I didn't find fm for maintaining internation addresses.

Former Member
0 Kudos

Hi Robert,

Thanks for the quick reply...

I am not sure about International address, but I am able to store multiple address for one BP by using FM BAPI_BUPA_ADDRESS_ADD.

Hope it might help you.

-

Dave

robert_kunstelj
Active Contributor
0 Kudos

I know for this fm, but it doesn't have the correct parameters. Strangely fm BAPI_BUPA_ADDRESS_CHANGE has it, but it is for changing. Well, I have I way around, but would like to do it differently.

Did you solve the problem with Job Group?

Former Member
0 Kudos

Still not able to save... no error also.

is there any other means to save it?

robert_kunstelj
Active Contributor
0 Kudos

Did you put the correct values in it (cipher and not text). And also this can be used only for partners of type person and not for organizations.

Former Member
0 Kudos

this field has a check table TB028. i put one value which was avilable in TB028 table.

What do you mean by cipher not text ?

robert_kunstelj
Active Contributor
0 Kudos

Value of field jobgr of table tb028 and not the value of bez30. Also again check the commit statment.

Former Member
0 Kudos

I have written a very simple piece of code for this:



Data: bp_number type but000-partner value '101',  " Test BP Number
      occupation type BU_JOBGR VALUE 'VP', " This is the value from the table TB028
      LS_BP_CENTRAL TYPE BAPIBUS1006_CENTRAL,
      LT_RETURN TYPE TABLE OF BAPIRET2,
      ls_return type bapiret2,
      Ls_BP_DATA TYPE  BAPIBUS1006_CENTRAL_PERSON.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
  INPUT         = bp_number
IMPORTING
  OUTPUT        = bp_number .

CALL FUNCTION 'BAPI_BUPA_EXISTENCE_CHECK'
EXPORTING
  BUSINESSPARTNER       = bp_number
TABLES
  RETURN                = LT_RETURN
  .

CALL FUNCTION 'BAPI_BUPA_CENTRAL_GETDETAIL'
EXPORTING
  BUSINESSPARTNER         = bp_number
IMPORTING
  CENTRALDATA             = LS_BP_CENTRAL
  CENTRALDATAPERSON       = LS_BP_DATA
TABLES
   RETURN                   = LT_RETURN    .

ls_bp_data-OCCUPATION     = occupation.

CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
EXPORTING
  BUSINESSPARTNER                     = bp_number
  CENTRALDATA                         = LS_BP_CENTRAL
  CENTRALDATAPERSON                   = LS_BP_DATA
TABLES
  RETURN                              = LT_RETURN
  .

LOOP AT lt_return TRANSPORTING NO FIELDS WHERE TYPE = 'E'
OR    TYPE = 'A' .
  EXIT.
ENDLOOP.
IF NOT sy-subrc eq 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT          = 'X'
      IMPORTING
         RETURN        = Ls_RETURN
  .

ENDIF.

In this whole code i am not getting any error in the Lt_return OR ls_return, but the value is not getting updated.

I checked that BAPI_TRANSACTION_COMMIT is getting executed just to be sure.

-

Dave