som.papai
28th May 2008, 06:22
Hi all,
In purchase Invoice using tfacp1110s000 session,
when i put Purchase order no A new message "Select Logistic company" is comming, there i have to select one of Logistic company.

Now problem is this mesage have no code, and in AFS how can i handle
this message? I want to select one of company.

stpapi.put.field("tfacp1110s000","tfacp200.loco",str$(company))
stpapi.put.field("tfacp1110s000","tfacp200.orno",fmifo206.orno)
stpapi.put.field("tfacp1110s000","tfacp200.docd",str$(co.cdat))
stpapi.put.field("tfacp1110s000","tfacp200.refr",fmifo206.refr)
stpapi.put.field("tfacp1110s000","tfacp200.lvat",str$(etol(tfacp.vatc.header)))
ret_val = stpapi.insert("tfacp1110s000", true, error)

at stpapi.insert Fatal Error is comming.

pls help me.

pconde
28th May 2008, 09:31
Hi,

you are on LN6.1 right?
In the script they use the functions dialog.new, dialog.show etc.. to generate a dialog box.

I don't think it is possible to use AFS to control such things. Use DAL2 functionality is the only solution that I see

Regards
Philippe