Skip to main content

Hi,

  • PROCEDURE Create_Connectivity_Message___ of InvoiceTransfer-Cust.plsql overtakes the Ext layer(PROCEDURE Create_Connectivity_Message___ of InvoiceTransfer-Ext.plsql)
  • There are 5 $SEARCH and $REPLACE blocks within the procedure in the cust layer and one $SEARCH and $APPEND block.
  • Encountered the error
    • "Exception while generating code for InvoiceTransfer-Cust.utility Could not replace text " IF (send_itxml_ AND doc_type_ = 'TD04') THEN ..." in method Create_Connectivity_Message___"

        for the 3rd $SEARCH and $REPLACE block "IF (send_itxml_ AND doc_type_ = 'TD04') THEN"      which  has been written after the $SEARCH and $APPEND block.

 

Image 1
Image 2
Image 3
Image 4
Image 5
  • I would like to know how to correct this type of an error when we want to implement several $SEARCH and $REPLACE blocks along with $SEARCH and $APPEND within the same procedure in the cust layer that overtakes the ext layer.

Cheers,

Priyanjala

HI @Priyanjala Silva ,

 

You better  check the  generated code in the database of the previous version which is without any errors.

Then you can decide  the new logic which needs to add and identify where to put you new code change.

 

Cheers,

Thillini

 

 

 

 


Hi Priyanjala,

 

I noticed some instances the error cause due to whitespaces. To avoid that copy the original block in search section. 

 

Regards,

Sahan 


Hi Priyanjala,

 

Double check the search code block to see if anything has changed in the ext or core layer and also as Sahan mentioned check the whitespaces as well.

Best Regards,

Vishaka


Hi Priyanjala,

 

I noticed some instances the error cause due to whitespaces. To avoid that copy the original block in search section. 

 

Regards,

Sahan 

Hi,

 

As mentioned the error was due to the extra white space in the indentation of the $SEARCH block.

Hence I directly copied the relevant code from the generated APY and that helped to sort the issue.

 

Thanks,

Priyanjala