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

WebDynpro ALV resize columns

$
0
0

Hi Experts,

 

I developed a webdynpro Component with an ALV.

 

My problem starts when customizing the alv now in sap-config-mode (we need to transport the width)

In our development system I'm not able to resize the columns width.

alv not resizable.jpg

 

If I do the same in our integration system, I can resize the columns with drag & drop.

alv resizable.jpg

 

We have the same version in both systems.

 

I tried to set different Attributes in the alv table settings:

->  if_salv_wd_table_settings~set_fixed_table_layout

->  if_salv_wd_table_settings~set_column_resize_mode

 

I also tried to set the resizable Attribut for each column

-> r_column->set_resizable

 

No attribute solved my problem.

 

Can somebody say if there is a system parameter which enables the ALV resize option?

 

Greet's

Kevin


Full height PDF in WebDynpro ABAP application

$
0
0

Hi,

we've upgraded our ERP from 7.0/6.03 to 7.02/6.05 and one of the issues we've encountered is that our WebDynpro application that displayes a PDF Print Form (not an IA) now shows the form at a height of 80px (give or take). This happens both in the portal (ragerdlas well as directly.

What's really strange is that this only happens on IE9. It works fine on FF10, Chrome and Safari. Is there an (new) application parameter that needs to be set to force IE to push the application in full screen?

 

much obliged
Marcel

SOLMAN EWA ISN'T WORKING

$
0
0

Hello Experts! I need your help.

 

Since 3 weeks our SOLMAN EWA is not been generated. At browser it is just in "Data is available" Status (2 bottles). When i go to GUI I see the session at the same satus. I already did a refresh sessions at SDCCN and also created a new EWA session for SOLMAN manually but still the same trouble.

 

SAP_COLLECTOR_FOR_PERFMONITOR Job is apparently working.

 

At ST22 it throws me a dump, here is:

 

Category                        ABAP Programming Error

Runtime Errors               OBJECTS_OBJREF_NOT_ASSIGNED_NO

Except.                          CX_SY_REF_IS_INITIAL

ABAP Program               /1AGS/ABI_IM_TECH__________004

 

Access via 'NULL' object reference not possible.

 

Error in the ABAP Application Program

 

The current ABAP program "/1AGS/ABI_IM_TECH__________004" had to be terminated because it has come across a statement that unfortunately cannot be executed.


An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "READ_SMD" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.

The reason for the exception is: You attempted to use a 'NULL' object reference (points to 'nothing') access a component.

An object reference must point to an object (an instance of a class) before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using the CLEAR statement.

 

Call Program........."CL_DSMOP_SOLUTION=============CP"

 

If someone had the same error, please let me know.

 

Regards!

 

Luis!

OVS search help more than 9 entries doesnt display

$
0
0

Hi,

 

In the development system, for one of the webdynpro component the F4 OVS search works with scroll down option but in the testing client when the entries are more than 9 then it shows the blank screen.If the entries are less than 9 then it shows the list. Is there any personalize option or configuration involved in this?.. If the mistake is in the phase1 configuration of the OVS then it would not have displayed in the development client. Please help me to fix this issue.

 

With thanks & regards,

Naveen.

Bindhelp DDIC/OVS on dynamic control

$
0
0

Hello Experts,

 

We are having a requirement to add input help to new custom field in standard application.

 

Where the component is reading configuration and creating control using class: CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD.

 

In standard component there is no context where I can go and add DDIC/OVS help. Standard application pass data to dynamic control in parameter:

bind_value.

 

in this class method I can see some parameter like "BIND_INPUT_HELP" ,"BIND_INPUT_PROMPT" but I am not sure. How do I use OVS help or DDIC help.

 

Please suggest.

 

Thanks & Regards,

NJ

editable field should be come to non-editable(display) mode after action in alv

$
0
0

Hi

 

 

I am using Editable ALV  in my application in webdynpro,date fields are editable .So I entered dates and   I click on Save  button.

I want to be date fields should come to non-editable.

 

code as below

 

*  Declare ALV config table

   DATA: alv_config_table  TYPE REF TO cl_salv_wd_config_table.

 

   DATA: wd_table_usage TYPE REF TO if_wd_component_usage.

 

* Create an instance of ALV component created ALV_COMP is usage name

   wd_table_usage = wd_this->wd_cpuse_alv_task( ).

   IF wd_table_usage->has_active_component( ) IS INITIAL.

     wd_table_usage->create_component( ).

   ENDIF.

*ALV Settings.

* Get ALV component

   DATA: wd_table TYPE REF TO iwci_salv_wd_table.

 

   wd_table = wd_this->wd_cpifc_alv_task( ).

   alv_config_table = wd_table->get_model( ).

 

* Declare variable to store column details

   DATA: column_settings TYPE REF TO if_salv_wd_column_settings,

         column          TYPE REF TO cl_salv_wd_column.

 

   column_settings ?= alv_config_table.



DATA lr_input TYPE REF TO cl_salv_wd_uie_input_field.

 

   CREATE OBJECT lr_input

     EXPORTING

       value_fieldname = 'PLANNEDSTARTDATE'.

 

   column = column_settings->get_column( 'PLANNEDSTARTDATE' ).

   column->set_cell_editor( value = lr_input ).

*


bmp.png

Visibilty of Web Dynpro HRRCF_C_PERSONL_DATA_UI enhancement

$
0
0

Hi Experts,

 

I am trying to enhance webdynpro HRRCF_C_PERSONL_DATA_UI. This  is the page for Candidate data of E-Recruitment

 

I added 35 fields on the screen & mapped them, but they are not getting displayed on browser.

 

Could you please let me know how to do the visibility for the input field which I have enhanced.

 

 

Regards,

Subhamoy Bhaumik

Creating Buttons in Web E-mail body through Wedynpro Abap

$
0
0

Hi,

      There was a scenario i am  unable to solve that issue . can anyone help me in dis ?

 

My scenario is :   I need to create  2 buttons in email body through webdynpro applciation .   I tried upto getting Subject message and  adding recipients in TO and CC   and adding any attachements also . but the main problem is i am unable to create a buttons in email body through webdynpor applciaiton ..

 

what i did is

step 1 : in my webdynpro component .. view ..  wddoinit() method . code is

step 2 : go to SOST t.code and  select  the exact mail and execute it.. 

 

  CLASS cl_bcs DEFINITION LOAD.



  DATA:

    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.



  lo_send_request = cl_bcs=>create_persistent( ).



* Message body and subject

  DATA:

  lt_message_body TYPE bcsy_text VALUE IS INITIAL,

  lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.

  APPEND 'Dear,' TO lt_message_body.

  APPEND ' ' TO lt_message_body.

  APPEND 'Please find the below buttons'

  TO lt_message_body.

    APPEND ' ' TO lt_message_body.

*  APPEND "URL" TO lt_message_body.





******************

*  APPEND '<input type = Submit name = Approve value = Approve />' TO lt_message_body.

*      APPEND ' ' TO lt_message_body.

*  APPEND '<input type = Cancel name = Reject value = Reject />' TO lt_message_body.

*    APPEND ' ' TO lt_message_body.

**************************************

  APPEND 'Thank You,' TO lt_message_body.







*****************************************************************************

*      APPEND '<a href="mailto:sapoffline@essar.com?subject=A - Approve Document"><img src="C:\Users\vlyadav\My Pictures\banner.jpg" alt="APPROVE" ></a>  '

*      TO lt_message_body.

**      <img src="smiley.gif" alt="REJECT" >



*****************************************************************************

  lo_document = cl_document_bcs=>create_document(

  i_type = 'RAW'

  i_text = lt_message_body

  i_subject = 'Personnel Information Form' ).



  DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.



* Pass the document to send request

  lo_send_request->set_document( lo_document ).



* Create sender

  DATA:

  lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,

  l_send TYPE adr6-smtp_addr VALUE 'SENDER_ID',

  l_reci TYPE adr6-smtp_addr.



  l_reci = 'anymailid@gmail.com'.                " 'user_name_at_company_dot_com'. "Approver's email address  """' give your proper email id



*vlyadav@essar.com

*  lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).

  lo_sender = cl_sapuser_bcs=>create( sy-uname ).

* Set sender

  lo_send_request->set_sender(

  EXPORTING

  i_sender = lo_sender ).



* create recipient

  DATA:

  lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.

  lo_recipient = cl_cam_address_bcs=>create_internet_address( l_reci ).

** Set recipient

  lo_send_request->add_recipient(

  EXPORTING

  i_recipient = lo_recipient

  i_express = 'X' ).

*  lo_send_request->add_recipient(

*  EXPORTING

*  i_recipient = lo_recipient

*  i_express = 'X' ).

* Send email



  DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.

  lo_send_request->send(

  EXPORTING

  i_with_error_screen = 'X'

  RECEIVING

  result = lv_sent_to_all ).

  COMMIT WORK.


Problem Cofiguring WebDynpro on AS ABAP 7.03 64-bit Tial

$
0
0

Hi,

 

at the moment I am preparing for my ABAP Developer Certification with an AS ABAP 7.03 64-bit Tial-System on Windows7.

 

To configure WebDynpro i followed these instcructions:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/30129979-011c-2e10-fb9b-a60e0d704c1d&overridelayout=true

 

So i alredy

- activatet the services in TA SICF

- imported profiles from active server in TA RZ10

- added parameter icm/host_name_full with <hostname>.com in DEFAULT profile

- added <localhost> <hostname>.com in hosts-file

 

At testing a WebDynpro-Application the login is shown. When i klick the login button i would expect a pop-up for entering name and pw but nothing happens.

I tried IE (also in compatibility mode) and Firefox.

 

If you have any ideas how to solve my Problem i would be very happy for your suggestions.

 

Kind regards

Patrick

 

Login.png

How to install the SAPlink plugins

$
0
0

Hi,

 

i executed the program ZSAPLINK and imported the file NUGG_WD_TIMESTAMP_VALUE_HELP_DEC2008.nugg ,but its showing

"There is no installed SAPlink plugin for object type TABL

There is no installed SAPlink plugin for object type TABL

There is no installed SAPlink plugin for object type TTYP

There is no installed SAPlink plugin for object type TTYP

There is no installed SAPlink plugin for object type WDYN

There is no installed SAPlink plugin for object type WDYN

There is no installed SAPlink plugin for object type WDYN

There is no installed SAPlink plugin for object type WDYN".

 

Can anyone help me to solve this?

 

Ganesh

Project Management tab dump in PPM

$
0
0

Hi experts,

 

I am getting a dump in project management dump in ppm. can you please help me on this. URGENT ISSUE.

 

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Error while processing your query


What has happened?

The URL call http://ageprierpd01.epri.com:8001/sap/bc/webdynpro/sap/inm_workcenter_app was terminated because of an error.

 
Note
  • The following error occurred in system ECD : An exception occurred that was not caught.
  • The error occurred on application server AGEPRIERPD01_ECD_01 and in work process 14 .
  • The termination type was: RABAX_STATE
  • The ABAP call stack was:
    Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C0STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C9STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C9STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP

 

 

 

 

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;

 

ST22

 

What happened?

    The exception 'CX_WDR_ADAPTER_EXCEPTION' was raised, but it was not caught

     anywhere along

    the call hierarchy.

 

 

    Since exceptions represent error situations and this error was not

    adequately responded to, the running ABAP program

     'CX_WDR_ADAPTER_EXCEPTION======CP' has to be

    terminated.

 

 

Thanks & Regards.

D. Dutta

While getting node element I can able to get only first 15 element

$
0
0

Hi,

 

Node2 have total 25(records) elements are there but while getting only 15 element are showing, next set of element i cant able to get it. Can some one tell me the reason for this issue.

 

(1 Record)                  (25 Records)                 (25 Records)  

Node1 - ( 1 - 1 ) --> under Node2 ( 0 - N ) --> under Node3 ( 1 - 1 )

 

 

 

 

Statement which I used for get the node2 element

 

*           navigate from <CONTEXT> to <NODE1> via lead selection

             lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).

 

*           navigate from <NODE1> to <NODE2> via lead selection

             lo_nd_node2 = lo_nd_node2->get_child_node( name = wd_this->wdctx_node2 ).

 

             CALL METHOD  lo_nd_node2->get_elements

               RECEIVING

                 set = it_node2.

How To Read Tray(which is designed in view) in my action method

$
0
0

Hi ,

 

I want to hide the TRAYs which are designed in view of my wda component.I have created one attribute(BOOLEAN) at context level and bind to the tray as shown in figure and write below code.

in tray i have attached node w_dynamic(which is custom table).

 

lo_nd_w_dynamic = wd_context->get_child_node( name = wd_this->wdctx_w_dynamic ).

*

* get element via lead selection

   lo_el_w_dynamic = lo_nd_w_dynamic->get_element( ).

*

   lo_el_w_dynamic->set_attribute(

     name `BOOLEAN`

     value = abap_true ).



How read the tray...so based on the condition,i want to show trays either visible or none.how to achieve it.I know BOOLEAN IS NOT PART OF W_DYNAMIC.SO GOT ERROR.Please help me here.

screen.PNG

Select-options are not destroyed while calling view of used component popup

$
0
0

Hi Friends ,

 

I'm facing a unique problem. I'm calling a view of a component within another component. the view that I'm calling has some select-options. When I close the popup window ( using close 'X' of popup ) and then try to reopen the popup system give me a dump. I debugged and found that select-options are not destroyed by system and once it tries to create the select-options again it dumps because they are already there.  

 

This is the source code extract of that dump for your reference .

 

1 method if_wd_select_options~add_selection_field.

2

3   data:

4     lr_table_descr       type ref to cl_abap_tabledescr,

5     lr_struct_descr      type ref to cl_abap_structdescr,

6     lr_value_field_descr type ref to cl_abap_elemdescr,

7     added_field          like line of mt_added_fields,

8     dfies                type dfies,

9     description          type string,

10     complex_restrictions type if_wd_select_options=>t_complex_restrictions.

11

12   field-symbols:

13     <it_result> type index table.

14

15 * check of someone wants to add a field that already exists

16   read table mt_fields

17        with key m_id = i_id

18        transporting no fields.

19   if sy-subrc = 0.

20 *   might be deleted - recreating a field with different setting is of course allowed

21     read table mt_all_removed_fields

22          with key table_line = i_id

23          transporting no fields.

24     if sy-subrc <> 0.

>>>       message x000(00).

26     endif.

27

28 *   remove the existing field in order to avoid duplicates

29     delete table mt_fields with table key m_id = i_id.

30   endif.

 

I've already tried using REMOVE_ALL_SEL_SCREEN_ITEMS( ) method of interface IF_WD_SELECT_OPTIONS before creating new elements ( select-options ). If any one can help me in this It would really help and I'll appreciate it.

 

Thanks in advance,

Laeeq

How can we explode a particular slice in a pie chart in webdynpro abap?

$
0
0

How can we explode a particular slice in a pie chart in webdynpro abap?


How can we bevel a particular slice in a pie chart in webdynpro abap?

$
0
0

How can we bevel a particular slice in a pie chart in webdynpro abap?

File Upload in a Single Step

$
0
0

I need the user to navigate their local network for a file, but when that file is selected I need to execute against those results immediately and not be returned to the UI and await the click of a secondary button.  All the examples that I'm seeing use the File Upload UI element and then have a companion "upload" button that takes the results stored in the FileUpload control and then does something with it.  What I need is to return from the File Upload selection and immediately use the results.  Seems like a simple request but I'm not able to find anything on the web to support it

 

Hoping I just haven't asked the question properly and somebody has an easy answer.

 

Thanks,

 

Chad

How can we explode a particular slice in a pie chart in webdynpro abap?

$
0
0

How can we explode a particular slice in a pie chart in webdynpro abap?

Customizing Colors for a pie chat in webdynpro ABAP

$
0
0

1. How to select different colors in pie chart for different categories?

Filter after set_cell_editor

$
0
0

Hello fellow programmers,

 

The column filter is not working anymore (after selecting the desired value in the column sort / filter menu, the table goes blank) after using the following methods for enabling / disabling the column for input:

       -  cl_salv_wd_uie_dropdown_by_key-> set_read_only_fieldname

       -  cl_salv_wd_column-> set_cell_editor

 

Anything I'm missing / doing wrong?

 

Thank you,

Kind regards,

Andu

Viewing all 3667 articles
Browse latest View live


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