cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Export Declaration Message type status red with error 'Action could not be successfully executed'

former_member710962
Discoverer
0 Likes
675

Hi All,

We have a scenario where we create csv excel sheet with export declaration data and send it to courier company who is responsible for filing declaration, instead of standard idoc using M1600 for GB.

We have configured Z1600 that is copy of M1600, but we are calling customs BAPI. In the BAPI we have code to extract Export Declaration data from GTS system in CSV format. Our code is working fine and the intended data is getting mailed. But our Activity Message Z1600 is read in status with processing logs 'Action could not be successfully executed' while saving the Export Declaration.

Please suggest on this.

Accepted Solutions (1)

Accepted Solutions (1)

former_member215181
Active Contributor

Hi Mayur,

If your code really is running ok and producing the intended results, the most likely reason for the error is that your code is not setting the return value for the call.

I expect your code is being called from a custom Filter Value in the standard Method Call in Class CL_METHODCALL_PPF. Prior to the "execute" call, the return value rp_status is set to '2' (error). If everything runs ok, your code should set that variable to '1' - and in that case you will get the usual "green" light.

Let us know if that helps, or if you still have problems.

Regards,
Dave

former_member710962
Discoverer
0 Likes

Hi Dave,

Many thanks. It worked. As usual, you are genius.

Answers (0)