nileshsamsonite
22nd March 2010, 05:57
Hi,

I want to use AFS for the Maintain Backorder session. ( tdpur4130m000 ) . I am trying to cancel a Purchase order through customized script. While cancelling the Purchase order there are two steps -
1) PO lines without any receipt
2) PO lines with partial receipt

In first case , I will delete the Purchase order line by calling the AFS with Delete po lines functionality . So that the history of the PO line can be maintain.

For 2nd case , I want to use the standard session tdpur4130m000.

How can I achieve the 2nd case ?

Thanks
Nilesh

nileshsamsonite
23rd March 2010, 11:25
Hi
Can anybody help in this regard.
Nilesh

mark_h
24th March 2010, 14:53
Not sure I understand your question - have you tried it? Looks like all you would have to do is put the purchase order and line, do a find, make sure the find was successful, put in 0 in back order qty and do a update or save. Seems simple enough. Of course I have not written any code for this session since it is not part of our API processing. I do not know if it asks any questions or anything like that.

Plus this is the correct forum for questions around using AFS functionality.

nileshsamsonite
25th March 2010, 12:24
Dear Mark,
Thanks for your info. But I was looking for the AFS script in which the maintain backorder session (tdpur4130m000) is being used. we can update the backorder quantity through this session. I am not aware which tables gets updated after running this session, therefore wanted to use AFS.

Thanks
Nilesh

mark_h
25th March 2010, 14:41
As I mentioned I do not have AFS code for this session, but it should be easy to write using the basic outline I provided. I searched this forum and nobody has posted code for this session.

nileshsamsonite
26th March 2010, 09:16
Dear Mark,
As per your inputs I have wrote the script. Its working very well...!!
Thanks a ton..

Nilesh

mark_h
26th March 2010, 18:58
Glad to be of help. And really happy it turned out well - not all of them are this easy. :)