Sunday 15 October 2017

Configure ABAP webdynpro component into CRM system via Transaction launcher

THINK twice why you want to include an ABAP webdynpro component into CRM UI, as in CRM application it is not recommended to use ABAP webdynpro to develop UI. In some case for example, PDF preview is far more convenient using standard ABAP webdynpro control “Interactive form”. However if you would like to achieve the same via webclient UI, much more development are unavoidable.

1. in SPRO, define a new URL entity:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

you have to fill the respective url of your webdynpro application to be embedded into this url entity.
Below is how to find the url of your webdynpro application:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

just copy the highlighted one to the url configuration below:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

2. Configure transaction launcher,

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

follow the steps defined in wizard:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Specify a handler class. It is not necessary that the handler class must exist before this wizard is launched, the wizard will automatically generate it for you.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

You will need a UI Object Type to finish the wizard. You can either choose to reuse an existing one or create a new one via the customizing node below:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

You can just specify the object type name and save it.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

In the fourth step of the wizard, specify the URL id created in step1. Complete the wizard.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

3. use tcode CRMC_UI_NBLINKS, locate the navigation profile of your business role, say TPM-PRO,  and double click on “Define Logical Links”.
Choose type “Launch Transaction” from drop down list, and for target ID use the fixed one EXECLTX. Choose the launch transaction created in step3 as Parameter, and for parameter class choose the class below. Maintain a meaningful description.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

4. Now you should determine from which entry point in CRM UI could launch your ABAP webdynpro component. For example you would to add a new logical link in business role TPM-PRO, work center Master data as screenshot below:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

You should first identify the technical name of Work center “Master Data”:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Choose business role TPM-PRO, and double click on “Adjust work centers”, and technical name “MD-ALL” is identified.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Next step you should find out the technical name of logical link group where you can embedded your ABAP webdynpro component:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Choose entry for MD-ALL, double click on “Assign Work Center Link Groups To Work Center”:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Then MD-PRD-SR is what we look for.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

5. Define a new logical link:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Assign the logical link ID to the logical link group:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

Go back to “Define Business role”, enable the checkbox “In Menu” and “Visible”:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

After all configuration is done, once click the logical link, you can see the ABAP webdynpro in the CRM UI:

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

The area marked with blank rectangle is the ABAP webdynpro UI.

ABAP Development, SAP NetWeaver Application Server for ABAP, UI Web Dynpro ABAP

No comments:

Post a Comment