Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all 3667 articles
Browse latest View live

Display Request Form is not triggering in Standard SAP WDA : FITE_REQUEST

$
0
0

Hi Guru's,


In our Travel Scenario in NWBC, Once the employee finish the Travel Request he is unable to take print out by clicking on Display Request Form. Nothing is happening when we click on "Display Request Form".

 

The Form I am using is FITP_REQUEST_FORM. It is displaying perfectly when I execute via SFP. The problem I am facing is nothing is happening when I click on "Display Request Button" in WDA

FITE_REQUEST
FI-TV

 

FITE_VC_REVIEW
VC_WINDOW
REVIEW_VIEW
FI-TV

 

Give me some lights to solve this issue

 

Thanks,

Namsheed.


Where to activate the buttons in WebDynpro--NWBC.?

$
0
0

Hi all,

 

 

I am working on ESS MSS in NWBC. Implementing in NWBC is for the first time. I have lots of similar kind of issues. In many places the buttons are inactive. I will show the screenshots.

These all are standard SAP WebDynpro Application

I want to know from where I can activate these buttons. Its creating hell lot of problems.

It will be a great help if you can help me how & where I can control these buttons.

 

scn1.JPG

scn4.JPGscn2.JPG

scn5.JPG

 

Regards,

Namsheed.

Collapase Select Options Tray

$
0
0

Hi All,

 

I am reusing Select Options( WDR_SELECT_OPTIONS ) in my screen.

Is there a way to collapse the Tray(  if_wd_select_options=>mc_block_type_tray ) of Select Options when the page is initially loaded.

 

This is  my code for Adding a tray and adding select option fields using add_selection_field later.

 

* create a block
  wd_this->l_handler->add_block(  i_id         = 'ID01'
                                  i_block_type            = if_wd_select_options=>mc_block_type_tray
                                  i_title                      =  ' '

                                  i_width                    = '100%').

 

Thanks

Change "Interface node" property at runtime

$
0
0

I have two web dynpro components (say component A and component B) that, at one point, component A has to call component B and send some information to it. I could achieve this by creating a node in the component B with the properties "Interface node" and "Input Element (Ext.)" and declaring component B as a component usage in component A and embedding the main view of component B in a view container in component A and mapping a node from component A with that interface node from component B in the interface controller.

 

That worked perfectly. Component A called component B and it received the proper information through the interface node and it was displayed in the view container. The problem is that I also need to execute component B by itself, i.e. without being called by component A. If I try to do that I get a dump saying that the mapping of the node was not completed, which makes sense because the component has a node declared as "Interface node" but is not receiving any information.

 

¿Is there a method to detect if an interface node has received information and then ignore it in case it hasn't received any?

Portal SSO Web Dynpro ABAP

$
0
0

Hello,

 

We have implemented a long time ago, Portal 7.0 SSO and AD and it works perfect.

 

Now, we implemented the first web dynpro abap, with most users, wda application works fine, but for some users to access the same window will appear loguin.

 

In SAP, we set the parameters:

login/create_sso2_ticket = 2

login / password_change_for_SSO = 0

 

If the user with the problem, uses another PC, it can access the application normally. We imagine it's some configuration of PC or Internet Explorer.

 

Anyone ever happened something similar?

 

We can help us solve this problem.

 

Regards,

How to Embed Views and Navigate at Runtime in Webdynpro ABAP

$
0
0

Purpose:

Application to demonstrate the scenario of embedding views into a view container and navigating dynamically at run time.

 

Scenario:

I would like to explain the steps involved in creating view container and embedding views along with navigation at run time.

 

  • View V_MAIN contains 2 buttons "show view1" & "show view2", and view container is created at run time and it is used for embedding other views
  • V_ONE & V_TWO views are embedding and navigated based on respective button action.

 

Pre-requisite:

Basic knowledge of Webdynpro ABAP& OO ABAP


Step by step process:


Step 1:


Go to t-code SE80 and create a webdynpro component ZWD_RK_DYNAMIC_VIEW_EMBED as below

1.PNG

Step 2:


Go to the layout of view V_MAIN and create page header ui element and set the text as below

2_1.PNG

Step 3:

Create a transparent container to hold the buttons underneath the page header ui element as below

2_2.PNG

Step 4:

Create a button BTN_VIEW1 inside the transparent container and create an action SHOW_VIEW & assign as below

2_3.PNG

Step 5:

Similarly, create another button BTN_VIEW2 and attach the action SHOW_VIEW as below

2_4.PNG

Step 6:

Create horizontal gutter ui element as below

2_5.PNG

Final View layout of V_MAIN is as below

2_6.PNG

Step 7:

Create an outbound plug TO_OTHER_VIEW as below

2_7.PNG

Step 8:

Go to the method WDDOMODIFYVIEW( ) of V_MAIN and write the below logic to create view container ui element


WDDOMODIFYVIEW( )

method WDDOMODIFYVIEW .

 

 

  IF first_time EQ abap_true.

 

 

 

    DATA lo_root_cont TYPE REF TO cl_wd_uielement_container.

    DATA lo_root      TYPE REF TO cl_wd_transparent_container.

    DATA lo_vcu       TYPE REF TO cl_wd_view_container_uielement.

 

 

 

    lo_vcu =

    cl_wd_view_container_uielement=>new_view_container_uielement(

     enabled      = abap_true

      id           = 'VCU_DYNAMIC'

        ).

 

 

    cl_wd_flow_data=>new_flow_data(

      EXPORTING

        element     = lo_vcu

    ).

 

 

    lo_root ?= view->get_root_element( ).

 

 

    lo_root->add_child( lo_vcu ).

  ENDIF.

endmethod.


Go to the event handler ONACTIONSHOW_VIEW and write the below code - for embedding views and navigating based on action


Parameters:

param.PNG

Logic:


ONACTIONSHOW_VIEW( )

method ONACTIONSHOW_VIEW .

   DATA:

      lv_source_vusage_name   TYPE string,

      lv_source_window_name   TYPE string,

      lv_source_plug_name     TYPE string,

      lv_target_plug_name     TYPE string,

      lv_curr_embed_pos       TYPE string,

      lv_target_embed_pos     TYPE string,

      lv_target_view_name     TYPE string,

      lo_view_ctrl            TYPE REF TO if_wd_view_controller,

      lo_view_usage           TYPE REF TO if_wd_rr_view_usage,

      lx_runtime_repository   TYPE REF TO cx_wd_runtime_repository.

 

 

 

 

 

  lo_view_ctrl = wd_this->wd_get_api( ).

 

 

  "get view usage ref

  lo_view_usage = lo_view_ctrl->get_view_usage( ).

  lv_source_vusage_name = lo_view_usage->get_name( ).

 

 

  lv_target_embed_pos = 'V_MAIN/VCU_DYNAMIC'.

 

 

 

  CASE id.

    WHEN 'BTN_VIEW1'.

      lv_target_view_name = 'V_ONE'.

    WHEN 'BTN_VIEW2'.

      lv_target_view_name = 'V_TWO'.

    WHEN OTHERS.

  ENDCASE.

 

 

 

  lv_target_plug_name = 'FROM_MAIN'.

  lv_source_plug_name = 'TO_OTHER_VIEW'.

 

 

  lv_source_window_name =

  lo_view_ctrl->get_embedding_window_ctlr( )->get_window_info( )->get_name( ).

 

 

 

 

 

  TRY.

 

 

      lo_view_usage->delete_all_navigation_targets( plug_name = 'TO_OTHER_VIEW'  ).

 

 

      lo_view_ctrl->do_dynamic_navigation(

                EXPORTING

                  source_window_name        = lv_source_window_name

                  source_vusage_name        = lv_source_vusage_name

                  source_plug_name          = lv_source_plug_name

                  target_view_name          = lv_target_view_name

                  target_plug_name          = lv_target_plug_name

                  target_embedding_position = lv_target_embed_pos ).

 

 

 

    CATCH cx_wd_runtime_repository INTO lx_runtime_repository .  "

  ENDTRY.

 

endmethod.



Step 9:

Create view V_ONE and go to the layout of view and create an ui element TXT_VIEW as below

3_2.PNG

Step 10:

Create an inbound plug FROM_MAIN as below

3_3.PNG

Step 11:

Similar to view V_ONE, create another view V_TWO as below

4_1.PNG

Step 12:

Create an inbound plug FROM_MAIN as below

4_2.PNG

Now save and activate whole component.


Step 13:

Create an application as below

5.PNG

Output:


Initial output screen is as below

o1.PNG


Click on button "Show view 1", to embed and navigate to the view V_ONE as below

o1_1.jpg

The content of view V_ONE is shown below

o2.PNG

Click on button "Show view 2", to embed and navigate to the view V_TWO as below

o2_2.png

The content of view V_TWO is shown below

o3.PNG


Hope this helps for those who are looking for embedding views and navigating at runtime.


I appreciate your comments/feedback/suggestions  

Insert view into view container ui element dynamically (no plugs, just show view dynamically)

$
0
0

Hi,

 

I've been struggling already for some time with the problem that I want to show a view, that is known only in runtime on a different view (which is also dynamic - the UI is created in this case using:

 

 

      lr_viewcont_ui = cl_wd_view_container_uielement=>new_view_container_uielement(

*          bind_enabled =

*          bind_tooltip =

*          bind_visible =

           enabled      = abap_true

            id           = 'TEST'

*          tooltip      =

*          view         =

*          visible      =

              ).

 

I know the name of the view to be shown and it is belonging to the same component as the 1st view. I found many examples, all of them refer to some of the methods:

 

view_controller->prepare_dynamic_navigation()

 

I tried:

 

if_wd_rr_window->embed_view(

             used_view_name       = 'V_PA9002'

             used_component_name  = 'ZPD_DOCUMETATION' ).

 

This is probably ok, but just embedding a view to a window does not help me in placing it in the view container UI element.

 

..

 

In my case, there is no navigation needed (or in other words, it does not exist at all). I simply want to show a view inside a different view. Every example leads to some kind of navigation and I'm a little bit lost how to achieve my scenario:

 

1. the dynamic view is empty (meaning there are no UI elements and view container UI element has got to be created by code. So I can not embedd the view statically into the window on the respective place - as that place does not exist in design mode.

 

2. The view to be shown is however embedded to the window statically. I have a main view, that has got one view container UI element and at that place my dynamic view is shown (which in turn should show the destination view on it's own view container UI element).

 

3. I do not see any need for any navigation - as that is already handled by the main view (also some sort of dynamic - as it is a handler for a road-map).

 

4. I've read Dynamically Embedding an Interface View - Web Dynpro for ABAP - SAP Library a hundred times, but did not understand the sentence:

 

The name of the dynamically created view container element is passed to method PREPARE_DYNAMIC_NAVIGATION (see above) even though the element will be created only at a later point in time in the phase model.

 

What is the parameter to send in "prepare_dynamic_navigation"? Is it 'CNT1'? Where to place it - to which argument? I do not have any navigation, so can I use this at all?

 

5. The perfect scenario would be if new_view_container_uielement( ) method accepted the name of the view to be shown by name or any "normal" identifier (it accepts a reference to the IF_WD_VIEW, which I do not have of course).

 

Any help is appreciated, I believe there is a simple solution for this .

 

J.

how to create customize login screen in webdynpro

$
0
0

how to create customize  login screen in webdynpro. some field will be there like.

userid and password and login button, when we will cllick on login button it will check userid and password in database table which is we filled in textbox and if it will be exist there so it will navigate to another view otherwise will throw error message that userid password wrong.

please reply fast???

thanks in advance to all


Text Edit - IE10 issue

$
0
0

Hi experts,

 

We have been facing a strange issue in ABAP Web Dynpro.

 

We have a simple text edit field on the screen, bound to a context attribute.

In the WDBEFOREACTION method we are trying to read the value of that attribute.

 

When the application is run from Mozilla firefox & a breakpoint is placed in this method we see that the value is read as per what is entered in the text edit field. When the same is done from Internet explorer, it does not read the text edit value. It does read the other Input field, dropdown values appropriately.

Have tried clearing the browser cache etc, does not work.

 

Internet explorer - Version 10.

 

Please let me know if anyone has come across this behaviour. What is this error due to? Is there anything we have to differently in WD to resolve this?

I have seen the rendering of UI being different in different browsers before for WD application, but this is very different

Any pointers in this regard will be very helpful.

 

Thanks & Regards,

Gayathri Shanbhag

How to group the column headers using WDA ALV ?

$
0
0

Hello All.

 

 

How can I group the column headers as shown in the picture(chart), using  WDA  ALV.

Thanks for any help !

 

abcde.jpg

       

AB
A1A2A3A4B1B2B3B4
B11B12B13B21B22B23B31B32B33B41B42B43

 

 

 

消息编辑者为:Cloud Li

Personalization Menu Via Button Instead of Right-Click Menu?

$
0
0

Hello Experts,

 

I am attempting to call the standard Right-Click -> User Settings -> More... menu that controls the personalization options for a table (such as sorting the order that columns appear, and adding/removing columns from a table.  I would like this screen to pop up when the user clicks a button rather than having to right-click the table (too confusing for users).

 

I have looked at IF_WD_PERSONALIZATION but this seems just to be a way to save/call personalization options and not a way just to call the screen that has already been built.

 

Is this view in a standard component somewhere that I can call?  Any other way to call this menu up?  I hate to re-invent the wheel....

 

Thanks,

Mike

Add Dropdown by index UI Element to table field within abap web dynpro

$
0
0

can anyone give me sample code to create dropdown field in table.

Personal Value List as Dropdown List for InputFields

$
0
0

Hi Community Members,

 

I am having a weird issue when i compare my development and sandbox system

 

When i save the favourites for any webdynpro input field and then on pressing F4 i get those entries in the form of dropdown.

The behaviour is same as mentioned in the article given below . This is happening in sandbox and quality system

 

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/ae/ced61c7f4b4f3a8cb5709da3f16d44/content.htm

 

However for the development system i am not getting the saved favourites as dropdown but i first get the general entries in a pop-up screen .

 

This is happening for all the fields .

 

I wanted to know is there any settings by which we can make favourites appear as dropdown as is happening in our quality or sandbox system.

 

I am attaching the screenshots for better understanding.

 

 

The system under consideration is SRM 7.0

 

SAP-BASIS  702 SP Level 0013

 

Regards,

Rohit

Call XML Schema based Adobe form from ABAP Program

$
0
0


Hi,

 

  I have a scenario where an online Interactive form is designed and its working fine. Now i have a requirement to call the same Adobe form from a report for viewing purpose. Since it is XML Schema based Interface, is it possible to call the same form instead of creating a new one with the same template? Because i tried to call the same Adobe form by passing the values and converting those to XML(By Creating Transformation). Then i converted the XML to XSTRING and passed to the Generated Function Module for Input paramter "/1bcdwb/docxml". This resulted in an error "com.adobe.ProcessingException: com.adobe.Processin".

 

Please help me out in solving this and check the attachment for code.

 

Thanks,

Raj

Webdynpro ALV UI element property binding to context attribute property

$
0
0


Hi Experts,

 

     I have this requirement to create a webdynpro applicaiton with more than 40 fields which are editable or read-only based on the data it contains.

The usual method of having attribute of type wdy_boolean isnt applicable as i would need to create attributes for each field (40 more attributes).

 

i read from the SAP site but dint understand it completely.

 

in my wddoinit, i have written the below code

  lo_column = lo_column_settings->get_column('/BIC/GBRECCOM').

  CREATE OBJECT lo_input_field
    EXPORTING
      value_fieldname = '/BIC/GBRECCOM'.

  lo_input_field->set_read_only_fieldname( value = '/BIC/GBRECCOM:READ_ONLY' ).
  lo_column->set_cell_editor( lo_input_field ).

 

after that in my Search event method ( method which populates my alv with data):

 

Internal table lt_tab1 contains the data from the database

 

loop at lt_tab1

     into ls_tab1.

  lo_nd_dashboard->bind_structure(
    EXPORTING
      new_item = ls_tab1
      set_initial_elements = abap_false
   RECEIVING
     element = lo_el_dashboard ).

 

  ls_attribute_properties-attribute_name = '/BIC/GBRECCOM'.
      ls_attribute_properties-visible = abap_true.
      ls_attribute_properties-enabled = abap_true.

      IF open_flag EQ 'X'.
       ls_attribute_properties-read_only = abap_false.
      ELSE.
        ls_attribute_properties-read_only = abap_true.
      ENDIF.

      INSERT ls_attribute_properties
        INTO TABLE lt_attribute_properties.

    lo_el_dashboard->set_attribute_props_for_elem(
    EXPORTING
      properties = lt_attribute_properties ).

    lo_el_dashboard->set_attribute_property(
    EXPORTING
    attribute_name = '/BIC/GBRECCOM'
    property = lo_el_dashboard->e_property-read_only
    value          = 'X' ).

 

i am not sure how do i do this. please help .. its very urgent and important.

 

i found this link.. but dint understand it completely.

 

http://wiki.scn.sap.com/wiki/display/WDABAP/SAP+List+Viewer+-+ALV

 

REgards,

Tashi

 


Domain fixed value need to set as default in UI

$
0
0

Hi Experts ,

   I am facing an issue where  domain having two fixed values ...

 

      INITIAL   VALUE    TEXT

 

                         X           Yes

 

         =             ' '             No

 

In webdynpro when I bind the data element of this domain three dropdown text  is coming ...

 

1 .  Space

2 . Yes

3.  No

 

I am trying to set this field in ui with default value = NO.

In the coding part when I set the field value = abap_true then  Yes   is set in UI as default but when value = abap_false it's picking only initial value means Space  is set as default ..

 

I need to set it as NO.

 

Please help me to solve out this issue.

Thanks in advance.

 

Samrat

How to unhide the column in Alv table

$
0
0

Hi Experts,

 

    Initially i have created webdynpro Alv table with 8 columns ,later i have added one more attribute/column to the node to display extra column

but in the output ,alv table not displaying the 9th column,Instead the column is getting hidden which i came to know clicking on settings in alv table output.If i make changes in Alv table settings it getting displaying,can anyone tell me how to unhide this field.

 

Regards

Sandesh

How to give a POP up window on closing the browser or clicking on X button at browser???

$
0
0


I have a requirement to give a popup confirmation window before closing a webdynpro application on browser. Can somebody please help me in this?

Node in Component and View

$
0
0

Hi Gurus,

 

 

In webdynpro Y we r creating Node sometimes in view and sometimes both in view and component controller. What makes the difference between both component and view controller.

Dropdown options in webdynpro

$
0
0

Hi guys..

 

I have requirement like add two drop down elements in a table. And second drop down list of values dependent on first drop down element.

 

example: if i take ekpo table i will make PO number and item number fields as dropdown elements. And Once PO number selected from first dropdown list

second dropdown list should consist  item numbers of selected PO. After selecting both the values remaining fields will get displayed based on input.

 

Can anyone suggest please the way of doing it.

 

thanks in advance...

Viewing all 3667 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>