Quantcast
Channel: SCN : Unanswered Discussions - Web Dynpro ABAP
Viewing all 3637 articles
Browse latest View live

Error pages - changing /sap/bc/webdynpro node

$
0
0

Hi,

 

I have a question related to ICF error pages.

Is it advisable to change it for all applications by modifying /sap/bc/webdynpro node or I should rather change it for each ICF node at application level?

I want to have the same error page for all applications but want to avoid any problems or overwriting it during upgrade.

 

When I try to do it on /sap/bc/webdynpro level there is following message shown: 'Make repairs in foreign namespaces only if they are urgent".

 

And when I enter OTR Alias "Creating the alias in the non-original system could result in database errors Read Notes 1037771 and 1031500 - Do you want to create the alias here anyway?"  OTR is saved in standard package SWDP_RUNTIME_CORE then.

 

Help mentions setting per application - http://help.sap.com/saphelp_nw04s/helpdata/en/5e/05a5421935c511e10000000a1550b0/frameset.htm


Popup table

$
0
0

Hi ,

 

      i created a view with table and fiew input fields.....in that table i have few editable  columns, when am displaying that table in  popup window am not getting those columns as editable mode.....am getting everything as display mode...please help me to solve this...

Error in ALV component Usage Instantiate

$
0
0

Dear Experts,

 

I am using 3 alv Component usage in my view for 3 different tables. Based on a condition in the drop down field i will display any one of the table.

For the first time the ALV is displaying fine. But when the other type of value is selected in the drop down the ALV Component usage already exist for the other usage and it is not creating the new component usage.

 

I tried even deleting the compont usage and creating again still its not displaying the alv table.

 

lv_y_alv_cmp_usage   =   wd_this->wd_cpuse_z_year_alv_usage( ).

IF lv_y_alv_cmp_usage->has_active_component( ) IS INITIAL.
lv_y_alv_cmp_usage
->create_component( ).
ELSE.
lv_y_alv_cmp_usage
->delete_component( ).
lv_y_alv_cmp_usage
->create_component( ).
ENDIF.

 

Kindly give some suggestions.

 

Thanks

Nalla B

How to call a view from the onaction method of another view.

$
0
0

Hi experts,

 

I have two view let view1 and view2 in my web dynpro component.

 

In view1 there is a submit buttons having an action name fetch .

 

Now within the code of onactionfetch I want to call second view as well as  want to pass wa data to to second view.

 

For Eg:

 

method ONACTIONfetch .

---

---

 

if sy-subrc <> 0.

 

******* call second view  ie view2

 

endif.

 

endmethod

 

 

thanks.

Unable to make component configuration in logon language

$
0
0

Hi there,

 

I'm new to FPM. I'm working in an upgrade project and i need to change the component configuration for HAP_OIF_PMP_MAIN as it was modified in our earlier version.

 

When i try to modify it after i'm getting a warning message "You can only edit in DE language, login with original language", but it is not allowing to edit.

Is there any workaround to make it editable in English language.

 

The upgrade happened from EHP4 to EHP6. In our EHP4 version the original language is showing as English, whereas in EHP6 it is showing as DE.

 

Thanks

Jay

How send Email Notifiaction when Run time Errors occurs in Web dynpro

$
0
0

Hi experts,

 

As a part of the Project we developed many Webdypro Application and we lunching these Application from SAP portal to Customers.

 

Now my requirement is in the case of ABAP Run times errors (Dumps) occurs, Need to send the Notification Email to business with some basic information.

 

I'm trying to find some options in SICF of the Web dynpro Application.

 

Please I really need your help on this.


Thank you in advance.

Venky.

How to find out number of selected row in RowRepeater?

$
0
0

Hello,

 

could you help me with WebDynpro, please?

 

I need to delete selected row of RowRepeater:

 

 

I don´t know how to recognize what row has been selected.

 

Thank you.

 

Monika

validate the OVS input field in WDA

$
0
0

Hi Experts,

 

I have to validate the input field OVS . If i entered data which is not present in the database table, it should not proceed furthur..

How do i achieve this. Guide me.

 

Best regards,

Rao     .


How to get a ALV Tree in FPM?

$
0
0

Hello everyone,

 

recently I started working with FPM. I created my first applications with simple Road Maps etc. Now I have the requirement to display cummulated data in a ALV tree within FPM.

 

Can someone please guide me with first steps how to realize that? Some links or tutorials in this matter. I searched via Google, but nothing really came up. I also searched this forum but FPM "and" ALV tree did not came up.

 

Can someone please help me by providing links or hints?

 

Best regards,

Dominik

Problem with search help

$
0
0

Hi,

 

I have really weird problem. I have fully functioning Webdynpro where I have an input box mapped to context attribute of type XUBNAME and the property suggestValue is set to YES. The input help mode of my attribute is set by default to Automatic and the search help USER_COMP is used because it is attached to that data element.

Many users are using this application and when they click the button on the field correct search help appears.

However so far there two users who have problem like this.

When they click the button on the field search help doesn't appear, but suggested value appears in full screen. Please have a look at the attachment

.

What could be the problem?

 

Thanks,

 

Stefan

 



   
 
 
 
 
 
 
 
 
 
 
 





Webdynpro ABAP customization /saptrx/em_fpm_ui std weddynpro component

$
0
0

Hi All,

 

We wanted to go for small customization on standard webdynpro component for /SAPTRX/EM_FPM_UI, which is a part of SAP EM 9.0 (Event Management) system. Currently there are 4 sections for EM Search, Search Results, Details and Event Messages sections. we have a requirement to add new section for AUSID line item details..

 

Please let me know whether any standard configuration through which we can customize the screen or please let me know more details of enhancement of webdynpro component in order to achieve the solution thru explicit enhancement.

 

If any of you have already did customization of standard Webdynpro component for SAP EM 9.0 then it would be great help to me. Thanks in advance.

 

Thanks and Regards

Sudhan

Applying background image for a view in webdynpro component

$
0
0

Hi ,

       i would like to apply background image for my view  in my webdynpro component. How can i do dis ?. is it possible in webdynpro . ?

change image for every 6 seconds without using timed trigger event

$
0
0

Hi,

     i have 2 images in  my view .how can i change  image for every 6 seconds without using timed trigger event in my view of webdynpro component? .. how to calculate 6 seconds ? .. please suggest me .

 

thanks in advance

Date Navigator UI Element Error in EHP4

$
0
0

Dear Experts,

 

I am in SAP_ABA Release 7.01 SP level 5

SAP_AP Release : 700 SP 18

 

I am using Date Navigator UI element with First and Last Selected Date Bound to two attributes of Type D.

I am Using the OnDaySelect event to set the Date Values into my screen Fields. But I am getting error as selected date '20131212' is an Invalid date immediately when i click on any date in the calendar.

 

I tried even dedugging in my dayselect event but the error came without going for the event.

 

I tried the Same logic in the Other System.

SAP_ABA Release 7.02 SP level 18

SAP_AP Release : 700 SP 27

 

Its working fine.

I doubt is there is any problem with the Date Navigator UI element in my current. I am not able to get any Specific SAP Notes for the same.

 

Kindly give some suggestions for the same.

 

Thanks,

Nalla B.

How to make Query refresh in POWL global

$
0
0

Hello,

 

I did read through a lot of threads around this, but it doesn't help this problem, one way or the other.

 

By default, the standard SAP delivered POWL queries are marked as refresh type as On Every List Visit.

As the default query parameters are not maintained, the result set is always large and navigating between queries always calls the feeder class, which we want to avoid.

 

So, I have made the query refresh type as Manual Only in POWL_QUERY, so that the query is not executed (after first time though) and it does work, but only for my user id. It's not reflecting in other systems.

 

How to make this setting global? I tried to run POWL_UI_COMP in admin. mode, but not sure how to give the application id and run by giving sap-config-mode ? I created a applic. configuration and comp. configuration on this WDC, but unable to find a parameter in confdata where I can change this refresh type globally.

 

Can someone guide me on this ? Thanks in advance.

 

Regards,

Sathish R


Webdynpro related real time objects

Singleton(Not set) instance changes in debugging mode

$
0
0

Hello everyone,

I am not able to find the exact difference between singleton vs non singleton concept.I have created a simple application

Node Vbak(fields: Vbeln ,Ernam) under this child node Vbap(Fields: Vbeln,Posnr,Matnr)(Singleton).

In Vbak -Winit method -:

  types: begin of ty,

         vbeln type vbeln_va,

         ernam type  ernam,

      end of ty.

*      tt type ty.

 

data: it type STANDARD TABLE OF ty,

      wa type ty.

 

select vbeln ernam into table it up to 20 rows from vbak.

    DATA LO_ND_VBAK TYPE REF TO IF_WD_CONTEXT_NODE.

 

    DATA LO_EL_VBAK TYPE REF TO IF_WD_CONTEXT_ELEMENT.

    DATA LS_VBAK TYPE WD_THIS->ELEMENT_VBAK.

 

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

    LO_ND_VBAK = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_VBAK ).

 

CALL METHOD LO_ND_VBAK->BIND_TABLE

  EXPORTING

    NEW_ITEMS            = IT.

 

Created a supply function module for Node VBAP(Property:Singleton,Cardinality:0..1,selection:0..n) followed by code:

  DATA ls_parent_attributes TYPE wd_this->element_vbak.

   data:context_node type ref to if_wd_context_node.

  parent_element->get_static_attributes(

    IMPORTING

      static_attributes = ls_parent_attributes ).

 

TYPES: BEGIN OF ty1,

        vbeln type vbeln_va,

        posnr TYPE posnr,

        matnr type matnr,

       end of ty1.

data: t_vbap TYPE STANDARD TABLE OF ty1.

select vbeln posnr matnr into table t_vbap from vbap where vbeln = ls_parent_attributes-vbeln.

  DATA LO_ND_VBAP TYPE REF TO IF_WD_CONTEXT_NODE.

 

  DATA LO_EL_VBAP TYPE REF TO IF_WD_CONTEXT_ELEMENT.

  DATA LS_VBAP TYPE WD_THIS->ELEMENT_VBAP.

 

 

  LO_ND_VBAP = WD_CONTEXT->PATH_GET_NODE( PATH = `VBAK.VBAP` ).

 

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

  CALL METHOD LO_ND_VBAP->BIND_TABLE

    EXPORTING

      NEW_ITEMS            = T_VBAP.

 

Now, if property is not set to Singleton,one instance per parent instance exists. The content of the instances does not change when the lead selection of the parent changes.

Removed Singleton property for Vbap:When I debug the supply FM  and select different sale order number (different lead selection) the instance(sale order number) is changing which should not happen as per the above definition.However Iam unable to find any difference either singleton/non singleton in debugging mode.

 

Please let me know if I am missing anything.

 

Regards,

P.D

External URL login

$
0
0

Hi All,

 

I need to trigger an external URL (eg: mail.yahoo.com) with pre populated user id & password in it (which will be a SAP User from Active directory). It can have other parameters as well.

Client do not have portal and we need to integrate the Webdynpro ABAP application in NWBC 4.0.

 

It is not mandatory to use Webdynpro ABAP so other solutions are also welcome.

 

regards,

nik

document not attached in DMS

$
0
0

Dear Team,

 

i am trying to upload a document in DMS through webdynpro...

document number is created but document is does not attached ... could any one resolve this problem.

thanks in advance.

Code & error screen shot is attached here .

 

method ONACTIONSUBMIT .
***file upload
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_file TYPE wd_this->Element_context-file.
data lv_file1 TYPE xstring .

*   get element via lead selection
lo_el_context
= wd_context->get_element( ).
*   get single attribute
lo_el_context
->get_attribute( EXPORTING name `FILE` IMPORTING value = lv_file1 ).
**data declaratioins
DATA: ls_draw TYPE draw,
ls_api_ctrl
TYPE cvapi_api_control,
ls_message
TYPE messages,
lv_documentnumber
TYPE doknr,
lv_storage_cat
TYPE cv_storage_cat,
lv_size
TYPE i,
*          ls_bindata TYPE zst_ts_Raw_line,
*          lt_bindata TYPE ztt_Hr_raw_line,
ls_drao
TYPE drao,
lt_Drao
TYPE TABLE OF drao,
lt_files
TYPE cvapi_tbl_doc_files,
ls_files
TYPE cvapi_doc_file ,
LS_DRAT
TYPE DMS_DB_DRAT ,
LT_DRAT
TYPE TABLE OF DMS_DB_DRAT .


ls_draw
-DOKAR = 'TST'.
ls_draw
-dokvr = '00'.
ls_draw
-doktl = '000'.
ls_draw
-dwnam = sy-uname.
ls_draw
-dokst = 'T1'.
LS_DRAT
-dktxt = 'TEST' .
insert drat FROM ls_drat .
APPEND LS_DRAT TO LT_DRAT .


lv_storage_cat
= 'DMS_C1_ST'.
ls_api_ctrl
-tcode = 'CV01N'.


CALL FUNCTION 'CVAPI_DOC_CREATE'
EXPORTING
PS_DRAW                   
ls_Draw
*                     PF_STATUSLOG               = ' '
*                     PF_REVLEVEL                =
PS_API_CONTROL            
ls_Api_ctrl
*                     PF_FTP_DEST                = ' '
*                     PF_HTTP_DEST               = ' '
*                     PF_HOSTNAME                = ' '
*                     PF_CONTENT_PROVIDE         = ' '
IMPORTING
PSX_MESSAGE               
= ls_message
*                     PFX_DOKAR                  =
PFX_DOKNR                 
= lv_documentnumber
*                     PFX_DOKVR                  =
*                     PFX_DOKTL                  =
TABLES
*                     PT_DRAD_X                  =
PT_DRAT_X                 
LT_DRAT
*                     PT_FILES_X                 =
*                     PT_COMP_X                  =
*                     PT_CONTENT                 =
*                     DOCUMENTDESCRIPTIONS       =
.

*data lv_file_b TYPE binary.

if ls_message-msg_type ca 'EA' .

ELSE.
LS_DRAW
-doknr = lv_documentnumber.
insert draw FROM ls_draw.

ENDIF.

*****
Data : thead type thead ,
lt_lines
TYPE TABLE OF tline,
it_lines 
TYPE  soli_tab ,
text1    
TYPE  string ,
lines2
TYPE xstring .

CALL FUNCTION 'READ_TEXT'
EXPORTING
id       = 'ST'
language = sy-langu
NAME    
= 'ZGOI'
OBJECT  
= 'TEXT'
IMPORTING
HEADER   = thead
TABLES
lines    = lt_lines.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst             
= 255
TABLES
content_in                 
= lt_lines
content_out                
= it_lines
EXCEPTIONS
err_line_width_src_too_long
= 1
err_line_width_dst_too_long
= 2
err_conv_failed            
= 3
OTHERS                      = 4.

REPLACE ALL OCCURRENCES OF '*' IN TABLE it_lines WITH ' '.

CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
EXPORTING
i_tabline_length
= 132
IMPORTING
e_string        
= text1
TABLES
it_table        
= it_lines.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text   = text1
IMPORTING
buffer = lines2
EXCEPTIONS
FAILED
= 1
OTHERS = 2.
data : lt_bindata  type table of x255 ,
ls_bindata
type x255 .
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER                = lines2
*                APPEND_TO_TABLE       = ' '
IMPORTING
OUTPUT_LENGTH        
= lv_size
TABLES
BINARY_TAB           
= lt_bindata
.

loop at lt_bindata INTO ls_Bindata.

ls_drao
-orblk = ls_bindata.
ls_drao
-orln lv_size.
ls_drao
-dokar = ls_Draw-dokar.
ls_drao
-doknr = lv_documentnumber.
ls_drao
-dokvr = ls_draw-dokvr.
ls_drao
-doktl = ls_drao-doktl.
ls_drao
-appnr = '1'.
*      INSERT drao FROM ls_drao .
APPEND ls_drao to lt_drao.
*      CLEAR ls_drao .
ENDLOOP .

CALL FUNCTION 'CV120_DOC_GET_APPL'
EXPORTING
PF_FILE         
= 'test.doc'
IMPORTING
PFX_DAPPL       
= ls_files-dappl .
*         TABLES
*           PTX_TDWP         =
.
ls_files
-appnr = '1' .
ls_files
-filename = 'test' .
ls_files
-updateflag = 'I' .
LS_files
-langu = sy-langu.
ls_Files
-storage_cat = 'DMS_C1_ST' .
ls_files
-description = 'test'.
APPEND ls_files to lt_files.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.

CALL FUNCTION 'CVAPI_DOC_CHECKIN'
EXPORTING
PF_DOKAR                
= ls_Draw-dokar
PF_DOKNR                
= lv_documentnumber
PF_DOKVR                
= ls_draw-dokvr
PF_DOKTL                
= ls_draw-doktl
*           PS_DOC_STATUS            =
*           PF_FTP_DEST              = 'D:\a'
PF_HTTP_DEST            
= 'SAPHTTPA'
*           PF_HOSTNAME              = ' '
PS_API_CONTROL          
ls_api_ctrL
*           PF_REPLACE               = ' '
PF_CONTENT_PROVIDE      
= 'TBL'
IMPORTING
PSX_MESSAGE             
= ls_message
TABLES
PT_FILES_X              
= lt_files
*           PT_COMP_X               =
PT_CONTENT              
lt_drao .

Commit WORK.

endmethod.

Table Properties

$
0
0

Hi!

 

Can any One tell me how to display table footer (i.e. Shuttle ) for rows navigation in Web Dynpro ABAP.

Although I have increased visible row count and scrollable col count yet I am unable to display footer in table..

 

 

Please provide me solution to this ...

 

 

 

 

Thanks !

Viewing all 3637 articles
Browse latest View live


Latest Images

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