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: 

PARTNERCHA object

Former Member
0 Kudos
303

Hi,

I'm trying to use the PARTNERCHA object to update the contact information of customers. Basically, i have around 0,5 million consumer contact details with the legacy key to update it in the SAP IS-U. I have added the following structures: INIT, BUT000, BUT020 in the EMIGALL. The BUT000 was causing error but as per migration workbench guide i added the NO_DATA_INITIALIZE function in pre-processing 7.4.4 to correct it.

I have also modified the CHIND_SMTP with fixed value M.

Now when i execute the import run, the system cancels the job with the below message.

Any help will be appreciated. Thanks in advance.

Waqas

Runtime Error Message:

Error analysis

    Short text of error message:

    Record MUST001     not found in table KNA1

    Long text of error message:

     Diagnosis

         You have attempted to read the record with the corresponding

         from the table.

     System Response

         This record does not exist.

         The system can not perform the function.

     Procedure

         Maintain or create the specified entry (key value) before yo

         continue.

    Technical information about the message:

    Message class....... "E9"

    Number.............. 033

    Variable 1.......... "KNA1"

    Variable 2.......... "MUST001"

    Variable 3.......... " "

    Variable 4.......... " "

Information on where terminated

    Termination occurred in the ABAP prog

     "ISU_M_PARTNER_CREATE_DARK".

    The main program was "RE3TR_KESC_PAC

    In the source code you have the termi

    of the (Include) program "LEMIG_BUSIN

    The program "SAPLEMIG_BUSINESS_MASTER

    Job Name....... "RE3TR_KESC_PAC_BTC"

    Job Initiator.. "WSAFDAR"

    Job Number..... 18501100

Source Code Extract

Line  SourceCde

   29     EXPORTING

   30       x_aktyp = x_aktyp

   31       x_auto  = x_auto

   32     TABLES

   33       t_data  = t_data.

   34

   35 * append DI data provided externally

   36   APPEND LINES OF x_auto-t_data TO t_data.

   37

   38 * create/change partner

   39   CALL FUNCTION 'BUS_CONTROL_MAIN_DI'

   40     EXPORTING

   41       i_objap    = 'BUPA'

   42       i_nodata   = x_nodata

   43       i_xcommit  = space         "no internal commits

   44       i_xchdoc   = x_change_docs

   45       i_xtest    = x_testrun

   46     IMPORTING

   47       e_xerror   = e_xerror

   48     TABLES

   49       t_data     = t_data

   50       t_message  = it_message

   51       t_keyvalue = it_keyval.

   52

   53 * error/new key handling

   54   IF NOT e_xerror IS INITIAL.

   55 *   in case of error: return message

   56     LOOP AT it_message INTO i_message.

   57       CHECK i_message-msgty EQ 'E'

   58          OR i_message-msgty EQ 'A'.

>>>>>       mac_msg_putx i_message-msgty i_message-txtnr i_message-arbgb

   60                    i_message-msgv1 i_message-msgv2 i_message-msgv3

   61                    i_message-msgv4 space.

   62       EXIT.                            " ?? more than one message ??

   63     ENDLOOP.

   64     RAISE input_error.

   65   ELSE.

   66

   67 *   check if really changes have been done if a change was requested

   68     IF x_aktyp EQ '04'.   " change mode

1 ACCEPTED SOLUTION

Former Member
151

Thanks for the response Amlan.

Basically i was missing to add sequence in the BUT020 and that was causing the trouble.

(TEL_CONSNR, SMTP_CONSNR)

Now its working fine.

Thanks,

Waqas

View solution in original post

2 REPLIES 2

AmlanBanerjee
Active Contributor
0 Kudos
151

Hi,

The error that you are getting is because the export paramater E_XERROR of the FM      BUS_CONTROL_MAIN_DI is carrying a value and the variable i_message-msgty is having either a value 'E' or 'A'.

From the error analysis that you have provided, it seems that the record MUST001 does not exists in the table KNA1. So, make sure that the records for which you are updating the contact info exists in customer master tables.

However, if the record exixts in the database table and still the problem persists, I would suggest you to debug the FM BUS_CONTROL_MAIN_DI to find out the root cause.

Hope it helps..

Thanks,

Amlan

Former Member
152

Thanks for the response Amlan.

Basically i was missing to add sequence in the BUT020 and that was causing the trouble.

(TEL_CONSNR, SMTP_CONSNR)

Now its working fine.

Thanks,

Waqas