zoukankan      html  css  js  c++  java
  • Reading from Sales Documents: Business Data (VBKD)


    If you use a table lookup to read characteristic values from table VBKD ("Sales document: business data"), note that data need not necessarily exist for each item of the sales document. If the item data is no different than the header data, the system does not store it in the item as well. In this case, you can find the valid values in the header data which is stored in table VBKD under the item number "000000".

    Thus if you want to read characteristic values from VBKD, you always need to define two table lookups.

    You want to read the "KDGRP" field (Customer group) from table VBKD and insert it in the temporary field "USERTEMP1", so that you can use the customer group to derive other characteristics.

    To achieve this, you need to create the following two steps:

    Step

    Derivation type

    1

    Table lookup in table "VBKD" using the key "KAUFN" and "KDPOS";
    Copy content of field "KDGRP" to characteristic "USERTEMP1"

    2

    Table lookup in table "VBKD" using the key "KAUFN" and "KDPOS". 
    For "KDPOS", you define field attributes stating that the constant "000000" should be used here. Then copy "KDGRP" to "USERTEMP1"

    The result of this rule is that the system first tries to read the item data. But since this information is not stored explicitly, the field "USERTEMP1" remains blank. Then the system carries out step 2, which reads the header data.

    If you have used the field "USERTEMP1" for other purposes earlier in the strategy, you should clear its value first.

    http://help.sap.com/saphelp_40b/helpdata/en/7a/4c39084a0111d1894c0000e829fbbd/content.htm 

  • 相关阅读:
    IO多路复用 IO异步
    你没听说过的协程
    事件驱动和IO操作
    堡垒机前戏——paramiko
    听说过的多进程,多线程到底是什么鬼
    socket套接字
    看见就烦的异常
    struts2值栈内部数据结构详解
    hibernate一级缓存的源码初窥
    使用自定义标签模拟jstl的<c:for each>标签
  • 原文地址:https://www.cnblogs.com/cnlmjer/p/4099805.html
Copyright © 2011-2022 走看看