cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP How to open shopping cart window with known sc number?

sergey_tuzov
Explorer
0 Kudos

Dear experts,

I have task to open window with shopping cart detail information for known sc number.

How to to this in ABAP?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184111
Active Contributor
0 Kudos

Hi,

Which version are you on? From where , which page do you want to open the new window?

Please explain in more detail

You can use the FM BBP_PD_SC_GETDETAIL to fetch the SC details, but displaying it in a new window depends on where and how you want to do that..

Regards,

Anubhav

sergey_tuzov
Explorer
0 Kudos

SRM 7.0

I have single Webdynpro Z application with shopping cart number list in table.

The behavior should be following - after clicking on each sc number a new window with sc detail information should be opened.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please check the standard program in SRM70.

SC is opened in new window from POWL.

Regards,

Masa

sergey_tuzov
Explorer
0 Kudos

At first I have created the new link to the shopping cart detail

in transaction ldp_cust.

Then I call link in ABAP:

lo_COMPONENTCONTROLLER = wd_this->get_componentcontroller_ctr( ).

lo_navigate_to = lo_COMPONENTCONTROLLER->mo_fpm->get_navigate_to( ).

ls_navigate_key-key1 = 'SAPSRM'.

ls_navigate_key-key2 = 'NAVIGATION'.

lo_navigate = lo_COMPONENTCONTROLLER->mo_fpm->get_navigation( ls_navigate_key ).

ls_parameter-key = /sapsrm/if_url_service_c=>gc_url_param-botype.

ls_parameter-value = /sapsrm/if_pdo_obj_types_c=>GC_PDO_SHOP.

insert ls_parameter into table lt_parameters.

ls_parameter-key = /sapsrm/if_url_service_c=>gc_url_param-mode.

ls_parameter-value = /sapsrm/if_pdo_constants_gen_c=>gc_mode_display.

insert ls_parameter into table lt_parameters.

ls_parameter-key = /sapsrm/if_url_service_c=>gc_url_param-boid.

ls_parameter-value = IV_DOC_ID.

insert ls_parameter into table lt_parameters.

lv_target_key = lo_navigate->get_key_from_alias( 'SAP_SRM/SC/DISPLAYPROF' ).

lo_navigate->navigate(

iv_target_key = lv_target_key

it_business_parameters = lt_parameters

).