Quantcast
Channel: My Errors & My Solutions
Viewing all articles
Browse latest Browse all 123

HOW TO change data for all Companies

$
0
0

My Errors & My Solutions My Errors & My Solutions - It Could Happen To You

HOW TO change data for all Companies?

You have different ways to complete this task, the choice depends from how many lines or Companies you have. In the following steps I will explain you how to change data for all Companies in C/SIDE using the CHANGECOMPANY Function (Record):

  1. Create a new ProcessingOnly Report using with the System Table 2000000006 – Company as Data Source of a DataItem.
  2. Declare a C/AL Globals Variable of DataType Record with the table that you need.
  3. Insert the following code in the OnAfterGetRecord trigger

    TO MODIFY

    GLSetup.CHANGECOMPANY(Name);
    
    GLSetup.MODIFYALL("Allow Posting From", 010114D); 
    GLSetup.MODIFYALL("Allow Posting To", 310114D);
    

    or

    TO DELETE

    ChangeLogSetup.CHANGECOMPANY(Name);
    
    ChangeLogSetup.DELETEALL; 
    
    1. Did my HOW TO help you? Leave a reply.

      HOW TO change data for all Companies Sergio Castelluccio


Viewing all articles
Browse latest Browse all 123

Trending Articles