cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Pop-up required to select Ship-To

Former Member
0 Kudos

Hi All,

I am a novice in Web Dynpro & need your help in below issue.

There is this standard Web dynpro component CUST_COCKPIT_COMP.

It has view CUST_COCKPIT_VIEW.

It has an inbound plug CUST_COCK_IN1 which triggers event handler HANDLECUST_COCK_IN1.

This inturn calls method   wd_This->Set_All_Data( ). This method inturn calls method wd_This->Fire_Powl( ).

Inside this method several selection parameters values are added to a kind of range table lt_selpara_cfs.

Once this table is completely populated FM POWL_ENCODE_SELPARA is called.

Just before this FM is called, I wish to achieve the following:

1. Using the Customer number & Sales area details which are available fetch the possible Ship-To values

2. Display all the Ship-To values in a pop-up & ask the user to select the required Ship-To

3, Once selected, that Ship-To value will be returned back & added to the table lt_selpara_cfs & passed to the FM POWL_ENCODE_SELPARA.

As per my understanding standard SAP web dynpro can be enhanced by following the steps in this link http://wiki.scn.sap.com/wiki/display/WDABAP/Enhancing+the+WebDynpro+Component+and+Methods

1. I am not sure how to create the pop-up & call it. Is it possible to create it dynamically using coding or I need to create custom Web Dynpro application?

2  Also, can I put in the logic to get the Ship-to values at this position itself? As I know Web dynpro has concept of Assistance classes. Can it be done for this Web dynpro & if yes, should it be done?

3. Is there a standard pop-up available which will show all the Ship-to values when Customer number & Sales Area is passed?

Please guide. I have not worked on Web Dynpro earlier & I am only aware of high level concepts.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183069
Active Participant
0 Kudos

Hi Sanket,

You can enhance the current component itself.

1. You have to overwrite the method where FM POWL_ENCODE_SELPARA  as in the link you given.


2. It is possible to rise the popup with values as you have mentioned, you have to create a view and window and call that window in popup using the wizard option.


Regards,

KK

Former Member
0 Kudos

Hi KK,

Thanks for the update.

I have started creating a custom web dynpro.

But I do not know how the whole design would be in this case.

Could you please provide detailed steps that i need to follow or provide a link for the same.

I am not able to figure out how will I

1. Pass the data to the View in the custom WD from the enhancement

2. Create the display that will show the output - can I use table control?

3. Get the selected Ship-To from the display. User should only be able to select a single Ship-To

4. Pass the selected Ship-To back to my method in the enhancement

Regards,

Sanket Shah