Carles
17th November 2004, 16:51
Hello,

We are trying to use AFS to create Outbound Lines in session whinh2120s000, but we have one problem with whinh220.item value.

If we use stpapi.put.field("whinh2120s000","whinh220.item","xxxx") to put value xxxx, this value arrives to session whinh2120s000 at the statement before program, but then it loses its value afterwards.

We also tried export and import a variable, but also do not work.

Can some one tell us what we are doing wrong?

Thank you

mark_h
17th November 2004, 20:08
In Baan V I think this might be a segmented field. Search this forum and see if you can find an example. If not let me know and I will search.

Mark

DStroud
17th November 2004, 20:29
Try the following:

stpapi.put.field( "whinh2120s000", "tcibd001.item.segment.1", "") | Item Project Segment
stpapi.put.field( "whinh2120s000", "tcibd001.item.segment.2", in.Item.code) | Item Segment

Carles
18th November 2004, 11:43
Thank you to both for your prompt reply.

Yours answers hit the mark. I have changed the AFS to use segmented field and now it works correctly.

Regards

Carles :)