I create new infoobject "Indicator" in infoprovider by using ds 2LIS_13_VDITM. I want to write ABAP code for this new created "Indicator" in the start routine of update rule of 2LIS_13_VDITM. The logic is if one sales document(e.g. 30000) has more than one billing documents(e.g. 980000001,980000002, 980000003, 980000004) and If one of billing document(e.g. 980000001 or 980000002 or 980000003 or 980000004) has billing type TFGD and company code "T001", and the rest of billing documents have billing type "SLL" and company code D001 or D002 or D003, then Indicator will mark "X". Is there Anybody know how to write it? Any input will be high appreciate.
Example like below:
- Sales document(DOC_NUMBER)
30000
- Billing document(AC_DOC_NO)
980000001
980000002
980000003
980000004
- Billing type(BILL_TYPE)
TFGD
SLL
- Company code(COMP_CODE)
T001,D001,D002,D003
- Indicator
"X"