«

»

Dec 01 2011

Write to JDE Work Center

VN:F [1.9.22_1171]
Rating: 4.0/5 (1 vote cast)

These are the following steps to write messages to Work Center via the standard BSFN.

1. Initialize the PPAT pointer (B0100025)

2. Set/indicate the order level errors ( Order no/TYP/CO ) (B0100011)

3. Process the errors to WC

4. Release the PPAT Pointer

Eg:

1.  Write in the Initialize section

F01131 Edit JDEM Error Message (B0100025)
        SL UserID -> BF szUserid
        RV PPAT_MsgPtr_GENLNG <> BF idPPATworkField

This BSFN initializes the JDEM pointer to write to the Work Center

2.   Following can be written on the line level /Do section

***   On Order Error **** Level 2

JDEM Set Order Level Errors
              BC EDI - Document Number (F47012)(EDOC) -> BF mnOrderNumber
              BC EDI - Document Type (F47012)(EDCT) -> BF szOrderType
              BC Company - Key (EDI - Document Key Co) (F47012)(EKCO) -> BF szOrderCompany
              RV PPAT_MsgPtr_GENLNG <> BF idGenLong
              "R5647001" -> BF szReportNameDescription

Proccess batch errors to the JDEM system
              "2" -> BF mnLeveloftotaling
              RV PPAT_MsgPtr_GENLNG <> BF idDataBaseWorkField

3.  2nd level error details.

***   On Line Error **** Level 3

JDEM Set Line Level Errors
              BC EDI - Line Number (F47012)(EDLN) -> BF mnLineNumber
              RV PPAT_MsgPtr_GENLNG <> BF idGenLong
              ""R5647001 -Inbound EDI Orders"" -> BF szReportNameDescription
Proccess batch errors to the JDEM system
              "3" -> BF mnLeveloftotaling
              RV PPAT_MsgPtr_GENLNG <> BF idDataBaseWorkField
              VA rpt_szUserId_USER <> BF szUserid

 

4. Write at the end section event of the Driver Section

Proccess batch errors to the JDEM system
        "1" -> BF mnLeveloftotaling
        RV PPAT_MsgPtr_GENLNG <> BF idDataBaseWorkField
        VA rpt_szUserId_USER -> BF szUserid
Memory, Free Ptr To Data Structure
        RV PPAT_MsgPtr_GENLNG <> BF idGenericLong

 

Note: if you don’t release the PPAT Msg pointer the message doesn’t get written to WC.
Strangely some cases if you don’t release the pointer also it works in standard reports

Published under the license.

VN:F [1.9.22_1171]
Rating: 4.0/5 (1 vote cast)
Write to JDE Work Center, 4.0 out of 5 based on 1 rating
(Visited 919 times, 1 visits today)

About the author

Satish Kanth

Leave a Reply