In the wages account, the current name or the current address are not displayed.
Cause and prerequisitesThe data selection period (PN/BEGDA and PN/ENDDA) positions infotypes 0002 and 0006. This means that, for evaluations for the past, the current situation is not printed.
SolutionIf you really want to print the cirrent name or the current address, then change Include RPCKT400 at the lines marked "<-- here" below, and then regenerate the main report RPCKTOx0 (x = country abbrev.).
Excerpt from coding:
....
FORM MAKE_NAME.
* Ausgabe des Namens (Titel Nachname, Vorname)
DATA:
RET_CODE LIKE SY-SUBRC,
CNM_MOLGA LIKE T001P-MOLGA.
* RP-PROVIDE-FROM-LAST P0002 SPACE PN/BEGDA PN/ENDDA. <--here
RP-PROVIDE-FROM-LAST P0002 SPACE LOW-DATE HIGH-DATE. <--here
CNM_MOLGA = MOLGA.
...
FORM VAR-ADRS.
* Bereitstellen der Adresse
IF SW_ADDRESS = FALSE.
SW_ADDRESS = TRUE.
* creates national name
PERFORM MAKE_NAME.
RP-PROVIDE-FROM-LAST P0001 SPACE PN/BEGDA PN/ENDDA.
* RP-PROVIDE-FROM-LAST P0002 SPACE PN/BEGDA PN/ENDDA. <--here
RP-PROVIDE-FROM-LAST P0002 SPACE LOW-DATE HIGH-DATE. <--here
* RP-PROVIDE-FROM-LAST P0006 '1' PN/BEGDA PN/ENDDA. <--here
RP-PROVIDE-FROM-LAST P0006 '1' LOW-DATE HIGH-DATE. <--here
* creates national address
RP-MAKE-ADDRESS P0001 P0002 P0006 NAMEN CNT_ADRS_LINES.
ENDIF.
ENDFORM.
.....
FORM VAR-P0002.
* RP-PROVIDE-FROM-LAST P0002 SPACE PN/BEGDA PN/ENDDA. <--here
RP-PROVIDE-FROM-LAST P0002 SPACE LOW-DATE HIGH-DATE. <--here
CHECK PNP-SW-FOUND NE '1'. "not found?
CLEAR P0002.
ENDFORM. "VAR-P0002.
No comments:
Post a Comment