Quantcast
Channel: SCN: Message List
Viewing all 8851 articles
Browse latest View live

Re: How to Read FPM Events in WDDOBEFOREACTION

0
0

Hi,

 

Below code can be used to get the current executed FPM event.

 

DATA  io_event type cl_fpm_event.

io_event = wdevent->get_string( 'ID' ).

 

io_event will have the Event which is being triggered.

 

 

FPM event can be captured in WDDOBEFOREACTION, but since this hook method is invoked before any events in the view, so it will throw a dump , if any action is triggered other FPM event.

 

So it is better to write the validation in Component controller method,(ON_PROCESS ), if we want to Validate based on prev and next buttons.

 

 

 

DATA  io_event type cl_fpm_event.

 

CASE io_event->mv_event_id .

    WHEN cl_fpm_event=>'NEXT'.          " Global constants can be declared like gc_event_edit,etc

          .

          .

          .

            .

Endcase.

 

Regards,

Harsha J


Re: How to Read FPM Events in WDDOBEFOREACTION

0
0

Hi Harsha J,

 

Thanks for the response. The fields in the View are enabled with Mandatory property and the Mandatory validation happens in the WDDOBEFOREACTION method.

 

So there is no way we can get what Button was clicked in this method.

 

Thanks again.

 

Regards,

 

PK

Re: Regarding self declaration of SAP license usage

0
0

Hi Asad,

 

First i would like to refer link https://websmp204.sap-ag.de/licenseauditing

Here you can get license audit complete details and will find how to use transactions USMM and SLAW for audit purpose.

 

Under USMM perform user classifications and execute system measurement to get measurementstatistics .


SAP IS solution for Consumer product

For the above license you need to manually declare on your organization letter head and 'll have to send to SAP.

 

Hope this info will help you.

 

Regards,

Gaurav

Re: Connection for Excel file

0
0

Thanks.

However, my client has no FTP server. The file is on the end user computer.

One more problem is that i am having trouble with ALSM_EXCEL_TO_INTERNAL_TABLE.

i can get the data to internal table which is "DATA IT TYPE TABLE OF ALSMEX_TABLINE", but how can i transfer data from IT to my ZTABLE since the IT have only 3 fields which are ROW, COL, and VALUE?


How can i transfer data from internal table using ALSM_EXCEL_TO_INTERNAL_TABLEto my ZTABLE?


Re: How to Read FPM Events in WDDOBEFOREACTION

0
0

correction its Process_event method

Re: Connection for Excel file

0
0

Thanks.

However, my client has no FTP server. The file is on the end user computer.

One more problem is that i am having trouble with ALSM_EXCEL_TO_INTERNAL_TABLE.

i can get the data to internal table which is "DATA IT TYPE TABLE OF ALSMEX_TABLINE", but how can i transfer data from IT to my ZTABLE since the IT have only 3 fields which are ROW, COL, and VALUE?


How can i transfer data from internal table using ALSM_EXCEL_TO_INTERNAL_TABLE to my ZTABLE?


Re: Rollback Work is showing no impact.

0
0

Oh! Thanks for the info, however I have found a 'not-so-good' solution for my problem.. I have enclosed the Number Range FM and related process-coding inside a Subroutine & before displaying of data I am using RollBack Work and after the save I am reprocessing the same Subroutine and directly inserting into the database.

Re: Modifying Search Help Result Field

0
0

Hi Sylvain,

 

since you would like to avoid sh exit and keep changes in the ABAP ddic only, then you should create a domain for data element ZPRODH2 with lenght 15 and attach a conversion routine in the definition tab and you also might set ZPRODH2 to lenght 15. In transaction SE37 write two conversion exits in the same manner that SAP does: with an input and output parameter only. Make sure that they conform to the naming convention: CONVERSION_EXIT_XXXXX_INPUT and CONVERSION_EXIT_XXXXX_OUTPUT.

Use the defined name XXXXX to your domain conversion routine in the definition tab.

 

Use string manipulation in the FM:

*"----------------------------------------------------------------------

*"*"Lokale Schnittstelle:

*"  IMPORTING

*"     VALUE(INPUT) TYPE  CLIKE

*"  EXPORTING

*"     VALUE(OUTPUT) TYPE  CLIKE

*"----------------------------------------------------------------------


DATA: V_INPUT LIKE INPUT.

V_INPUT = INPUT.

OUTPUT = V_INPUT+10(5).

 

ENDFUNCTION.



Best Regards.


Re: Error in conversion units

0
0

Hi Edgar,

               Your above ans clear my confusion, Thanks a lot,

 

Thank you everyone, thanks a lot,

 

Regards,

Pratik

Re: Master data is coming wrong in sap bw, although in source system it is corect

0
0

Hi,

 

our source system is CRM where the data is correct.I checked at extractor level in RSA3 in CRM prod itself where the data. The data is wrong over there.

 

In CRM it is correct but in extractor it is wrong.

 

Pls guide how to rectify the wrong data at extractor level.

Re: Can SMP 3.0 use backend SAP directly without Netweaver gateway ?

0
0

Integration gateway is the solution here. Integration gateway replaces NWGW.

Re: Adding a calculation line in Cross-tab

0
0

Hi Brian,

 

Here's what you need to do:

 

1) While in the Preview Mode, Right-click the 2011 cell header > Select Calculated Member > Select xxxx as first value > Click OK on the message prompt

 

2) Then, right-click the header cell for 2010 > Select Calculated Member > Select Difference of xxx and xxx

 

3) A new row called 'Difference' is automatically added below 2010.

 

4) To move this row below 2011, right-click the Header cell 'Difference' > Calculated Member  > Edit Insertion formula > Comment out the existing code and use this:

 

Year(GridRowColumnValue("Date")) = Year(Maximum({Date}))

 

Replace 'Date' with the Date field used as the row in the crosstab. Make sure they are used exactly the way I have above - first part should have double quotes and the second part should have parenthesis.


-Abhilash

Re: Unable to Tag changes to transport request

0
0

Dear All,

Thanks for your help and suggestions,

Issue got resolved after going through the below thread

Query designer does not save, popup disappeared.

 

we have asked Basis to upgrade our SAP GUI from 7.2 to 7.3 by re installing .

Hope it helps others .

Thanks & Regards,

Sudhir.

Re: Introscope Host Adapter - All configured Enterprise Managers are offline Error

0
0

Hi Tariq,

 

  Your enterprise manager is offline.  You need to start it up.  Normally it happens when the load on Enterprise manager is high.  It will be available in log located at /usr/sap/ccms/apmintroscope/logs

If the number of agents connecting to enterprise manager are increase try increasing the xmx for enterprise manager using the standard "/usr/sap/ccms/apmintroscope/Introscope_Enterprise_Manager.lax" file.  Search for xmx string and increase the value to say "-Xms512m".  To make java em memory consistent all the time we put "-Xms512m -Xmx512m" so java memory stays same all the time.

 

  If you happen to see enterprise manager go down often consider this.

 

Best Wishes,

Giridhara

Screen Painter container error

0
0

Hi I have used a screen painter to have buttons in my alv and Im new in using it. Can you help me because I'm having a dump .

Whenever I click on a button the dump appears.

I've put breakpoint in my  Module LIST and it's not passing here it jumps automatically in the MODULE USER_COMMAND_0100 INPUT. The module List shoud run before clicking a button. Ive checked se 51 as well:

PROCESS BEFORE OUTPUT.

 

  MODULE STATUS_0100.

*

PROCESS AFTER INPUT.

  MODULE USER_COMMAND_0100.

 

Below is the Code:

MODULE LIST OUTPUT.

DATAR_CONTAINER  TYPE REF TO CL_GUI_CUSTOM_CONTAINER,

        R_GRID       TYPE REF TO CL_GUI_ALV_GRID.

DATAgv_success_log TYPE c,

        gv_error_log   TYPE c.

 

   TYPES: BEGIN OF typ_logs,

               ZROW          TYPE ZLOGS_UPLOAD_APPRAISAL-ZROW,

               ZMESSAGE      TYPE ZLOGS_UPLOAD_APPRAISAL-ZMESSAGE,

               ZSTATUS       TYPE ZLOGS_UPLOAD_APPRAISAL-ZSTATUS,

               ZCHANGEDBY    TYPE ZLOGS_UPLOAD_APPRAISAL-ZCHANGEDBY,

               ZCHANGEDDATE  TYPE ZLOGS_UPLOAD_APPRAISAL-ZCHANGEDDATE,

            END OF typ_logs.

   DATA: it_report_error_log TYPE TABLE OF typ_logs,

         it_report_success_log TYPE TABLE OF typ_logs,

         it_report_log TYPE TABLE OF typ_logs.

 

   CREATE OBJECT r_container

     EXPORTING

       container_name = 'CONTAINER'.

 

   CREATE OBJECT r_grid

     EXPORTING

       i_parent = r_container.

 

   IF gv_error_log = 'X'.

 

     CALL METHOD r_grid->set_table_for_first_display

       EXPORTING

         i_structure_name = 'ZREPORT_LOG'

*        is_layout        = is_layout

       CHANGING

         it_outtab        = it_report_error_log.

 

 

 

   ELSEIF gv_success_log = 'X'.

 

     CALL METHOD r_grid->set_table_for_first_display

       EXPORTING

         i_structure_name = 'ZREPORT_LOG'

*        is_layout        = is_layout

       CHANGING

         it_outtab        = it_report_success_log.

 

 

 

   ELSE.

 

     CALL METHOD r_grid->set_table_for_first_display

       EXPORTING

         i_structure_name = 'ZREPORT_LOG'

*        is_layout        = is_layout

       CHANGING

         it_outtab        = it_report_log.

 

 

   ENDIF.

 

ENDMODULE.                 " LIST  OUTPUT

 

MODULE STATUS_0100 OUTPUT.

 

  SET PF-STATUS 'ZSTATUS'.

  SET TITLEBAR 'xxx'.

 

*  SET PF-STATUS 'xxxxxxxx'.

*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0100  OUTPUT

 

MODULE USER_COMMAND_0100 INPUT.

  CASE sy-ucomm.

     WHEN 'BCK'.

       LEAVE TO TRANSACTION 'ZTWEAKED_APPRAISAL_MIGRATION'.

     WHEN 'ERRORLOG'.

       gv_error_log = 'X'.

 

       CALL METHOD r_grid->free( ).

       FREE r_grid.

 

       CALL METHOD r_container->free( ).

       FREE r_container.

 

       CALL SCREEN 100.

     WHEN 'SUCCESSLOG'.

       gv_success_log = 'X'.

       CALL METHOD r_grid->free( ).

       FREE r_grid.

 

       CALL METHOD r_container->free( ).

       FREE r_container.

 

       CALL SCREEN 100.

   ENDCASE.

 

ENDMODULE.                 " USER_COMMAND_0100  INPUT




DUMP ERROR:

Access via 'NULL' object reference not possible.

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught and

therefore caused a runtime error.

The reason for the exception is:

You attempted to use a 'NULL' object reference (points to 'nothing')

access a component (variable: "R_GRID").

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.


Re: Softwares to be downloaded for Fresh installation

0
0

Hi Dheen,

 

Go through the Installation master guide(http://service.sap.com/insguides ) for required software DVD for complete installation. And Software Provisioning manager is the replacement of SAP installation master.

 

Thanks

Asad

Re: Read Master Data in BW Transformation

0
0

Hi,

 

     You can add master data text to your info object's attributes and through read master data to get text to data target.

Re: What would happen to SM 7.0 EHP1 after the end of it's maintenance?

0
0

7.0 and 7 .0 EHP1 are in the customer specific maintenance now. By doing so you would be missing out lot many features that you can take advantage of in 7.1. If you are concerned about existing functionality then there are tools available using which you can safely top the upgrade and transition to 7.1 without much hassle.

 

sshot-1.png

 

Regards,

Vivek

请教大师:有谁知道可以在PA模块中添加自定义字段备注内容

0
0

如图所示:在PA40模块中,是否可以相应添加一个文本字段对Reason for action进行说明?比如说自定义的文本框"International assignment period"

attached 1.jpg

Re: system copy - start export on application server / dialog instance

0
0

Yes,

 

I thought it is homogenous, For heterogeneous system copy he need to export/import option for copy.

 

Asad

Viewing all 8851 articles
Browse latest View live




Latest Images