cancel
Showing results for 
Search instead for 
Did you mean: 

how to read the ulr parametes posted by using post method in PHP/Java system at our webdynpro application URL.

Former Member
0 Kudos

Hi All,

i am new to webdynpro.

As per my scenario i need to receive and read parameters posted at my webdynpro application URL. They are using PHP/JAVA plot form post parameters at my end (webdynpro abap application URL).

and also i need to add a check box colum in my normal table and should be able to select records and read read them.

kindly let me know how to acheive it.

Thanks in advance..

Please help me guys.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member222068
Active Participant
0 Kudos

Hi JVR,

Parameters passed to URL can be read in the HANDLEDEFAULT( ) of a called window.

eg:  Interface view : defines name of the window, which will be called. when application is triggered.

Go to the window eg: W_MAIN --> HANDLEDEFAULT( ).

Define the parameter name that in the window, as defined below

Note: Name of the parameters should be same, with the parameters that are passed in the URL.

Thanks & Regards,

Sankar Gelivi

Former Member
0 Kudos

Hi Sankar,

Firstly thank you for your reply and here is my scenario:

We need to call a website from our webdynpro application using a post method. and aslo need to receive and read the parameters sent from their website at our webdynpro appl url.

Here are the steps i am following:

Step1: Decide list of parameters want to send and concatenate them in one STRING (message).


Step2: Sending STRING (message) by using URL parameters.

Sample Code snippet to post parameters at URL of called website:
DATA: lo_client TYPE REF TO if_http_client,                              
      lv_url TYPE string VALUE 'http:www.xxxxx.com'.
                                                                         
CALL METHOD cl_http_client=>create_internal                              
  IMPORTING                                                              
    client = lo_client.                                                  
                                                                         
cl_http_utility=>set_request_uri( request  = lo_client->request          
                                  uri      = lv_url ).                   
lo_client->request->set_header_field( name  = '~request_method'          
                                      value = 'POST' ). 

                
lo_client->request->set_form_field( EXPORTING name  = 'myfield'          
                                              value = 'myvalue' ).       
lo_client->send( ).              

Step3: Receiving parameters: Need to Read the URL and its parameters (STRING ) send by website party.