How to Implement User Reserved Columns in P4310

Title: How to Implement User Reserved columns in P4310 – Purchase Order Entry

Abstract: This document explains how User Reserved Columns can be implemented into F4311 – Purchase Order Detail File through P4310 – Purchase Order Entry

Caution: This document may contain information, software, products or services which are not supported by Oracle Support Services and are being provided ‘as is’ without warranty. Please refer to the following site for My Oracle Support Terms of Use: https://support.oracle.com/CSP/ui/TermsOfUse.html.


Table of Contents

Introduction
User Interface

Action Plan

Example of Implementation

 


Introduction

Before you take any action make sure all the information is fully understood including the consequences of the change to be made.

 

P4310 – Purchase Order Entry handles Header/Detail data as below,

 

 

 

Before Start

 

  1. Check business View in Grid of W4310A
  2. Check Data Structure or Work File whether it contains User Reserved Columns from F4301Z and F4311Z
  3. Check whether XT4311Z2 contains logic to handle User Reserved Columns either into Cache or into Work File

 

 

 

Back to Top

User Interface

User may enter User Reserved Columns in Grid of W4310A then the information has to be delivered to F4311EditLine to create Purchase Order Detail Cache. This document  covers how User Entered Values are handled in P4310.

 

Action Plan

 

 

Possible Implementation

  1. Purchase Order Revision form is made up of Header/Detail form so the functionality we are implementing is to be handled by Grid control which BSVW is V4311B – Purchase Order Detail Update – POE

 

 

 

 

 

  1. Verify that existing Grid Control of W4311A – [Oder Detail] form does not contain User Reserved Columns

 

 

 

  1. Implemented additional GC Columns to hold GC Variable to F4311EditLine

 

  1. Verify that Data Structure DF4311Z1B has User Reserved Columns as a member of Data Structure. And work file F4311Z – Purchase Order Generator File has User Reserved Columns as columns

 

 

 

 

 

  1.  To handle User Reserved Columns in Update Mode

 

 

 

 

  1. Code analysis

 

*** Break In Code of XT4311Z2 ***

  ID          IXTF4311Z2_WriteToDetailWorkFile(

                                                           LPBHVRCOM                 lpBhvrCom,

                                                           LPVOID                    lpVoid,

                                                           HUSER                     hUser,

                                                           LPDSDF4311Z1B        lpDS,

                                                           HREQUEST                 hRequestF4311Z,

                                                           F4311Z                *dsFetchFromF4311Z,

                                                          DSD4302180G          *dsPODetailCache);

 

*** Break In code ***

 

*** Break In Code of XT4311Z2 continued ***

   if (IsStringBlank(lpDS->szUserReservedCode))

   {

              jdeStrcpy((JCHAR *)(&lpDS->szUserReservedCode),

                        (const JCHAR *)(lpdsF4311ZWorkFile->pwurcd));

   }

   if (IsJDEDATENull(&lpDS->jdUserReservedDate))

   {

              memcpy((void *)(&lpDS->jdUserReservedDate),

                             (const void *)(&lpdsF4311ZWorkFile->pwurdt),

                             sizeof(JDEDATE));

   }

 

   if ( (!memcmp((void *)&lpDS->mnUserReservedAmount,

          (void *)&mnNullMathNumeric,

           sizeof(MATH_NUMERIC)))   )

   {

               MathCopy(&lpDS->mnUserReservedAmount,

            &lpdsF4311ZWorkFile->pwurat);

   }

 

   if ( (!memcmp((void *)&lpDS->mnUserReservedNumber,

          (void *)&mnNullMathNumeric,

          sizeof(MATH_NUMERIC)))             )

   {

            MathCopy(&lpDS->mnUserReservedNumber,

            &lpdsF4311ZWorkFile->pwurab);

   }

 

*** Break In Code of ***

 

*** Break In Code of XT4311Z2 continued ***

   jdeStrcpy((JCHAR *)(dsFetchFromF4311Z->pwurcd),

          (const JCHAR *)(lpDS->szUserReservedCode));

   memcpy((void *)(&dsFetchFromF4311Z->pwurdt),

          (const void *)(&lpDS->jdUserReservedDate),

           sizeof(JDEDATE));

   MathCopy(&dsFetchFromF4311Z->pwurat,

            &lpDS->mnUserReservedAmount);

   MathCopy(&dsFetchFromF4311Z->pwurab,

            &lpDS->mnUserReservedNumber);

   jdeStrcpy((JCHAR *)(dsFetchFromF4311Z->pwurrf),

          (const JCHAR *)(lpDS->szUserReservedReference));

*** Break In Code ***

 

Note: Above code is standard code so do not modify any of above codes

Note: Above code is based on Unicode

Note: This code does imply other application other than P4310

 

Object Affected

n  Business View V4311B

n  Interactive Application P4310

 

 

Back to Top

 

E1: FDA: Object Modification Recommendations: Interactive Applications (Doc ID 626586.1) 

E1: FDA: Object Modification Recommendations: Event Rules (Doc ID 626585.1) 

E1: TDA: Object Modification Recommendations: Business Views (Doc ID 626582.1)

 

Back to Top