Skip to Content
Technical Articles
Author's profile photo Batuhan Aydemir

Add Image or Signature from Standard Attachments to Adobe Form in C4C

We have a standard signature process in Sales Order in C4C but customers sometimes need to own signature on custom Adobe Form. We know signatures are kept in the standard attachment table. So, I will show you first “How can we Add Image from Attachment table to Adobe Form ?” then I will show you “How can we add signatures to custom Adobe Form “.

First, we need to create Custom Adobe Form;

  1. Create Custom Business Object

    Creating%20custom%20BO%20with%20Attachment%20node%20and%20fill%20action

    Creating custom BO with Attachment node and Fill action

  2. Create Adobe Form (Print Form)cerate

    We%20need%20to%20create%20Form%20Template%20group%20because%20we%20will%20use%20for%20created%20embeded%20component

    We need to create Form Template group to use while creating embedded component

    Then, select the required fields and if we want to use Attachment node and its contents, we need to select like below.

    Select%20Attachment%20node%20for%20use%20signature%20and%20attachment%20node

    Select Attachment node for use signatures and attachments

    In the end finish the Create Print Form wizard.

  3. Edit Adobe Form
    Adobe Form has many objects in its library. But we use “Subform”, ”Table”,  “Image Field” and “Text Field” in this case.

    1. More than one Image Attachment binding

      Table%20Row%20Data%20Binding%3A%20%24.%5BBOName%5D.Attachment.DocumentList%5B*%5D

      Table Row Data Binding: $.[BOName].Attachment.DocumentList[*]

      We need to change column type to “Image Field” for Images.

      %24.FileContent.BinaryObject

      Field Data Binding: $.FileContent.BinaryObject

    2. Single Image Attachment or Signature Attachment binding

      Field%20Data%20Binding%3A%20%24.%5BBOName%5D.Attachment.DocumentList%5B*%5D.FileContent.BinaryObject

      Field Data Binding: $.[BOName].Attachment.DocumentList[*].FileContent.BinaryObject

  4. Create Embeded Component for preview
    The embedded component is used to add the BO and PDF I we made to the standard. For this, the following steps are followed.

    1. Create Inport & Inport Event Handler

      Created%20AutoFire%20event%20and%20binding%20OnFire

      Created AutoFire event and binding OnFire

      Event%20is%20reading%20own%20BO%20and%20if%20BO%20has%20not%20this%20object%2C%20event%20is%20creating%20this%20object%20for%20us

      Event is reading own BO and if BO has not this object, event is creating this object for us in below
      Condition
      First operation in condition
      Second operation in condition

    2. Outport Process
      1. Add boolen field in datamodel and find template group code

        find%20.fthd%20file%20for%20your%20PDF%20in%20SDK

        find .fthd file for your PDF in SDK

      2. Create outport and bind

      3. Create preview event handler

    3. Create Modal Dialog

      make%20a%20sure%20Lazy%20Load%20is%20false

      Make a sure Lazy Load is false

  5. Data Filling in Action
    1. Basic Attachment(Image) Code
      Below code is copying attachments, from Standard attachment tab(in Service Request) to your custom BO attachment node. This code is working in show basic image process.
    2. Signature Code

      If we want showing signature in Sales Order, code must change. In Standard Process, signatures type codes are “10088” & “10087”, so we cannot copy this type of code. We must change type codes to “10001” and copy to own custom BO.

  6. Result For Signature

In this blog we created new business object and used for creating new adobe form. This adobe form used to image and signatures in standard attachment table. Also I tried to explain to creating form embeded component and some processes. I hope I was able to explain and you are satisfied.

If you have any questions, please ask me in the comments section or my personel account,If you have any further questions feel free to ask about the topic in our SAP Community . I am  waiting your feedbacks or thoughts. Please, share your opinion

Best Regards,

Batuhan Aydemir

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Vijay Sekhar Reddy Munagala
      Vijay Sekhar Reddy Munagala

      Nice blog Batuhan Aydemir.