Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SSFC BASE64_DECODE - error attachment

Former Member
0 Likes
1,544

Dear All,

I have issue with attachment error,while i am doing decode using FM SSFC BASE64_DECODE it is just converting into base64 format whether it is converted correct or wrong format.but problem is since attachment is having errors but FM SSFC BASE64_DECODE not able to returns errors.

because of that i am not able find out errors using FM.

can any body face this similar issue and how to find out  attachment errors.

Thanks,

Prathap.

6 REPLIES 6
Read only

Former Member
0 Likes
1,289

I'm not sure that I understand.

First, it most definitely returns errors.  Are you saying that it doesn't return the specific error that you are seeking?

There are 45 notes out there for it.  Have you evaluated them? Nine of them reference attachments. 

Athought that might help you.  If you can identify that the error has occured in debug, then you could have an end implicit enhancement raise an error. 

Neal

Read only

0 Likes
1,289

Hi Neal,

Thanks for update..

i am facing issue:

i am receiving xml file from legacy then coming into sap through application server.

my program is taking only attachment code then converting into decode base64 then attaching into invoice.

while decode base64 if there is any corrupt the file from application or from legacy.

i need catch error while converting into decode base64.

thanks,

prathap.

Read only

0 Likes
1,289

Maybe what you want to do then is to try catch the return of the FM.

Neal

Read only

0 Likes
1,289

Hi Neal,

yes ,i would like to catch errors from the FM or else after process FM also can add any useful function module to validate whether it is generated PDF,JPEG or TIFF etc. correct or wrong.

Thanks & regards,

Prathap.

Read only

0 Likes
1,289

So, something like

try

call FM

catch

If you already have this in your code, could you show us a snippet so we can see what might be going wrong.

Neal

Read only

0 Likes
1,289

Above figure contains XML file ,how data coming from outside then FM is taking attachment code converting to base64 decode but here if the file is corrupt then it is not giving any error messages.

Thanks & regards,

Prathap.