cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer Custom OM Infotype data through ALE for HRMD_ABA Message type

Former Member
0 Kudos

Hello Folks,

I have created a Custom OM Infotype.When i run the PFAL transaction. All the standard infotype data is getting filled, but i dont see custom infotype data getting filled.

Example: HRP9001 is the custom infotype.

Please let me know the step by step process to populate the Custom infotype data in ALE Transfer.

Thanks & Regards,

Nishanth Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I think function module RH_MASTER_IDOC_DISTRIBUTE_HRMD shows some odd behaviour. It calls EDI_DOCTYPS_OF_MESTYP, which returns the name of the extension in an internal table named "doctyps". But later on, function module MASTER_IDOC_DISTRIBUTE is called with a structure "f_idoc_control". In this structure, the field "cimtyp" should hold the name of the extension, but it NEVER gets filled, although the value is present in doctyps-cimtyp.

So what I have done, is to activate userexit #004, which is called just before MASTER_IDOC_DISTRIBUTE and modifies structure f_idoc_control, if desired.

Call transaction CMOD and create a project in a non-SAP namespace: Zxxxx. The enhancement we need is "RHALE001" (HR-CA: Enhancement for ALE functionality in HR). One of its components is EXIT_SAPLRHA0_004, which consists of include ZXHALU08. In this include I called EDI_DOCTYPS_OF_MESTYP again to fill f_idoc_control-cimtyp.

Here is my code for include ZXHALU08

DATA: z_doctyps TYPE STANDARD TABLE OF edidocs WITH HEADER LINE.

CALL FUNCTION 'EDI_DOCTYPS_OF_MESTYP'
  EXPORTING
    mestyp         = f_idoc_control-mestyp
  TABLES
    doctyps        = z_doctyps
  EXCEPTIONS
    invalid_mestyp = 1
    OTHERS         = 2.

IF sy-subrc = 0.
  LOOP AT z_doctyps.
    f_idoc_control-cimtyp = z_doctyps-cimtyp.
  ENDLOOP.
ENDIF.

Hope this helps

christine_morin
Employee
Employee
0 Kudos

Dear Nishanth,

All you need to know it is in note 105148 "HR-CA-ALE: Additional infotypes for distribution". All the functionality described in this note is valid for all releases and not only for 46C as mentionned. If you need further details, please let me know.

Also please do not forget to update table T777D with custom segment ZP9001.

Regards

Christine

Edited by: Christine Morin on Sep 11, 2009 1:29 PM

Edited by: Christine Morin on Sep 11, 2009 1:30 PM

Former Member
0 Kudos

To top

Former Member
0 Kudos

I Have done Extended the custom segment Z1P9001 as mentioned in the notes above.

But when i run Using PFAL(Trnsfer data through ALE) iam below error

"Internal error: Program read table idoc_structure

command data_select_for_block, argument Z1P9001"

Please help me out in correcting above error.