UPD_COPYLINE: modification of the stock detail characteristics when copying a li

Use this entry point to modify the stock characteristics, in the detail screen, of the stock line automatically populated from the previous line following the decrease in quantity of this line.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases - Significant variables

This entry point is located in the COPYLINE label of the TRTSTOENTB processing.

It is called in the detailed entry of stock receipts, following the decrease in quantity of a line, after the new line has been populated from the one whose quantity has been modified.

It is used to modify the stock characteristics of this new line, which are, by default, identical to those of the previous line.

For example, it will be possible to force the suggestion of a new location by emptying the location.  

The index of the source line is: PINFFROM --> it must not be changed

The index of the target line is: PINDTO

The fields that can be modified are: LOC (location), STA (status), PCU (unit), PALNUM (identifier 1) et CTRNUM (identifier 2)

For example:

To force the suggestion of a new location, you need to write

[M]LOC(PINDTO) = "" : Affzo [M]LOC(PINDTO)

CTL_DOC: Document line controls

Use this entry point to perform specific controls on document lines.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases - Significant variables

This entry point is located in the CTL_LIGNE_DOCUMENT label of the TRTSTOENTB processing.

It is called when saving the receipt document

The GPE heading <> 0 can be used to replace the standard controls.

The document at the origin of this receipt entry is defined in the LTYP variable.

The possible values as well as the screens corresponding to the document are:

LTYP

Condition

Source document

Source screens

File on line

 6

 

 Receipt

PTH0, PTH1

[F :PTH], [F :PYD], [F :PTR]

 12

 

 Stock reintegration

MTK0, MTK3

[F :MTS]

 13

LABR= "SRH1"

 Customer return

SRH1

 

 13

LABR= "SRL1"

 Loan return

SRL1

 

 15

 

 Production reporting

MTK0, MTK2

[F :MTS]

 18

 

 Credit memo

SIH0, SIH1, SIH4

 

 19

 

 Miscellaneous receipt

SMR0, SMR1

[F :SRT]

 31

 

 Assembly

BBY0

 

 32

 

 Disassembly

DBY0, DBY1