Parameters via POST using WebDynpro ?

Hi all,
I need to pass parameters between two web dynpro applications of length bigger than the limit that HTTP GET method allows.
I'm thinking to use HTTP POST method or HTTP Session to share data.
Anybody knows if web dynpro provides a way to handle this?
Thanks in advance,
Diego.

Hello Diego,
From where are you getting startup parameters initialy? Or are they hardcoded?
More information about "transient attributes" https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/IUser.html (methods getTransientAttribute and setTransientAttribute). The main feature of transient attributes is non-persistance. They are not stored.
Best regards, Maksim Rashchynski.

Similar Messages

  • Pass parameters via POST in WDPortalNavigation.navigateAbsolute method

    Hi,
    how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
    Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
    Thanks,
    Yuly Roberman

    What is the procedure to pass parameters via POST using WebDynpro ?
    I am required to pass XML Data via POST.
    I have gone through the following :
    a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
    b) Inter Navigation Application in Web Dynpro
    However, I could not find any reference to do the same via POST.
    Can anyone throw light on the same ?
    Best Regards,
    Subramanian V.

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Long parameters via POST

    Is there any way to pass long text parameters with POST method instead of sending it part of url ..
    Either by using f? format url ..something like this ..
    <form name="input" action="http://ApexServerName:Port/apex/f" method="POST">
    <input type="hidden" name="app" value="118"/>
    <input type="hidden" name="page" value="1"/>
    Long text : <input type="hidden" name="F1_MYLONGTEXT" value="My long text"/>
    Long text2 : <input type="hidden" name="F2_MYLONGTEXT" value="Another long text"/>
    <input type="submit" value="Submit" />
    </form>
    OR by using wwv_flow.accept directly -
    <form name="input" action="http://ApexServerName:Port/apex/wwv_flow.accept" method="POST">
    <input type="hidden" name="p_flow_id" value="118"/>
    <input type="hidden" name="p_flow_step_id" value="1"/>
    <input type="hidden" name="p_request" value="CREATE"/>
    Long text : <input type="hidden" name="F1_MYLONGTEXT" value="My long text"/>
    Long text2 : <input type="hidden" name="F2_MYLONGTEXT" value="Another long text"/>
    <input type="submit" value="Submit" />
    </form>
    (Problem with this approach is that wwv_flow.accept procedure accepts only internal name of the items like p_t01 etc and not item name F1_MYLONGTEXT defined on the page).
    Will any of these work ? Is there anyway to do this ?
    I have a html form with some text area.. when user clicks on submit I want it to send that to an apex page(form).
    Please advise.

    hi,
    You can use that item value directly to other page. Just set the save session state to be checked for that page which pages item you used.
    Thanks,
    Kartik Patel
    http://patelkartik.blogspot.com
    Edited by: Kartik Patel on Jun 21, 2011 12:15 AM

  • Pass URL parameters from BSP to WDA for ABAP (via Post   )

    Dear Gurus,/ Joerge,
    I am unable to post my Code here, but with the guidance provided by Joerge i am able to solve this
    i Have been through the Below thread
    Pass URL parameters from WD to BSP via Post
    Dear Gurus,
    "Since I am unable to Post new thread i am Continuing this thread, though this Issue has been
    " resolved,i need some more info on the following issue, Kindly guide me,
    I have gone through the below thread but left with no clue
    Pass URL parameters from WD to BSP via Post
    Here i have 2 Issues
    First one is --->
    " After pressing the Button I am calling this URL which is WDA for ABAP
          action="http://company/sap/bc/webdynpro/sap/zuser"> " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    Second one is -->
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    " And how to Capture this Value in Webdynpro INIT method
    "Here am using Form and method = post , I am removing this as it is causing some problem while posting
          action= my WDA For ABAP URL here " I am calling WDA for ABAP URL here
    " Kindly guide me how to pass the Value
    " This value need to be passed to the URL above and
    " How to capture the Same in WINDOWINIT method of WDA for ABAP
    Thanks and Regards
    Ramchander Rao.K

    Hi,
    let me see if I understand you well.
    BSP -
    You wrote the code for catching the user name in the event OnCreate, which means that you know who´s working with the BSP application when it starts.
    Somewhere you must have a button or something with text like "Call WDA application". When user presses the button, it triggers events OnInputProcessing. Here you must write the code for the cookie that "sends" the parameter(s), something like:
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_value            = PAGE_DATA
        data_name             = 'PAGE_DATA'
        EXPIRY_TIME_REL       = 3600.
    you call then the URL for the WDA application.
    WDA -
    probably in method WDDOINIT of the component controller you´ll write the code for reading the "content" of the cookie:
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'MY_COOKIE'
        application_name      = 'ZUSER_NAME_GET'
        application_namespace = 'ZUSER_NAME_GET'
        username              =  sy-uname
        session_id            = 'SAME_FOR_ALL'
        data_name             = 'PAGE_DATA'
    CHANGING
        data_value            = PAGE_DATA.
    read more about the cookies in SDN, because I am not sure if this is the correct example for transmiting values. I´ve used it in conjunction of instructions IMPORT and EXPORT for transmiting an internal table.
    if this is not working properly, then try with IMPORT TO MEMORY and EXPORT FROM MEMORY.

  • Passing parameters to servlet via POST

    Hi everyone,
    I'm using OAS 4.0.8.2 and I need to send parameters to a servlet via POST (html form), the form tag must be something like:
    <form action="MyServlet?param1=x&param2=y method="POST">
    but in MyServlet.doPost method the parameters (param1 and param2) are empty.
    Anyone know if this is an OAS bug or a bad configuration of OAS?
    thanks in advance
    null

    Hi,
    I suggest you to use hidden fiels in your form to send param1 and param2 to the servlet.
    Good luck...

  • Is it possible to send data to ITS via POST?

    Hi guys!
    I need to call SAP transaction via thin client and I need to make a call via POST, cos' I need to send there some data to process. Is it possible?
    Thanx, Peter

    Hi Peter,
    First some information about parameter transfer with ITS in general.
    http://server:port/scripts/wgate/<service name>/!?transaction=<transaction_name>&<inputfieldname1>=<value1>&<inputfieldname2>=<value2>&okcode=<okcode>
    The parameters can als be transferred as POST parameters. For this you need a form e.g.
    <form name="<form name>" method="post" action="`wgateURL() ...
    You might get some ideas by studying the login.html in the templast folder system of your ITS instance.
    Thanks and regards,
    Dieter

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there,
    does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
    Kind regards,
    Albert

    Hi Priya,
    can you please explain a little bit more what you mean? I didn't get it..
    Kind regards,
    Albert

  • Posting using cross company code transaction must be blocked

    Hello Guys,
    I have a  problem related to cross company code transaction.
    In the OBA7 I have the document type KE that not allows posting using cross company code transactions. In the moment that I am creating a new document through the FB01, I have an error as "Consolidated companies US52 and ' ' are different
    Message no. F5080. As a results, the document cannot be created by this way. This is the correct process.
    But I have several documents that was used the doc type KE and the cross company code transaction was used. This is my issue. I don´t know why these documents were posted. The document come from another interface via IDOC and the IDOC not errored out.
    Can anyone help on this?
    Thanks
    Rafael B.

    Hello, I´ve checked the log and no changes since 2008.
    The document was created in 2010.
    This is the message: "No logs found for the selected period"
    More suggestions?
    Regards.
    Rafael

  • How to populate COPA fields for GL posting using BAPI_ACC_DOCUMENT_POST

    Hi All,
    I am posting documents in FB50 using BAPI_ACC_DOCUMENT_POST. I have a requirement to post the documents with profitability segment parameters as well. Should I use EXTENSION1 table to pass COPA updates and implement BTE to achieve it? Can anyone please guide me with the procedure to populate the COPA fields for GL posting using BAPI_ACC_DOCUMENT_POST?
    Also please let me know how/where to check if COPA is enabled for a GL account.
    Thanks,
    Subathra

    Moderator Message: This forum is for questions directly related to Web Dynpro ABAP only.  It should not be used for general questions.  I am moving this thread to the ABAP General forum.

  • To enter Trading Partner data for vendor posting using SGL indicator

    Hi,
    I am trying to post a vendor document using f-02, with posting key 29, with a special GL indicator. I need to input the trading partner data. However, I could not find the field under "more data". There was no "further data" selection. I was also not able to enter the trading partner via the path : Extras -> trading partner.
    Please advice how to pull out the field for trading partner for posting using special GL indicatior. I have checked the PK variant screen and the field status group variant ansd could not find the field trading partner.
    Thanks.
    Angel.

    Hi,
    already maintained in vend master data, OBA7, OBC4, OB41 were also maintained.
    But the thing is, the trading partner field did not appear on the posting screen. I was prompted with an message that trading partner is a required field as I have set it as mandatory. And the system ask me to input under "further data". But i cannot find that option. Neither can I find the trading partner field.
    Please assist.
    Angel.

  • Interactive Adobe Forms using WebDynpro ABAP

    Hi,
    I could able to design and execute my interactive adobe form using webdynpro ABAP. Here what i am doing is i am creating context with my structures and table types  and pdfobject of type xstring  and passing the proper inputs in interactive form properties, in template sources i am provinding the interface and form name of my own choice and it is getting created automatically by the system, every thing works fine here and i could able to execute my form from web dynpro application.
    Here my requirement is i have already created structures and table types after that i went to transaction SFP and created an interace and by using that interface i have created form and i have designed the layout. Now what i want to do is i want to integrate this form in my webdynpro appliction and i want to execute it from webdynpro applicaton. When i try to do i am getting short dump, is my approach feasible or not . kindly suggest. If we can achieve this what is the way to achieve.
    Please do send your suggestions.
    Regards,
    Venkat

    Hi
    When u click on button..u will have to get the data from node which is existing on the Intereactive form and pass it to other view via writing logic in button event handler.
    The data can be displayed in other view as result.
    I hope u got it.
    Provide REWARD points..:-)

  • When to use webdynpro for developing reports instead of ABAP Editor in R/3

    Hello Frends,
    I am new to Webdynpro ABAP. I just wanted to know when we should used webdnpro ABAP for developing reports, instead of using ABAP Editor in R/3. If you can give me the details it will be helpful.
    Thanks,
    Regards.

    Hi navnetha,
      As mishbah told you , that there is no hard and fast rule for reporting throught  webdynpro.It all depends on client requirement .Now if you want to develope alll the reports by using webdynpro without your clients request , then you need to explain the advantages of webdynpro reporting above abap reporting.
    for e.g.  Webdynpro reports can run on browser, They can be posted on portal, Easy handling and maintenance and reusability.
    Other than this i guess if you can show some business profit to the client, then i think every client would like to go for webdynpro reporting.
    regards
    PG

  • How to upload large file with http via post

    Hi guys,
    Does anybody know how to upload large file (>100 MB) use applet to servlet with http via post method? Thanks in advance.
    Regards,
    Mark.

    Hi SuckRatE
    Thanks for your reply. Could you give me some client side code to upload a large file. I use URL to connect to server. It throws out of memory exception. The part of client code is below:
    // connect to the servlet
    URL theServlet = new URL(servletLocation);
    URLConnection servletConnection = theServlet.openConnection();
    // inform the connection that we will send output and accept input
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    // Don't used a cached version of URL connection.
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches(false);
    // Specify the content type that we will send text data
    servletConnection.setRequestProperty("Content-Type",
    +"application/octet-stream");
    // send the user string to the servlet.
    OutputStream outStream = servletConnection.getOutputStream();
    FileInputStream filein = new FileInputStream(largeFile);
    //BufferedReader in = new BufferedReader(new InputStreamReader
    +(servletConnection.getInputStream()));
    //System.out.println("tempCurrent = "+in.readLine());
    byte abyte[] = new byte[2048];
    int cnt = 0;
    while((cnt = filein.read(abyte)) > 0)
    outStream.write(abyte, 0, cnt);
    filein.close();
    outStream.flush();
    outStream.close();
    Regards,
    Mark.

  • How to save User input into DB using webdynpro abap

    Hi,
    Im trying to create an application using webdynpro abap.
    I want to know how to save the data input by user, into a database table.
    In my UI, I have a table control which is editable and user inputs data into this. I need to know how i can transfer this data to a DB table.

    hello,
    u can do it by reading ur context node.
    we bind our UI elements to context attributes of appropriate type .
    we read their values using the code wizard or by pressing control+F7, click on radio button read node/attribute
    here for ur specific case , u must have binded ur table control with the context attribute , now u need to simply read this attribute
    eg suppose u have created a context node " cn_table"
      reading context node cn_table
       DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
             lo_el_cn_table TYPE REF TO if_wd_context_element ,
             ls_cn_table    TYPE wd_this->element_cn_table.
    *   navigate from <CONTEXT> to <CN_TABLE> via lead selection
      lo_nd_cn_table = wd_context->get_child_node(
                       name = wd_this->wdctx_cn_table ).
    **    get element via lead selection
      lo_el_cn_table = lo_nd_cn_table->get_lead_selection(  ).
      lo_el_cn_table->get_static_attributes( IMPORTING
                 static_attributes = wa_table ).
    here wa_table is the work area of structure type . u need to create a structure first with the same variables as there are the context attributes in ur node cn_table
    in ur
    now ur wa_tablecontains value
    u can nw use appropriate FM to update , delete and modify the DB table using the value
    u cn directly use SQL statements as well in the method of ur view , but direct SQL statements are nt recommende
    rgds,
    amit

Maybe you are looking for