cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Data from SAP to xMII

Former Member
0 Kudos

Hi All,

SAP is giving pdf content in binary format(BIN) in internal table . How to convert this binary to pdf in MII

Any reply is appreciable

Thanks in advance

Regards

Namita

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try using the Image Saver Action and link the Binary String Value to the EncodedImage property of the action and specify a path as well (ofcourse!).

Former Member
0 Kudos

Hi Udayan,

Thanks for the reply but what actually the problem is , there is BAPI called BAPI_Document_checkoutview2

it does not give any response but on its execution its goes and save a pdf file in the web shared folder .

This BAPI executes fine from se37 in SAP but could not be executed from MII

What is the issue ? Is there some role based or permission issue

Thanks in advance

Regards

Namita

Former Member
0 Kudos

Hi Namita,

Probably you have not checked the Commit check box.Please make sure that this box should be checked.Also check the input variables passed.

If still you have the issue,please insert a Tracer after your JCO and link the Response from the JCO into the Tracer Message to get the full response from the JCO. Now you

can analyse the response.

This may solve your problem.

Thanks,

Manisha

Former Member
0 Kudos

Hi Manisha,

I checked commit and put a tracer too

but O/P tables return null and also it does not go and save pdf file in the web shared folder but it does the same

when executed from SAP itself through se37

Thanks

Namita

Former Member
0 Kudos

Hi Namita,

Are you passing any Ordernumber?

If you are passing the Ordernumber, then please remember that your Ordernumber need to have also the leading 0. The field required 12 digits (example "000060003345").

Thanks,

Manisha

Former Member
0 Kudos

No I am passing material and plant and that too input should not create problem as we have hard coded the values in SAP for the time being

Thanks

Namita

Former Member
0 Kudos

Hi Namita,

Please remember that your Material No need to have also the leading 0. The field required

18 digits (example "0000000000700000633").

Thanks,

Manisha

agentry_src
Active Contributor
0 Kudos

And plant may need to be four digits as well.

Mike

Former Member
0 Kudos

yeah everythig is right in input