ALE im HR-Umfeld: FuBa RH_PNNNN_IDOCSDATA_CONVERT !??

ALE im HR-Umfeld: FuBa RH_PNNNN_IDOCSDATA_CONVERT !??

Postby Yannic4553 » Tue Jun 15, 2004 1:06 pm

Hallo,

ich bin am verzeifeln! :oops:
Wer kennt sich mit dem Funktionsbaustein RH_PNNNN_IDOCSDATA_CONVERT im HR-ALE-Umfeld aus und kann mir einen kleinen Tipp geben? Hierfür vielen Dank im Voraus.

Das Problem:
Ich möchte die Daten des Infotypen 0001 (Org.Zuordnung) von der DB lesen, anschließend manipulieren und in ein IDoc-Format mittels genanntem Funktionsbaustein konvertieren. Das ganze geschieht in einem User-Exit des Programms RHALEINI, bevor das entsprechende IDoc verschickt wird.

Leider kenne ich mich im ALE-Umfeld wenig bis gar nicht aus und habe daher Probleme bei der Vorgehensweise.

Mein Coding sieht zur Zeit so aus:

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. data: it_pa0001         type table of pa0001,
  2.        wa_pa0001         type pa0001.
  3.  
  4. DATA: sdata_name like dcobjdef-name.
  5.  
  6. DATA: it_modify_0001    LIKE prelp       OCCURS 0 WITH HEADER LINE.
  7. DATA: it_objects        LIKE hrobject    OCCURS 0 WITH HEADER LINE.
  8. DATA: it_out_hrobjsdata LIKE hrobjsdata  OCCURS 0 WITH HEADER LINE.
  9. DATA: it_error_message  LIKE hrale_err   OCCURS 0 WITH HEADER LINE.
  10.  
  11.  
  12.  
  13. *--- Infotyp nachträglich aus DB-lesen zwecks Manipulation ---*
  14.     SELECT * FROM pa0001
  15.              INTO TABLE it_pa0001
  16.             WHERE pernr EQ ?00004711?   "zu Testzwecken eingeschränkt
  17.               AND begda LE '99991231'
  18.               AND endda GE '18000101'
  19.             ORDER BY PRIMARY KEY.
  20.  
  21.  
  22. *--- Daten des Infotypen manipulieren ---*
  23.     LOOP AT it_pa0001 INTO wa_pa0001.
  24.       wa_pa0001-pernr(3) = '123'.
  25.       wa_pa0001-werks    = '4711'.
  26.       MODIFY it_pa0001 FROM wa_pa0001.
  27.     ENDLOOP.
  28.  
  29.  
  30.  
  31. **** Problem!! Wie bekomme ich die Daten der internen Tabelle it_pa0001 im
  32. **** korrekten Format in die interne Tabelle it_modify_0001
  33. **** Achtung! Die Tabelle it_modify_0001 besitzt eine andere Struktur!!!!
  34.  
  35.  
  36.  
  37. *--- Daten des Infotypen erneut in IDoc-Format konvertieren ---*
  38.     CALL FUNCTION 'RH_PNNNN_IDOCSDATA_CONVERT'
  39.       EXPORTING
  40.         act_pnnnn        = it_modify_0001
  41.         act_infty        = it_modify_0001-infty
  42.         act_subty        = it_modify_0001-subty
  43.       IMPORTING
  44.         act_idoc         = sdata_data
  45.         act_idoc_name    = it_out_hrobjsdata-segnam
  46.       TABLES
  47.         error_message    = it_error_message
  48.       EXCEPTIONS
  49.         pnnnn_not_active = 1
  50.         idoc_not_active  = 2
  51.         padnn_not_active = 3
  52.         pnnnn_too_short  = 4
  53.         idoc_too_short   = 5
  54.         padnn_too_short  = 6
  55.         conversion_error = 7
  56.         OTHERS           = 8.
  57.     IF sy-subrc NE 0.
  58. *Errorhandling
  59.     ENDIF.
GeSHi ©


Nochmals vielen Dank für eure Hilfe!!!

Gruß
Stentor
Yannic4553
...
...
 
Posts: 121
Joined: Mon Feb 09, 2004 5:40 pm

Nachtrag...

Postby Yannic4553 » Tue Jun 15, 2004 1:51 pm

Habe soeben durch Zufall die Klasse CL_HR_PNNNN_TYPE_CAST im Programm MPAP3TXT gefunden.

Könnte diese nicht bei o. g. Problem weiterhlefen?

DANKE!
Yannic4553
...
...
 
Posts: 121
Joined: Mon Feb 09, 2004 5:40 pm


Return to Human Resources

Who is online

Users browsing this forum: No registered users and 1 guest

cron