Q
Problem solve Get help with specific problems with your technologies, process and projects.

Extracting current quota balances from a cluster

I need to extract current quota balances from a cluster (I am assuming PCL2) - the 3 fields I am interested in are related to the 2006 infotype:

ktart - Absence Quota Type
anzhl - Number of Employee Time Quota
kverb - Deduction of Employee Time Quota

I have the code working from a previous post on using the PNP logical database and the macro based code from TRMAC. I think I just need to know which structure (rt, abc, etc.) I can find the above mentioned quota type fields.
This can be accomplished by using another macro from TRMAC. Typically, the RP-PROVIDE-FROM-FIRST and RP-PROVIDE-FROM-LAST macros are used to grab the first or last, repectively, instance of the infotype for a give date range. Assuming you're using the PNP logical databse for the base program, you can use the following code to grab the information you are looking for:
   REPORT YOUR_REPORT_NAME.
   TABLES PERNR.
   INFOTYPES: 2006.
   ...
   START-OF-SELECTION.
     ...
     GET PERNR.
       ...
       RP-PROVIDE-FROM-LAST P2006 SPACE PNPBEGDA PNPENDDA.
       ...

This was last published in August 2003

Dig Deeper on SAP ABAP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close