cancel
Showing results for 
Search instead for 
Did you mean: 

facing the error in bapi "BAPI_RE_CN_CREATE"

Former Member
0 Kudos

Hello

      

Trying to upload the contract facing the error

  

Details as follows

bapi name -BAPI_RE_CN_CREATE

  

Error- 1) Object IMJNPT30000000C2/13/4 is not contained in object assignment for the contract

                2) No instance of object type ContractREFX has been created. External reference: REC <NEW>

      

If we change the TERM_OBJECT_REL in bapi

      

TERM_NO CONTRACT_OBJECT_TYPE          IM

CONTRACT_OBJECT_ID            JNPT/30000000/C2/13/4

WHEN WE CHANGE THE OBJECT TYPE IM TO RU

Following error will appeared

    

Error: object type Order confirmation (RU) is not supported


THE SCERRN SHORTS
OF THE BAPI ROCORDING IN DATAILS

 

TERM_OBJECT_REL-

TERM_NO

CONTRACT_OBJECT_TYPE

CONTRACT_OBJECT_ID             RO JNPT/30000000/C2/13/4

Recording

TERM_RENEWAL_RULE                  0 Entries

TERM_NOTICE_OBJ                    0 Entries

TERM_NOTICE_RULE                   0 Entries

TERM_OBJECT_REL                    1 Entry

TERM_ORG_ASSIGNMENT                1 Entry

TERM_PAYMENT                       0 Entries

TERM_RHYTHM                        0 Entries

TERM_ADJUSTMENT                    0 Entries

TERM_SR_REPORTING                  0 Entries

TERM_SR_SALES                      0 Entries

TERM_SR_PEAK_SALES                 0 Entries

TERM_SR_RHYTHM                     0 Entries

ACT_DEPOSIT                        0 Entries

PARTNER                            1 Entry

OPTION_RATE                        0 Entries

OBJECT_REL                         0 Entries

MEAS_CN                            2 Entries

CONDITION                          2 Entries

RESUBM_RULE                        0 Entries

STATUS                             0 Entries

EXTENSION_IN                       0 Entries

RETURN                             0 Entries

TERM_WITHHOLDING_TAX               0 Entries

TERM_WITHHOLDING_TAX_ITEM          0 Entries

COSETTLE_RULE                      0 Entries

TERM_PAYMENT_SPLIT                 0 Entries

Regards

Kaustubh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Amar

Thank you very much for the reply here with i am attaching the document of Bapi recording

There is some problem  to attaching the document I will forward all the screen short to your mail ID

Requesting you to check & revert on the same

Regards

Kaustubh Gadre

amarendar
Contributor
0 Kudos

Hi Kaustubh,

Please check below screen shots of LSMW and compare with your:

Step in LSMW: Maintain Source Structure, the highlighted one related to object assignment and both entry is must.

Maintain Structure Relations - Ensure that you have maintained all of these (reminder and organization assignment is optional)

Earlier I sent two files to be attached to these highlighted nodes in the assign file step. Open those files in excel, update it with your data and use it.

Note: You do not have to change IM to RU, but ensure that for the contract types what you are entering in header text file, below configuration is in place.

Hopefully this will resolve your issue. Else, I will export and give you my LSMW which is up and running .

Regards,

Amar

Former Member
0 Kudos

Dear Amar

I am trying to create contract using the lsmw but  not able to do the same

Requesting you to forward me the your lsmw program.

Thanks in advanced

Regards

kaustubh Gadre

former_member197737
Contributor
0 Kudos

I Kaustubh,

I would also recommend you to create a contract through RECN and afterwards use BAPI_RE_CN_GET_DETAIL in order to get a detail of all structures and values from the contract. That should give you an idea on how to populate BAPI_RE_CN_CREATE.

Best regards!

amarendar
Contributor
0 Kudos

Hi Kaustubh,

Do you really need it? I seriously doubt seeing the delay in your response.

Regards,

Amar

Former Member
0 Kudos

Hello Amare

I have change the recording as per the your guidence but again the same error.

In  TERM_OBJECT_REL i have add in CONTRACT_OBJECT_ID company code/buiness entity/ rentral object number after the excuting this geeting below error

E RETMCA               014 Object  is not contained in object assignment for the contract

E BAPI                 001 No instance of object type ContractREFX has been created. External reference: REC <NEW>

Requesting you to help me or sugest me the correct process

amarendar
Contributor
0 Kudos

Hi Kaustubh,

Please export your LSMW and attach it here as attachment.

Send it to me quickly, by evening it will be resolved .

Regards,

Amar

amarendar
Contributor
0 Kudos

Hi Kaustubh,

What you have to do, you have to specify rental objects for two tabs (Object & Assignment tab).

First you have to put RO in this structure - E1BP_RE_TERM_OBJREL_DAT

Second you have to put RO in this structure - E1BP_RE_OBJECT_REL_DAT

Only when RO is passed for both the structures, you will be able to create a contract.

Attached two files, CN_Obj Assignment for 2nd structure and CN_Robject for first structure.

You may use this file to get your issue resolved. Change the values accordingly.

Regards,

Amar