cancel
Showing results for 
Search instead for 
Did you mean: 

Calling WebDynpro input screen from within an abap Function module / user

Former Member
0 Kudos

Hi,

I am posting SAP data with a BAPI from an Web Dynpro Application.

In the Bapi I must use an BADI/User -EXIT to add some infornation.

Today this is done by calling an Dynpro in a function module. This creates a pop up, data is filled and posted on commit.

How can I get a Web Dynpro application to display this popup without showing the "call screen without connection " error ?

Thanks for any help.

Marcus

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Here is an unofficial way to get current WD component.

(WDR_TASK class is not for customer)

DATA lo_wdr_component TYPE REF TO cl_wdr_component.

lo_wdr_component = wdr_task=>application->component.

then.. attach component usage and popup your WD screen

BUT IT'S NOT OFFICIAL!!

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Here is an unofficial way to get current WD component.

> (WDR_TASK class is not for customer)

>

> DATA lo_wdr_component TYPE REF TO cl_wdr_component.

> lo_wdr_component = wdr_task=>application->component.

>

>

> then.. attach component usage and popup your WD screen

>

> BUT IT'S NOT OFFICIAL!!

This approach is absolutely NOT supported nor recommended by SAP.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't. BAPIs (and all inner implementation including BADIs) must run dark (without User Interface). This is espeically true when called from Web Dynpro, BSP or within a Web Service.