Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
11/14/2013
Page 2 of 42
11/14/2013
Page 3 of 42
11/14/2013
Page 4 of 42
11/14/2013
Page A of 42
11/14/2013
Page 5 of 42
11/14/2013
Page < of 42
11/14/2013
Page ; of 42
11/14/2013
Page D of 42
11/14/2013
Forcing a Split
(he illing document header ta le 3,B+>6 contains a special field that is used to force a split to occur" (he @B>+. field is a character string that contains concatenated fields from the preceding documents" B! adEusting the contents of this string %ithin a data transfer routine' !ou can force a split to occur"
Preventing a Split
(o pre&ent a split' the fields that cause a split to occur can e modified %ithin a data transfer routine to contain the same &alue" 4or e)ample' t%o deli&eries that contain different shipping conditions %ill split ecause the shipping conditions are copied to the in&oice header 3,B+>6" .f the field is cleared for each in&oice' the split %ill no longer occur"
Page 10 of 42
11/14/2013
Page 11 of 42
11/14/2013
Step 1
Bsing transaction ,04M' na&igate to the data transfer routines for illing documents" (he easiest %a! to create a ne% routine is to t!pe the ne% routine num er o&er one of the e)isting routines and press enter" (he s!stem %ill create the ne% routine as a clone of the one that %as o&er t!ped"
Page 12 of 42
11/14/2013
Page 13 of 42
11/14/2013
Billing data transfer routines are assigned in cop! control at the item categor! le&el"
Page 14 of 42
11/14/2013
(he follo%ing e)ample demonstrates ho% to pre&ent illing document splits for a specific field"
Business Re%uirement
(he illing due list in standard +/3 creates multiple illing documents for deli&eries that contain different shipping conditions" (he client %ants these deli&eries to com ine into a single illing document"
Solution
(o sol&e this pro lem' %e %ill create a custom Data (ransfer +outine" .n this routine' %e %ill clear the shipping conditions field" B! clearing the field' it %ill contain the same &alue for all deli&eries and %ill no longer cause a illing document split" (he side effect of this change is that the illing documents %ill no longer contain a shipping condition"
Page 1A of 42
11/14/2013
Belo% is the custom data transfer routine efore ma*ing an! changes" (his routine %as cloned from the standard routine 001"
Page 15 of 42
11/14/2013
Page 1< of 42
11/14/2013
Page 1; of 42
11/14/2013
Page 1D of 42
11/14/2013
.n the custom data transfer routine' a single line of code is added that clears the shipping conditions"
Page 20 of 42
11/14/2013
Bsing the same t%o deli&eries' %e e)ecute the illing due list again after changing the routine in simulation mode"
Page 21 of 42
11/14/2013
Page 22 of 42
11/14/2013
(he follo%ing e)ample demonstrates ho% to force a illing document split ased on a specific field"
Business Re%uirement
(he Billing Due 7ist processes multiple deli&eries for customers on the same da!" .f a customer has shipments from multiple plants' the! are to appear on separate illing documents"
Solution
(o sol&e this pro lem' %e %ill create a custom Data (ransfer +outine" .n this routine' %e %ill add the plant 3=1+>S6 field to the Com ination Criteria field 3,B+>?@B>+.6 field" (his %ill cause a illing document split ! plant"
Page 23 of 42
11/14/2013
Belo% is our custom data transfer routine efore ma*ing an! changes" (his routine %as cloned from the standard routine 001"
Page 24 of 42
11/14/2013
Page 2A of 42
11/14/2013
Page 25 of 42
11/14/2013
.n the custom data transfer routine' the plant field 3=1+>S6 is added to the com ination criteria field definition 3,B+>?@B>+.6" .n addition' logic is added to populate the field %ith the plant contained in the deli&er! item 37.PS?=1+>S6" (his %ill cause the ,B+>? @B>+. field to differ %hen multiple plants are processed forcing the split to occur"
Page 2< of 42
11/14/2013
Bsing the same t%o deli&eries' %e e)ecute the illing due list again after changing the routine in simulation mode"
Page 2; of 42
11/14/2013
Page 2D of 42
11/14/2013
Page 30 of 42
11/14/2013
(he follo%ing e)ample demonstrates ho% to consolidate/split illing documents using a custom indicator on the Customer Master"
Business Re%uirement
Man! customers place multiple sales orders per da!" (his results in multiple goods issues and illing documents per da! also" Some customers %ant all shipments that occur on the same da!' from the same plant to appear on a single in&oice" 0ther customers %ant a separate in&oice for each shipment"
Solution
(o sol&e this pro lem' %e %ill create a custom Data (ransfer +outine" (his routine %ill determine if deli&eries should e com ined into a single illing document or split ased on a custom indicator added to the Customer Master" (o accomplish this' the order num er %ill e added to the Com ination Criteria field 3,B+>?@B>+.6" (he order num er %ill e mo&ed into this field onl! if splitting is re$uired" .f illing consolidation is re$uired' the order num er %ill e null causing the consolidation to occur"
Page 31 of 42
11/14/2013
2n indicator in the Customer Master is needed to dri&e the consolidation logic" Standard +/3 contains ten additional attri utes on >/21 that can e used for an! purpose" 4or this proEect' %e %ill use >2(+<"
.t is a good practice to change the data element description to an appropriate description" 4or>2(+<'%eha&echangedthedescriptionto8Consolidatedin&oice9"
Page 32 of 42
11/14/2013
Bsing SM30' %e ha&e defined the follo%ing t%o &alues for the ne% field"
Page 33 of 42
11/14/2013
Page 34 of 42
11/14/2013
Page 3A of 42
11/14/2013
.n the custom data transfer routine' the order num er field 3,B17/6 is added to the com ination criteria field definition 3,B+>?@B>+.6" .n addition' logic is added to populate the field %ith the sales order num er ased on the ne% indicator added to the customer master" .f the indicator is set 3denoting that consolidation should occur6' the order num er field %ill e empt!" .f the indicator is not set 3denoting that splitting should occur6' the field %ill e filled" (his %ill cause the ,B+>?@B>+. field to differ %hen multiple orders are processed forcing the split to occur"
Page 35 of 42
11/14/2013
(he indicator on the customer master is set so that separate illing documents are created"
Page 3< of 42
11/14/2013
Page 3; of 42
11/14/2013
Page 3D of 42
11/14/2013
Page 40 of 42
11/14/2013
(he indicator on the customer master is set so that illing document consolidation occurs"
Page 41 of 42
11/14/2013
Page 42 of 42
11/14/2013