Pages

Wednesday, 13 November 2013

Query Monitor in BW

We can use Query Monitor in BI to analyze BI Query. 
The transaction code to Query Monitor is RSRT / RSRT1 / RSRT2 .
If you open these transaction codes, you will find they look pretty much the same.

What is the key differences between these 3 transaction code?

This is the answer by Jasprit in one of the SCN post:
"As SAP BW Evolved , the RSRT Tcode has been improved on...
 
In BW 2.1 C we just had the RSRT T-code where we could just do some basic analysis, required for the functionalities available in 2.1C
 
RSRT1 and RSRT2 were later developed in the more recent versions, and one can do tests for the Web reports etc etc.
 
Regards,
Jasprit"

Wednesday, 18 September 2013

Hiring from SAP E-Recruitment portal (3)

What if we have additional information to be passed from SAP E-Recruiting to SAP ERP HCM System(ECC)?

We can achieve this by implementing the BAdI to add additional data / fields for inbound or outbound processing.

First you have to implement the BAdI for the outbound processing, which is with postfix "CreateConfirmation_Out".
Implement the method IF_PERSONNEL_HIRING_ADTNL_FLDS~HANDLE_ADDITIONAL_FIELDS

You can achieve two things here,
1. To add additional field by giving name and value.
2. Change any standard XI fields value

Sample code to change gender code value
  FIELD-SYMBOLS: <fs> TYPE LINE OF ty_namevalueasstring.

  DATA ls_fields TYPE LINE OF ty_namevalueasstring.

  READ TABLE ct_xi_shadow_fields ASSIGNING <fs> WITH KEY name = 'GENDER_CODE'.

  IF SY-SUBRC = 0 .
    move 1 to <FS>-VALUE   .
  ENDIF.

To add new field 'ZNAME' into XI fields table, you can use this sample code

  ls_fields-name = 'ZNAME'.
  move 'ZVALUE' to ls_fields-value  .
  INSERT ls_fields INTO TABLE ct_xi_shadow_fields.


Hiring from SAP E-Recruiting portal (2)

Under XI Integration setting in SPRO, you can check what are the standard fields available in SAP E-recruiting to be filled up and can be passed to hiring process in SAP ERP HCM System(ECC).

Generally, the list of fields can be classified into few area:
Address(Infotype 0006), Personnel information(Infotype 0002), Education(Infotype 0022), Qualification(Infotype 0024) and Organization Assignment(Infotype 0001).





Hiring from SAP E-Recruiting portal (1)

To implement hiring from SAP E-Recruiting portal, one of the pre-requisites is to setup the XI integration setting.

The purpose of this is to setup environment to pass candidate / requisition information from SAP E-Recruiting to SAP ERP HCM System(ECC). In ECC, hiring process will be triggered subsequently and create new employee .

To configure XI integration in SAP E-Recruiting, access to following path:
SPRO > Personnel Management > HR Administrative Services > Configuration of Forms/Processes > XI Integration.

To test the interface, go to SAP E-Recruiting server, access to ABAP Proxy object using transaction code SPROXY > look for Enterprise Services Repository(ESR) > ERECRUIT 606 (for SAP Enhancement Package 6 for SAP ERP 6.0) > http://sap.com/xi/ERECRUIT/Global2 >

PersonnelHiringERPCreateConfirmation_In - for inbound processing
PersonnelHiringERPCreateRequest_Out - for outbound processing






Thursday, 5 September 2013

How to test your HCM processes and forms without Adobe Form.

There is a standard program RPASR_TEST_PROCESS_EXECUTION for developer to test solely on process without involving adobe form.

Or you can use transaction code HRASR_TEST_PROCESS to access to this program.

Example you want to raise a special payment for an employee, and you would like to test the functionality of the process
- Firstly, open HRASR_TEST_PROCESS transaction code.
- Secondly, fill in
Application, for this case we will be using SAP_PA
Process as HR_PA_XX_SPECIAL_PAYMENT_1
Employee number as 27831, and
Role of initiator, you can use any of the role below to trigger this process.
HRASRA HR Administrator
HRASRB Manager
HRASRC XI Inbound
HRASRD Employee
HRASRE Expert for Error Handling

Execute it and system will simulate what are the fields value exactly the same as value to be passed to adobe form, if you test this in portal.
You can utilize the "Initialize" and "Check" button to trigger initialize / do_operation event in your generic service. You can also send this request to test if your workflow.



What is scenario step and how to use it

Consider this scenario when a employee leave the company
- When employee raise a leaver request, you might want to show date of leaving and reason of leaving as mandatory fields on form
- When this leaver request work flowed to manager, you want both date of leaving and reason of leaving to be displayed as ready only; and to show another text box to allow manager to enter some comments.
- Lastly, when HR Admin received this leaver request, HR Admin all fields on form should be displayed only.

If you have multiple scenarios as above within a form scenario, you might want to use scenario step to divide them into few steps, and to work as stage of the form is with who and how the form should be behaved.

To implement the above scenario, others than making use of scenario step(s), you will need to do a few things.

- Firstly, scenario step value will be stored in a field called 'FORM_SCENARIO_STAGE'. Thus you will need to append this field into special field table under IF_HRASR00GEN_SERVICE~GET_SPECIAL_FIELDS method of your generic service.
- Secondly, add FORM_SCENARIO_STAGE field into your fields table

- Now during you can read this field from special fields table in your INITIALIZE / DO_OPERATION method whenever your forms first loaded and refreshed.
- Also, you can do some form scripting to control on the form behavior based on the scenario step's value. For example below, if your form being open during step HRS, you want to make this fields as a visible and mandatory field.

if ( ($record.FORM_SCENARIO_STAGE.DATA.FIELD == "HRS"   &
      $record.MASSG.DATA.FIELD == "09" ) |
then
      this.presence = "visible"
      this.access = "open"
      this.mandatory = "error"
else    
      this.presence = "hidden"
endif


Wednesday, 4 September 2013

Implement input helps from the ABAP Dictionary (DDIC) in Adobe form

As we know, normally we will fix the drop down value serve as search help.
Or we can trigger ABAP WDP application to display search help.

Here this is another method that you can implement the old method of HR form which using ISRSCENARIO to populate input helps from ABAP Dictionary(DDIC) in Adobe form.

Here how we achieve this :
1. First add a button onto form which will be used to pop up search help
2. In the click* event of the button, add this JavaScript code
xfa.record.CONTROL_PARAM.ISR_EVENT.value = "USER_EVENT_CHECK";
xfa.record.GENERAL_DATA.HEADER.EXT_REF_NUMBER.value = "VALUE_HELP";
3. In the exit* event of the button, replace the wording REPLACE_THIS with the field name which has bound to a data element contains search help.
var fieldName = "REPLACE_THIS";
as var fieldName = "PLANS";

Example, update button will call up position search help.