cancel
Showing results for 
Search instead for 
Did you mean: 

Application reading parameter from URL

Former Member
0 Kudos

Hi Gurus,

I am trying to create an application using service call to a Function module(FM).

I am creating a view that displays a table which gets its data from the FM.

The application reads a parameter from URL and then passes this to the FM as input. The function module outputs the data table by querying various SAP tables.

But the problem is when i am displaying the data in the table of view its only displaying certain rows that i retrieve and not all the rows.

But when i test the function module individually its giving me all the rows.

Where am i going wrong? Can anyone please help me on this?

Thanks,

Das

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Also i tried the same application by giving the input from the view instead of from URL parameter, to the FM. And when i click on a search button in the view and execute the FM method and display the data in table iam able to get all the rows.

But this is not so when i'm trying to do the appln via passing parameters from URL.

Please help.

Thanks,

Das

mathias_lange3
Explorer
0 Kudos

Have you tried setting a breakpoint in your application? One at the point where you receive the value from the URL and one where you get the parameter when clicking in the search button. Differs the parameter? Perhaps one is lowercase, the other uppercase?

Is the type of the parameter in your application the same you use in your FM? Perhaps there are problems when converting the parameter?

Please post some more information or some code!

Greeting,

Mathias

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

clearly the issue is your URL is not read properly.

How you are reading your URL Parameter.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Here</a> is a link to a blog don't try to read the entire blog just read the lines How the URL parameter is retrieved.

Regards

Abhimanyu L

Former Member
0 Kudos

Thank you. Yes, it is the problem with the way URL was read. Solved my problem.

Thanks,

Das