RE: Structure for Sales and Purchases
This need a bit of coding :). In 2 areas you write your codes -
a. Sales header:
- in INITRECORD() function, go to the end of all codes and put the following 1 line
Structure := '<your structure>'; (put your structure name in single quotes). Say your structure name is 'STRUC01' so last 3 lines of INITRECORD() function will look like as below:
"Responsibility Center" := UserSetupMgt.GetRespCenter(0,"Responsibility Center");
"Time of Removal" := TIME;
Structure := 'STRUC01';
Compile it , re-login and try. This will work whenever you are creating a new sales document (Invoice, order, credit memo) but will not work while you are modifying an existing document.
Do remember, this is a bit hard-coded and it will always pick up the same structure code (even if you have more structure codes in your setup in future). But you have the option of changing the structure once the default structure is selected.
b. The same coding you can follow for the purchase header too in the INITRECORD function.
Try this out. Best of luck.