cancel
Showing results for 
Search instead for 
Did you mean: 

Print ERP Billing and Delivery documents from WUI CRM

Former Member
0 Kudos

Hello All,

Can you help me?

I need to print ERP Billing and Delivery documents from WUI CRM order.

How i can do it?

Many Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

juergenbaur
Active Participant
0 Kudos

Hi,

normaly you would do it this way:

   * ------- Activate the Action --------------
      IF NOT lr_action IS BOUND.
        lr_action = lr_header->get_related_entity( iv_relation_name = 'BTHeaderAction' ).
        CHECK lr_action IS BOUND.
        CALL METHOD lr_action->execute
          EXPORTING
            iv_method_name = cl_crm_aciil=>me_determine
            it_param       = lt_method_param
          RECEIVING
            rv_result      = lr_result.
        lr_col = lr_action->get_related_entities( iv_relation_name = cl_crm_aciil=>aci_inactive_action_rel ).

*get interator for the right one.

*get the action

        lr_action->get_property_as_value(
            EXPORTING
              iv_attr_name = 'GUID'                         "#EC NOTEXT
            IMPORTING
              ev_result = l_guid ).
*get url for action
      cl_crm_pdf_print=>get_url_by_action_id(
        EXPORTING
          iv_guid = l_guid
        IMPORTING
          ev_url  = l_url ).

* show url in popup window.

In your case I would have a look at the standard component that is able to view ERP Orders

😉

If you find it out - let us know!

br

Jürgen