‎2008 Oct 21 3:38 PM
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.
‎2008 Oct 21 3:40 PM
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
‎2008 Oct 21 3:49 PM
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
‎2008 Oct 21 4:07 PM
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.
‎2008 Oct 21 4:10 PM
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