Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP HR

Former Member
0 Likes
485

Hi Experts,

I am going through a macro for HR ABAP which has statements like this in a for Infotype 0235.

if it0235-typ&1 = '03' and it0235-exp&1 <> ' '.

move it0235-pernr to no_tab-pernr.

move 'YES' to w_fica-sw.

append no_tab.

endif.

What it0235-typ&1 and it0235-exp&1 actually indicate?

Thanks in advance,

Papiya.

Hi Experts,

I am going through a macro for HR ABAP which has statements like this in a for Infotype 0235.

if it0235-typ&1 = '03' and it0235-exp&1 <> ' '.

move it0235-pernr to no_tab-pernr.

move 'YES' to w_fica-sw.

append no_tab.

endif.

What it0235-typ&1 and it0235-exp&1 actually indicate?

Thanks in advance,

Papiya.

2 REPLIES 2
Read only

Former Member
0 Likes
460

&1 indicates the first parameter value that you passing while calling the MACRO, for example, if you are passing 01 in the parameter value, the inside the MACRO

it becomes IT0235-TYP01.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
460

Ravi is spot on.. there could be 20 Tax types on a 0235 record.. instead of stepping through TYP01 thru TYP20 checking for value '03'.. the program uses a macro passing the 'xx' value in 'TYPxx'. It is just a better way of programming..

~Suresh