Skip to Content
0
Former Member
Apr 24, 2009 at 09:25 AM

Stuck up in the code.Please help me.

23 Views

Hi,

IF pa0168-bplan = 'P005' then send 'ST' to RDSTDCover field.

send BEGDA OF PA0168 if 'ST' was sent for RDSTDCover, else send blanks for field RDSTDStrDte

send ENDDA of PA0168 if 'ST' was sent for RDSTDCover& ENDDA is not equal to 12/12/9999. Else send blanks for field RDSTDStpDte.

If RDSTDCover = 'ST' Send '100525' for field RDSTDRptNum.

if RDSTDCover = 'ST' Send 'N' for field RDSTDContPlan.

if RDSTDCover = 'ST' do the following:

If PA0001-BURKS='1009' go to Table Z_PR_legcode to retrieve previous Company Code Text for PA0002-PERID.

I was coded like this

loop at p0168 into w0168

where begda <= v_rundat and

endda >= v_rundat.

if w0168-bplan = 'p005'

w_MetLife_detail-rdstdcover = 'ST'

endif.

endloop.

but i was stuck up here.Please help me on this.