Application Development 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: 

QR code via ABAP

SimoneMilesi
Active Contributor
0 Kudos

Hi all!

i'm trying to generate a QR code via ABAP, following the tutorials i found here.

i got an error when calling method CALL METHOD i_igs_image_converter->execute

when, insiede ith, the  function PIGFARMDATA via RFC return the error

IGS error: ProcessRequest (RFC_INVALID_PARAMETER)

Any suggestion on how to fix it?



BR

1 ACCEPTED SOLUTION

SimoneMilesi
Active Contributor

solved issue

The system admins missed a couple of steps in setting up everything

3 REPLIES 3

Former Member
0 Kudos

Hi Simone,

Try like this

CREATE OBJECT i_igs_image_converter .


  i_igs_image_converter->input = 'image/png'.

  i_igs_image_converter->output = 'image/bmp'.

  i_igs_image_converter->width = width.

  i_igs_image_converter->height = height.


  CALL METHOD i_igs_image_converter->set_image

    EXPORTING

      blob      = mime

      blob_size = l_content_length.



  CALL METHOD i_igs_image_converter->execute

    EXCEPTIONS

      communication_error = 1

      internal_error      = 2

      external_error      = 3

      OTHERS              = 4.


  IF sy-subrc = 0.


    CALL METHOD i_igs_image_converter->get_image

      IMPORTING

        blob      = blob

        blob_size = blob_size

        blob_type = blob_type.


  ENDIF.

Please refer this DOC.I think it will give you some idea on it.

http://scn.sap.com/docs/DOC-47644

Regards,

Riju Thomas.

0 Kudos

Hi,

i used that code but the error, as i stated in my first post, is INSIDE the method

i_igs_image_converter->execute, exactly when the method call function PIGFARMDATA

SimoneMilesi
Active Contributor

solved issue

The system admins missed a couple of steps in setting up everything