Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pro 65 add order entry item programatically

Status
Not open for further replies.

fitedgar

MIS
Apr 24, 2002
238
US
I am trying to add a min. charge item to a sales order
When the user clicks on save ( detail form) to save SO,
the program automatically shoud add an item SHIP-MIN
I have the code in cmpSopostFS m.saveso. I have tried the
following but it does not work.
********
* First Step
*******
*--Finds the correct item
ln_ItmRec = .so_ProProc.g_selitd("SHIP-MIN ", .sc_DefLoct, ;
" ", .t., .sl_PrivAddItem, ;
.t., " ", Cc_NullStr, "")
*-- Save location id of selected record
*********
* 2nd step
*********
*-- Read variables for new record and witch lo_Detail.m_SetRecordValues(Cn_Init)

********
* 3rd step
*****
ll_Result = .m_LineSaveAdd()

This is not working. has anybody done this
Thank you in advance
EMC

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top