Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP

Former Member
0 Likes
617

hi i developed a report that outputs tracking details for the packages sent via UPS..

in the output the report contains fields such as Tracking Number, Tracking Status, Dispatched Time etc..when a user clicks a tracking number a UPS web page shud be opened showing tracking details..can anyone tell how can i do it..the prob here is user is not allowed to enter tracking number again in the UPS site...whatever the number is clicked it shud directly be placed in the UPS url showing the details..is there any FM for this...

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

Hi if you have the URL name then please give the url name in the following Function module.

HR_URL_CALL_BROWSER

BR,

Ravi

4 REPLIES 4
Read only

raja_thangamani
Active Contributor
0 Likes
595

Hi,

Try this code...


data: url type string.

*Lets say your url is http://ups.com. YOu should know what is the tracking number field form of website. Lets say its 'tracking_number'.

Construct your url with Tracking number as follows:


concatenate c_url 'http://ups.com?tracking_number=' v_selecte_tracking number into c_url. 

*Note: your url should look like http://ups.com?tracking_number=20344. Here 20344 would be the tracking number.


call function 'CALL_BROWSER'
    exporting
      url                    = c_url "
      window_name            = ' '
      new_window             = ' '
    exceptions
      frontend_not_supported = 1
      frontend_error         = 2
      prog_not_found         = 3
      no_batch               = 4
      unspecified_error      = 5
      others                 = 6.

Let me know if you have any question..

Raja T

Message was edited by:

Raja T

Read only

Former Member
0 Likes
595

CAN U EXPLAIN ME IN DETAIL

Read only

0 Likes
595

Hi,

Let me explain you in detail..

<b>Step1:</b> YOu should able to capture the 'Tracking Number".

<b>Step2:</b> Once you have the selected tracking number in hand, you need to call the UPS Site & pass this Tracking number. For that follow the below code..

data: url type string.

*Lets say your url is http://ups.com. YOu should know what is the tracking number field form of website. Lets say its 'tracking_number'.

Construct your url with Tracking number as follows:

concatenate c_url 'http://ups.com?tracking_number=' v_selecte_tracking number into c_url.

*Note: your url should look like <b>http://ups.com?tracking_number=20344</b>. Here 20344 would be the tracking number.

call function 'CALL_BROWSER'
    exporting
      url                    = c_url "
      window_name            = ' '
      new_window             = ' '
    exceptions
      frontend_not_supported = 1
      frontend_error         = 2
      prog_not_found         = 3
      no_batch               = 4
      unspecified_error      = 5
      others                 = 6.

Hope this will help you. If you are not clear, let me know where you are not clear.

<b>Note:</b> Reward each helpful answer.

Raja T

Read only

Former Member
0 Likes
596

Hi if you have the URL name then please give the url name in the following Function module.

HR_URL_CALL_BROWSER

BR,

Ravi