官术网_书友最值得收藏!

Base tables versus target tables

Base tables and target tables are special linked tables within SAP Business One. They are the most often used linked tables for SQL queries too.

You may find most of them related to "Sales-A/R" and "Purchase-A/P" documents or so-called "Marketing Documents".

Marketing documents may not have base tables or target tables. From the previous screenshot, you could clearly find that the Base Document and Target Document are available to this Sales Order. To get the Base Document, you may click on the "left arrow icon" or use the shortcut key Ctrl+N. To get the Target Document, you may click on the "right arrow icon" or use the shortcut key Ctrl+T. Only when the base table or target table is available to the current document, will you find the menu items and icons in active status. Otherwise, both icons and menu items are grayed out.

From the terms "Base" and "Target", it is clear that the target table can be based upon the base table.

One table could be based on different types of tables:

From this demonstration, you could get a clear picture about the relationship between Base Document (table) and Target Document (table). A specific pair of Purchase Order and Good Receipt PO tables is shown here. This concept applies to all document type tables. Here is a list of commonly used base-target pairs; they are not inclusive. You may find more, but the following are the most frequently used ones:

I have omitted the details for the link. Actually, you will find that all the links exist on the first child table or so-called row table for the header table, such as QUT1 instead of OQUT.

The linking fields are very clear. For example:

  • BaseEntry in the target table refers to the base table's DocEntry
  • BaseType refers to the types of the base table
  • BaseRef is usually linked to DocNum field in the base table
  • BaseLine will be the line number in the base line table
  • TargetEntry in the base table refers to the target table's DocEntry
  • TargetType refers to the types of the target table
主站蜘蛛池模板: 丹巴县| 公主岭市| 望江县| 凯里市| 通山县| 同仁县| 蓝山县| 蕲春县| 宜城市| 商都县| 交口县| 垫江县| 孝义市| 郸城县| 宜兴市| 会泽县| 高密市| 江达县| 黑河市| 利辛县| 盐源县| 绿春县| 葫芦岛市| 海门市| 尼勒克县| 新田县| 阿尔山市| 兰考县| 临沂市| 安达市| 道孚县| 石渠县| 酉阳| 奎屯市| 铅山县| 公主岭市| 清水河县| 绵阳市| 桂东县| 汝城县| 静乐县|