baanhp
5th December 2014, 15:14
Dear Friends,

I am trying to insert record in table tihra100 using AFS on session tihra1101m000 in BAAN4C4. Every thing goes well, but at last step it throws error "Day not allowed." I tried all different combination and possibility. But hopeless finally.
For your info I tried the same record set in manual entry i.e. through front end using session tihra1101m000 and its got saved successfully without any error.
I have attached my source code and error screen shot. and also screen shot of actual session after manual entry same data.

Kindly help me . Its bit urgent.

Regards
Haraprasad

bhushanchanda
5th December 2014, 15:52
Hi,

Here is the exactly same thread:--

Thread 1 (http://www.baanboard.com/baanboard/showthread.php?t=5800)

The other related threads are :-

Thread 2 (http://www.baanboard.com/baanboard/showthread.php?t=53053)

Thread 3 (http://www.baanboard.com/baanboard/showthread.php?t=14599)

mark_h
5th December 2014, 18:18
Moved the thread to the correct forum. And as bhushan pointed out if you search this forum you might find your question and some solutions from others code. I usually search this forum on the session name.

baanhp
9th December 2014, 11:46
Hi Bhusan,

My heart felt thanks to you for your proper guidance and valuable suggestions. It works perfectly now.

After stpapi.insert and stpapi.save I again put the value explicitly for stdy and dayn and it inserted successfully.

Thanking you again for all your valuable time and earnest help.

Regards
Haraprasad

bhushanchanda
9th December 2014, 12:03
Glad it helped you. Thanks for posting your solution. Will help others facing the same issue.