Google Search - Blog...........

BDC For The Action Transfer Of Location In HR ABAP



*---If u want to perform the transfer action you just need to change the personnel subarea, it is not possible for us to change the personnel subarea through BDC or using BAPI for the action info type 0000, as it is already grade out in that infotype even you are in change mode.

So you must enter through the tcode PA40 and tehre is another case we can do it. Fisrt change the personnel subarea in Org Management 0001 and then perform the action transfer in Actions infotype 0000.

refresh : bdcdata.

perform bdc_dynpro using 'SAPMP50A' '2000'.
perform bdc_field using 'BDC_CURSOR'
'RP50G-EINDA'.
perform bdc_field using 'BDC_OKCODE'
'=PICK'.
perform bdc_field using 'RP50G-PERNR'
it_pa0001-pernr.
perform bdc_field using 'RP50G-EINDA'
sy-datum.
perform bdc_field using 'RP50G-SELEC(03)'
'X'.
perform bdc_dynpro using 'MP000000' '2000'.
perform bdc_field using 'BDC_CURSOR'
'PSPAR-WERKS'.
perform bdc_field using 'BDC_OKCODE'
'UPD'.
perform bdc_field using 'P0000-BEGDA'
v_date.
perform bdc_field using 'P0000-MASSG'
'03'.
perform bdc_field using 'PSPAR-PLANS'
it_pa0001-plans.
perform bdc_field using 'PSPAR-WERKS'
v_werks.
perform bdc_field using 'PSPAR-PERSG'
it_pa0001-persg.
perform bdc_field using 'PSPAR-PERSK'
it_pa0001-persk.
perform bdc_dynpro using 'MP000100' '2000'.
perform bdc_field using 'BDC_OKCODE'
'/EBCK'.
perform bdc_field using 'BDC_CURSOR'
'P0001-BEGDA'.
perform bdc_dynpro using 'SAPLSPO1' '0200'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPMP50A' '2000'.
perform bdc_field using 'BDC_OKCODE'
'/EBCK'.
perform bdc_field using 'BDC_CURSOR'
'RP50G-PERNR'.

CALL TRANSACTION 'PA40' USING BDCDATA
MODE 'N'
UPDATE 'S'
MESSAGES INTO MESSTAB.


ALSO READ:

- HR TABLES.

- HR Tables & Infotypes.

- HR T-Codes.

- Sample HR Report Program On Macros.

- Get The Manager Of The Employee.

- HR ABAP - BDC For Uploading Absence Data Into PA30 Transaction.

- HR ABAP - BDC To Upload The OM Relations Through T-code PO13.

- HR ABAP - BDC Upload For The Org Unit Relationship Through T-Code PO10.

.....Back To Index On HR ABAP.

.....Back To MAIN INDEX.

No comments:

Post a Comment