I am assuming that the variables that are in the comments are the arguments
that are passed to the subroutine.


//mySession is a connected UniSession object
try  {
     UniSubroutine mySub = mySession.subroutine("SUBNAME", numArgs);
//numArgs looks like 4 in your case
     mySub.setArg(0, "PC_CM.REC value");               //These are String
values for the args to be passed to the subroutine
     mySub.setArg(1, "PC_SHIP.CM.REC value");
     mySub.setArg(2, "PRICE_CODE_TYPE value");
     mySub.setArg(3, "BASE_TYPE value");
     mySub.call();
}

catch (UniSubroutineException uSubEx) {
     //Some code to deal with the exception
}


                                                                                       
                                                
                      <[EMAIL PROTECTED]                                               
                                                 
                      m>                       To:       <[EMAIL PROTECTED]>           
                                              
                      Sent by:                 cc:                                     
                                                
                      u2-users-bounces@        Subject:  How to accomplish this from 
UniObjects                                        
                      oliver.com                                                       
                                                
                                                                                       
                                                
                                                                                       
                                                
                      03/12/2004 10:52                                                 
                                                
                      AM                                                               
                                                
                      Please respond to                                                
                                                
                      U2 Users                                                         
                                                
                      Discussion List                                                  
                                                
                                                                                       
                                                
                                                                                       
                                                




I'm attempting to hijaack a UniBasic subroutine to call from an external
program using UniObjects, but it has some requirements I'm not sure how to
implement.  If anyone has any thoughts, please feel free to post them.
Here's the comments in the subroutine...

* The calling program must include the MFG.LAYOUTS item CM.AMCS and
initialize
* the following variables:
*      PC_CM.REC - the bill to customer record assigned to the data record
*      PC_SHIP.CM.REC - the ship-to customer record assigned to the data
record
*      PRICE_CODE_TYPE - one of the values assigned to CM.Price_Code_Type
*      BASE_TYPE - for records such as sales quotes where the default is
*                  first to the SQP.CONSTANTS, then to the SOP.CONSTANTS
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users





-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to