ABAP HR Payroll questions
Hi,
I never get a chance to work in HR module. I want to know being an ABAP programmer what should we have to know in HR Module. I also want to know what are infotypes. what's the difference between infotypes and internal tables?
hi
Here are some info about ABAP-HR :
The task of Human Resource Management isto produce the organizational hierarchies , relationship between employees and to allow storage and administration of employee data.
SAPHR Components:
PA Personnel Administration and Payroll Accounting
PD Personnel Planning and Development.
The following concepts are defined in HR which differs this module with other Modules.
1. Use of Infotypes
2. The use of Logical Database
3. Use of Macros
4. Storage and Access of data
5 Authorization checks
Important core topic in ABAP-HR programming:
To reduce programming Efforts, it often helps to use the logical databases when creating reports. Logical databases are special ABAP Programs that provide selection screens, additional features and so on.
The LDB usually consists of the following components.
1.Structure
2. Selections
3. Database programs
Functions of LDB:
Data retrieval | Screening | Authorization check
Logical Databases used In HR:
1.PAP
2.PNP
3.PNPCE - Enhanced version of PNP available form SAP
Enterprise version onwards
4.PCH
5.PTRVP
The LDB PAP is for Applicant administration, PNP and PNPCE for Personnel Management, PCH for Organisational Management and PTVRP for Travel Management.
The Logical Databases PNP/PNPCE and PCH are mostly used.
HR report that uses the logical database uses the following basic structure:
Report zdemo01.
Tables: PERNR.
INFOTYPES: 0001.
GET PERNR.
PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: / P0001-PERNR, P0001-STELL,
P0001-BEGDA, P0001-ENDDA.
ENDPROVIDE.
The above report evaluates the Organizational assignment infotype records in the specified data selection period.
Please check this links ...
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
You can see some Standard Program examples in this one ...
http://www.sapdevelopment.co.uk/programs/programshr.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
http://www.erpgenie.com/faq/hr.htm.
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
These are the FAQ's that might helps you as well.
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
chk the following links also
http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
http://www.sapcookbook.com/preview_hr_questions.htm
http://www.atomhr.com/library_full.htm
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
http://www.sapcookbook.com/preview_hr_questions.htm
http://www.atomhr.com/library_full.htm
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
regards
navjot
reward points
Message was edited by:
navjot sharma
Similar Messages
-
Hi All
I want ABAP-HR interview questions,I am attending my first abap-hr interview on thursday,
So i want what type of question i can expect from the interviewer.
If any one plz send to my mail.
Thanks in advanceHi Chris
Keep up the comments as you are the only one that seems to willing to call out folks on the board.
Just yesterday I saw a question saying something of the effect " I am a consultant and the client is asking me to prepare configuration material on garnishment and taxes please help"
I almost did a "Chris" response but decided to hold tight and just say nothing though part of me wishes I have the clients email address so they could be aware of what a joker they are paying to help them.
Jarret -
SAP ABAP Certification Sample Questions
Hi
Can anyone help me in SAP ABAP certification sample questions?
Before giving the exam i wanted to just check mu knowlegde..
Do not ask for sample question on SDN.
Read and respect forum rules.
Edited by: Zubin Shah on Jun 1, 2010 6:08 PMHi
If can answer most of these then you will have no problem with the cert exam: Security interview questions - some fun to tickle your brain. -
Help In ABAP Object Certification Question
Hi ABAP Gurus,
iam going to write certification Exam on Nov 11. i have got some model question from SAP domain for all the topics Except ABAP Objects which is so important...
Please anybody send me some Example question you guys got from the Certification Exam
it will be be grateful to me...
Thanks a lot in advance.
Prabhu
SAP Lead ConsultantHi,
Sending ABAP Objects questions is not an option but normally, your concepts are tested for:
- Classes and objects
- Inheritance
- Casting
- Interfaces
- Events
- Global classes and interfaces
- Exception handling
- Dynamic programming
You can use help.sap.com to take a look at these topics one by one. Hope this helps.
Good luck. -
Help in ABAP Obj Sample Question
Hi ABAP Gurus,
iam going to write certification Exam on Nov 11. i have got some model question from SAP domain for all the topics Except ABAP Objects which is so important...
it will be be grateful to me if anybody send some ques...
Thanks a lot in advance.
Prabhu
SAP Lead ConsultantHi,
Some questions
1) Which tool can be used to move a method of a class to an interface which the class implements?
2) Can a CLASS-CONSTRUCTOR be defiend to raise exceptions?
3) Can you access PROTECTED data using object reference of a subclass?
4) Can a class method raise both normal exceptions and class based exception?
It will be helpful if you share the links of other topics
Regards,
Sesh -
hello ABAP gurus,
i am a fresh ABAper, technically very sound, but not getting job as a fresh ABAPer. So i am showing +2 years fake exp.
I usually clear the ABAP tech round, but always being rejected because of the lack of real time ABAP questions those r usually put/asked by the interviewers to trap the fake candidates.
If anybody having such question and answers, plz open to the SAP community.
it will be really the most rewardable help to all ABAP freshers.You'd think so, but in some countries it can be very messy and costly to get rid of someone even if they did get the job dishonestly or under false pretences.
It also means that the person who made the decision to hire them has to admit he was wrong ...
I once saw a guy who'd been on two projects with a consulting firm - kicked off both within a few weeks and spenmt a year on the bench - get hired as develpment manager. Now there were three guys from his ex-firm already on site and the dork who hired him didn't even think to informally ask them. When the penny dropped they tried demoting him and he threatined to sue.
You think Dilbert is fiction? -
ABAP Real Time Questions..
Dear Friends,
please help me out in getting some real time question and answers related to ABAP.Dear Hazi Valli,
Post ABAP related queries in ABAP Forums. Search the forum for generic queries.
Wiki link for ABAP:
https://wiki.sdn.sap.com/wiki/display/ABAP
Have moved the thread to ABAP General.
Regards,
Naveen. -
ABAP Certification Sample Questions
Hello,
Can any one plz forward me Sample Certification Questions Perpers for ABAP asap. As i'm planning for certification test in next month.
Please forward me this on
[email protected]
Thanks
Regards,
AmeyRefer this link
http://www.sap-img.com/sapscripts.htm
http://www.sapgenie.com/abap/
http://www.netwind.com/html/sap_certification.html
http://www.alluwanted.com/sapbooks.htm
Do a search in this forum u will get a lot of links.
Its already discussed here. -
Custom BI Reports Vs. ABAP for Payroll
Hi,
Can anyone tell the pros and cons of developing Custom Payroll Reports using BI or Custom ABAP. There are 51K employees.
Thanks,
MohanHi,
The present thinking is not to preclude one set of reports and choose the other. Operational reporting should come from R/3 or ECC and strategic or analytic reports should come from BI.
That is where Portal can play an important role. The portal can be a single point of access for both operational and analytic reports, without the user knowing where the output is coming from.
BR/
Mathew. -
BI7 ABAP+Java IDES Question (SSO); URGENT
Hi All:
I have installed an ABAPJavaEPEPCBI-Java usage type on one physical host. 1 SID (BID). I have set up all the SSO options as per the guid but am having some problems. Pre-cursor: The default UME client is (for 2004s installs) 001 and is so here. the default login client for IDES is 800 (I have it as such). J2ee-WAS has no client but for SSO they recommend setting it to nonexistisatant ABAP client, so I am using 990.
EP (990) [created the SSO certs & Exported] -> imported into ABAP 000 STRUSTSSO2. Added to ACL list (as client 990).
Question: must I log into 000,001,800 and add these to each ACL for each ABAP client? (So in 001, must my ACL be for the EP cert 990?)...must I repeat for each client?Solved..contact me if you have the same
-
Dynamic form in Webdynpro for ABAP - Context Cardinality question
Hello -
I have an adobe form in a webdynpro for ABAP application which I want to be able to be dynamic. Basically I want to be able to use a Webdynpro context node with a cardinality of 1-N and the form will take each node of the context and create a page for each one. I am able to do a static form with a context node that has a 1-1 cardinality, but once I change my cardinality to 1-N on the node the static form no longer works (there is no data). Is what I want to do possible? I've looked through all the documentation I could find and could not get a definite answer. Any help would be appreciated.
Widget (1-N)
-Widget_info (1-1)
*Name
*Sku
*Description
-Widget_plant (1-M)
*Plant_Code
*Plant_State
*Plant_City
-Widget_pic (1-1)
*Picture
... So I want to have a form which can print a page for each widget in the context (the number of which can vary). That form would have the Name, sku, description, plant_code, plant_state, plant city and the picture on it. (This is just a generic example of what I need to do)
Regards,
- JasonOk, I think I found a bug... It seems for adobe forms in WD4A, the root context node must be 1-1 and you must nest the 1-n node within that... Not sure why, but it worked. So in my case my context would look like this:
FOO_NODE (1-1)
Widget (1-N)
-Widget_info (1-1)
*Name
*Sku
*Description
-Widget_plant (1-M)
*Plant_Code
*Plant_State
*Plant_City
-Widget_pic (1-1)
*Picture -
Please give me ans for ABAP and SAP_XI questions
i want to know in which way tha following question to be answered
1.on which service pack ur working.
2. what functions are used and developed.
3.how u performed conveersions where and how.
4.tell me the complex mappin u performed in ur experience.
5.can we map a sync interface to asynch interface.
6.what are tha interfaces u mapped during interfaces mapping.
7.what is cotext.where itis used.
8.how we can add the context.
9.how we can remove the context.
10.how the data in sap xi stores and where.
11.architecture if sap_xi
12.structure of d/b at receiver side.
13.pipe line steps in IE.
14.can we create strcture with out data type.
15.can we create external interface.
16.xi consultant role and responsibilities.
17.if idoc is receiver side how u configure the sender side.
18.how soap adapter will be stored.
19.mandatory fields in adapter.
20.have u comacross version during adapter configaration.what it means.Just put a search in SDN u will get lots and lots of discussions related to the questions you have asked !Umight have a clear picture
and moreover you were asking for the questions which <b>you should answer</b> depending on your work environment like SP's and mapping you have worked.
Message was edited by:
Anusha Ramsiva -
ABAP Rountine Conversion question
This is a routine that was migrated from 3.5. Here is the code I have, I've bolded the area that's throwing the error message:
PROGRAM trans_routine.
CLASS routine DEFINITION
CLASS lcl_transform DEFINITION.
PUBLIC SECTION.
Attributs
DATA:
p_check_master_data_exist
TYPE RSODSOCHECKONLY READ-ONLY,
*- Instance for getting request runtime attributs;
Available information: Refer to methods of
interface 'if_rsbk_request_admintab_view'
p_r_request
TYPE REF TO if_rsbk_request_admintab_view READ-ONLY.
PRIVATE SECTION.
TYPE-POOLS: rsd, rstr.
Rule specific types
TYPES:
BEGIN OF tys_SC_1,
Field: SHKZG Debit/credit.
SHKZG TYPE C LENGTH 1,
Field: ZZ_QUAN Quantity.
ZZ_QUAN TYPE P LENGTH 7 DECIMALS 3,
END OF tys_SC_1.
TYPES:
BEGIN OF tys_TG_1,
InfoObject: 0COPASLQTY Sales quantity.
COPASLQTY TYPE /BI0/OICOPASLQTY,
END OF tys_TG_1.
$$ begin of global - insert your declaration only below this line -
... "insert your code here
$$ end of global - insert your declaration only before this line -
METHODS
compute_0COPASLQTY
IMPORTING
request type rsrequest
datapackid type rsdatapid
SOURCE_FIELDS type tys_SC_1
EXPORTING
RESULT type tys_TG_1-COPASLQTY
monitor type rstr_ty_t_monitor
RAISING
cx_rsrout_abort
cx_rsrout_skip_record
cx_rsrout_skip_val.
METHODS
invert_0COPASLQTY
IMPORTING
i_th_fields_outbound TYPE rstran_t_field_inv
i_r_selset_outbound TYPE REF TO cl_rsmds_set
i_is_main_selection TYPE rs_bool
i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
i_r_universe_inbound TYPE REF TO cl_rsmds_universe
CHANGING
c_th_fields_inbound TYPE rstran_t_field_inv
c_r_selset_inbound TYPE REF TO cl_rsmds_set
c_exact TYPE rs_bool.
ENDCLASS. "routine DEFINITION
$$ begin of 2nd part global - insert your code only below this line *
$$ end of rule type
TYPES:
BEGIN OF tys_TG_1_full,
InfoObject: 0COMP_CODE Company code.
COMP_CODE TYPE /BI0/OICOMP_CODE,
InfoObject: 0FISCPER Fiscal year / period.
FISCPER TYPE /BI0/OIFISCPER,
InfoObject: 0AC_DOC_NO Accounting document number.
AC_DOC_NO TYPE /BI0/OIAC_DOC_NO,
InfoObject: 0ITEM_NUM Number of line item within accounting docum
*ent.
ITEM_NUM TYPE /BI0/OIITEM_NUM,
InfoObject: 0FI_DOCSTAT Item Status.
FI_DOCSTAT TYPE /BI0/OIFI_DOCSTAT,
InfoObject: 0CHRT_ACCTS Chart of accounts.
CHRT_ACCTS TYPE /BI0/OICHRT_ACCTS,
InfoObject: 0GL_ACCOUNT G/L Account.
GL_ACCOUNT TYPE /BI0/OIGL_ACCOUNT,
InfoObject: 0ACCT_TYPE Account type.
ACCT_TYPE TYPE /BI0/OIACCT_TYPE,
InfoObject: 0SP_GL_IND Special G/L indicator.
SP_GL_IND TYPE /BI0/OISP_GL_IND,
InfoObject: 0AC_DOC_TYP Document type.
AC_DOC_TYP TYPE /BI0/OIAC_DOC_TYP,
InfoObject: 0POST_KEY Posting key.
POST_KEY TYPE /BI0/OIPOST_KEY,
InfoObject: 0FISCVARNT Fiscal year variant.
FISCVARNT TYPE /BI0/OIFISCVARNT,
InfoObject: 0DOC_DATE Document Date.
DOC_DATE TYPE /BI0/OIDOC_DATE,
InfoObject: 0PSTNG_DATE Posting date in the document.
PSTNG_DATE TYPE /BI0/OIPSTNG_DATE,
InfoObject: 0CREATEDON Date on which the record was created.
CREATEDON TYPE /BI0/OICREATEDON,
InfoObject: 0VALUE_DATE Value Date.
VALUE_DATE TYPE /BI0/OIVALUE_DATE,
InfoObject: 0CLEAR_DATE Clearing date.
CLEAR_DATE TYPE /BI0/OICLEAR_DATE,
InfoObject: 0CLR_DOC_NO Clearing Document Number.
CLR_DOC_NO TYPE /BI0/OICLR_DOC_NO,
InfoObject: 0CO_AREA Controlling area.
CO_AREA TYPE /BI0/OICO_AREA,
InfoObject: 0COSTCENTER Cost Center.
COSTCENTER TYPE /BI0/OICOSTCENTER,
InfoObject: 0PROFIT_CTR Profit Center.
PROFIT_CTR TYPE /BI0/OIPROFIT_CTR,
InfoObject: 0COORDER Order number.
COORDER TYPE /BI0/OICOORDER,
InfoObject: 0WBS_ELEMT Work Breakdown Structure Element (WBS Elem
*ent).
WBS_ELEMT TYPE /BI0/OIWBS_ELEMT,
InfoObject: 0PLANT Plant.
PLANT TYPE /BI0/OIPLANT,
InfoObject: 0BUS_AREA Business area.
BUS_AREA TYPE /BI0/OIBUS_AREA,
InfoObject: 0FUNC_AREA Functional area.
FUNC_AREA TYPE /BI0/OIFUNC_AREA,
InfoObject: 0PART_PRCTR Partner profit center.
PART_PRCTR TYPE /BI0/OIPART_PRCTR,
InfoObject: 0PCOMPANY Partner company number.
PCOMPANY TYPE /BI0/OIPCOMPANY,
InfoObject: 0PBUS_AREA Trading partner business area of the busin
*ess partner.
PBUS_AREA TYPE /BI0/OIPBUS_AREA,
InfoObject: 0LOC_CURRCY Local currency.
LOC_CURRCY TYPE /BI0/OILOC_CURRCY,
InfoObject: 0DEBIT_LC Debit amount in local currency.
DEBIT_LC TYPE /BI0/OIDEBIT_LC,
InfoObject: 0CREDIT_LC Credit amount in local currency.
CREDIT_LC TYPE /BI0/OICREDIT_LC,
InfoObject: 0DEB_CRE_LC Amount in Local Currency with +/- Signs.
DEB_CRE_LC TYPE /BI0/OIDEB_CRE_LC,
InfoObject: 0DOC_CURRCY Document currency.
DOC_CURRCY TYPE /BI0/OIDOC_CURRCY,
InfoObject: 0DEBIT_DC Debit amount in foreign currency.
DEBIT_DC TYPE /BI0/OIDEBIT_DC,
InfoObject: 0CREDIT_DC Credit amount in foreign currency.
CREDIT_DC TYPE /BI0/OICREDIT_DC,
InfoObject: 0DEB_CRE_DC Foreign currency amount with signs (+/-).
DEB_CRE_DC TYPE /BI0/OIDEB_CRE_DC,
InfoObject: 0LOC_CURTP2 Currency Type of Second Local Currency.
LOC_CURTP2 TYPE /BI0/OILOC_CURTP2,
InfoObject: 0LOC_CURRC2 Second Local Currency.
LOC_CURRC2 TYPE /BI0/OILOC_CURRC2,
InfoObject: 0DEBIT_LC2 Debit Amount in 2nd Local Currency.
DEBIT_LC2 TYPE /BI0/OIDEBIT_LC2,
InfoObject: 0CREDIT_LC2 Credit Amount in Second Local Currency.
CREDIT_LC2 TYPE /BI0/OICREDIT_LC2,
InfoObject: 0DEB_CRE_L2 Amount in Second Local Currency with +/-
*Sign.
DEB_CRE_L2 TYPE /BI0/OIDEB_CRE_L2,
InfoObject: 0LOC_CURTP3 Currency Type of Third Local Currency.
LOC_CURTP3 TYPE /BI0/OILOC_CURTP3,
InfoObject: 0LOC_CURRC3 Third Local Currency.
LOC_CURRC3 TYPE /BI0/OILOC_CURRC3,
InfoObject: 0DEBIT_LC3 Debit Amount in Third Local Currency.
DEBIT_LC3 TYPE /BI0/OIDEBIT_LC3,
InfoObject: 0CREDIT_LC3 Credit Amount in Third Local Currency.
CREDIT_LC3 TYPE /BI0/OICREDIT_LC3,
InfoObject: 0DEB_CRE_L3 Amount in Third Local Currency with +/- S
*ign.
DEB_CRE_L3 TYPE /BI0/OIDEB_CRE_L3,
InfoObject: 0REF_DOC_NO Reference document number.
REF_DOC_NO TYPE /BI0/OIREF_DOC_NO,
InfoObject: 0REF_KEY3 Reference Key 3.
REF_KEY3 TYPE /BI0/OIREF_KEY3,
InfoObject: 0ORG_DOC_NO Document Number of Source Document.
ORG_DOC_NO TYPE /BI0/OIORG_DOC_NO,
InfoObject: 0ORG_DOC_YR Fiscal Year for Source Document Number.
ORG_DOC_YR TYPE /BI0/OIORG_DOC_YR,
InfoObject: 0ORG_DOC_CC Company Code for Source Document Number.
ORG_DOC_CC TYPE /BI0/OIORG_DOC_CC,
InfoObject: 0ORG_DOC_CO Controlling Area for Source Document Numb
*er.
ORG_DOC_CO TYPE /BI0/OIORG_DOC_CO,
InfoObject: 0POSTXT Item Text.
POSTXT TYPE /BI0/OIPOSTXT,
InfoObject: 0RECORDMODE BW Delta Process: Record Mode.
RECORDMODE TYPE RODMUPDMOD,
InfoObject: 0ALLOC_NMBR Allocation Number.
ALLOC_NMBR TYPE /BI0/OIALLOC_NMBR,
InfoObject: 0COPASLQTY Sales quantity.
COPASLQTY TYPE /BI0/OICOPASLQTY,
InfoObject: 0COPASLQTU Sales unit.
COPASLQTU TYPE /BI0/OICOPASLQTU,
InfoObject: ZTRANSTYP Transaction Type.
/BIC/ZTRANSTYP TYPE /BIC/OIZTRANSTYP,
InfoObject: 0FI_DBCRIND Debit/Credit Indicator.
FI_DBCRIND TYPE /BI0/OIFI_DBCRIND,
InfoObject: 0ASSET_MAIN Main Asset Number.
ASSET_MAIN TYPE /BI0/OIASSET_MAIN,
InfoObject: 0JV_RECIND Joint Venture Recovery Indicator.
JV_RECIND TYPE /BI0/OIJV_RECIND,
InfoObject: ZTBSETPER Settlement Period.
/BIC/ZTBSETPER TYPE /BIC/OIZTBSETPER,
Field: RECORD Data record number.
RECORD TYPE RSARECORD,
END OF tys_TG_1_full.
TYPES:
BEGIN OF tys_SC_1__RULE_63,
Field: SHKZG Debit/credit.
SHKZG TYPE C LENGTH 1,
Field: ZZ_QUAN Quantity.
ZZ_QUAN TYPE P LENGTH 7 DECIMALS 3,
END OF tys_SC_1__RULE_63.
Additional declaration for transfer rule interface
DATA:
g_t_errorlog TYPE rssm_t_errorlog_int,
RECORD_ALL LIKE SY-TABIX.
global definitions from transfer rules
TABLES: ...
DATA: ...
FORM compute_COPASLQTY
USING
RECORD_NO type sy-tabix
TRAN_STRUCTURE type tys_SC_1__RULE_63
CHANGING
RESULT TYPE tys_TG_1_full-COPASLQTY
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
If TRAN_STRUCTURE-SHKZG = 'S'.
RESULT = TRAN_STRUCTURE-ZZ_QUAN * -1.
ELSE.
RESULT = TRAN_STRUCTURE-ZZ_QUAN.
ENDIF.
returncode <> 0 means skip this record
RETURNCODE = 0.
abort <> 0 means skip whole data package !!!
ABORT = 0.
ENDFORM. "COPASLQTY
$$ end of 2nd part global - insert your code only before this line *
CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
METHOD compute_0COPASLQTY.
IMPORTING
request type rsrequest
datapackid type rsdatapid
SOURCE_FIELDS-SHKZG TYPE C LENGTH 000001
SOURCE_FIELDS-ZZ_QUAN TYPE P LENGTH 000007 DECIMALS 000003
EXPORTING
RESULT type tys_TG_1-COPASLQTY
DATA:
MONITOR_REC TYPE rsmonitor.
*$*$ begin of routine - insert your code only below this line *-*
Data:
l_s_error_log type rssm_s_errorlog_int,
TRAN_STRUCTURE type tys_SC_1__RULE_63,
l_subrc type sy-tabix,
l_abort type sy-tabix,
ls_monitor TYPE rsmonitor,
ls_monitor_recno TYPE rsmonitors.
REFRESH:
monitor,
monitor_recno.
Migrated transfer rule call
MOVE-CORRESPONDING SOURCE_FIELDS to TRAN_STRUCTURE.
*Perform compute_COPASLQTY*
*USING*
*SOURCE_FIELDS-record*
*TRAN_STRUCTURE*
*CHANGING*
*RESULT*
*l_subrc*
*l_abort.*
*-- Convert Messages in Transformation format
LOOP AT G_T_ERRORLOG INTO l_s_error_log.
move-CORRESPONDING l_s_error_log to MONITOR_REC.
append monitor_rec to MONITOR.
ENDLOOP.
IF l_subrc <> 0.
RAISE EXCEPTION TYPE cx_rsrout_skip_val.
ENDIF.
IF l_abort <> 0.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDIF.
$$ end of routine - insert your code only before this line -
ENDMETHOD. "compute_0COPASLQTY
Method invert_0COPASLQTY
This subroutine needs to be implemented only for direct access
(for better performance) and for the Report/Report Interface
(drill through).
The inverse routine should transform a projection and
a selection for the target to a projection and a selection
for the source, respectively.
If the implementation remains empty all fields are filled and
all values are selected.
METHOD invert_0COPASLQTY.
$$ begin of inverse routine - insert your code only below this line-
... "insert your code here
$$ end of inverse routine - insert your code only before this line -
ENDMETHOD. "invert_0COPASLQTY
ENDCLASS. "routine IMPLEMENTATIONHere was the orignal code. I've migrated the datasource now, and basically have started over using the 7.0 flow. We have a full 7.0 implemention, but the consultants chose not to migrate the Business Content, and built out the dataflow using 3.5 functionality. This routine is the only issue I'm having. It is flipping the sign. The above code is what BW did with the code when I created a transformation from the original rule.
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject 0COMP_CODE: CHAR - 000004
BUKRS(000004) TYPE C,
InfoObject 0FISCPER: NUMC - 000007
FISCPER(000007) TYPE N,
InfoObject 0AC_DOC_NO: CHAR - 000010
BELNR(000010) TYPE C,
InfoObject 0ITEM_NUM: NUMC - 000003
BUZEI(000003) TYPE N,
InfoObject 0FI_DOCSTAT: CHAR - 000001
STATUSPS(000001) TYPE C,
InfoObject 0CHRT_ACCTS: CHAR - 000004
KTOPL(000004) TYPE C,
InfoObject 0GL_ACCOUNT: CHAR - 000010
HKONT(000010) TYPE C,
InfoObject 0ACCT_TYPE: CHAR - 000001
KOART(000001) TYPE C,
InfoObject 0SP_GL_IND: CHAR - 000001
UMSKZ(000001) TYPE C,
InfoObject 0AC_DOC_TYP: CHAR - 000002
BLART(000002) TYPE C,
InfoObject 0POST_KEY: CHAR - 000002
BSCHL(000002) TYPE C,
InfoObject 0FISCVARNT: CHAR - 000002
FISCVAR(000002) TYPE C,
InfoObject 0DOC_DATE: DATS - 000008
BLDAT(000008) TYPE D,
InfoObject 0PSTNG_DATE: DATS - 000008
BUDAT(000008) TYPE D,
InfoObject 0CREATEDON: DATS - 000008
CPUDT(000008) TYPE D,
InfoObject 0VALUE_DATE: DATS - 000008
VALUT(000008) TYPE D,
InfoObject 0CLEAR_DATE: DATS - 000008
AUGDT(000008) TYPE D,
InfoObject 0CLR_DOC_NO: CHAR - 000010
AUGBL(000010) TYPE C,
InfoObject 0CO_AREA: CHAR - 000004
KOKRS(000004) TYPE C,
InfoObject 0COSTCENTER: CHAR - 000010
KOSTL(000010) TYPE C,
InfoObject 0PROFIT_CTR: CHAR - 000010
PRCTR(000010) TYPE C,
InfoObject 0COORDER: CHAR - 000012
AUFNR(000012) TYPE C,
InfoObject : NUMC - 000008
PROJK(000008) TYPE N,
InfoObject 0PLANT: CHAR - 000004
WERKS(000004) TYPE C,
InfoObject 0BUS_AREA: CHAR - 000004
GSBER(000004) TYPE C,
InfoObject 0FUNC_AREA: CHAR - 000004
FKBER(000004) TYPE C,
InfoObject 0PART_PRCTR: CHAR - 000010
PPRCT(000010) TYPE C,
InfoObject 0PBUS_AREA: CHAR - 000004
PARGB(000004) TYPE C,
InfoObject 0PCOMPANY: CHAR - 000006
VBUND(000006) TYPE C,
InfoObject 0LOC_CURRCY: CUKY - 000005
LCURR(000005) TYPE C,
InfoObject 0DEBIT_LC: CURR - 000013
DMSOL(000007) TYPE P,
InfoObject 0CREDIT_LC: CURR - 000013
DMHAB(000007) TYPE P,
InfoObject 0DEB_CRE_LC: CURR - 000013
DMSHB(000007) TYPE P,
InfoObject 0DOC_CURRCY: CUKY - 000005
WAERS(000005) TYPE C,
InfoObject 0DEBIT_DC: CURR - 000013
WRSOL(000007) TYPE P,
InfoObject 0CREDIT_DC: CURR - 000013
WRHAB(000007) TYPE P,
InfoObject 0DEB_CRE_DC: CURR - 000013
WRSHB(000007) TYPE P,
InfoObject 0LOC_CURTP2: CHAR - 000002
CURT2(000002) TYPE C,
InfoObject 0LOC_CURRC2: CUKY - 000005
HWAE2(000005) TYPE C,
InfoObject 0DEBIT_LC2: CURR - 000013
DMSO2(000007) TYPE P,
InfoObject 0CREDIT_LC2: CURR - 000013
DMHA2(000007) TYPE P,
InfoObject 0DEB_CRE_L2: CURR - 000013
DMSH2(000007) TYPE P,
InfoObject 0LOC_CURTP3: CHAR - 000002
CURT3(000002) TYPE C,
InfoObject 0LOC_CURRC3: CUKY - 000005
HWAE3(000005) TYPE C,
InfoObject 0DEBIT_LC3: CURR - 000013
DMSO3(000007) TYPE P,
InfoObject 0CREDIT_LC3: CURR - 000013
DMHA3(000007) TYPE P,
InfoObject 0DEB_CRE_L3: CURR - 000013
DMSH3(000007) TYPE P,
InfoObject 0REF_DOC_NO: CHAR - 000016
XBLNR(000016) TYPE C,
InfoObject 0REF_KEY3: CHAR - 000020
XREF3(000020) TYPE C,
InfoObject 0ORG_DOC_NO: CHAR - 000010
AWREF(000010) TYPE C,
InfoObject 0ORG_DOC_YR: NUMC - 000004
AWGJA(000004) TYPE N,
InfoObject 0ORG_DOC_CC: CHAR - 000004
AWBUK(000004) TYPE C,
InfoObject 0ORG_DOC_CO: CHAR - 000004
AWKOK(000004) TYPE C,
InfoObject 0POSTXT: CHAR - 000050
SGTXT(000050) TYPE C,
InfoObject 0RECORDMODE: CHAR - 000001
UPDMOD(000001) TYPE C,
InfoObject 0WBS_ELEMT: CHAR - 000024
PS_POSID(000024) TYPE C,
InfoObject 0ALLOC_NMBR: CHAR - 000018
ZUONR(000018) TYPE C,
InfoObject 0COPASLQTU: UNIT - 000003
ZZ_MEINS(000003) TYPE C,
InfoObject 0COPASLQTY: QUAN - 000013
ZZ_QUAN(000007) TYPE P
DECIMALS 000003,
InfoObject ZTRANSTYP: CHAR - 000003
BEWAR(000003) TYPE C,
InfoObject 0FI_DBCRIND: CHAR - 000001
SHKZG(000001) TYPE C,
END OF TRANSFER_STRUCTURE .
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
FORM COMPUTE_COPASLQTY
Compute value of InfoObject 0COPASLQTY
in communication structure /BIC/CS0FI_GL_4
Technical properties:
field name = COPASLQTY
data element = /BI0/OICOPASLQTY
data type = QUAN
length = 000017
decimals = 000003
ABAP type = P
ABAP length = 000009
reference field = 0COPASLQTU
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_COPASLQTY
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OICOPASLQTY
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
If TRAN_STRUCTURE-SHKZG = 'S'.
RESULT = TRAN_STRUCTURE-ZZ_QUAN * -1.
ELSE.
RESULT = TRAN_STRUCTURE-ZZ_QUAN.
ENDIF.
returncode <> 0 means skip this record
RETURNCODE = 0.
abort <> 0 means skip whole data package !!!
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM. -
ABAP-HR Inteview questions requierd
Hi Experts,
I need ABAP_HR technical questions for interview. Reward points assured.You can send it my mail id also : [email protected] Thanks in advance.Hi Chris
Keep up the comments as you are the only one that seems to willing to call out folks on the board.
Just yesterday I saw a question saying something of the effect " I am a consultant and the client is asking me to prepare configuration material on garnishment and taxes please help"
I almost did a "Chris" response but decided to hold tight and just say nothing though part of me wishes I have the clients email address so they could be aware of what a joker they are paying to help them.
Jarret -
Regarding ABAP-HR (payroll run)
hi,
i m facing one major problem..the scenario is like this...after the running of payroll we do a/c posting rt.after the successful posting of a/c the system shows message-- a/c posting successful .....,here i hv to develope a sqvi .i hv to show for which employee number the following document number is generated....
here i m using table pa0001 and ppdhd....i m looking for proper field links .
its very urgent.plz do possible help.
looking forward to an early reply.
thnx in advance.Hai Ravi,
Refer the following links :
http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
http://www.sapcookbook.com/preview_hr_questions.htm
http://www.atomhr.com/library_full.htm
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
Regards
Sreeni
Maybe you are looking for
-
How do I create a rule in mail that only applies to flagged messages?
I would like to create a rule in mail that would delete messages of a certain age, but I need to keep some messages safe. I would like to be able to flag these or put them in a mailbox and have a rule making messages with those flags or mailboxes saf
-
I can't purchase apps it says "your purchase cannot be complete" how do I fix this?
I can't purchase apps it says "your purchase cannot be complete" how do I fix this?
-
Must do a restore, but iPod won't connect to iTunes 7.0
Hi, I have an iPod mini that I bought last year. I updated to iTunes 7.0 a few days ago and everything was going fine, but today I noticed that all of my songs were gone (on the iPod). I tried to plug my iPod back into my laptop to put all the songs
-
WLC Best Practice - split LAG?
Hi Reading "Wireless LAN Controller Configuration Best Practices" document from Cisco I see this: "Do not configure a LAG connection that spans across multiple switches. When you use LAG, it must be with all ports that belong to the same EtherChannel
-
Premiere elements 10 doesn't recognize avchd from my canon camcorder
I have a canon HG20 with Hard Disk but premiere doesnt recognize it and so I cant import video to the organizer or directly to Get Media. Only the flash memory SD of the camera recognize the photos. Im new with premiere elements and Im not sure what