What is the T.C for creating custom IT in PA? How do you
configure? Explain step by step?

Give me some custom IT you created for your company?

Answer Posted / pradip pramanik

Creating a New SAP Infotype using transaction PM01 and PPCI

Step 1 Execute transaction PM01 (If you get a message saying
the infotype can not be enhanced, try tranasction PPCI).

Step 2
Select create IT tab and enter new infotype number into
selection box.


Step 3
Press the create ‘ALL’ button (left of infotype no.). You
will get a dialog box asking to confirm,
press the create button.


Step 4
You will now be presented with the standard structure
creation screen (SE11) where you need to
enter the fields of the new infotype. I have entered some
examples but you can put anything in
here.


Step 5
Once you have entered the fields press save and then
activate, before pressing the back button.
You will now be presented with the following screen, where
you will need to make a new entry
or your created infotype (i.e. 9010).


Step 6
The next step is to fill in the infotype attributes, these
will initially be blank and you will need to
fill them in similar to the following, depending on your
requirements. Then press save.



Step 7
Your infotype is now created and can be accessed and
populated in the usual way using

i.e. using transactions such as PA20 and
PA30.

Step 8
If you look at the structure of your new infotype in
transaction ‘SE11’ it will look similar to the
following:

How to create a HR infotype?
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create
(Should be a 4 digit number, start with 9).
3) Select the ‘Employee Infotype’ radio button.
4) Select the ‘PS Structure Infotype’.
5) Click on Create… A separate table maintenance window
appears…
6) Create a PS structure with all the fields you want on the
Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on ‘All’ push button. It takes a few moments.
10) Click on ‘Technical Characteristics’. Infotype list
screen appears
11) Click on ‘Change’(pencil) button
12) Select your Infotype and click on ‘Detail’ (magnifying
glass) button
13) Give ‘T591A’ as subtype table
14) Give ‘T591S’ as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on ‘Infotype Characteristics’ … Infotype list
screen appears
18) Click on ‘Change’ (pencil) button
19) Click on ‘New Entries’
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics
as per the requirement. (Better open another session with
some standard Infotype’s infotype characteristics screen and
use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per
your requirement…
25) In the PM01 initial screen…Select ‘Screen’ radio button
and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select ‘Layout Editor’ and click
‘Change’.
27) Screen default layout appears…here you can design/modify
the screen..change the attributes of the fields..etc.
28) Save and activate. (Don’t forget to ‘Activate at every
level)



Delete info type


DATA:
l_return LIKE bapireturn1,
wa_p2010 type p2010.


CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = wa_p2010-pernr
IMPORTING
return = l_return.


CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2010'
number = wa_p2010-pernr
subtype = wa_p2010-subty
validityend = wa_p2010-endda
validitybegin = wa_p2010-begda
recordnumber = wa_p2010-seqnr
record = wa_p2010
operation = 'DEL'
nocommit = ''
IMPORTING
return = l_return.


CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = wa_p2010-pernr
IMPORTING
return = l_return.



Read an info type

DATA:
it_p2010 type standard table of p2010.

REFRESH it_p2010.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = wa_teven-pernr ”Personnel number
infty = '2010' ”Info type
begda = wa_teven-ldate ”Start date
endda = wa_teven-ldate ”End date
TABLES
infty_tab = it_p2010.
IF sy-subrc <> 0.
ENDIF.

Process Infotypes
• RMAC Modules - RMAC module as referred to Macro, is a
special construct of ABAP/4 codes. Normally, the program
code of these modules is stored in table 'TRMAC'. The table
key combines the program code under a given name. It can
also be defined in programs.The RMAC defined in the TRMAC
can be used in all Reports. When an RMAC is changed, the
report has to be regenerated manually to reflect the change.
• Reading Infotypes - by using RMAC (macro) RP-READ-INFOTYPE

REPORT ZHR00001.
INFOTYPE: 0002.
PARAMETERS: PERNR LIKE P0002-PERNR.
RP-READ-INFOTYPE PERNR 0002 P0002 <BEGIN> <END>.
PROVIDE * FROM P0002
if ... then ...endif.
ENDPROVIDE.
• Changing Infotypes - by using RMAC (macro)
RP-READ-INFOTYPE.
• Three steps are involved in changing infotypes:
1. Select the infotype records to be changed;
2. Make the required changes and store the records in an
alternative table;
3. Save this table to the database;

The RP-UPDATE macro updates the database. The parameters of
this macro are the OLD internal table containing the
unchanged records and the NEW internal table containing the
changed records. You cannot create or delete data. Only
modification is possible.
INFOTYPES: Pnnnn NAME OLD,
Pnnnn NAME NEW.
GET PERNR.
PROVIDE * FROM OLD
WHERE .... = ... "Change old record
*Save old record in alternate table
NEW = OLD.
ENDPROVIDE.
RP-UPDATE OLD NEW. "Update changed record
Infotype with repeat structures

How to identify repeat structures:

a. On infotype entry screen, data is entered in table form.
IT0005, IT0008, IT0041, etc.

b. In the infotype structure, fields are grouped by the same
name followed by sequence number.
• P0005-UARnn P0005-UANnn P0005-UBEnn
• P0005-UENnn P0005-UABnn

Repeat Structures

Data is entered on the infotype screen in table format but
stored on the database in a linear structure.

Each row of the table is stored in the same record on the
database.

When evaluating a repeat structure, you must define the
starting point, the increment and the work area which
contains the complete field group definition.

Repeat Structures Evaluation (I)

To evaluate the repeat structures
a. Define work area. The work area is a field string. Its
structure is identical to that of the field group.
b. Use a DO LOOP to divide the repeat structure into
segments and make it available for processing in the work
area, one field group (block) at a time.

Repeat Structures Evaluation(II)

* Define work area
DATA: BEGIN OF VACATION,
UAR LIKE P0005-UAR01, "Leave type
UAN LIKE P0005-UAN01, "Leave entitlement
UBE LIKE P0005-UBE01, "Start date
UEN LIKE P0005-UEN01, "End date
UAB LIKE P0005-UAB01, "Leave accounted
END OF VACATION.

GET PERNR.

RP-PROVIDE-FROM-LAST P0005 SPACE PN/BEGDA PN/ENDDA.
DO 6 TIMES VARYING VACATION FROM P0005-UAR01 "Starting point

NEXT P0005-UAR02. "Increment
If p0005-xyz then ... endif.
ENDDO.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is applicant Structure?

601


while working as a Junior consultant(working under a senior consultant)Tell me a difficult situation you have faced and how you solved it? What documents you have referred and documents you have Updated?What was team member's and team leader's reactions to the situation and the way you solved it?

2235


I need to ask you that while I am trying to book one person in training for a business event type, they are saying that this person is not available for the business event. Why is it so? But that I can book a user for the same business event type. What is the differense between user and person? Now in case if I book a person for the business event, how can I see whether that person is available for that date or not. Moreover how can I see that that person is on leave or not.

567


What are the different methods for time data recording?

559


What is the transaction code for creating personnel actions?

586






What is Controlling Area, What Does It Do, And How Were Is It Assigned ?

542


What is the payroll control record?

586


What are cost centers?

600


Can any one please help in knowing the end to end Payroll process in SAP . Starting from uploading the data of a newly hired employee ,Attandace uploading to, Generating PF,ESI challana ( including the T code, )

1723


What is go live.

504


How do you create object characteristics in om?

584


What is a Period Work Schedule?

552


How would you create multiple positions to avoid any human errors?

569


How to find the ugr of an country?

578


How are relationships in om specified?

604