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

PATH_GET_NODE to fill subnodes in webdynpro ABAP

$
0
0

Hi,

 

In the config controller we are getting static attributes of the subnode

 

node2 = wd_context->path_get_node( path = `MAINNODE.SUBNODE` ).

  node2->get_static_attributes_table( importing table = lt_node2 ).

 

After upgrade to EHP7 it is not retrieving contents.

 

Configuration will be cleared after upgarde..? if yes how to resolve this issue.

 

Is anybody faced similar kind of issue..if yes can you please throw some light.

 

Regards

Sam


Display a pdf after action

$
0
0

Hi all,

 

I'm working on a report which contains actions allowing the user to reach a a new page. In this new one, a pdf stored on the application server has to be displayed.

 

On the PDF view, I created an interactive form linked with my context (PDF_DATA-PDF : xstring)


       gv_filepath = '/tmp/test.pdf'.


       " Open the file in binary mode
       OPEN DATASETgv_filepath FOR INPUT IN BINARY MODE.


       IF sy-subrc = 0.
         READ DATASETgv_filepath INTO gv_filedata.
       

           IF sy-subrc = 0.
                CLOSE DATASETgv_filepath. "Close the file

                " Convert the file from hex-string to Binary format
                CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
                  EXPORTING
                    buffer        = gv_filedata
                  IMPORTING
                    output_length = gv_filesize
                  TABLES
                    binary_tab    = gt_bin_data.



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

Here, I don't know what to do with this gt_bin_data....


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


            lo_node = wd_context->get_child_node( 'PDF_DATA' ).
            lo_node->set_attribute( name = 'PDF' value = ?).

            wd_comp_controller->gestion_affichage().


         ENDIF.

       ENDIF.

Please suggest how do I handle this?
      

Embed HTML content in WebDynpro (ABAP) HTMLContainer

$
0
0

Can anyone tell me how to embed a full HTML page (MIME Object) within a WebDynpro (ABAP) HTMLContainer (or HTMLIsland or HTMLFragment)?  I have searched the posts for the answer, I have reviewed the documents that everyone points to, but I don't see an HTML file being uploaded as a MIME object and then that MIME object associated with an HTML container.  The HTMLIsland has the staticHtml attribute but I wouldn't expect to type in an entire webpage's HTML within that attribute.  I see how I can associate a JS script MIME object with the HTMLScript element and fire that off when pressing a button or whatever, but I don't see a way to simply have the entire contents of the HTML file displayed when the WD webpage is loaded.  Put another way, if I upload an HTML file as a MIME object, what then can I do with that MIME object?

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

calling external web application by passing parameters and getting response back in webdynpro portal environment

$
0
0

Hello Experts,

I have a business problem wherein I need to call exernal Java web application by passing paramters like name, city, state, country and many more approx 15 fields in total from a webdynpro application which is in portal environment. After calling the web application it will send response back again to the same webdynpro application from where the call was originated. This all has to be done in portal environment. We ave to utilize HTTP POST request.

 

Can you help me in designing of this solution.

 

Thanks.

encountered errors when opening URL

$
0
0
  • The following error text was processed in the system LEP : Adapter error in &VIEW_ELEMENT_TYPE& "ZZY" of view "ZHR_WD_AP.ZHR_WD_AP_MES": Context binding of property VALUE cannot be resolved: Node ZHR_WD_AP_MES.1.GET_BASIS does not contain any elements

 

controller nodes

 

ctrlpng.png

 

view nodes

view.png

 

I noticed that the erorr said 'ZHR_WD_AP_MES.1.GET_BASIS', but there is no '1' in the nodes structure.

Is it the reason that caused error?

POWL Count and Refresh issue!

$
0
0

Hello,

 

I have scenario to display two different work-list in POWL component in Portal,  both tabs displaying correct worklist as expected.

But the Problem is my second tab always shows count as (0) zero until the user click the second tab.  After that both tabs shows actual counts.

Attaching image for details.

any help/direction would be appreciated, thanks!

 

 

POWL ISSUE.jpg

 

 

Regards

Mani

display real time addition as we type number

$
0
0

Hi,

 

Is it possible to display real time addition, as we enter number in input field.  Say for example, I have three input fields: IP1, IP2 and IP3.

Now as I enter value in IP1 - Type the number, at the same moment IP3 should display sum of IP1 and IP2. 

IP2 = 10

IP1 = Typed 1 -->  IP3 = 11 

IP1 = Typed 12 --> IP3 = 22

 

We are not pressing enter or any button.

 

Is this possible in webdynpro abap, by any means (other ui element).

 

Thanks,

Sumeet


how to create Badi enhancement for SRM shopping cart (standard) WDP component

$
0
0

Hi Friends,

 

My requirement is to update or change the delivery address of the existing shopping cart. The user will change/edit the delivery address Name field of the FIRST LINE of the shopping cart item then the Badi code will automatically update the same value to all corresponding items.

 

First I need to know how to implement a BADI for  (I came to know Badi 'BBP_DOC_CHANGE_BADI' will be used to enhance the SC) the standard WDP component (i.e, shopping cart component name /SAPSRM/WDC_UI_DO_SHIPTO, view V_DODC_SHIPTO) so that when I trigger or editing the Delivery address tab, this new enhancement will be triggered and perform the logic.


Please help.

 

Thanks.

SRM 71: Making checkbox checked dynamically and triggering the actions

$
0
0

Hello please can you help,

 

Within the "Create Contact Person" screen in SRM 713 on netweaver 740 I need to make the checkboxes "Create User for Contact Person" and "Existing SU01 User" checked on entry into the screen, I also need to fire any actions associated to these checkboxes and then make them read only.

 

I have managed to be able to check the checkboxes by implementing an enhancement into the web dynpro component /SAPSRM/WDC_MODC_CPD_UD within a post-exit of method WDDOMODIFYVIEW using the code below, however, the actions associated to these checkboxes are not being fired. I have tried to call the on action method for the checkbox actions but this is not updating the screen.

 

I have also tried with no success to change the values with the controller but have not included that code... to be honest I seem to be able to update the screen in various ways but not trigger the actions. What is the correct way to update elements dynamically?

 

"This code does check the checkbox and does display it to the screen, however it does not trigger the actions

data lo_nd_cp_user_data type ref to if_wd_context_node.

data lo_el_cp_user_data type ref to if_wd_context_element.

data lor_element type ref to cl_wd_checkbox.

 

if first_time eq abap_true.

 

     lo_nd_cp_user_data = wd_context->get_child_node( name = wd_this->wdctx_cp_user_data )

     lo_el_cp_user_data = lo_nd_cp_user_data->get_element( ).

 

     lor_element ?= view->get_element('C_EXISTING').

     if lor_element is bound.

          lor_element->set_checked( abap_true ).

     endif.

 

endif.

 

 

I did find some articles that suggested that you call the onaction method for the action rather than trigger the event, so I have tried to do that but the context_element parameter within the event parameters of the event has a value with a data type defined as being "REF TO \TYPE=%T00004S00000102O0000001584" and an absolute type defined as "\TYPE=%_T00004S00000423O0000001344". I have no idea what types these are and cannot create an object containing these. If there is a way to trigger the event rather than calling the event handler method with a dummy event?

 

This code does not error, it calls the onaction method but does not hide the elements that would be hidden had the user checked the box for themselves. It could simply be that the types are incorrect for the CONTEXT_ELEMENT value or is there a better to trigger an action.

 

constants:

     lc_element_name_c_existing(10) type c value 'C_EXISTING'.

 

data:

     lor_dummy_event type ref to cl_wd_custom_event,

     lit_event_params type wdr_event_parameter_list,

     lwa_event_param type wdr_event_parameter,

     lv_wdr_value_id type wdr_value,

     lor_dummy_data type ref to data.

 

 

lv_wdr_value_id = lc_element_name_c_existing.

lwa_event_param-name = 'ID'.

insert lwa_event_param into table lit_event_params assigning <lfs_parameter>.

get reference of lv_wdr_value_id into <lfs_parameter>-value.

 

lwa_event_param-name = 'CONTEXT_ELEMENT'.

insert lwa_event_param into table lit_event_params assigning <lfs_parameter>.

get reference of lor_dummy_data into <lfs_parameter>-value.

 

lwa_event_param-name = 'CHECKED'.

lv_wdr_value_checked = 'X'.

insert lwa_event_param into table lit_event_params assigning <lfs_parameter>.

get reference of lv_wdr_value_checked into <lfs_parameter>-value.

 

create object lor_dummy_event

     exporting

          name = 'ON_TOGGLE'

          parameters = lit_event_params.

 

wd_this->onactionexist_user( lor_dummy_event ).

 

 

regards,

 

Darren.

WDA: Hiding a standard column

$
0
0

Hi All,

 

In my WDA component I want to hide the column it is a standard screen. At attribute level we can not change the config. Kindly let me know what needs to be done.

screen1.jpg

screen2.jpg

Passing value to "invisible" input field from Search Help

$
0
0

Hello,

 

My question is what the properties settings should be in order for invisibleinput field to receive values returned from a search help.

 

1.  I created a search help using SE11 that returns multiple fields to web dynpro.  The search help is assigned to all the fields in the dictionary structure that I created.

 

2.  I created a node in the web dynpro at the componentcontroller level which I defined with the dictionary structure.  I copied and map to a node in my view.  I also binded all the fields to their respective UI on my view.

 

3.  I tested the search help and all fields values are retrieved when the input fields are visible.  However, when I make a field invisible, the UI does not receive the values from the search help.

 

I thank you in advance for your response.

 

Kind Regards,

Rae Ellen Woytowiez

How to change WD ABAP Threshold Slider theme

$
0
0

Dear All,

 

I have used threshold slider UI element in my application. But the look and feel is not good. We need to click on the slider points. I would like to have below look and feel to the slider. Is it possible ? Please let me know some theme variant can achieve this ? thanks in advance.

slider.JPG

Regards,

Aleem.

Webdynpro layout issue

$
0
0

Hi all,

 

I have been working on WD from a while and is use to working on layout something like given in snap shot old alv.

Now, though I am working on the latest SAP version I am not getting the screen, layout and layout elements as before given in snapshot new alv. Help me in getting back the old look and feel. Not sure if i am missing any configuration.

Color a particular cell of alv webdynpro

$
0
0

Hi ,

 

I have a requirement where in i need to color a column in alv webdynpro. I have written a code but in that the cell which is getting coloured is the second row and not the first row which I actually want.Kindly suggest.


Category ABAP Programming Error

$
0
0

Hello gurus,

 

I am getting the below runtime error and it comes from a standard SAP program. Pls let me know if there are any SAP notes or way to solve this issue.

 

Category ABAP Programming Error

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED

ABAP Program CL_WDR_CLIENT_SSR_LS==========CP

Application Component  BC-WD-ABA-REN

 

How to correct the error

     Probably the only way to eliminate the error is to correct the program.

     -

     If the error occurs in a non-modfied SAP program, you might be able to

     find a solution in the SAP Notes system. If you have access to the SAP

     Notes system, check there first using the following keywords:

 

"OBJECTS_OBJREF_NOT_ASSIGNED"

"CL_WDR_CLIENT_SSR_LS==========CP" bzw. CL_WDR_CLIENT_SSR_LS==========CM001

"IF_WDR_CLIENT~SEND_RESPONSE"

   

 

thanks,

Sanjogita

WDA: How to have the field in Dynamically Editable/Read Only mode

$
0
0

Hi All,

 

I have a field street5.When In display mode I have written the following code to have it in read-only mode.

Similarly when creating it is in Editable mode.

 

Above conditions work fine.

 

But when in change mode the field still displays as Read-only mode.screen1.jpg

 

How to make it Editable mode..Sy-ucomm not showing any function code.

 

On Click of Edit Mode:

screen2.jpg

 

Field still shows Display mode. What needs to be done to have it in Editable mode

 

Code:Select query check whether data in table. If data is there I am displaying as 'Display only mode". When I go to change mode same code is executed,how to restrict it?

screen3.jpg

calling external web application by passing parameters and getting response back in webdynpro portal environment

$
0
0

Hello Experts,

I have a business problem wherein I need to call exernal Java web application by passing paramters like name, city, state, country and many more approx 15 fields in total from a webdynpro application which is in portal environment. After calling the web application it will send response back again to the same webdynpro application from where the call was originated. This all has to be done in portal environment. We ave to utilize HTTP POST request.

 

Can you help me in designing of this solution.

 

Thanks.

DUMP IN CL_WDR_CONTROLLER->DO_EXIT IN A WEBDYNPRO

$
0
0

Hi,

 

I have created an webdynpro component with two tabs and simple tables in  both the tabs.While I  am executing the application in properly working But while I am checking in ST22 a dump is showing at the time of changing the TABS in the application.

 

And the dump is as follows.

 

Category               ABAP Programming Error

Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO

Except.                CX_SY_REF_IS_INITIAL

ABAP Program           CL_WDR_DELEGATING_VIEW========CP

Application Component  BC-WD-ABA-RUN

Date and Time          20.07.2016 07:14:55

 

 

 

 

 

 

Short text

     Access via 'NULL' object reference not possible.

 

 

 

 

 

 

What happened?

     Error in the ABAP Application Program

 

 

     The current ABAP program "CL_WDR_DELEGATING_VIEW========CP" had to be

      terminated because it has

     come across a statement that unfortunately cannot be executed.

 

 

 

 

 

 

What can you do?

     Note down which actions and inputs caused the error.

 

 

 

 

     To process the problem further, contact you SAP system

     administrator.

 

 

     Using Transaction ST22 for ABAP Dump Analysis, you can look

     at and manage termination messages, and you can also

     keep them for a long time.

 

Error analysis

    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 "DO_EXIT" "(METHOD)", 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.

 

 

Source Code Extract

 

 

Line  SourceCde

 

 

    1 method do_exit .

    2

    3   data: l_service            like line of if_wdr_service_target~registered_services,

    4         l_controller_service type ref to if_wdr_controller_service.

    5

>>>>>   delegate->wd_do_exit( ).

    7

    8   loop at me->if_wdr_service_target~registered_services into l_service.

    9     try.

   10         l_controller_service ?= l_service-service.

   11         try.

   12             l_controller_service->post_wddoexit( controller = me ).

   13           catch cx_sy_dyn_call_illegal_method.

   14             continue.

   15         endtry.

   16       catch cx_sy_move_cast_error.

 

 

 

How to correct the error

    Probably the only way to eliminate the error is to correct the program.

    -

 

 

    If the error occures in a non-modified SAP program, you may be able to

    find an interim solution in an SAP Note.

Logon with URL parameter not possible; logon cookie is missing after EHP8 upgrade

$
0
0

Hi All,

 

There is a problem when we are trying to login to webdynpro application using the SAP Logon method as UIDPW. We are launching a WD application through our SAP Enterprise portal such that the non SAP users can access it using the above SAP Logon method.

 

Created system object for ECC system which is hosting this webdynpro application on our Enterprise portal system and we have setup the Logon method as UIDPW. Connection test to the Connector Setup and the WAS setup works fine with no issues.

 

We use a group called Employees in our LDAP which has User mapping set with UIDPW method, here we are using appropriate service user and its credential of our ECC system.

 

When non sap users login to our Enterprise portal and access this webdynpro application, they are getting logon prompt with below message.

 

Getting the error "Logon with URL parameter not possible; logon cookie is missing" Error no. ICF_SYSTEM_LOGIN402

 

We have checked the option "Deactivate Login XSRF Protection" for service Webdynpro in our ECC system as per SAP note 1617090. But still no luck.

 

Any thoughts whether we are missing something very basic setup here.

 

Thanks,

Prasanna

Viewing all 3667 articles
Browse latest View live


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