Demo WD ABAP Application

Hello,
          I need to develop a demo WD ABAP application in the  first screen take the sales organization as select option parmaters
          In second screen show all sales order items, with in that sales organization in an ALV.how can it be done?
rgds
yashodra

hi ,
1 create context in ur component controller and a context attribute say attr under it
2 map it to both of ur Main and Second View , just drag and drop the context node to the
Context in both the views
3 read the attribute ( this is binded to ur input field ) in the main view
Go to control wizard ( Control +f7) , select the radio button read context node / attribute
Select the node and read the attribute using get_attribute method
4 now do component usage for ALV
i)     In the component controller , create a context node .This context node will be used to generate the ALV grid table. The context attributes inside the context node would refer to the columns in the table .give dictionary structure
ii)     Double click on the component and define usage for SALV_WD_TABLE
5 write this piece of code in WD DOINIT of ur 2nd view
DATA :lv_ vbeln1 type string .
Lv_Vbeln1 = wd_comp_controller->gv_vbeln .
  Data: itab_vbap type standard table of vbap .
*select data from data base table
select * from vbap
into corresponding fields of table itab_vbap where vbeln EQ lv_vbeln1.
* bind data to context used by ALV
  context_node = wd_context->get_child_node ( name = 'ALV_TABLE').
  context_node->BIND_table( itab_vbap).
regards,
amit

Similar Messages

  • Testing webdynpro abap application

    Hi Everyone,
    Could anyone please provide me the steps for testing webdynpro-Abap application .
    Thanks in advance,
    Best regards,
    Priya

    Hi Priya,
                    There are diffrent ways of testing ABAP Web dynpro application, this link should be helpfull for you.
    SDN Demo: on testing WEB Dynpro ABAP applications https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e3b19f11-0a01-0010-409d-b3951f754963
    Thanks and Kind Regards
    Mohan

  • How can I call a java object from Web dynpro ABAP application?

    I made Web dynpro ABAP application and posted it to SAP EP.
    For certain business purpose, we need to call external 3rd party java object using 3rd party's java api in Web dynpro application.
    Is there anybody who experienced this kind of java interface issue?
    I know Web dynpro Java environment can fully support this kind of requirement. but regarding Web dynpro ABAP, I couldn't find any clue for this.
    Any comment or suggestion would be greatly appreciated.
    Thanks,
    Raymond, ABAP Consultant

    if you have jco configured, then you can make calls to java api from ABAP .
    check out this weblog.
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    Raja

  • Error in opening webdynpro abap application

    hi All,
    I am facing below issue in opening webdynpro abap application, this is first WDA application in production system, please help me in resolving this issue.
    ============================================================================
    Error when processing your request
    What has happened?
    The URL http://grp.mysap.pg.com:9500/sap/bc/webdynpro/sap/zgpuvstapp/~ucfLOADING was not called due to an error.
    Note
    The following error text was processed in the system GRP : A request for server adln5412 has been sent to server adln5411; see Note 1364846
    The error occurred on the application server adln5411_GRP_10 and in the work process 3 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system GRP in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server adln5411_GRP_10 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 3 in transaction ST11 on the application server adln5411_GRP_10 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 400 -u: BS6402 -l: E -s: GRP -i: adln5411_GRP_10 -w: 3 -d: 20100929 -t: 140306 -v: ERROR_MESSAGE_STATE -e: A request for server adln5412 has been sent to server adln5411; see Note 1364846
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ============================================================================
    Edited by: brahmanandam ausali on Sep 30, 2010 4:11 AM

    Hi Shibli,
    I'm facing the same issue with the POWL only if called from a part of the network outside our country (Italy) so I think it would be a network configuration problem as you suppose. Can you explain us the configuration of the balancer and dispatcher to solve the issue?
    Thanks
    Mattia

  • Error in the ABAP Application Program

    Dear All
    While Incoming invoice posting ( MIRO). When i put amount in Unpl. Del. Csts field system give following  Error
    Error in the ABAP Application Program
    The current ABAP program "SAPLMRMK" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis
        When changing or deleting one or more lines of the internal table
        "\FUNCTION-POOL=MR1M\DATA=YDRSEG[1]-CO" or when inserting in the table
         "\FUNCTION-POOL=MR1M\DATA=YDRSEG[1]-CO", 0 was used as
        the line index. An index less than or equal to zero is not
        allowed.
        The error can occur when using the following options:
        1. "INDEX idx" for specifying the line number in the table
         "\FUNCTION-POOL=MR1M\DATA=YDRSEG[1]-CO"
           where you want to change, insert or delete.
        2. "FROM idx" for specifying the start index when deleting a line
           area from or inserting a line area into the table
         "\FUNCTION-POOL=MR1M\DATA=YDRSEG[1]-CO".
        3. "TO idx" for specifying the end index when deleting a line
           area from or inserting a line area into the table
    Pls help to resolve above issue
    Regards,
    Vipin

    Hi,
    have you checked transaction SM13?
    if so, what information have you got there?
    Best regards.
    Edited by: Pablo Casamayor on Sep 30, 2011 3:33 PM

  • How to read excel binary file in ABAP application server

    Hi Gurus,
    I have to read business partner data from the binary format of an excel file in application server. I searched in forums but only found solutions about using ole2 objects, but in ABAP application server there is no excel APIs, so I have to read binary directly. You know it is rather difficult, do you have any clues or sample function modules? Thanks!
    Best regards,
    Hao

    Hi Deng,
    I think there are two possible solutions:
    1. Get the file created as tab-delimited or CSV as recommended earlier
    2. Excel files are BIFF (Binary Interchange File Format). The Microsoft office 97 developer kit has tools for analysis and access. You may search for existing interface software or create your own ABAP code. Publish it on SDN and win great merits.
    Regards,
    Clemens

  • Is DD/MM/YYYY supported in webdynpro for abap application

    Hi All,
    We are using 2 different time statements one developed in webdynpro for java and other in webdynpro for abap.date format in java is DD/MM/YYYY but in webdynpro for abap is DD.MM.YYYY.
    is DD/MM/YYYY supported in webdynpro for ABAP application or even if user enters DD.MM.YYYY can we convert that to DD/MM/YYYY so that we will maintain uniformity in both the applications
    Thanks
    Bala Duvvuri

    Hi Bala,
    We can convert the date before saving ,even if the user enters the date as dd.mm.yyyy  as mentioned below.
    DATA: lv_indicator type XUDATFM .
    CALL FUNCTION 'ISH_GET_USER_DATE'
      EXPORTING
        USER_NAME         = SY-UNAME
      IMPORTING
        DATE_FORMAT       = lv_indicator .
    CASE lv_indicator.
        WHEN '1'.                                        " DD.MM.YYYY
          CONCATENATE p_date6(2) '.' p_date4(2) '.'
                      p_date(4)
             INTO p_result.
        WHEN '2'.                                        " MM/DD/YYYY.
          CONCATENATE p_date4(2) '/' p_date6(2) '/'
                      p_date(4)
             INTO p_result.
        WHEN '3'.                                        " MM-DD-YYYY.
          CONCATENATE p_date4(2) '-' p_date6(2) '-'
                      p_date(4)
             INTO p_result.
        WHEN '4'.                                        " YYYY.MM.DD
          CONCATENATE p_date(4) '.'  p_date+4(2) '.'
                      p_date+6(2)
             INTO p_result.
        WHEN '5'.                                        "YYYY/MM/DD
          CONCATENATE p_date(4) '/'   p_date+4(2) '/'
                      p_date+6(2)
             INTO p_result.
        WHEN '6'.                                        "YYYY-MM-DD
          CONCATENATE p_date(4) '-'  p_date+4(2) '-'
                      p_date+6(2)
             INTO p_result.
      ENDCASE.
    Regards,
    Lakshmi.

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • Problems creating new Web Dynpro ABAP application

    All,
    I am following this tutorial to create my first Web Dynpro ABAP application
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/501b42b5815133e10000000a155106/frameset.htm
    In this tutorial I was asked to create a component as Local object.
    But after giving the name of the component, I get an alert saying
    "Object can only be created in SAP Package"
    When I confirm this, I was shown a "Create Object Directory entry" dialog box which asks for attributes like Package.
    And this box has Local Object button, when clicked I get the message "Test Objects cannot be created in foreign namespaces".
    I found some other article through Google
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_I.pdf
    According to this, I tried to give $TMP as Package. But still have the same error
    "Test Objects cannot be created in foreign namespaces"
    Where am I and what should I do to create a new project?
    Thanks.

    Thanks Abinav.
    My problem is with naming convention only. Component name starting with Z solved my problem.

  • Download WebDynpro ABAP Application

    Hi All,
    I created a web dynpro ABAP application in my testing server.
    Is it possible to download the application into presentaton server.
    I want to upload the same application to my development server. s it possible?
    Please give me the steps to do it.
    Thanks,
    Kiran

    Hi,
    check the below link
    http://code.google.com/p/saplink/
    here you can download the webdynpro application as nuggets and then upload it.
    Regards,
    Bharat.

  • Error in webdynpro(ABAP) application development

    Hi,
           I am very new in webdynpro (ABAP) application development. I want to create some application based on webdynpro ABAP for few Z- Report. What is the prerequisite to develop a application based  on webdynpro( ABAP ) .Because when I am trying to create application in se80 and giving the related functional model name in wedynpro component field , I am getting the error like Web Dynpro Comp./Intf. ZOS_xxx_FM does not exist. How to proceed further?
    Thanks,
    Kundan

    Hi,
    Can you be more clear...
    Please refer this link  for Personalization-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/719f42f2ff7e5fe10000000a155106/content.htm
    Regards,
    Lekha.

  • F4 for employee select options in WD for abap application

    Hi,
    I have defined a select option for employee selection in my WD for abap application. The only problem is that I cannot get a f4 help button to be displayed. I have defined the select option using the following code :
    wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
    wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
    create a range table that consists of this new data element
    lt_range_table = wd_this->m_handler->create_range_table(
    i_typename = 'PERNR_D' ).
    add a new field to the selection
    wd_this->m_handler->add_selection_field(
    i_id = 'PERNR_D'
    it_result = lt_range_table
    i_read_only = read_only ).
    I have tried adding entries for the parameter help_id but still cannot get a f4 button.
    Thank you in advance for any assistance provided.

    Hi,
    Try this.
    DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
    lo_interfacecontroller = wd_this->wd_cpifc_select_options( ).
    DATA lo_r_helper_class TYPE REF TO if_wd_select_options.
    lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).
    Creating range table
    DATA lt_range TYPE REF TO data.
    CALL METHOD lo_r_helper_class->create_range_table
    EXPORTING
    i_typename = ''PERNR_D'
    RECEIVING
    rt_range_table = lt_range.
    Disabling the global options
    CALL METHOD lo_r_helper_class->set_global_options
    EXPORTING
    i_display_btn_cancel = abap_false
    i_display_btn_check = abap_false
    i_display_btn_reset = abap_false
    i_display_btn_execute = abap_false.
    Adding the selection field
    CALL METHOD lo_r_helper_class->add_selection_field
    EXPORTING
    i_id = 'PERNR_D'
    I_OBLIGATORY = ABAP_TRUE
    i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    I_VALUE_HELP_ID = 'PREM'
    it_result = lt_range.
    Check this artcle for more details which uses VBELN as select option with search help.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/103e43d5-fdb8-2d10-90ab-b5e8532cbc04

  • Adding attachments to workflow from Web Dynpro ABAP Application program.

    Hi,
    workflow is supposed to start by a Web Dynpro ABAP Application.
    The user can attach files to it.
    A superior is supposed to review the files and either approve or reject the request.
    I tried the following in Web Ddynpro ABAP:
    CALL FUNCTION 'EWW_WORKFLOW_START'
    EXPORTING
    X_TASK = 'WS90000074'
    IMPORTING
    Y_WORKFLOW_ID = lv_WF_ID
    TABLES
    X_CONTAINER = lv_IT_CONTAINER
    EXCEPTIONS
    then followed by:
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
    EXPORTING
    WORKITEM_ID = lv_wf_id
    ATT_HEADER = lv_swr_att_header
    ATT_BIN = Item_FILENAMEATTACHED
    DOCUMENT_OWNER = SY-UNAME
    LANGUAGE = SY-LANGU
    IMPORTING
    ATT_ID = lv_swr_att_id
    The Workflow has only one user decision step and one notification Step.
    In the user decision step, there is a binding from ATTACHOBJECTS to the task.
    But, in the log, you can see the attachment in the Workflow Container of the workflow instance, but you don't see it in the task (neither Inbox nor UWL)
    I have checked the binding it is correct. I am getting the attachment in workflow container in '_attach_objects' element. but this attachment has to go to the user decision step, so I am binding the '_attach_objects' of workflow container to '_attach_objects' of user decision step. But the attachment was not going to user decision step.
    Could you please let me know where am i doing wrong?
    Thanks,
    V.Nagaraju

    @Ruslim Chang 
       Sorry to point out but the FM will return the Workitem ID only so there is no problem with the LV_WF_ID variable.
    @vundralla nagaraju
    Instead of making binding between attachobjects make binding between
    WiGroup_ID <---- attachobjects
    and then on the next step you try to make biniding in the user decision step by using WiGroup_ID.I think it should work.

  • Change in WD ABAP application available in business package

    Hi Experts,
    I am working on xRPM 4.5 business package. Now I need to modify WD ABAP Application. For this, I went to property of iview for find the application name. Also I found application name by right click on WD ABAP iview. I went to backend and looked for application ,after finding it tested it and saw the preview. It was totally diffrent preview what I was seeing in portal screen.
    Again I checked several other iview and found that those were also using same WD ABAP application and preview is same like earlier one.but in portal all are showing different screen.
    Is it beacause of configuration? if yes, how can I check it.
    How can I debug that application directly from portal?
    Thanks in advance
    Regards
    Shashwat Gupta

    Hi,
    May be using different Themes in Portal level, Please check it once.
    Debugging portal application. check this.
    /thread/186675 [original link is broken]
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/lw/developercontent/sap%20portal%20development%20kit%20for%20.net%20developer's%20Guide/Previewing%20and%20Debugging%20Portal%20Applications_Debugging%20Portal%20Applications.html
    cheers,
    Kris.

Maybe you are looking for

  • Error while calling applet from Javascript via LiveConnect and WebDriver

    Hi all, I am trying to call applet Java code from Javascript via WebDriver. Given the following two cases: - calling a static method: Integer.parseInt("42")- constructing a new object: new String("Hello world")My Javascript code looks like this: docu

  • Problem sharing POJO Data Source while exporting

    Hi,<br> I have an issue that stops me exporting a report to PDF. I have two reports that share a POJO data source. The POJO is stored<br> in the session. The same POJO is being passed to both of the reports. While one of the them exports it perfectly

  • 2 Reporting services point configure

    Hi, In our environment we configured  Reporting services point in stand alone primary server and working fine. Also we migrate reports from sccm 2007. Now my question is Shall I configure one more Reporting services point in helper server. If i confi

  • System Management container in Multidomain environment (same forest)

    Greetings, The scenario is the following: 1 root domain. 5 child domains. The schema was extended for Win2008 R2. 1 primary parent SCCM site (implemented in a child domain. 1 sccm server). 4 primary child SCCM sites (implemented in the 4 remaining ch

  • Using Aperture 3 with new (2011) iMac

    Currently I have been using Aperture 3 with my MBP. My library is on an external drive. When I bought my iMac, I hooked up my drive to that machine and then opened Aperture and I got a message that popped up saying something like my library was 32bit