• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Validating non-stock items against item master in SO entry

EDSomers

Member
My client needs to select from a variety of non-stock items at Sales Order Entry (e.g., extra charges), and have the order pick up the GL Class code from the item master. This is necessary, as the DMAAI setup points each of these extra charges to different GL object accounts.

Currently, the non-stock items are picking up the CL Class from the line type setup.

In E-1, this is controlled by the PDC3 (Edit Item Master for Non-Stock Items) field in the Line Type Constants. When selected, this picks up item price, cost, description, and GL Class from the item master.

In our instance of World (A9.3), the field does not display on the Line Type screen. We set the flag to "Y" in the table, but the sales orders are still picking up the GL Class from the line type, rather than the item master.

Any thoughts on how to get around this?

Thanks!
 

G_Smith

Well Known Member
I needed the same thing here so I modified P4211 to use the GL Class from the Item Master if the Line Type GL Class contained '***'. Of course I had to add **** to the 41/9 UDC table and add about 14 lines of code to P4211. Here are the lines and I hope you can interrupt them because of the font alignment.

In S005C

C*----------------------------------------------------------------
C*
C* Scrub and edit - G/L Posting Code
C*
B1 CSR *IN94 Ifeq '1'
CSR SDGLC Oreq *BLANKS
GRS01C* Should the Line Type have **** then load Item Master G/L Code
' C LFGLC Ifeq '****'
' C SVGLPT Andne *Blanks
' C Movel SVGLPT SDGLC
' C Move *Blanks SVGLPT
' C Else
CSR Movel LFGLC SDGLC
' C Endif


And after the X4101 Call in S005D

CSR Move '1' $ERTST
E2 CSR Endif
GRS01C* Hold Item Master G/L Class
' C *LIKE Define IMGLPT SVGLPT
' C Move *Blanks SVGLPT
' C $ERTST Ifeq ' '
' C LFIVI Andeq 'N'
' C Move IMGLPT SVGLPT
' C Endif
 
Top