CRITSUPPL: Inserting additional filters

This entry point is used to accept or not the posting of a stock movement.

Context and operating mode

Transaction

There is one transaction in progress

Log file

There is an open log file

Different call cases

The function can be launched directly or in batch mode. 

Available variables and masks

Only open mask: selection screens: STKACC [DIA]

The OK variable indicates whether the record in the STJTMP [SJT] table must be created (=1) or not (=0). 

Open tables

In the table below, the "significant content" column indicates that the content is in phase with the context.

 

Table

Significant content

Table Title

STOJOU [STJ]

Yes

Stock movements

STJTMP [SJT]

No

Stock journal-Interface

Original documents:

 

PRECEIPTD

If [STJ]VCRTYP=6

Receipt lines

PINVOICED

If [STJ]VCRTYP=6
and [STJ]VCRNUMREG<>""

Invoice line (purchase)

 

LNKSTKACC: Inserting additional tables

This entry point is used to include additional tables during the posting of a stock movement.

Context and operating mode

Transaction

There is one transaction in progress

Log file

There is an open log file

Different call cases

The function can be launched directly or in batch mode. 

Available variables and masks

Only open mask: selection screens: STKACC [DIA] 

Open tables

In the table below, the "significant content" column indicates that the content is in phase with the context.

 

Table

Significant content

Table Title

STOJOU [STJ]

Yes

Stock movements

STJTMP [TB0]

Yes

Stock journal-Interface

ITMFACILIT [ITF]

Yes

Product-site

TABCOSTMET

Yes

Valuation method

Original documents:

 

PRECEIPTD [PTD]

If [STJ]VCRTYP=6

Receipt lines

PINVOICED

If [STJ]VCRTYP=6
and [STJ]VCRNUMREG<>""

Invoice line (purchase)

ITMCOST

If [STJ]VCRTYP=6

Standard costs

SDELIVERY

If [STJ]VCRTYP=4

Shipment

SDELIVERYD

If [STJ]VCRTYP=4

Shipment line

SINVOICE

If [STJ]VCRTYP=5 or 18

Sales invoice

SINVOICED

If [STJ]VCRTYP=5 or 18

Sales invoice line

PRETURND

If [STJ]VCRTYP=8

Purchase return details

CUNLISDET

If [STJ]VCRTYP=9

Stock counts

MFGMATTRK

If [STJ]VCRTYP=12
and GOPEIFA<2

Material tracking

SRETURND

If [STJ]VCRTYP=13

Sales return details

BPCUSTOMER

If [STJ]VCRTYP=13

Customer

SDELIVERY

If [STJ]VCRTYP=13

Shipment

MFGITMTRK

If [STJ]VCRTYP=15

Production reporting

SMVTD

If [STJ]VCRTYP=19, 20, 31 or 32

Stock movement detail

SCHGD

If [STJ]VCRTYP=29

Stock change detail

HDKTASK

If [STJ]VCRTYP=33

After-sales consumption

FILACC: Filter on the records to be processed

This entry point is used to filter the records to be posted.

Context and operating method

Transaction

There is no transaction in process.

Log file

There is an open log file

Different call cases

The function can be launched directly or in batch mode. 

Available variables and masks

Only open mask: selection screens: STKACC [DIA] 

[L]FILACC: allows to trigger the EP FILACCNUL if set to 1

[L]CRITSEL: contains the filter on records to be processed

Open tables

In the table below, the "significant content" column indicates that the content is in phase with the context.

 

Table

Significant content

Table Title

STOJOU [STJ]

No

Stock movements

STJTMP [TB0]

No

Stock journal-Interface

ITMFACILIT [ITF]

No

Product-site

TABCOSTMET

No

Valuation method

Original documents:

 

PRECEIPTD [PTD]

No

Receipt lines

PINVOICED

No

Invoice line (purchase)

ITMCOST

No

Standard costs

SDELIVERY

No

Shipment

SDELIVERYD

No

Shipment line

SINVOICE

No

Sales invoice

SINVOICED

No

Sales invoice line

PRETURND

No

Purchase return details

CUNLISDET

No

Stock counts

MFGMATTRK

No

Material tracking

SRETURND

No

Sales return details

BPCUSTOMER

No

Customer

SDELIVERY

No

Shipment

MFGITMTRK

No

Production reporting

SMVTD

No

Stock movement detail

SCHGD

No

Stock change detail

HDKTASK

No

After-sales consumption

FILACCNUL: Posting of records with a null value

This entry point allows to force the posting of records with a null value regardless of the NULAMTIFA parameter or to prevent the posting of a record.

Context and operating method

Transaction

There is one transaction in progress

Log file

There is an open log file

Different call cases

The function can be launched directly or in batch mode. 

This entry point is called only if the FILACCNUL variable was assigned a value other than 0 in EP FILACC.

Available variables and masks

Only open mask: selection screens: STKACC [DIA] 

GPE:

-       0 (default value) = standard processing of records with a null value (NULAMTIFA parameter)

-       1 = force the posting of the record regardless of its value

-       2 = prevent the posting of the record regardless of its value


Open tables

In the table below, the "significant content" column indicates that the content is in phase with the context.

 

Table

Significant content

Table Title

STOJOU [STJ]

Yes

Stock movements

STJTMP [TB0]

Yes

Stock journal-Interface

ITMFACILIT [ITF]

Yes

Product-site

TABCOSTMET

Yes

Valuation method

Original documents:

 

PRECEIPTD [PTD]

If [STJ]VCRTYP=6

Receipt lines

PINVOICED

If [STJ]VCRTYP=6
and [STJ]VCRNUMREG<>""

Invoice line (purchase)

ITMCOST

If [STJ]VCRTYP=6

Standard costs

SDELIVERY

If [STJ]VCRTYP=4

Shipment

SDELIVERYD

If [STJ]VCRTYP=4

Shipment line

SINVOICE

If [STJ]VCRTYP=5 or 18

Sales invoice

SINVOICED

If [STJ]VCRTYP=5 or 18

Sales invoice line

PRETURND

If [STJ]VCRTYP=8

Purchase return details

CUNLISDET

If [STJ]VCRTYP=9

Stock counts

MFGMATTRK

If [STJ]VCRTYP=12
and GOPEIFA<2

Material tracking

SRETURND

If [STJ]VCRTYP=13

Sales return details

BPCUSTOMER

If [STJ]VCRTYP=13

Customer

SDELIVERY

If [STJ]VCRTYP=13

Shipment

MFGITMTRK

If [STJ]VCRTYP=15

Production reporting

SMVTD

If [STJ]VCRTYP=19, 20, 31 or 32

Stock movement detail

SCHGD

If [STJ]VCRTYP=29

Stock change detail

HDKTASK

If [STJ]VCRTYP=33

After-sales consumption