kumarabinash
7th November 2005, 06:24
I was trying AFS for session whinh4525000.
if i go directly to session afs through synchnize dialog and start putting field values then, save button is disabled on form.
same session if i go through whinh2120m000,and open then save button is enabled.
now if i am going through whinh2120m000 then error is Synchronize dialog not started. and if i go directly to whinh4525mooo then error that i get is command disabled(when i try to insert or save).
kindly have a look at the code and advice me accordingly.
whinh2120m000f.put.Order.whinh220.oorg( whinh220.oorg )
whinh2120m000f.put.Order.whinh220.orno( whinh220.orno )
whinh2120m000f.put.Set( whinh220.oset )
whinh2120m000f.put.Order_Line( whinh220.pono )
whinh2120m000f.put.Sequence( whinh220.seqn )
whinh2120m000f.find( msg.error1 )
if isspace(msg.error1) then
whinh2120m000f.mark( msg.error1 )
if isspace(msg.error1) then
whinh2120m000f.Outbound_Advice( msg.error1 )
| whinh4525m000f.synchronize.dialog( "add", msg.error1)
if isspace(msg.error1) then
whinh4525m000f.put.Lot( tdsls951.labl )
whinh4525m000f.put.Effectivity_Unit( whinh220.effn )
temp.btno = "3PL "
whinh4525m000f.put.Run( temp.btno )
whinh4525m000f.insert( do.update, msg.error1 ) |this is where error is encountered as button disabledif synchrnization dialog is declared
if isspace(msg.error1) then
whinh4525m000f.save( msg.error1 )
if isspace(msg.error1) then
whinh4525m000f.mark(msg.error1)
if isspace(msg.error1) then
whinh4525m000f.handle.sub.process( "whinh4202m000","add" )
whinh4525m000f.Releasewhinh4202m000( msg.error1 )
if isspace(msg.error1) then
temp.btno = "3PL "
whinh4202m000f.put.Run( temp.btno )
whinh4202m000f.set.report( "rwhinh420011000", "D", msg.error1 )
whinh4202m000f.Release_Advice( msg.error1 )
if not isspace(msg.error1) then
whinh4202m000f.Undo_Release( msg.error1 )
session.name = "whinh4202m000-Release Outbound-While Releasing"
write.file()
else
whinh4525m000f.handle.sub.process( "whinh4202m000","kill" )
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill" )
endif
else
whinh4525m000f.handle.sub.process( "whinh4202m000","kill" )
session.name = "whinh4202m000-Release Outbound-Session Could not Open"
write.file()
endif
else
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill" )
session.name = "whinh4525m000-Maintain Outbound-Record Not Marked After Save"
write.file()
endif
endif
endif
else
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill")
write.file()
endif
endif
else
whinh2120m000f.end()
session.name = "whinh2120m000-Outbound Order Lines-Record Not Found"
write.file()
endif
whinh2120m000f.end()
if i go directly to session afs through synchnize dialog and start putting field values then, save button is disabled on form.
same session if i go through whinh2120m000,and open then save button is enabled.
now if i am going through whinh2120m000 then error is Synchronize dialog not started. and if i go directly to whinh4525mooo then error that i get is command disabled(when i try to insert or save).
kindly have a look at the code and advice me accordingly.
whinh2120m000f.put.Order.whinh220.oorg( whinh220.oorg )
whinh2120m000f.put.Order.whinh220.orno( whinh220.orno )
whinh2120m000f.put.Set( whinh220.oset )
whinh2120m000f.put.Order_Line( whinh220.pono )
whinh2120m000f.put.Sequence( whinh220.seqn )
whinh2120m000f.find( msg.error1 )
if isspace(msg.error1) then
whinh2120m000f.mark( msg.error1 )
if isspace(msg.error1) then
whinh2120m000f.Outbound_Advice( msg.error1 )
| whinh4525m000f.synchronize.dialog( "add", msg.error1)
if isspace(msg.error1) then
whinh4525m000f.put.Lot( tdsls951.labl )
whinh4525m000f.put.Effectivity_Unit( whinh220.effn )
temp.btno = "3PL "
whinh4525m000f.put.Run( temp.btno )
whinh4525m000f.insert( do.update, msg.error1 ) |this is where error is encountered as button disabledif synchrnization dialog is declared
if isspace(msg.error1) then
whinh4525m000f.save( msg.error1 )
if isspace(msg.error1) then
whinh4525m000f.mark(msg.error1)
if isspace(msg.error1) then
whinh4525m000f.handle.sub.process( "whinh4202m000","add" )
whinh4525m000f.Releasewhinh4202m000( msg.error1 )
if isspace(msg.error1) then
temp.btno = "3PL "
whinh4202m000f.put.Run( temp.btno )
whinh4202m000f.set.report( "rwhinh420011000", "D", msg.error1 )
whinh4202m000f.Release_Advice( msg.error1 )
if not isspace(msg.error1) then
whinh4202m000f.Undo_Release( msg.error1 )
session.name = "whinh4202m000-Release Outbound-While Releasing"
write.file()
else
whinh4525m000f.handle.sub.process( "whinh4202m000","kill" )
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill" )
endif
else
whinh4525m000f.handle.sub.process( "whinh4202m000","kill" )
session.name = "whinh4202m000-Release Outbound-Session Could not Open"
write.file()
endif
else
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill" )
session.name = "whinh4525m000-Maintain Outbound-Record Not Marked After Save"
write.file()
endif
endif
endif
else
whinh4525m000f.end()
whinh2120m000f.handle.sub.process( "whinh4525m000","kill")
write.file()
endif
endif
else
whinh2120m000f.end()
session.name = "whinh2120m000-Outbound Order Lines-Record Not Found"
write.file()
endif
whinh2120m000f.end()