cancel
Showing results for 
Search instead for 
Did you mean: 

BPC End routine not writing the final result

former_member269454
Participant
0 Kudos

Hi Folks ,

I have question about the end routine . As ir_data and er_data are two paratmeters which holds incoming data memory location and exporting (final) data memory locations , but when I am assigning my final data in field symbol to er_data , it is not writing the the final records in the field symbol .

Error - Package status is abort .

Can anybody help me on this .

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

You have to ensure that the table you are passing to

er_data

has all required columns!

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Kudos

Is it a joke? Do you really want an answer without providing badi code?

former_member269454
Participant
0 Kudos

Thanks for your reply Vadim .

I have got my final data into et_final table. Below code I have written .Et_final is of custom type and <lt_final> is standard table type .

assign et_final to <lt_final>.

get reference of <lt_final> to er_data.

former_member186338
Active Contributor
0 Kudos

Full badi code, please!

former_member269454
Participant
0 Kudos

test.txt Please find the code in the attached file.

former_member186338
Active Contributor
0 Kudos

In debug what do you have in

<lt_data_ex>

at the end?

former_member269454
Participant
0 Kudos

this field symbol has all the calculated final values which are to be stored in the database.

former_member186338
Active Contributor
0 Kudos

Please provide transformation file used to run this badi.

Are you sure that the final table has a correct format?

former_member269454
Participant
0 Kudos

You are right Vadim , your question gave me a answer , the final table which store records to be written were missing one Coloumn values , I populated it by sy-tabix and it worked , it wrote the records after populating that field.

But one thing I observed that it does not generate the cdm file for the conversion file which I created and validated , I had to do some work around for that .Does the location matters for conversion file .

former_member186338
Active Contributor
0 Kudos

"But one thing I observed that it does not generate the cdm file for the conversion file which I created and validated , I had to do some work around for that .Does the location matters for conversion file"

sorry, but you are not answering my question: "Please provide transformation file used to run this badi."

former_member269454
Participant
0 Kudos

Hi Vadim ,

I got the answer for this as well , I was saving my conversion file in the other folder that is the reason why cdm file was no generated.

Thanks for your support

former_member186338
Active Contributor
0 Kudos

OK, I will provide a correct answer, please accept it! 🙂