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

Problem in HR abap coding...........

Former Member
0 Likes
620

Hi Experts,

here my peace of code.....

START-OF-SELECTION.

GET pernr.

rp-provide-from-frst p9100 space pn-begda pn-endda.

IF 9100-field1 = '02' AND 9100-field2 = ' ' AND 9100-field3 = '00000000'.

here some Move stat.....

rp-provide-from-frst p0185 space pn-begda pn-endda.

endif.

END-OF-SELECTION.

Here my problem is...

data is not coming into IF statment.

until control is there in rp_provide 9100-field1 is having data, but once control will come to IF stat data of 9100-field1 become empty. (here header of 9100 is become clear)

but i want data in IF stat....

how to resolve this ..........

Thanks in Advance,

sudeer.

4 REPLIES 4
Read only

Former Member
0 Likes
595

Hi,

Are you using 9100 or p9100 in your IF condition? I assume it should be p9100 else the program woudlnt even activate

Also, declare INFOTYPES 9100 in your program.

Regards,

Adi

Edited by: Aditya Laud on Oct 21, 2008 10:41 AM

Read only

0 Likes
595

declare infotypes on the top of ur program.

this is like a tables statement only.

and u shud use like below:

rp_provide_from_last p0000 space pn-begda pn-endda.

IF pnp-sw-found = 1.

case P0000-STAT2.

when '3'.

eedata-active = '1'.

when others.

eedata-active = '0'.

endcase.

endif.

Thanks

Kiran

Read only

0 Likes
595

Hi Friends,

Thanks for ur replays, as u told i have declared infotype.

and am using like p9100-field1 = '02' only , but once control will come to the IF statment then header data is getting clear, so data to check in IF statment.............

as Kiran told, i dont get how to full fill my IF cond with case stat...

any other idia...

Thanks in Advance,

sudeer.

Read only

0 Likes
595

sudeer,

That was a sample piece of code.

so dont go for case stamt.

ur logic dont require case stmt.

if u code it infotypes and add a Pbefore the info number, u shud be able to get data.

its strange!!!!

r u getting any warings or errors while activating?

Thanks

Kiran