Skip to Content
author's profile photo Former Member
Former Member

ASP.Net Web App

Hi Reiner,

I am trying to create a Web App (yes i have moved on from my web service!!..exploring more..) and incorporated my proxy for my BAPI using NCo 2.0.

I am puzzled i have been trying to create a document but required to insert line items. So, I decided to take the web-friendly approach and create a button where i will call the 2nd Web form using the <b><i>Response.Redirect("WFrmCreateItem.aspx")</i></b> command. As you know with SAP table structures, I have declared a <b><i>Dim tblXXXItems As New BAPIXXXTable</i></b> in globally in my first form. I know want to pass this table into the 2nd form for me to add items to the BAPIXXXTable which is required when i call the BAPI.

What is the best approach in designing a Header-Item WebApp?

Thanks in advance...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 22, 2004 at 08:29 AM

    As ASP.NET is normally stateless, you need a place to store objects that survive round-trips. Typical way is to store the table in session state:

    Sessione.Item("MyTable") = tblXXXItems;

    ... and on the othe page:

    Dim tblXXXItems As BAPIXXXTable

    tblXXXItems = CType(Sessione.Item("MyTable"), BAPIXXXTable)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.