on 10-06-2005 3:22 PM
Using BSP, I want to get the actual data posted into internal table.. How can I achieve that?
Perhaps you should add some more details. Do you want to display the contents of an internal table in BSP (<htmlb:tableView element being the most likely approach), or are you actually talking about doing some sort of update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thomas, this is my scenario.. Through http post, somebody is dumping some data into the specified URL.. which invokes my BSP application.. When my BSP application is triggered, I want to be able to retrieve the data posted through http post and update my DB tables or write it to a file
Is this possible in first place? (no form fields defined in my BSP)
Hi,
You can try something like this:
Suppose you are passing two parameters var1, var2 from the url to the BSP page test.htm. In test.htm declare two page attributes var1 and var2 of same type as declared in the passing page. var1 and var2 in the test.htm page should be auto attributes. Now you can get the values of var1 and var2 in Onintialization event handler. Write the ABAP code to populate them to DB table with a row. Now your DB table gets updated. See this code.
row-material = var1.
row-quantity = var2.
modify ZNWR_TAB1 from row.
I hope this solves your problem.
Regards,
Ravikiran.
I have observed that BSP application gets triggered when we post something to the URL through Http post (from outside system , and not when we go to the URL). So I was wondering if there is a way I can capture that data in my BSP application and write it to DB table..
And I have no variables defined in my BSP page..
I am not sure i can retrieve the data from BSP, but I wanted to confirm that before discarding that option ..
Did you see my suggestion:
Maybe you need something like this:
DATA: ffs TYPE tihttpnvp, ff TYPE ihttpnvp.
request->get_form_fields( changing fields = ffs ).
LOOP AT ffs INTO ff.
endloop.
???
I think you can read every value of yours FORM fields with the method I'm suggesting.
Put into your DO_REQUEST and have a look to the table ffs
Or do you need something like this:
DATA: ffs TYPE tihttpnvp, ff TYPE ihttpnvp.
request->get_form_fields( changing fields = ffs ).
LOOP AT ffs INTO ff.
endloop.
Try and debug...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.