hredgert
25th February 2005, 11:08
Hi

Is there anyone made a AFS creating transactions for Purchase Invoice. Just started with this and made a test against the main session tfgld1101m000, question is how to actaivate the corressponding Sub Process and create the recs in the Maintain Purchase Invoice session.

Regards

H Redgert

sepp13
25th February 2005, 14:10
Hi

I have made AFS for tfgld1101m000 with sub process tfcmg2111s000:
After filling all fields in tfgld1101 start the sub process:


f1101m000.handle.sub.process("tfcmg2111s000", "add")


Regards

King Willy
25th February 2005, 18:10
You can find the subsession you've to call in table tfgld011, so you can do something like:

|select tfgld011.ses1:subsesion.x
|from tfgld011
|where tfgld011.-index1={:tfgld101.ttyp}
|selectdo
|endselect

Now you have the subsession in "session.x"