A recent project required me to extend and customize the PO Receipt page in the MWA MSCA. The extension of the RcptGenPage and RcptGenFListener was a little more complicated than some of the examples you see out there. It requires a lot more customization and bringing over oracle seeded attributes and private methods. It also requires you to have patience and using the trace debugging method that MWA provides. In this article I hope to help you learn more about how I was able to get this extended and customize the page to allow for a new field and calling pl/sql functions/procedures from within the mobile application.
Up until now all the code has been “extended” from the oracle seeded receipt pages. Now the customized code processing of this customization starts at the Item text field. When the Item LOV is exited it calls a method fieldExited(). This determines if the INV.ITEM LOV field was the field that was exited. Since it was it called my page code to actually “display” it, then it calls my custom itemExitedX() method. Note, that this method is copied directly from the Oracle seeded code, but has been changed just be executed specifically for the PO RECEIPT page. If you want to implement it for different pages (ie. RMA) then you’ll need to copy it over and insert debug statements to find out its flow through the method call.
Within the itemExitedX() method it does some code handling to determine if the mOrigitemWeightValue variable has been populated. If it hasn’t then it executes another custom method setItemWeight(). This call actually uses a CallableSTatement to call a function I created to pass in the item and return the “unitWeight” stored in the item master table.
Now when the item weight field is modified and exited it always calls another custom method called updItemWeight(). This is called in the locationEntered() method because it is the field that is entered when the Item Weight field is exited.
This is about the gist of the customization I needed to do for the PO Receipt form. If you look through my code you may have done some things different and you may need to change the way things are done. If you know other ways (maybe more efficient ways) to do things please let me know. I always want to learn better ways to do things. We all know that the documentation out there isn’t all that great and doesn’t work for every customization we need to do.
If you need consulting help in MSCA/MWA extensions/OAF customizations or any other consulting needs please contact us. You can also visit us at www.luciditycg.com
Materials & Mfg Receipts PO
written by Anil Passi-- , February 28, 2009
This will help many people.
apps2fusion.com/forums had too many requests for this article, thanks for publishing the same.
Cheers,
Anil Passi
written by Moahmmed , February 03, 2011
when i enter the Po Num , it give me ( No result is found ), and the LOV is empty , when i press on it , give me the same error
written by shailendrasingh , February 04, 2011
i am cutomizing PO reciept form,in this i have to add two fields so i extend all three classes,
every thing is working fine but LPN field is not getting display on the page.
please give me soltion.
thanks
shailendra
written by Vincent Maseko (South Africa) , March 24, 2011
This is a brilliant post!
Especially the source code - it is helping me a lot in my customization.
Ta,
Vincent
written by Gowri Shankar , April 07, 2011
We are in R12.1.1. We are using the Mobile Application for receiving the LPNs. There is a requirment to have the following restrictions in Receiving
To restrict the multiple receipts of single LPN. (sometimes user are doing muliple LPN scanning while Receiving, we need to avoid this).
To restrict the assignment of more than one item in a LPN (while receiving).
I believe we need to extend the PO Receipt MWA form. Can you please guide me on this, as I am new to Mobile Application.
Thanks,
Gowri.
written by mobidev , April 21, 2011
Without installing patches or Java classes on mobile device, is there a way we can get GUI feature for Mobile PO receipt?
written by AmitSrivastava , May 09, 2011
I wanted to add a new field in PO receipt mobile form. Please advise how to do this.
Regards,
Amit
written by Junaid Iftikhar , May 23, 2011
LOKING FORWARD FOR YOUR KIND RESPONSE,
written by swapnaj , December 09, 2011
After extending the page,in the new page i am not getting the values for the old lov fields.(for example for existing field like Dock door,field are getting displayed but LOV is not getting displayed)
Can you please help on this.






Thanks and Regards,
Senthil